:root {
  --bg-0:#000; --bg-1:#1c1c1e; --bg-2:#2c2c2e; --bg-3:#3a3a3c;
  --text-1:#f5f5f7; --text-2:rgba(235,235,245,0.6); --text-3:rgba(235,235,245,0.32);
  --sep:rgba(84,84,88,0.35); --sep-strong:rgba(84,84,88,0.6);
  --blue:#0a84ff; --green:#32d74b; --orange:#ff9f0a; --pink:#ff375f;
  --purple:#bf5af2; --yellow:#ffd60a; --teal:#40c8e0; --gold:#ffd60a; --indigo:#5e5ce6;
  --maxw:1180px;
  --r-lg:24px; --r-md:14px;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
html, body { background:var(--bg-0); }
body {
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter",sans-serif;
  color:var(--text-1); font-size:16px; line-height:1.5;
  -webkit-font-smoothing:antialiased; letter-spacing:-0.01em;
  font-feature-settings:"ss01","cv11"; overflow-x:hidden;
  background:
    radial-gradient(1200px 600px at 8% -8%, rgba(10,132,255,0.16), transparent 58%),
    radial-gradient(1000px 560px at 108% 4%, rgba(191,90,242,0.13), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(50,215,75,0.07), transparent 60%),
    #000;
}
a { color:inherit; text-decoration:none; }
.mono { font-family:"JetBrains Mono","SF Mono",Menlo,monospace; font-variant-numeric:tabular-nums; }
.wrap { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ============ NAV ============ */
.nav {
  position:sticky; top:0; z-index:50;
  background:rgba(12,12,14,0.62); backdrop-filter:blur(22px) saturate(180%);
  -webkit-backdrop-filter:blur(22px) saturate(180%);
  border-bottom:1px solid var(--sep);
}
.nav-in { display:flex; align-items:center; gap:14px; height:60px; }
.brand { display:flex; align-items:center; gap:11px; }
.brand-badge {
  width:30px; height:30px; border-radius:8px;
  background:linear-gradient(135deg,#0a84ff,#bf5af2); color:#fff;
  font-size:14px; font-weight:800; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px rgba(10,132,255,0.4);
}
.brand-name { font-size:15px; font-weight:600; letter-spacing:-0.2px; }
.brand-name span { color:var(--text-2); font-weight:500; }
.nav-links { margin-left:auto; display:flex; align-items:center; gap:26px; }
.nav-links a { font-size:14px; color:var(--text-2); transition:color .15s; }
.nav-links a:hover { color:var(--text-1); }

/* ============ BUTTONS ============ */
.btn {
  display:inline-flex; align-items:center; gap:9px; justify-content:center;
  padding:13px 24px; border-radius:var(--r-md); font:inherit; font-weight:600;
  font-size:15px; cursor:pointer; border:none; transition:transform .15s, box-shadow .15s, background .15s;
  white-space:nowrap;
}
.btn-primary { background:var(--blue); color:#fff; box-shadow:0 12px 30px rgba(10,132,255,0.42); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 18px 40px rgba(10,132,255,0.55); }
.btn-ghost { background:rgba(118,118,128,0.18); color:var(--text-1); border:0.5px solid var(--sep-strong); }
.btn-ghost:hover { background:rgba(118,118,128,0.32); }
.btn-sm { padding:9px 18px; font-size:14px; }
.btn-gold { background:linear-gradient(135deg,#ffd60a,#ff9f0a); color:#1c1500; box-shadow:0 12px 30px rgba(255,214,10,0.32); }
.btn-gold:hover { transform:translateY(-2px); box-shadow:0 18px 40px rgba(255,214,10,0.45); }

/* ============ HERO ============ */
.hero { padding:78px 0 56px; position:relative; overflow:hidden; }
/* фон: код-сетка точек + дрейфующее неоновое свечение */
.hero::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:radial-gradient(circle at center, rgba(255,255,255,0.06) 1px, transparent 1.5px);
  background-size:30px 30px;
  -webkit-mask-image:radial-gradient(ellipse 70% 75% at 22% 32%, #000 0%, transparent 72%);
  mask-image:radial-gradient(ellipse 70% 75% at 22% 32%, #000 0%, transparent 72%);
}
.hero::after {
  content:""; position:absolute; z-index:0; pointer-events:none;
  width:560px; height:560px; right:-90px; top:-140px; border-radius:50%;
  background:radial-gradient(circle, rgba(10,132,255,0.28), rgba(191,90,242,0.12) 45%, transparent 62%);
  filter:blur(50px); animation:heroFloat 14s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform:translate(0,0) scale(1); }
  to { transform:translate(-50px,40px) scale(1.12); }
}
@media (prefers-reduced-motion:reduce) { .hero::after { animation:none; } }
.hero-grid { display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center; }
.eyebrow {
  display:inline-flex; align-items:center; gap:8px; padding:6px 13px; border-radius:999px;
  background:rgba(191,90,242,0.16); border:0.5px solid rgba(191,90,242,0.34);
  color:#d9a6ff; font-size:12px; font-weight:700; letter-spacing:0.5px; text-transform:uppercase;
  margin-bottom:22px;
}
.eyebrow .dot { width:6px; height:6px; border-radius:50%; background:var(--purple); box-shadow:0 0 8px var(--purple); }
.hero h1 {
  font-size:clamp(38px,5.4vw,62px); font-weight:800; letter-spacing:-1.6px; line-height:1.02;
  margin-bottom:20px;
}
.hero h1 .grad {
  background:linear-gradient(100deg,#5ac8fa,#0a84ff 40%,#bf5af2);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub { font-size:18px; color:var(--text-2); line-height:1.55; max-width:520px; margin-bottom:28px; }
.hero-sub b { color:var(--text-1); font-weight:600; }
.hero-cta { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:30px; }
.hero-meta { display:flex; gap:24px; flex-wrap:wrap; }
.hero-meta .m { display:flex; flex-direction:column; gap:2px; }
.hero-meta .m b { font-size:23px; font-weight:800; letter-spacing:-0.5px; }
.hero-meta .m b.c-blue { color:#5ac8fa; }
.hero-meta .m b.c-purple { color:#d9a6ff; }
.hero-meta .m b.c-gold { color:var(--gold); }
.hero-meta .m span { font-size:12.5px; color:var(--text-3); }

/* hero preview card (glass, mirrors cabinet) */
.hero-card {
  position:relative; border-radius:var(--r-lg); padding:26px;
  border:0.5px solid var(--sep-strong);
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(191,90,242,0.18), transparent 60%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(10,132,255,0.14), transparent 60%),
    rgba(28,28,30,0.7);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:0 30px 70px -22px rgba(10,132,255,0.4);
}
/* factoid card (вместо фейкового кабинета) — про приз */
.hero-card.fact-card {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(255,214,10,0.18), transparent 60%),
    radial-gradient(ellipse 80% 70% at 0% 100%, rgba(255,159,10,0.12), transparent 60%),
    rgba(28,28,30,0.72);
  border-color:rgba(255,214,10,0.34);
  box-shadow:0 30px 70px -22px rgba(255,159,10,0.4);
  display:flex; flex-direction:column; gap:16px;
}
.fact-top { font-size:56px; line-height:1; filter:drop-shadow(0 10px 22px rgba(255,214,10,0.5)); }
.fact-main { font-size:25px; font-weight:800; letter-spacing:-0.5px; line-height:1.22; }
.fact-main b {
  background:linear-gradient(135deg,#ffd60a,#ff9f0a);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.fact-desc { font-size:15px; color:var(--text-2); line-height:1.55; }
.fact-sub {
  font-size:13px; color:var(--text-3); line-height:1.5;
  padding-top:14px; border-top:0.5px solid var(--sep);
}

.hc-cap { font-size:11px; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; color:var(--text-3); margin-bottom:16px; }
.hc-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.hc-mtn { font-size:46px; line-height:1; filter:drop-shadow(0 6px 14px rgba(90,200,250,0.4)); }
.hc-hud { display:flex; align-items:center; gap:8px; padding:7px 13px; border-radius:999px;
  background:rgba(0,0,0,0.42); border:0.5px solid rgba(255,255,255,0.14); }
.hc-hud .h { letter-spacing:2px; font-size:13px; }
.hc-hud .l { font-size:11.5px; font-weight:600; color:rgba(255,255,255,0.82); }
.hc-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--purple); margin-bottom:7px; }
.hc-title { font-size:19px; font-weight:800; letter-spacing:-0.4px; margin-bottom:14px; }
.hc-bar { height:10px; border-radius:999px; background:rgba(118,118,128,0.24); overflow:hidden; margin-bottom:8px; }
.hc-bar > i { display:block; height:100%; width:78%; border-radius:999px;
  background:linear-gradient(90deg,#0a84ff,#5ac8fa,#ffd60a); box-shadow:0 0 12px rgba(90,200,250,0.6); }
.hc-bar-meta { display:flex; justify-content:space-between; font-size:12px; color:var(--text-3); margin-bottom:18px; }
.hc-bar-meta b { color:#5ac8fa; font-weight:700; }
.hc-chips { display:flex; gap:8px; flex-wrap:wrap; }
.hc-chip { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:11px;
  font-size:12.5px; font-weight:600; }
.hc-chip.fire { background:rgba(255,159,10,0.16); border:0.5px solid rgba(255,159,10,0.32); color:var(--orange); }
.hc-chip.rank { background:rgba(255,214,10,0.14); border:0.5px solid rgba(255,214,10,0.3); color:var(--gold); }
.hc-chip.pts { background:rgba(50,215,75,0.14); border:0.5px solid rgba(50,215,75,0.3); color:#4cd964; }

/* hero single-column (course info only) — контент с правым отступом, не на всю ширину */
.hero-single { position:relative; z-index:1; }
.hero-single h1 { max-width:880px; }
.hero-single .hero-sub { max-width:600px; }

/* what-you-learn note */
.learn-next {
  margin-top:26px; font-size:15px; color:var(--text-2); line-height:1.5;
  padding:16px 20px; border-left:2px solid var(--blue);
  background:rgba(10,132,255,0.07); border-radius:0 12px 12px 0;
}

/* program — modules with lessons (single column, lessons flow in sub-columns) */
.prog-mods { display:flex; flex-direction:column; gap:16px; }
.prog-mod {
  border-radius:var(--r-lg); padding:26px 28px; border:0.5px solid var(--sep);
  background:rgba(28,28,30,0.6); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.pm-head { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.pm-head .num {
  flex:none; width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:17px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,#0a84ff,#5e5ce6); box-shadow:0 8px 20px rgba(10,132,255,0.3);
}
.pm-head h3 { font-size:18px; font-weight:700; letter-spacing:-0.3px; margin-bottom:2px; }
.pm-tag { font-size:12px; font-weight:600; color:var(--text-3); text-transform:uppercase; letter-spacing:0.5px; }
.lessons {
  list-style:none;
  display:grid; grid-template-columns:repeat(auto-fill, minmax(250px,1fr));
  gap:2px 30px;
}
.lessons li {
  position:relative; font-size:14px; color:var(--text-2); line-height:1.4;
  padding:9px 0 9px 22px;
}
.lessons li::before {
  content:""; position:absolute; left:4px; top:14px; width:6px; height:6px; border-radius:50%;
  background:var(--blue); opacity:0.55;
}

/* how it works — step flow + cabinet card */
.flow-grid { display:grid; grid-template-columns:1fr 380px; gap:40px; align-items:start; }
.flow { list-style:none; display:flex; flex-direction:column; gap:10px; }
.flow li {
  display:flex; gap:18px; align-items:flex-start; padding:18px 20px;
  border-radius:var(--r-md); border:0.5px solid var(--sep); background:rgba(28,28,30,0.5);
  transition:border-color .15s, transform .15s;
}
.flow li:hover { border-color:var(--sep-strong); transform:translateX(3px); }
.fl-n {
  flex:none; width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15px; color:#fff;
  background:linear-gradient(135deg,#0a84ff,#5e5ce6); box-shadow:0 6px 16px rgba(10,132,255,0.3);
}
.flow li h3 { font-size:16px; font-weight:700; letter-spacing:-0.2px; margin-bottom:4px; }
.flow li p { font-size:14px; color:var(--text-2); line-height:1.5; }
.flow-grid .hero-card { position:sticky; top:78px; }

/* supporting mechanics row */
.mechanics { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:28px; }
.mech {
  display:flex; gap:12px; align-items:flex-start; padding:18px;
  border-radius:var(--r-md); border:0.5px solid var(--sep); background:rgba(28,28,30,0.5);
}
.mech .ic { font-size:24px; line-height:1; }
.mech h4 { font-size:14.5px; font-weight:700; letter-spacing:-0.2px; margin-bottom:3px; }
.mech p { font-size:13px; color:var(--text-2); line-height:1.45; }

/* ============ SECTIONS ============ */
.section { padding:64px 0; }
.section-head { max-width:680px; margin-bottom:42px; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.s-eyebrow { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--blue); margin-bottom:12px; }
.section-head h2 { font-size:clamp(28px,3.6vw,40px); font-weight:800; letter-spacing:-1px; line-height:1.08; margin-bottom:14px; }
.section-head p { font-size:17px; color:var(--text-2); line-height:1.55; }

/* for whom */
.cols-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.card {
  border-radius:var(--r-lg); padding:26px; border:0.5px solid var(--sep);
  background:rgba(28,28,30,0.6); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.card .ic { font-size:28px; margin-bottom:14px; display:block; }
.card h3 { font-size:18px; font-weight:700; letter-spacing:-0.3px; margin-bottom:8px; }
.card p { font-size:14.5px; color:var(--text-2); line-height:1.5; }

/* modules */
.modules { display:flex; flex-direction:column; gap:12px; }
.module {
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:20px;
  border-radius:var(--r-md); padding:20px 24px; border:0.5px solid var(--sep);
  background:rgba(28,28,30,0.55); transition:border-color .15s, transform .15s, background .15s;
}
.module:hover { border-color:var(--sep-strong); transform:translateX(4px); background:rgba(36,36,40,0.7); }
.module .num {
  width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,#0a84ff,#5e5ce6); box-shadow:0 8px 20px rgba(10,132,255,0.3);
}
.module .mt { min-width:0; }
.module .mt h3 { font-size:17px; font-weight:700; letter-spacing:-0.3px; margin-bottom:3px; }
.module .mt p { font-size:13.5px; color:var(--text-2); }
.module .ml { font-size:13px; color:var(--text-3); font-weight:600; white-space:nowrap; }

/* gamification bento */
.bento { display:grid; grid-template-columns:repeat(6,1fr); gap:16px; }
.tile {
  border-radius:var(--r-lg); padding:26px; border:0.5px solid var(--sep);
  position:relative; overflow:hidden;
  background:rgba(28,28,30,0.6);
}
.tile .ic { font-size:32px; margin-bottom:14px; display:block; }
.tile h3 { font-size:18px; font-weight:700; letter-spacing:-0.3px; margin-bottom:8px; }
.tile p { font-size:14px; color:var(--text-2); line-height:1.5; }
.tile.t-wide { grid-column:span 4; }
.tile.t-reg { grid-column:span 2; }
.tile.t-mtn {
  grid-column:span 2; grid-row:span 2;
  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(10,132,255,0.22), transparent 60%),
    linear-gradient(180deg,#0a0e22,#13132a);
  display:flex; flex-direction:column; justify-content:flex-end;
}
.tile.t-mtn .big-mtn { font-size:64px; position:absolute; top:22px; left:50%; transform:translateX(-50%);
  filter:drop-shadow(0 10px 22px rgba(90,200,250,0.5)); }
.tile.t-prize {
  background:
    radial-gradient(ellipse 110% 80% at 100% 0%, rgba(255,214,10,0.2), transparent 60%),
    rgba(28,28,30,0.6);
  border-color:rgba(255,214,10,0.3);
}
.tile.t-prize h3 { color:var(--gold); }

/* prize banner */
.prize {
  border-radius:var(--r-lg); padding:44px; margin-top:8px;
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:32px;
  border:0.5px solid rgba(255,214,10,0.34);
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(255,214,10,0.16), transparent 60%),
    radial-gradient(ellipse 80% 120% at 100% 50%, rgba(255,159,10,0.12), transparent 60%),
    rgba(28,28,30,0.7);
  box-shadow:0 30px 70px -28px rgba(255,159,10,0.4);
}
.prize .cup { font-size:72px; line-height:1; filter:drop-shadow(0 10px 24px rgba(255,214,10,0.5)); }
.prize-body h2 { font-size:clamp(24px,3vw,32px); font-weight:800; letter-spacing:-0.7px; margin-bottom:10px; }
.prize-body h2 .g { color:var(--gold); }
.prize-body p { font-size:16px; color:var(--text-2); line-height:1.55; max-width:560px; }

/* ============ DEMO (mockups) ============ */
.demo-tabs { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-bottom:24px; }
.demo-tab {
  padding:10px 18px; border-radius:11px; font-size:14px; font-weight:600;
  background:rgba(118,118,128,0.16); border:0.5px solid var(--sep); color:var(--text-2);
  cursor:pointer; transition:all .15s;
}
.demo-tab:hover { color:var(--text-1); background:rgba(118,118,128,0.26); }
.demo-tab.active { background:var(--blue); color:#fff; border-color:transparent; box-shadow:0 8px 20px rgba(10,132,255,0.4); }
.browser {
  border-radius:16px; overflow:hidden; border:0.5px solid var(--sep-strong);
  background:#0c0c0e; box-shadow:0 40px 90px -30px rgba(10,132,255,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}
.browser-bar {
  display:flex; align-items:center; gap:14px; padding:13px 18px;
  background:rgba(40,40,44,0.8); border-bottom:0.5px solid var(--sep);
}
.dots { display:flex; gap:7px; }
.dots i { width:12px; height:12px; border-radius:50%; }
.dots i:nth-child(1){ background:#ff5f57; } .dots i:nth-child(2){ background:#febc2e; } .dots i:nth-child(3){ background:#28c840; }
.url {
  flex:1; max-width:440px; margin:0 auto; padding:6px 14px; border-radius:8px;
  background:rgba(0,0,0,0.4); font-size:12.5px; color:var(--text-2); text-align:center;
}
.url b { color:var(--text-1); font-weight:500; }
.open-full { font-size:12.5px; color:var(--blue); font-weight:600; white-space:nowrap; }
.frame-scaler { position:relative; width:100%; aspect-ratio:1280/760; overflow:hidden; background:#000; }
.frame-scaler iframe {
  position:absolute; top:0; left:0; width:1280px; height:760px; border:0;
  transform-origin:top left;
}
.demo-note { text-align:center; font-size:13px; color:var(--text-3); margin-top:16px; }

/* ============ FINAL CTA ============ */
.final {
  border-radius:var(--r-lg); padding:60px 40px; text-align:center; margin:0 auto;
  border:0.5px solid var(--sep-strong);
  background:
    radial-gradient(ellipse 70% 120% at 30% 0%, rgba(10,132,255,0.2), transparent 60%),
    radial-gradient(ellipse 70% 120% at 80% 100%, rgba(191,90,242,0.18), transparent 60%),
    rgba(20,20,22,0.7);
}
.final h2 { font-size:clamp(28px,4vw,44px); font-weight:800; letter-spacing:-1px; margin-bottom:16px; line-height:1.06; }
.final p { font-size:18px; color:var(--text-2); max-width:540px; margin:0 auto 28px; line-height:1.55; }
.final .hero-cta { justify-content:center; }

/* footer */
.footer { padding:44px 0 64px; border-top:1px solid var(--sep); margin-top:64px; }
.footer-in { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.footer-in .brand { margin-bottom:4px; }
.footer-legal { font-size:14px; }
.footer-legal a { color:var(--text-2); transition:color .15s; }
.footer-legal a:hover { color:var(--text-1); }
.footer-dot { color:var(--text-3); margin:0 8px; }
.footer-ip { font-size:12.5px; color:var(--text-3); line-height:1.5; }
.footer-contact { font-size:14px; color:var(--text-2); margin-top:4px; }
.footer-contact a { color:var(--blue); font-weight:500; }
.footer-contact a:hover { text-decoration:underline; }
.footer-year { font-size:12.5px; color:var(--text-3); margin-top:8px; }

/* ============ RESPONSIVE ============ */
@media (max-width:980px) {
  .hero { padding:52px 0 40px; }
  .cols-3 { grid-template-columns:1fr; }
  .prog-mods { grid-template-columns:1fr; }
  .flow-grid { grid-template-columns:1fr; gap:28px; }
  .flow-grid .hero-card { position:static; order:-1; }
  .mechanics { grid-template-columns:repeat(2,1fr); }
  .prize { grid-template-columns:1fr; text-align:center; gap:20px; justify-items:center; }
  .nav-links { display:none; }
}
@media (max-width:560px) {
  .wrap { padding:0 18px; }
  .mechanics { grid-template-columns:1fr; }
  .hero-meta { gap:18px; }
  .section { padding:48px 0; }
  .prize { padding:32px 22px; }
  .final { padding:44px 22px; }
  .open-full { display:none; }
}
