/* =========================================================
   fivebits Learn — landing styles
   Premium dark "AI gaming" theme
   ========================================================= */

:root {
  /* palette */
  --bg:        #07070f;
  --bg-2:      #0b0b18;
  --bg-3:      #0f0f20;
  --text:      #ecedf6;
  --muted:     #9499b4;
  --muted-2:   #6f7591;

  --violet:    #a855f7;
  --indigo:    #6366f1;
  --cyan:      #22d3ee;
  --pink:      #ec4899;
  --gold:      #fbbf24;

  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.14);
  --surface:   rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);

  --grad:      linear-gradient(135deg, #c084fc 0%, #818cf8 42%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,.18), rgba(34,211,238,.14));
  --grad-text: linear-gradient(100deg, #d8b4fe 0%, #a5b4fc 40%, #67e8f9 100%);

  --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
  --shadow:    0 18px 50px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 40px 90px -24px rgba(0,0,0,.7);
  --glow:      0 10px 40px -8px rgba(124,77,237,.6);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --container: 1160px;
  --pad: clamp(20px, 5vw, 40px);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }

::selection { background: rgba(168,85,247,.4); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
:where(section[id], [id]) { scroll-margin-top: 86px; }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: 10px; }
.section-lead { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }

.kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
}
.grad-text { background: var(--grad-text); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 24px rgba(124,77,237,.28)); animation: gradShift 9s ease-in-out infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .grad-text { animation: none; } }

/* ---------- buttons ---------- */
.btn {
  --bx: 18px; --by: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--by) var(--bx); border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, opacity .2s;
  white-space: nowrap; will-change: transform;
}
.btn svg { transition: transform .25s var(--ease); }
.btn-primary {
  background: var(--grad); color: #0a0a16; box-shadow: var(--glow);
  position: relative; isolation: isolate; overflow: hidden;
}
.btn-primary > * { position: relative; z-index: 2; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0; width: 55%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-180%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 55px -8px rgba(124,77,237,.8); }
.btn-primary:hover::after { transition: transform .9s var(--ease); transform: translateX(340%) skewX(-18deg); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { display: none; } }
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--line-2); }
.btn-sm { --bx: 16px; --by: 9px; font-size: .9rem; }
.btn-lg { --bx: 26px; --by: 15px; font-size: 1.05rem; }
.btn-xl { --bx: 34px; --by: 18px; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: var(--grad); box-shadow: 0 0 12px rgba(124,77,237,.8); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,8,18,.72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line); box-shadow: 0 10px 40px -20px rgba(0,0,0,.8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 4px 12px rgba(124,77,237,.5)); }
.brand-dot { color: var(--cyan); }

.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--muted); font-size: .96rem; font-weight: 500; position: relative; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .25s var(--ease); border-radius: 2px; }
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { background: transparent; border: 0; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: 5px 11px; border-radius: 999px; transition: color .2s, background .2s; }
.lang-btn[aria-pressed="true"] { color: #0a0a16; background: var(--grad); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #7c3aed, transparent 65%); top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle, #22d3ee, transparent 65%); top: 40px; right: -140px; animation-delay: -4s; }
.orb-3 { width: 380px; height: 380px; background: radial-gradient(circle, #ec4899, transparent 65%); bottom: -160px; left: 30%; opacity: .35; animation-delay: -8s; }
.orb-4 { width: 600px; height: 600px; background: radial-gradient(circle, #6366f1, transparent 60%); top: -200px; right: -120px; opacity: .4; }
.orb-5 { width: 560px; height: 560px; background: radial-gradient(circle, #7c3aed, transparent 62%); bottom: -240px; left: 50%; transform: translateX(-50%); opacity: .4; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-30px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
}

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 15px 7px 12px; font-size: .85rem; font-weight: 500; color: #cfd2e6; backdrop-filter: blur(8px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); margin: 22px 0 0; }
.hero-title span { display: block; }
.hero-sub { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 30em; margin-top: 22px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; color: #c3c7dd; font-size: .92rem; font-weight: 500; }
.hero-trust svg { color: var(--cyan); }

.hero-social { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-social p { font-size: .9rem; color: var(--muted); }
.hero-social strong { color: var(--text); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }

/* hero visual: phone */
.hero-visual { position: relative; display: grid; place-items: center; }
.glow-ring { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: conic-gradient(from 0deg, #a855f7, #22d3ee, #ec4899, #a855f7); filter: blur(46px); opacity: .4; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .glow-ring { animation: none; } }

.phone {
  position: relative; width: clamp(248px, 30vw, 310px); aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #1a1a2e, #0c0c18); border-radius: 42px;
  padding: 12px; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08);
  animation: phonefloat 7s ease-in-out infinite;
}
@keyframes phonefloat { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #05050c; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen { height: 100%; border-radius: 32px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #221b3e, #0b0b18 60%); position: relative; }

.game-ui { position: absolute; inset: 0; padding: 38px 16px 18px; display: flex; flex-direction: column; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.hud-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 600; font-family: var(--font-display); color: #e7e8f5; }
.hud-chip svg { color: var(--gold); }
.hud-moves svg { color: var(--cyan); }
.hud-score { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: #fff; }
.coin { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b); box-shadow: 0 0 8px rgba(245,158,11,.6); display: inline-block; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; flex: 1; align-content: center; }
.game-card {
  aspect-ratio: 3/4; border-radius: 12px; position: relative;
  background: var(--c, #a855f7);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, #a855f7) 88%, #fff 0%), color-mix(in srgb, var(--c, #6366f1) 70%, #000 30%));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.3);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  animation: cardIn .5s var(--ease) both;
}
.game-card .pip { position: absolute; top: 5px; left: 7px; font-size: .62rem; opacity: .85; }
.game-card .glyph { font-size: 1.2rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

.game-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.reserve { display: flex; flex-direction: column; gap: 4px; }
.reserve-label { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.reserve-slot { width: 42px; height: 54px; border-radius: 10px; border: 1.5px dashed rgba(255,255,255,.22); display: grid; place-items: center; background: rgba(255,255,255,.03); }
.mini-card { width: 30px; height: 40px; border-radius: 7px; background: linear-gradient(160deg, #c084fc, #6366f1); border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); display: inline-block; }
.mc-a { background: linear-gradient(160deg, #c084fc, #7c3aed); }
.mc-b { background: linear-gradient(160deg, #67e8f9, #0891b2); }
.mc-c { background: linear-gradient(160deg, #fcd34d, #f59e0b); }
.game-deal { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: #0a0a16; border: 0; border-radius: 999px; padding: 9px 16px; font-family: var(--font-display); font-weight: 700; font-size: .82rem; box-shadow: 0 8px 20px -6px rgba(124,77,237,.7); }

.float-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15,15,30,.82); backdrop-filter: blur(10px); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 9px 13px; font-size: .82rem; font-weight: 600; color: #eaebf6;
  box-shadow: var(--shadow); z-index: 4;
}
.float-badge svg { color: var(--violet); }
.fb-1 { top: 12%; left: -6%; animation: badge1 6s ease-in-out infinite; }
.fb-2 { bottom: 16%; right: -8%; animation: badge2 7s ease-in-out infinite; }
.fb-2 svg { color: var(--cyan); }
@keyframes badge1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes badge2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .fb-1, .fb-2 { animation: none; } }
.visual-note { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: .76rem; color: var(--muted-2); }

/* =========================================================
   TECH STRIP
   ========================================================= */
.tech-strip { padding-block: clamp(34px, 4vw, 50px); border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-label { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.strip-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 38px; }
.strip-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #c8cce0; opacity: .85; transition: opacity .2s, color .2s; }
.strip-logo svg { color: var(--violet); }
.strip-logo:hover { opacity: 1; color: #fff; }

/* =========================================================
   PROMO VIDEO
   ========================================================= */
.promo { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.promo-player { position: relative; max-width: 540px; margin: 0 auto; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: #05050b; }
.promo-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--grad); color: #0a0a16; display: grid; place-items: center; box-shadow: var(--glow); transition: transform .25s var(--ease), opacity .35s; }
.promo-play svg { margin-left: 4px; }
.promo-play::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .promo-play::after { animation: none; } }
.promo-play:hover { transform: scale(1.08); }
.promo-player.playing .promo-play { opacity: 0; pointer-events: none; }

/* =========================================================
   PAIN
   ========================================================= */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
.pain-card p { color: #c3c7dd; font-size: .98rem; }
.pain-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(244,63,94,.14); color: #fb7185; font-weight: 700; margin-bottom: 14px; }
.pain-flip {
  margin-top: 26px; display: flex; align-items: flex-start; gap: 16px;
  background: var(--grad-soft); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.pain-flip svg { color: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.pain-flip p { font-size: 1.1rem; color: #e7e9f5; }
.pain-flip strong { color: #fff; }

/* =========================================================
   BUILD SHOWCASE
   ========================================================= */
.build { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.build-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); max-width: 980px; margin-inline: auto; }
.device { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.device-screen {
  width: 100%; max-width: 250px; aspect-ratio: 9 / 18; border-radius: 30px; padding: 10px;
  background: linear-gradient(160deg, #1a1a2e, #0c0c18); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); overflow: hidden;
}
.device-lift { transform: translateY(-26px); }
.device figcaption { color: var(--muted); font-size: .92rem; text-align: center; max-width: 24ch; }

.device-screen > div { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; position: relative; }

/* mini-game (screen 1) */
.mini-game { background: radial-gradient(120% 80% at 50% 0%, #241c44, #0b0b18 62%); padding: 16px 13px; display: flex; flex-direction: column; }
.mini-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-chip { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: .68rem; font-weight: 600; font-family: var(--font-display); }
.mini-coins { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; }
.mini-coins .coin { width: 12px; height: 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; align-content: center; }
.mini-grid .mini-card { width: 100%; height: auto; aspect-ratio: 3/4; }

/* level-from-image (screen 2) */
.mini-gen { background: radial-gradient(120% 80% at 50% 0%, #10283a, #0b0b18 62%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; }
.gen-img { width: 70px; height: 70px; border-radius: 16px; background: linear-gradient(140deg, #22d3ee, #6366f1); display: grid; place-items: center; color: #06121a; box-shadow: 0 10px 24px -8px rgba(34,211,238,.6); }
.gen-arrow { color: var(--cyan); transform: rotate(90deg); opacity: .8; }
.gen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 130px; }
.gen-grid span { aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.gen-grid span:nth-child(3n) { background: linear-gradient(140deg, #c084fc, #6366f1); border-color: transparent; }
.gen-grid span:nth-child(4n) { background: linear-gradient(140deg, #67e8f9, #0891b2); border-color: transparent; }
.gen-tag { font-size: .72rem; color: var(--muted); font-weight: 600; }

/* win (screen 3) */
.mini-win { background: radial-gradient(120% 80% at 50% 10%, #2a1f4a, #0b0b18 60%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; text-align: center; }
.win-burst { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 1.8rem; color: #0a0a16; box-shadow: 0 0 36px -4px rgba(124,77,237,.8); animation: pop 2.4s ease-in-out infinite; }
@keyframes pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .win-burst { animation: none; } }
.win-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.win-stars { display: flex; gap: 6px; color: var(--gold); font-size: 1.3rem; }
.win-stars span:nth-child(2) { transform: translateY(-6px) scale(1.15); }
.win-btn { margin-top: 4px; background: var(--grad); color: #0a0a16; font-family: var(--font-display); font-weight: 700; font-size: .8rem; padding: 8px 18px; border-radius: 999px; }

.showcase-note { text-align: center; color: var(--muted-2); font-size: .9rem; margin-top: 40px; }

/* =========================================================
   HOW / STEPS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 22px; position: relative; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.step:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--surface-2); }
.step-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; opacity: .5; }
.step-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: #fff; margin-bottom: 18px; }
.step-ic svg { color: var(--violet); }
.step h3 { font-size: 1.16rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* =========================================================
   LEARN (4 pillars)
   ========================================================= */
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 960px; margin-inline: auto; }
.learn-grid > .learn-card:nth-child(5) { grid-column: 1 / -1; }
.learn-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); transition: transform .3s var(--ease), border-color .3s; position: relative; overflow: hidden; }
.learn-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .3s; }
.learn-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.learn-card:hover::before { opacity: .5; }
.learn-card > * { position: relative; }
.learn-ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(168,85,247,.22), rgba(34,211,238,.16)); border: 1px solid var(--line-2); color: var(--cyan); }
.learn-card h3 { font-size: 1.28rem; }
.learn-card p { color: var(--muted); }

/* =========================================================
   ROADMAP
   ========================================================= */
.road { background: var(--bg-2); }
.road-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 920px; margin-inline: auto; }
.road-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); }
.road-week { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.road-badge { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #0a0a16; background: var(--grad); padding: 5px 13px; border-radius: 999px; }
.road-badge.alt { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.road-week h3 { font-size: 1.3rem; }
.road-list { display: flex; flex-direction: column; gap: 13px; }
.road-list li { position: relative; padding-left: 30px; color: #c8cce0; font-size: .98rem; }
.road-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px; background: var(--grad-soft); border: 1px solid var(--line-2); }
.road-list li::after { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); }

/* =========================================================
   WHO
   ========================================================= */
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin-inline: auto; }
.who-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; transition: border-color .3s, transform .3s; }
.who-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.who-card svg { flex-shrink: 0; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(52,211,153,.14); color: #34d399; }
.who-card p { font-size: 1rem; color: #d3d6e8; }

/* =========================================================
   VALUE
   ========================================================= */
.value { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.value-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.value-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 10px; }
.value-head p { color: var(--muted); margin-top: 14px; }
.value-list { display: grid; gap: 14px; }
.value-list li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; font-size: 1rem; color: #d8dbed; transition: transform .25s var(--ease), border-color .25s; }
.value-list li:hover { transform: translateX(4px); border-color: var(--line-2); }
.value-list svg { flex-shrink: 0; color: #34d399; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), border-color .3s; }
.testi-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.testi-card blockquote { font-size: 1.02rem; color: #e1e3f1; line-height: 1.55; }
.testi-card figcaption { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .88rem; margin-top: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #0a0a16; background: var(--grad); }
.testi-disclaimer { text-align: center; color: var(--muted-2); font-size: .82rem; margin-top: 26px; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing { overflow: hidden; }
.pricing-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.price-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 50px);
  background: linear-gradient(160deg, rgba(26,22,52,.9), rgba(12,12,24,.92));
  border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(30px, 4vw, 52px);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.price-left h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 10px 0 12px; }
.price-left > p { color: var(--muted); margin-bottom: 22px; }
.price-perks { display: grid; gap: 12px; }
.price-perks li { display: flex; align-items: center; gap: 11px; color: #d8dbed; font-size: .98rem; }
.price-perks svg { color: #34d399; flex-shrink: 0; }
.price-perks li:last-child svg { color: var(--cyan); }

.price-right { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.price-tag { text-align: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; }
.price-from { display: block; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-amount { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0; }
.price-note { display: block; font-size: .8rem; color: var(--muted-2); }
.price-amount-row { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 2px; }
.price-amount-row .price-amount { margin: 0; }
.price-period { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-guarantee { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.price-guarantee svg { color: #34d399; }

/* ---- embedded Whop checkout ---- */
.checkout-box { display: flex; flex-direction: column; gap: 14px; }
.whop-checkout { min-height: 380px; display: flex; flex-direction: column; }
.whop-checkout.lang-es { display: none; }
html[lang="es"] .whop-checkout.lang-en { display: none; }
html[lang="es"] .whop-checkout.lang-es { display: flex; }
.whop-checkout iframe { width: 100% !important; border: 0; border-radius: var(--r); }
.whop-checkout .checkout-fallback { margin: auto 0; }
.whop-checkout:has(iframe) .checkout-fallback { display: none; }
.checkout-secure { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.checkout-secure svg { color: #34d399; }
.whop-checkout-mount { min-height: 260px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
.checkout-placeholder { min-height: 258px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px); }
.checkout-placeholder svg { color: var(--violet); }
.checkout-placeholder p { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.checkout-placeholder span { font-size: .85rem; color: var(--muted-2); max-width: 26ch; }

/* =========================================================
   INSTRUCTOR
   ========================================================= */
.instr-inner { display: flex; align-items: center; gap: clamp(22px, 4vw, 44px); max-width: 920px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); }
.instr-avatar { flex-shrink: 0; width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); box-shadow: var(--glow); }
.instr-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 8px 0 12px; }
.instr-copy p { color: var(--muted); }
.instr-photo { flex-shrink: 0; position: relative; width: min(42%, 360px); aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--grad-soft); box-shadow: var(--glow); }
.instr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.instr-photo-ph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text); }
.instr-photo-ph b { font-family: var(--font-display); font-size: 1.1rem; }
.instr-photo.noimg .instr-photo-ph { display: flex; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; list-style: none; cursor: pointer; color: #eceef8; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; color: var(--cyan); font-size: 1.4rem; line-height: 1; font-weight: 400; transition: transform .3s var(--ease), background .3s; }
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); background: var(--grad-soft); }
.faq-a { padding: 0 22px 22px; color: var(--muted); animation: faqOpen .4s var(--ease); }
.faq-a p { font-size: .98rem; line-height: 1.65; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final { overflow: hidden; text-align: center; }
.final-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.final-inner { max-width: 720px; margin-inline: auto; }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.final-inner > p { color: var(--muted); font-size: 1.12rem; margin: 18px auto 32px; max-width: 34em; }
.final-trust { margin-top: 22px; font-size: .9rem; color: var(--muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 44px 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-tag { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: .94rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom p { color: var(--muted-2); font-size: .84rem; }

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(12,12,24,.9); backdrop-filter: blur(16px); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-info { display: flex; flex-direction: column; }
.sticky-title { font-family: var(--font-display); font-weight: 700; font-size: .98rem; }
.sticky-sub { font-size: .8rem; color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-copy { text-align: center; }
  .hero-cta, .hero-trust, .hero-social { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .value-inner { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open { background: rgba(8,8,18,.96); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
  .site-header.menu-open .main-nav {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 12px var(--pad) 22px; background: rgba(8,8,18,.98); border-bottom: 1px solid var(--line);
  }
  .site-header.menu-open .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .build-showcase { grid-template-columns: 1fr; max-width: 280px; }
  .device-lift { transform: none; }
  .learn-grid, .road-cols, .who-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .sticky-cta { display: flex; }
  .instr-inner { flex-direction: column; text-align: center; }
  .instr-photo { width: 100%; max-width: 420px; }
  body { font-size: 16px; }
}

@media (max-width: 460px) {
  .pain-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .float-badge { font-size: .74rem; padding: 7px 10px; }
  .fb-1 { left: 0; }
  .fb-2 { right: 0; }
}

/* =========================================================
   UI/UX polish pass — glass depth on content cards
   (ui-ux-pro-max: depth + retro-futurism)
   ========================================================= */
.learn-card, .who-card, .testi-card, .road-col, .pain-card {
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.05);
}
.testi-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--violet); margin-bottom: 2px; }
.testi-card figcaption { font-weight: 600; color: #c3c7dd; }
.price-anchor { font-size: .85rem; color: var(--muted-2); margin: -4px 0 2px; }
.hero-social-ic { color: #34d399; flex-shrink: 0; }
/* real game screenshots in phone/device frames (9:16) */
.phone { aspect-ratio: 9 / 16; }
.phone-screen picture { display: block; height: 100%; }
.phone-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.device-screen { aspect-ratio: 9 / 16; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
