/* Club Coders home v2 (2026-11-04): game-led, dark, few words. Self-hosted fonts only. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/spacegrotesk-latin.woff2) format('woff2'); }

:root {
  --bg: #090c17; --bg-2: #0f1426; --bg-3: #161c33;
  --ink: #f3f6ff; --ink-2: #c3cbe6; --ink-3: #9aa5c8;
  --line: rgba(255, 255, 255, 0.10);
  --lime: #b6ff3b; --cyan: #3ee9ff; --magenta: #ff4fd8; --amber: #ffc638;
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --max: 1180px; --gutter: 16px; --r: 18px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 1.05rem/1.1 var(--display); text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn-go { background: var(--lime); color: #0a1000; box-shadow: 0 10px 34px rgba(182, 255, 59, .28); }
.btn-go:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(182, 255, 59, .38); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-go:hover { transform: none; } }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 0; color: var(--ink); text-decoration: none; font: 700 1.2rem var(--display); }
.logo img { margin-right: 10px; }
.logo span { color: var(--lime); }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; display: none; }
.top nav a:not(.btn):hover { color: var(--lime); }
@media (min-width: 720px) { .top nav a:not(.btn) { display: inline; } }

/* Hero: the Kart Lab loop full-bleed */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(9, 12, 23, .78) 0%, rgba(9, 12, 23, .15) 28%, rgba(9, 12, 23, .35) 55%, rgba(9, 12, 23, .96) 100%); }
.hero-copy { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 56px; }
.eyebrow { display: inline-block; font: 600 .82rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--bg);
  background: var(--cyan); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 8.5vw, 5.4rem); max-width: 13ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 34ch; color: var(--ink); text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.hero .small { margin-top: 12px; color: var(--ink); font-size: .95rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.motion-toggle { position: absolute; z-index: 3; right: var(--gutter); bottom: 18px; background: rgba(9, 12, 23, .75); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 .85rem var(--body); cursor: pointer; min-height: 40px; }
.motion-toggle:hover { border-color: var(--lime); }

/* Sections */
section { padding: 72px 0; }
.games { padding-top: 40px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 9; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; font: 700 1.15rem var(--display);
  background: linear-gradient(180deg, transparent, rgba(6, 8, 15, .92)); }
.tile:nth-child(1) figcaption { color: var(--lime); } .tile:nth-child(2) figcaption { color: var(--cyan); }
.tile:nth-child(3) figcaption { color: var(--magenta); } .tile:nth-child(4) figcaption { color: var(--amber); }
.note { color: var(--ink-2); margin-top: 16px; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 800px) and (max-width: 899px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 20px; font-size: 1.1rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px;
  background: var(--lime); color: #0a1000; font: 700 1.2rem var(--display); }
.steps li:nth-child(2)::before { background: var(--cyan); } .steps li:nth-child(3)::before { background: var(--magenta); }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; } }
.split .media { border-radius: var(--r); overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 9; }
.split .media video, .split .media img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/100% no-repeat; }

.price { background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price .big { font: 700 clamp(3rem, 10vw, 5rem)/1 var(--display); color: var(--lime); margin: 0 0 8px; }
.price .big small { font-size: .35em; color: var(--ink); }
.price p { max-width: 52ch; color: var(--ink-2); }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 700 1.15rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

.end { text-align: center; padding: 84px 0; background: radial-gradient(60% 80% at 50% 100%, rgba(182, 255, 59, .14), transparent); }
.end p { color: var(--ink-2); }

/* Footer (unchanged wording from v1) */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 30px; color: var(--ink-3); font-size: .92rem; background: #06080f; }
.site-footer .logo { font-size: 1.1rem; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4, .site-footer .fh { color: var(--ink); font: 700 .95rem var(--display); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); } .site-footer a:hover { color: var(--lime); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); }
.social svg { width: 20px; height: 20px; }
