Draft: Main page view #1

Open
jakobluca wants to merge 3 commits from ivan into master
5 changed files with 819 additions and 519 deletions
Showing only changes of commit e485a0c398 - Show all commits

16
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
"editor.defaultFormatter": "biomejs.biome",
"biome.enabled": true,
"biome.requireConfiguration": true,
"biome.configurationPath": "./frontend/biome.json",
"biome.lsp.bin": {
"linux-x64": "./frontend/node_modules/@biomejs/cli-linux-x64/biome",
"linux-x64-musl": "./frontend/node_modules/@biomejs/cli-linux-x64-musl/biome",
"cli-linux-arm64": "./frontend/node_modules/@biomejs/cli-linux-arm64/biome",
"linux-arm64-musl": "./frontend/node_modules/@biomejs/cli-linux-arm64-musl/biome",
"win32-x64": "./frontend/node_modules/@biomejs/cli-win32-x64/biome.exe",
"win32-arm64": "./frontend/node_modules/@biomejs/cli-win32-arm64/biome.exe",
"darwin-x64": "./frontend/node_modules/@biomejs/cli-darwin-x64/biome"
},
}

View File

@ -11,8 +11,6 @@
</head>
<body>
<div class="wrap">
<!-- ─── HEADER ─── -->
<header class="header">
<div class="container header__inner">
<a href="#hero" class="logo">
@ -35,8 +33,6 @@
</header>
<main>
<!-- ─── HERO ─── -->
<section class="hero" id="hero">
<div class="container hero__inner">
@ -88,8 +84,6 @@
</div>
</section>
<!-- ─── ABOUT ─── -->
<section class="about" id="about">
<div class="container about__inner">
@ -99,7 +93,7 @@
<p class="about__desc reveal reveal-delay-2">
GeoDraw is a competitive browser game built on memory and precision. You get a country name, sketch its outline, and the system calculates how close you were to the real border.
</p>
<!--
<div class="mini-globe-wrap reveal reveal-delay-3">
<div class="map-outline">
<svg viewBox="0 0 100 130" xmlns="http://www.w3.org/2000/svg">
@ -117,7 +111,7 @@
transform="translate(4,-2) scale(0.96) translate(-2,2)"/>
</svg>
</div>
</div> -->
</div>
</div>
<div class="about__right">

View File

@ -6,7 +6,11 @@
"author": "",
"type": "commonjs",
"main": "index.js",
"scripts": {},
"scripts": {
"format": "biome format --write",
"lint": "biome lint",
"lint:fix": "biome lint --write"
},
"devDependencies": {
"@biomejs/biome": "2.3.14"
}

View File

@ -1,5 +1,4 @@
document.addEventListener("DOMContentLoaded", () => {
// ── Register button
const regBtn = document.getElementById("reg-btn");
if (regBtn) {
@ -9,28 +8,32 @@ document.addEventListener("DOMContentLoaded", () => {
}
// ── Smooth scroll for all anchor links
document.querySelectorAll('a[href^="#"]').forEach(link => {
link.addEventListener("click", e => {
document.querySelectorAll('a[href^="#"]').forEach((link) => {
link.addEventListener("click", (e) => {
const id = link.getAttribute("href").slice(1);
const target = document.getElementById(id);
if (!target) return;
e.preventDefault();
const headerH = document.querySelector(".header").offsetHeight;
const top = target.getBoundingClientRect().top + window.scrollY - headerH - 16;
const top =
target.getBoundingClientRect().top + window.scrollY - headerH - 16;
window.scrollTo({ top, behavior: "smooth" });
});
});
// ── Scroll reveal
const reveals = document.querySelectorAll(".reveal");
const io = new IntersectionObserver((entries) => {
entries.forEach(entry => {
const io = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("visible");
io.unobserve(entry.target);
}
});
}, { threshold: 0.12 });
},
{ threshold: 0.12 },
);
reveals.forEach(el => io.observe(el));
reveals.forEach((el) => io.observe(el));
});

View File

@ -4,25 +4,33 @@
--ink-muted: #7a9aaa;
--sea: #1a7fc4;
--sea-light: #4faae0;
--sea-dim: rgba(26,127,196,.12);
--sea-dim: rgba(26, 127, 196, 0.12);
--leaf: #41b869;
--leaf-dim: rgba(65,184,105,.13);
--leaf-dim: rgba(65, 184, 105, 0.13);
--cream: #f4f9f6;
--white: #ffffff;
--glass: rgba(255,255,255,.72);
--line: rgba(11,31,42,.09);
--shadow: 0 24px 60px rgba(11,31,42,.10);
--glass: rgba(255, 255, 255, 0.72);
--line: rgba(11, 31, 42, 0.09);
--shadow: 0 24px 60px rgba(11, 31, 42, 0.1);
--r-xl: 32px;
--r-lg: 22px;
--r-md: 14px;
--hh: 80px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'DM Sans', sans-serif;
font-family: "DM Sans", sans-serif;
color: var(--ink);
background: var(--cream);
overflow-x: hidden;
@ -30,30 +38,49 @@ body {
}
body::before {
content: '';
content: "";
position: fixed;
inset: 0;
background:
radial-gradient(ellipse 60% 50% at 10% 0%, rgba(65,184,105,.12) 0%, transparent 60%),
radial-gradient(ellipse 50% 60% at 90% 100%, rgba(26,127,196,.12) 0%, transparent 60%);
radial-gradient(
ellipse 60% 50% at 10% 0%,
rgba(65, 184, 105, 0.12) 0%,
transparent 60%
),
radial-gradient(
ellipse 50% 60% at 90% 100%,
rgba(26, 127, 196, 0.12) 0%,
transparent 60%
);
pointer-events: none;
z-index: 0;
}
body::after {
content: '';
content: "";
position: fixed;
inset: 0;
background-image: linear-gradient(var(--line) 1px, transparent 1px),
background-image:
linear-gradient(var(--line) 1px, transparent 1px),
linear-gradient(90deg, var(--line) 1px, transparent 1px);
background-size: 60px 60px;
pointer-events: none;
z-index: 0;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
a {
color: inherit;
text-decoration: none;
}
img,
svg {
display: block;
max-width: 100%;
}
button,
input {
font: inherit;
}
.wrap {
position: relative;
@ -77,7 +104,7 @@ button, input { font: inherit; }
align-items: center;
backdrop-filter: blur(16px) saturate(1.4);
-webkit-backdrop-filter: blur(16px) saturate(1.4);
background: rgba(244,249,246,.82);
background: rgba(244, 249, 246, 0.82);
border-bottom: 1px solid var(--line);
}
@ -113,10 +140,10 @@ button, input { font: inherit; }
}
.logo__text {
font-family: 'Syne', sans-serif;
font-family: "Syne", sans-serif;
font-weight: 800;
font-size: 1.25rem;
letter-spacing: -.02em;
letter-spacing: -0.02em;
}
.nav {
@ -128,10 +155,12 @@ button, input { font: inherit; }
.nav__link {
padding: 9px 16px;
border-radius: 999px;
font-size: .92rem;
font-size: 0.92rem;
font-weight: 500;
color: var(--ink-soft);
transition: background .18s, color .18s;
transition:
background 0.18s,
color 0.18s;
}
.nav__link:hover {
@ -143,14 +172,19 @@ button, input { font: inherit; }
margin-left: 8px;
padding: 9px 20px;
border-radius: 999px;
font-size: .92rem;
font-size: 0.92rem;
font-weight: 600;
color: var(--white);
background: var(--ink);
transition: opacity .18s, transform .18s;
transition:
opacity 0.18s,
transform 0.18s;
}
.nav__cta:hover { opacity: .82; transform: translateY(-1px); }
.nav__cta:hover {
opacity: 0.82;
transform: translateY(-1px);
}
/* ─── HERO ─── */
.hero {
@ -174,11 +208,11 @@ button, input { font: inherit; }
padding: 7px 14px 7px 10px;
border-radius: 999px;
border: 1px solid var(--leaf-dim);
background: rgba(65,184,105,.08);
background: rgba(65, 184, 105, 0.08);
color: #289149;
font-size: .82rem;
font-size: 0.82rem;
font-weight: 600;
letter-spacing: .04em;
letter-spacing: 0.04em;
text-transform: uppercase;
margin-bottom: 26px;
}
@ -192,16 +226,23 @@ button, input { font: inherit; }
}
@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.4); opacity: .7; }
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.4);
opacity: 0.7;
}
}
.hero__title {
font-family: 'Syne', sans-serif;
font-family: "Syne", sans-serif;
font-weight: 800;
font-size: clamp(3.6rem, 8vw, 7rem);
line-height: .92;
letter-spacing: -.04em;
line-height: 0.92;
letter-spacing: -0.04em;
margin-bottom: 24px;
}
@ -235,31 +276,49 @@ button, input { font: inherit; }
gap: 8px;
padding: 16px 30px;
border-radius: var(--r-lg);
font-family: 'DM Sans', sans-serif;
font-family: "DM Sans", sans-serif;
font-size: 1rem;
font-weight: 600;
border: none;
cursor: pointer;
transition: transform .2s, box-shadow .2s, opacity .2s;
transition:
transform 0.2s,
box-shadow 0.2s,
opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover {
transform: translateY(-2px);
}
.btn--primary {
color: var(--white);
background: linear-gradient(135deg, var(--sea) 0%, #159fd4 50%, var(--leaf) 100%);
background: linear-gradient(
135deg,
var(--sea) 0%,
#159fd4 50%,
var(--leaf) 100%
);
background-size: 200% 200%;
box-shadow: 0 8px 24px rgba(26,127,196,.3);
box-shadow: 0 8px 24px rgba(26, 127, 196, 0.3);
animation: gradShift 4s ease infinite;
}
@keyframes gradShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.btn--primary:hover { box-shadow: 0 12px 32px rgba(26,127,196,.4); }
.btn--primary:hover {
box-shadow: 0 12px 32px rgba(26, 127, 196, 0.4);
}
.btn--ghost {
color: var(--ink-soft);
@ -267,15 +326,20 @@ button, input { font: inherit; }
border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn--ghost:hover {
border-color: var(--ink-muted);
color: var(--ink);
}
.btn--full { width: 100%; }
.btn--full {
width: 100%;
}
/* Globe card */
.globe-card {
background: var(--glass);
backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,.8);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: var(--r-xl);
box-shadow: var(--shadow);
padding: 40px;
@ -288,12 +352,21 @@ button, input { font: inherit; }
}
.globe-card::before {
content: '';
content: "";
position: absolute;
inset: 0;
border-radius: var(--r-xl);
background: radial-gradient(circle at 30% 25%, rgba(65,184,105,.18), transparent 50%),
radial-gradient(circle at 75% 75%, rgba(26,127,196,.15), transparent 50%);
background:
radial-gradient(
circle at 30% 25%,
rgba(65, 184, 105, 0.18),
transparent 50%
),
radial-gradient(
circle at 75% 75%,
rgba(26, 127, 196, 0.15),
transparent 50%
);
}
.globe {
@ -302,11 +375,17 @@ button, input { font: inherit; }
width: min(100%, 380px);
aspect-ratio: 1;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #70d0ff 0%, var(--sea) 30%, #0d4b80 65%, #072f52 100%);
background: radial-gradient(
circle at 35% 30%,
#70d0ff 0%,
var(--sea) 30%,
#0d4b80 65%,
#072f52 100%
);
box-shadow:
inset -20px -20px 40px rgba(0,0,0,.22),
inset 8px 8px 24px rgba(255,255,255,.08),
0 30px 60px rgba(7,47,82,.28);
inset -20px -20px 40px rgba(0, 0, 0, 0.22),
inset 8px 8px 24px rgba(255, 255, 255, 0.08),
0 30px 60px rgba(7, 47, 82, 0.28);
}
.continent {
@ -315,23 +394,64 @@ button, input { font: inherit; }
border-radius: 46% 54% 58% 42%;
}
.c1 { width: 30%; height: 22%; top: 18%; left: 12%; transform: rotate(-14deg); }
.c2 { width: 18%; height: 28%; top: 30%; left: 46%; transform: rotate(8deg); border-radius: 40% 60% 50% 50%; }
.c3 { width: 22%; height: 16%; top: 56%; right: 15%; transform: rotate(22deg); }
.c4 { width: 12%; height: 18%; top: 68%; left: 20%; transform: rotate(-6deg); border-radius: 50%; }
.c1 {
width: 30%;
height: 22%;
top: 18%;
left: 12%;
transform: rotate(-14deg);
}
.c2 {
width: 18%;
height: 28%;
top: 30%;
left: 46%;
transform: rotate(8deg);
border-radius: 40% 60% 50% 50%;
}
.c3 {
width: 22%;
height: 16%;
top: 56%;
right: 15%;
transform: rotate(22deg);
}
.c4 {
width: 12%;
height: 18%;
top: 68%;
left: 20%;
transform: rotate(-6deg);
border-radius: 50%;
}
.globe-line {
position: absolute;
border: 1px solid rgba(255,255,255,.12);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 50%;
top: 50%; left: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.gl1 { width: 60%; height: 100%; }
.gl2 { width: 88%; height: 100%; }
.gl3 { width: 100%; height: 55%; top: 50%; }
.gl4 { width: 100%; height: 80%; top: 50%; }
.gl1 {
width: 60%;
height: 100%;
}
.gl2 {
width: 88%;
height: 100%;
}
.gl3 {
width: 100%;
height: 55%;
top: 50%;
}
.gl4 {
width: 100%;
height: 80%;
top: 50%;
}
.globe-badge {
position: absolute;
@ -339,8 +459,8 @@ button, input { font: inherit; }
background: var(--white);
border-radius: var(--r-md);
padding: 10px 14px;
box-shadow: 0 8px 24px rgba(11,31,42,.14);
font-size: .8rem;
box-shadow: 0 8px 24px rgba(11, 31, 42, 0.14);
font-size: 0.8rem;
font-weight: 600;
display: flex;
align-items: center;
@ -348,12 +468,25 @@ button, input { font: inherit; }
animation: floatBadge 3s ease-in-out infinite;
}
.gb--score { top: 14%; right: 6%; animation-delay: 0s; }
.gb--country { bottom: 14%; left: 4%; animation-delay: 1.2s; }
.gb--score {
top: 14%;
right: 6%;
animation-delay: 0s;
}
.gb--country {
bottom: 14%;
left: 4%;
animation-delay: 1.2s;
}
@keyframes floatBadge {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}
.gb__dot {
@ -362,8 +495,12 @@ button, input { font: inherit; }
border-radius: 50%;
}
.gb__dot--green { background: var(--leaf); }
.gb__dot--blue { background: var(--sea); }
.gb__dot--green {
background: var(--leaf);
}
.gb__dot--blue {
background: var(--sea);
}
/* ─── ABOUT ─── */
.about {
@ -372,7 +509,7 @@ button, input { font: inherit; }
.about__inner {
display: grid;
grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
gap: 64px;
align-items: center;
}
@ -383,19 +520,19 @@ button, input { font: inherit; }
border-radius: 999px;
background: var(--sea-dim);
color: var(--sea);
font-size: .82rem;
font-size: 0.82rem;
font-weight: 600;
letter-spacing: .04em;
letter-spacing: 0.04em;
text-transform: uppercase;
margin-bottom: 20px;
}
.section-title {
font-family: 'Syne', sans-serif;
font-family: "Syne", sans-serif;
font-weight: 800;
font-size: clamp(2.4rem, 4.5vw, 4rem);
line-height: 1.04;
letter-spacing: -.03em;
letter-spacing: -0.03em;
margin-bottom: 20px;
}
@ -407,7 +544,10 @@ button, input { font: inherit; }
}
/* Steps */
.steps { display: grid; gap: 16px; }
.steps {
display: grid;
gap: 16px;
}
.step {
display: grid;
@ -416,16 +556,18 @@ button, input { font: inherit; }
align-items: center;
background: var(--glass);
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,.8);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: var(--r-lg);
padding: 22px 26px;
box-shadow: 0 4px 20px rgba(11,31,42,.06);
transition: transform .2s, box-shadow .2s;
box-shadow: 0 4px 20px rgba(11, 31, 42, 0.06);
transition:
transform 0.2s,
box-shadow 0.2s;
}
.step:hover {
transform: translateX(6px);
box-shadow: 0 8px 28px rgba(11,31,42,.1);
box-shadow: 0 8px 28px rgba(11, 31, 42, 0.1);
}
.step__num {
@ -434,7 +576,7 @@ button, input { font: inherit; }
border-radius: 16px;
background: linear-gradient(135deg, var(--sea), var(--leaf));
color: var(--white);
font-family: 'Syne', sans-serif;
font-family: "Syne", sans-serif;
font-weight: 800;
font-size: 1rem;
display: flex;
@ -444,14 +586,14 @@ button, input { font: inherit; }
}
.step__title {
font-family: 'Syne', sans-serif;
font-family: "Syne", sans-serif;
font-weight: 700;
font-size: 1rem;
margin-bottom: 4px;
}
.step__text {
font-size: .9rem;
font-size: 0.9rem;
color: var(--ink-soft);
line-height: 1.5;
}
@ -484,22 +626,28 @@ button, input { font: inherit; }
}
.card-title {
font-family: 'Syne', sans-serif;
font-family: "Syne", sans-serif;
font-weight: 800;
font-size: 1.5rem;
letter-spacing: -.02em;
letter-spacing: -0.02em;
margin-bottom: 30px;
}
.form { display: grid; gap: 20px; }
.form {
display: grid;
gap: 20px;
}
.field { display: grid; gap: 8px; }
.field {
display: grid;
gap: 8px;
}
.field label {
font-size: .86rem;
font-size: 0.86rem;
font-weight: 600;
color: var(--ink-soft);
letter-spacing: .02em;
letter-spacing: 0.02em;
}
.field input {
@ -510,22 +658,26 @@ button, input { font: inherit; }
border-radius: var(--r-md);
background: var(--cream);
color: var(--ink);
font-size: .98rem;
transition: border-color .18s, box-shadow .18s;
font-size: 0.98rem;
transition:
border-color 0.18s,
box-shadow 0.18s;
}
.field input::placeholder { color: var(--ink-muted); }
.field input::placeholder {
color: var(--ink-muted);
}
.field input:focus {
outline: none;
border-color: var(--sea-light);
box-shadow: 0 0 0 3px rgba(26,127,196,.12);
box-shadow: 0 0 0 3px rgba(26, 127, 196, 0.12);
background: var(--white);
}
.form-footer {
margin-top: 8px;
font-size: .84rem;
font-size: 0.84rem;
color: var(--ink-muted);
text-align: center;
}
@ -533,7 +685,7 @@ button, input { font: inherit; }
.mini-globe-wrap {
background: var(--glass);
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,.8);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: var(--r-xl);
box-shadow: var(--shadow);
padding: 32px;
@ -544,20 +696,24 @@ button, input { font: inherit; }
max-width: 340px;
position: relative;
overflow: hidden;
}
}
.mini-globe-wrap::before {
content: '';
.mini-globe-wrap::before {
content: "";
position: absolute;
inset: 0;
border-radius: var(--r-xl);
background: radial-gradient(circle at 60% 40%, rgba(26,127,196,.1), transparent 50%);
}
background: radial-gradient(
circle at 60% 40%,
rgba(26, 127, 196, 0.1),
transparent 50%
);
}
/* ─── FOOTER ─── */
.footer {
border-top: 1px solid var(--line);
background: rgba(255,255,255,.5);
background: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(12px);
padding: 40px 0;
}
@ -570,19 +726,21 @@ button, input { font: inherit; }
}
.footer__brand {
font-family: 'Syne', sans-serif;
font-family: "Syne", sans-serif;
font-weight: 800;
font-size: 1.5rem;
letter-spacing: -.02em;
letter-spacing: -0.02em;
}
.footer__sub {
font-size: .86rem;
font-size: 0.86rem;
color: var(--ink-muted);
margin-top: 4px;
}
.footer__center { text-align: center; }
.footer__center {
text-align: center;
}
.socials {
display: flex;
@ -600,18 +758,25 @@ button, input { font: inherit; }
display: flex;
align-items: center;
justify-content: center;
font-size: .9rem;
font-size: 0.9rem;
font-weight: 700;
color: var(--ink-soft);
transition: transform .18s, color .18s, background .18s;
transition:
transform 0.18s,
color 0.18s,
background 0.18s;
}
.social:hover { transform: translateY(-2px); color: var(--sea); background: var(--sea-dim); }
.social:hover {
transform: translateY(-2px);
color: var(--sea);
background: var(--sea-dim);
}
.footer__label {
font-size: .7rem;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: .1em;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--ink-muted);
margin-bottom: 10px;
@ -626,44 +791,89 @@ button, input { font: inherit; }
}
.footer__link {
font-size: .9rem;
font-size: 0.9rem;
color: var(--ink-muted);
transition: color .18s;
transition: color 0.18s;
}
.footer__link:hover { color: var(--ink); }
.footer__link:hover {
color: var(--ink);
}
/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
.hero__inner,
.about__inner,
.register__inner { grid-template-columns: 1fr; gap: 40px; }
.register__inner {
grid-template-columns: 1fr;
gap: 40px;
}
.globe-card { min-height: 360px; }
.globe-card {
min-height: 360px;
}
.footer__inner { grid-template-columns: 1fr; }
.footer__center, .footer__right { justify-self: start; text-align: left; }
.socials { justify-content: flex-start; }
.footer__right { justify-content: flex-start; }
.mini-globe-wrap { max-width: 260px; }
.footer__inner {
grid-template-columns: 1fr;
}
.footer__center,
.footer__right {
justify-self: start;
text-align: left;
}
.socials {
justify-content: flex-start;
}
.footer__right {
justify-content: flex-start;
}
.mini-globe-wrap {
max-width: 260px;
}
}
@media (max-width: 680px) {
.container { padding: 0 18px; }
.hero { padding: 50px 0 40px; }
.about, .register { padding: 70px 0; }
.nav__link { display: none; }
.register__card { padding: 28px 22px; }
.globe-card { padding: 24px; min-height: 280px; }
.container {
padding: 0 18px;
}
.hero {
padding: 50px 0 40px;
}
.about,
.register {
padding: 70px 0;
}
.nav__link {
display: none;
}
.register__card {
padding: 28px 22px;
}
.globe-card {
padding: 24px;
min-height: 280px;
}
.header { height: auto; padding: 14px 0; }
:root { --hh: 64px; }
.header {
height: auto;
padding: 14px 0;
}
:root {
--hh: 64px;
}
}
@media (max-width: 420px) {
.hero__title { font-size: 3rem; }
.section-title { font-size: 2.2rem; }
.btn { padding: 14px 22px; font-size: .95rem; }
.hero__title {
font-size: 3rem;
}
.section-title {
font-size: 2.2rem;
}
.btn {
padding: 14px 22px;
font-size: 0.95rem;
}
}
@media (max-width: 360px) {
@ -672,43 +882,110 @@ button, input { font: inherit; }
--r-lg: 16px;
}
.container { padding: 0 14px; }
.container {
padding: 0 14px;
}
.logo__mark { width: 36px; height: 36px; }
.logo__text { font-size: 1.05rem; }
.nav__cta { padding: 8px 14px; font-size: .84rem; margin-left: 0; }
.logo__mark {
width: 36px;
height: 36px;
}
.logo__text {
font-size: 1.05rem;
}
.nav__cta {
padding: 8px 14px;
font-size: 0.84rem;
margin-left: 0;
}
.hero { padding: 36px 0 32px; min-height: auto; }
.hero__title { font-size: 2.6rem; letter-spacing: -.03em; }
.hero__desc { font-size: .95rem; margin-bottom: 28px; }
.hero {
padding: 36px 0 32px;
min-height: auto;
}
.hero__title {
font-size: 2.6rem;
letter-spacing: -0.03em;
}
.hero__desc {
font-size: 0.95rem;
margin-bottom: 28px;
}
.globe-card { padding: 16px; min-height: 240px; }
.globe-badge { padding: 7px 10px; font-size: .72rem; }
.globe-card {
padding: 16px;
min-height: 240px;
}
.globe-badge {
padding: 7px 10px;
font-size: 0.72rem;
}
.about, .register { padding: 52px 0; }
.section-title { font-size: 2rem; }
.about__desc { font-size: .95rem; }
.about,
.register {
padding: 52px 0;
}
.section-title {
font-size: 2rem;
}
.about__desc {
font-size: 0.95rem;
}
.step { padding: 16px 18px; gap: 14px; }
.step__num { width: 46px; height: 46px; font-size: .88rem; border-radius: 12px; }
.step {
padding: 16px 18px;
gap: 14px;
}
.step__num {
width: 46px;
height: 46px;
font-size: 0.88rem;
border-radius: 12px;
}
.register__card { padding: 22px 16px; border-radius: var(--r-lg); }
.card-title { font-size: 1.25rem; margin-bottom: 22px; }
.field input { height: 48px; font-size: .92rem; }
.btn--full { padding: 14px 18px; font-size: .95rem; }
.register__card {
padding: 22px 16px;
border-radius: var(--r-lg);
}
.card-title {
font-size: 1.25rem;
margin-bottom: 22px;
}
.field input {
height: 48px;
font-size: 0.92rem;
}
.btn--full {
padding: 14px 18px;
font-size: 0.95rem;
}
.footer { padding: 30px 0; }
.footer__brand { font-size: 1.25rem; }
.social { width: 36px; height: 36px; font-size: .8rem; }
.socials { gap: 8px; }
.footer__right { gap: 14px; }
.footer {
padding: 30px 0;
}
.footer__brand {
font-size: 1.25rem;
}
.social {
width: 36px;
height: 36px;
font-size: 0.8rem;
}
.socials {
gap: 8px;
}
.footer__right {
gap: 14px;
}
}
/* ─── SCROLL REVEAL ─── */
.reveal {
opacity: 0;
transform: translateY(28px);
transition: opacity .6s ease, transform .6s ease;
transition:
opacity 0.6s ease,
transform 0.6s ease;
}
.reveal.visible {
@ -716,6 +993,12 @@ button, input { font: inherit; }
transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .32s; }
.reveal-delay-1 {
transition-delay: 0.1s;
}
.reveal-delay-2 {
transition-delay: 0.2s;
}
.reveal-delay-3 {
transition-delay: 0.32s;
}