run Biome formatter

This commit is contained in:
Luca Jakob 2026-04-12 18:56:15 +02:00
parent a028fa741d
commit e485a0c398
5 changed files with 819 additions and 519 deletions

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> </head>
<body> <body>
<div class="wrap"> <div class="wrap">
<!-- ─── HEADER ─── -->
<header class="header"> <header class="header">
<div class="container header__inner"> <div class="container header__inner">
<a href="#hero" class="logo"> <a href="#hero" class="logo">
@ -35,8 +33,6 @@
</header> </header>
<main> <main>
<!-- ─── HERO ─── -->
<section class="hero" id="hero"> <section class="hero" id="hero">
<div class="container hero__inner"> <div class="container hero__inner">
@ -88,8 +84,6 @@
</div> </div>
</section> </section>
<!-- ─── ABOUT ─── -->
<section class="about" id="about"> <section class="about" id="about">
<div class="container about__inner"> <div class="container about__inner">
@ -99,7 +93,7 @@
<p class="about__desc reveal reveal-delay-2"> <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. 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> </p>
<!--
<div class="mini-globe-wrap reveal reveal-delay-3"> <div class="mini-globe-wrap reveal reveal-delay-3">
<div class="map-outline"> <div class="map-outline">
<svg viewBox="0 0 100 130" xmlns="http://www.w3.org/2000/svg"> <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)"/> transform="translate(4,-2) scale(0.96) translate(-2,2)"/>
</svg> </svg>
</div> </div>
</div> --> </div>
</div> </div>
<div class="about__right"> <div class="about__right">

View File

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

View File

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