/* Neurogenie — Early Access Landing
   Design tokens distilled from the brief + game design system. */

:root {
  /* Bases — deep midnight indigo, not pure black */
  --bg-0: #08091a;
  --bg-1: #0d0e22;
  --bg-2: #14152e;
  --bg-3: #1c1d3a;

  /* Magical accents — neon cyan + electric indigo + mystic magenta */
  --c-cyan:    #4FE3FF;
  --c-cyan-2:  #66F2FF;
  --c-indigo:  #5B7FFF;
  --c-magenta: #B65BFF;
  --c-violet:  #7A5BFF;

  /* Premium / offer — gold */
  --c-gold:    #F5C46B;
  --c-gold-2:  #FFE49C;
  --c-bronze:  #C58A3D;

  /* Text */
  --t-1: #F4F5FB;
  --t-2: #B8BCD8;
  --t-3: #7A7F9F;
  --t-muted: rgba(244,245,251,0.55);

  /* Glass */
  --glass-bg: rgba(255,255,255,0.04);
  --glass-bg-strong: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-strong: rgba(255,255,255,0.14);

  /* Glow */
  --glow-cyan:    0 0 60px rgba(79,227,255,0.35);
  --glow-magenta: 0 0 60px rgba(182,91,255,0.30);
  --glow-gold:    0 0 60px rgba(245,196,107,0.30);

  /* Type */
  --f-display: "Cormorant Garamond", "Gabriela", Georgia, serif;
  --f-ui:      "Manrope", "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --max: 1280px;
  --gutter: 32px;
  --radius-card: 20px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--t-1);
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- BACKGROUND FIELD ---------- */
.bg-field {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%,  rgba(91,127,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(182,91,255,0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(79,227,255,0.10), transparent 60%),
    var(--bg-0);
}
.bg-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.25;
}
.bg-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-ui);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-gold-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(245,196,107,0.10), rgba(245,196,107,0.04));
  border: 1px solid rgba(245,196,107,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 10px var(--c-gold);
}
.eyebrow.cyan { color: var(--c-cyan-2); border-color: rgba(79,227,255,0.30); background: linear-gradient(135deg, rgba(79,227,255,0.10), rgba(79,227,255,0.03)); }
.eyebrow.cyan .dot { background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan); }

h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: 84px; }
h2 { font-size: 56px; }
h3 { font-size: 24px; font-family: var(--f-ui); font-weight: 600; letter-spacing: 0; line-height: 1.3; }

.lede { color: var(--t-2); font-size: 18px; line-height: 1.6; max-width: 56ch; }

.grad-text {
  background: linear-gradient(120deg, var(--c-cyan-2) 0%, var(--c-indigo) 50%, var(--c-magenta) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-gold {
  background: linear-gradient(120deg, var(--c-gold-2) 0%, var(--c-gold) 60%, var(--c-bronze) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- LAYOUT ---------- */
.shell { position: relative; z-index: 3; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: 120px 0; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(8,9,26,0.6);
  border-bottom: 1px solid var(--glass-border);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.02em; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  /* Лёгкое свечение бренда вокруг иконки */
  box-shadow: 0 0 22px rgba(91, 127, 255, 0.45);
}
.nav { display: flex; gap: 28px; }
.nav a { color: var(--t-2); font-size: 14px; font-weight: 500; transition: color 160ms ease; }
.nav a:hover { color: var(--t-1); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--glass-border-strong);
  background: var(--glass-bg-strong);
  color: var(--t-1);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, box-shadow 220ms ease, border-color 160ms ease;
}
.btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
.btn-primary {
  border: none;
  color: #0a0d20;
  font-weight: 700;
  background: linear-gradient(135deg, #6FF0FF 0%, #4FE3FF 35%, #5B7FFF 100%);
  box-shadow:
    0 8px 28px rgba(79,227,255,0.35),
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 -8px 16px rgba(91,127,255,0.35) inset;
  padding: 18px 28px;
  font-size: 15px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(79,227,255,0.5), 0 0 0 1px rgba(255,255,255,0.22) inset; }
.btn-primary svg { transition: transform 200ms ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-gold {
  border: none;
  color: #2A1A05;
  font-weight: 700;
  background: linear-gradient(135deg, #FFE49C 0%, #F5C46B 50%, #C58A3D 100%);
  box-shadow:
    0 8px 28px rgba(245,196,107,0.35),
    0 0 0 1px rgba(255,255,255,0.25) inset;
  padding: 18px 28px; font-size: 15px;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(245,196,107,0.5), 0 0 0 1px rgba(255,255,255,0.30) inset; }

.btn-ghost {
  background: transparent; border: 1px solid var(--glass-border-strong);
}

/* ---------- GLASS CARD ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* ---------- HERO ---------- */
.hero { padding: 64px 0 80px; min-height: 760px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--c-gold); display: inline-block; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; color: var(--t-3); font-size: 13px; flex-wrap: wrap; }
.hero-meta .item { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--c-cyan); }

.offer-card {
  display: grid; grid-template-columns: auto 1fr;
  gap: 18px; align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245,196,107,0.10), rgba(245,196,107,0.02));
  border: 1px solid rgba(245,196,107,0.25);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 36px rgba(0,0,0,0.35);
}
.offer-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(245,196,107,0.6), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.offer-percent {
  font-family: var(--f-display);
  font-size: 56px; line-height: 1; font-weight: 600;
  letter-spacing: -0.02em;
}
.offer-text .label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-gold-2); margin-bottom: 4px; }
.offer-text .value { font-size: 15px; color: var(--t-1); font-weight: 600; }
.offer-text .value s { color: var(--t-3); font-weight: 400; margin-left: 6px; font-size: 13px; }

/* Hero visual */
.hero-visual { position: relative; height: 620px; }
.hero-character {
  position: absolute; inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(91,127,255,0.20), transparent 60%);
}
.hero-character img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}
.hero-character::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(8,9,26,0.85) 100%),
    radial-gradient(circle at 30% 30%, transparent 40%, rgba(8,9,26,0.6) 100%);
}
.hero-character .ring {
  position: absolute; inset: 12px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  pointer-events: none;
}

/* Tablet mockup */
.hero-mockup {
  position: absolute;
  bottom: -20px; right: -40px;
  width: 280px; height: 380px;
  transform: rotate(8deg);
  filter: drop-shadow(0 30px 60px rgba(91,127,255,0.35));
}
.hero-mockup .device {
  width: 100%; height: 100%;
  border-radius: 22px;
  background: #0a0c1f;
  border: 2px solid #1a1c3a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  padding: 14px;
  display: flex; flex-direction: column;
}

/* Floating abacus glyphs */
.glyph {
  position: absolute; pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(79,227,255,0.4));
  opacity: 0.85;
}

/* ---------- SECTION 2: VIDEO ---------- */
.video-wrap {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(91,127,255,0.10), rgba(182,91,255,0.05));
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #1a1d3f 0%, #0c0d24 60%, #06081c 100%);
  border: 1px solid var(--glass-border-strong);
}
.video-frame .scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(255,255,255,0.02) 2px 3px);
  pointer-events: none;
  z-index: 2;
}
.gameplay-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #06081c;
  z-index: 1;
}
.video-frame .video-corner { z-index: 3; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 96px; height: 96px; border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6FF0FF, #4FE3FF 40%, #5B7FFF);
  box-shadow: 0 0 0 8px rgba(79,227,255,0.15), 0 0 60px rgba(79,227,255,0.5);
  display: grid; place-items: center;
  transition: transform 220ms ease;
}
.play-btn:hover { transform: translate(-50%,-50%) scale(1.06); }
.play-btn .tri { width: 0; height: 0; border-left: 22px solid #0a0d20; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video-controls { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 14px; }
.video-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.10); position: relative; overflow: hidden; }
.video-bar > i { position: absolute; left: 0; top: 0; bottom: 0; width: 28%; background: linear-gradient(90deg, var(--c-cyan), var(--c-indigo)); border-radius: 2px; }
.video-time { font-family: var(--f-mono); font-size: 12px; color: var(--t-2); }
.video-corner { position: absolute; top: 16px; left: 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-magenta); box-shadow: 0 0 12px var(--c-magenta); }

/* Decorative orbs around video */
.video-orbits { position: absolute; inset: -40px; pointer-events: none; }

/* ---------- SECTION 3: VS ---------- */
.vs-grid {
  display: grid; grid-template-columns: 1fr 80px 1fr; gap: 24px; align-items: stretch;
}
.vs-card { padding: 36px; min-height: 420px; display: flex; flex-direction: column; gap: 20px; }
.vs-card.muted { background: linear-gradient(180deg, rgba(120,120,140,0.05), rgba(120,120,140,0.02)); }
.vs-card.muted h3 { color: var(--t-2); }
.vs-card.hero {
  background:
    linear-gradient(180deg, rgba(91,127,255,0.10), rgba(182,91,255,0.06)),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border-color: rgba(91,127,255,0.30);
  box-shadow: 0 0 0 1px rgba(91,127,255,0.10) inset, 0 30px 80px rgba(91,127,255,0.18);
}
.vs-tag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t-3); }
.vs-card.hero .vs-tag { color: var(--c-cyan-2); }
.vs-list { display: flex; flex-direction: column; gap: 14px; }
.vs-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--t-2); font-size: 14px; line-height: 1.55; list-style: none; }
.vs-list .ic {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
}
.vs-card.hero .vs-list .ic { background: rgba(79,227,255,0.12); border-color: rgba(79,227,255,0.4); color: var(--c-cyan-2); }
.vs-divider {
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 28px; color: var(--t-3);
  position: relative;
}
.vs-divider::before, .vs-divider::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 1px; background: linear-gradient(180deg, transparent, var(--glass-border-strong), transparent);
}
.vs-divider::before { top: 0; bottom: 50%; height: 40%; }
.vs-divider::after { top: 60%; bottom: 0; height: 40%; }
.vs-stats {
  display: flex; gap: 32px; padding-top: 16px; margin-top: auto;
  border-top: 1px solid var(--glass-border);
}
.vs-stats .num { font-family: var(--f-display); font-size: 32px; line-height: 1; }
.vs-stats .num.cyan { color: var(--c-cyan-2); }
.vs-stats .lbl { font-size: 12px; color: var(--t-3); margin-top: 4px; }

/* ---------- SECTION 4: FEATURES ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 360px;
  position: relative;
}
.feature .num {
  font-family: var(--f-display);
  font-size: 13px; letter-spacing: 0.3em;
  color: var(--t-3);
}
.feature h3 { font-size: 22px; }
.feature p { color: var(--t-2); font-size: 14px; line-height: 1.6; margin: 0; }
.feature-art {
  height: 160px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(91,127,255,0.10), rgba(182,91,255,0.05));
  border: 1px solid var(--glass-border);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}

/* video placeholder */
.video-art { padding: 0; }
.video-art .va-thumb {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.va-tutorial   { background-image: url('/assets/feature-tutorial.webp');   background-color: #0E1124; }
.va-tournament { background-image: url('/assets/feature-tournament.webp'); background-color: #0E1124; }
.va-fullcycle  { background-image: url('/assets/feature-fullcycle.webp');  background-color: #0E1124; }
.video-art .va-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2;
  transition: transform 0.25s ease;
}
.video-art:hover .va-play { transform: translate(-50%,-50%) scale(1.08); }
.video-art .va-play .tri {
  width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video-art .va-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px;
  border-radius: 2px; background: rgba(255,255,255,0.15);
  overflow: hidden; z-index: 2;
}
.video-art .va-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #4FE3FF, #B65BFF); box-shadow: 0 0 8px rgba(79,227,255,0.6); }
.video-art .va-corner {
  position: absolute; top: 12px; right: 12px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35); padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 2;
}
.video-art .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #FF5C7A; box-shadow: 0 0 8px rgba(255,92,122,0.8);
}
.twinkle { animation: twinkle 1.4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* RuStore card */
.rustore-card {
  position: relative;
  padding: 28px;
  background: rgba(11,14,30,0.85);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 22px;
}
.rs-head { display: flex; align-items: center; gap: 14px; }
.rs-logo svg { display: block; }
.rs-title { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t-3); }
.rs-name { font-family: var(--f-display, var(--f-serif, serif)); font-size: 24px; color: var(--t-1); line-height: 1.1; margin-top: 2px; }
.rs-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rs-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rs-meta + .rs-meta { padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.06); }
.rs-big { font-family: var(--f-mono); font-size: 18px; color: var(--t-1); }
.rs-sub { font-size: 11px; letter-spacing: 0.06em; color: var(--t-3); }
.rs-cta { width: 100%; justify-content: center; }

/* Disabled-состояние CTA (используется platform.js для iOS-юзеров) */
.btn.is-disabled,
a.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}
.btn.is-disabled:hover,
a.is-disabled:hover { transform: none; box-shadow: none; }
.rs-qr-row { display: flex; gap: 14px; align-items: center; }
.rs-qr {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: 10px;
  background:
    linear-gradient(45deg, transparent 48%, #fff 48% 52%, transparent 52%) 0 0/12px 12px,
    linear-gradient(-45deg, transparent 48%, #fff 48% 52%, transparent 52%) 0 0/12px 12px,
    #0E1124;
  border: 6px solid #fff;
  position: relative;
}
.rs-qr::before, .rs-qr::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 3px solid #0E1124; background: #fff;
}
.rs-qr::before { top: 0; left: 0; }
.rs-qr::after { top: 0; right: 0; }
.rs-qr-title { font-size: 13px; color: var(--t-1); margin-bottom: 4px; }
.rs-qr-sub { font-size: 12px; color: var(--t-3); line-height: 1.5; }

/* abacus art */
.abacus { display: flex; flex-direction: column; gap: 6px; padding: 12px 18px; width: 100%; }
.abacus-row {
  height: 14px;
  display: flex; align-items: center; gap: 4px;
  position: relative;
}
.abacus-row::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px;
  background: rgba(255,255,255,0.10);
}
.bead { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #6FF0FF, #5B7FFF); box-shadow: 0 0 8px rgba(79,227,255,0.6); position: relative; z-index: 1; }
.bead.gold { background: linear-gradient(135deg, #FFE49C, #C58A3D); box-shadow: 0 0 8px rgba(245,196,107,0.6); }
.bead.muted { background: rgba(255,255,255,0.10); box-shadow: none; }

/* trophy art */
.trophy-art { display: flex; gap: 8px; align-items: end; }
.bar { width: 18px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--c-cyan-2), var(--c-indigo)); box-shadow: 0 0 12px rgba(79,227,255,0.4); }

/* ---------- SECTION 5: ACHIEVEMENTS ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill {
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  min-height: 280px;
}
.skill .ring-art {
  position: relative;
  width: 120px; height: 120px;
  margin: 4px auto 8px;
}
.skill h3 { font-size: 17px; text-align: center; }
.skill .lvl {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-cyan-2); text-align: center;
}
.skill .stat-bar {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.07);
  overflow: hidden; position: relative;
  margin-top: auto;
}
.skill .stat-bar > i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-indigo));
  box-shadow: 0 0 14px rgba(79,227,255,0.6);
  border-radius: 3px;
}
.skill .stat-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--t-3); margin-bottom: 6px; font-family: var(--f-mono); letter-spacing: 0.06em; }

/* ---------- SECTION 6: FINAL CTA ---------- */
.cta-final {
  position: relative;
  padding: 80px 0 140px;
}
.cta-card {
  position: relative;
  padding: 64px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(182,91,255,0.20), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(79,227,255,0.18), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border-strong);
  overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(245,196,107,0.20), transparent 30%);
}

.timer { display: flex; gap: 12px; }
.timer .unit {
  flex: 1;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  text-align: center;
}
.timer .unit .v { font-family: var(--f-display); font-size: 36px; line-height: 1; color: var(--c-gold-2); letter-spacing: -0.02em; }
.timer .unit .l { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t-3); margin-top: 6px; }

.form {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13,14,34,0.85), rgba(8,9,26,0.85));
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.form h3 { font-size: 18px; margin-bottom: 4px; }
.form p { font-size: 13px; color: var(--t-3); margin: 0 0 18px; }
.field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.field label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-3); }
.field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--t-1);
  padding: 14px 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: var(--t-3); }
.field input:focus { outline: none; border-color: rgba(79,227,255,0.5); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 4px rgba(79,227,255,0.10); }
.legal { font-size: 11px; color: var(--t-3); margin-top: 12px; line-height: 1.5; }
.legal a { color: var(--t-2); border-bottom: 1px dashed var(--t-3); }

.spots {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
  font-size: 13px; color: var(--t-2);
}
.spots .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.spots .bar > i { position: absolute; left: 0; top: 0; bottom: 0; width: 78%; background: linear-gradient(90deg, var(--c-gold), var(--c-bronze)); border-radius: 3px; box-shadow: 0 0 12px rgba(245,196,107,0.5); }
.spots .num { font-family: var(--f-mono); color: var(--c-gold-2); font-size: 13px; }

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative; z-index: 3;
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  font-size: 13px; color: var(--t-3);
}
.site-footer .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 24px; }
.site-footer a:hover { color: var(--t-1); }

/* ---------- ANIM ---------- */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-1 { animation: float-y 6s ease-in-out infinite; }
.float-2 { animation: float-y 7s ease-in-out infinite -2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.twinkle { animation: twinkle 3s ease-in-out infinite; }

/* Tablet mockup tiny UI */
.mockup-ui { flex: 1; border-radius: 12px; padding: 12px; background: linear-gradient(180deg, #161a3c, #0c0e26); display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(255,255,255,0.06); }
.mockup-top { display: flex; justify-content: space-between; font-size: 9px; color: var(--t-3); font-family: var(--f-mono); }
.mockup-title { font-family: var(--f-display); font-size: 14px; color: var(--c-cyan-2); text-align: center; padding: 8px 0; }
.mockup-abacus-frame {
  flex: 1;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 30%, rgba(91,127,255,0.20), transparent 60%), #0a0c20;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.mockup-cta { padding: 8px; border-radius: 8px; background: linear-gradient(135deg, #4FE3FF, #5B7FFF); color: #0a0d20; font-size: 10px; font-weight: 700; text-align: center; box-shadow: 0 0 14px rgba(79,227,255,0.4); }

/* ---------- TABLET (≤ 900px) ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  section { padding: 80px 0; }
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  .nav { display: none; }
  .hero { padding: 40px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 460px; }
  .hero-mockup { width: 220px; height: 300px; right: -10px; bottom: -10px; }
  .vs-grid { grid-template-columns: 1fr; gap: 16px; }
  .vs-divider { height: 60px; }
  .vs-divider::before, .vs-divider::after { width: 40%; height: 1px; left: 0; top: 50%; background: linear-gradient(90deg, transparent, var(--glass-border-strong), transparent); }
  .vs-divider::before { top: 50%; left: 0; right: auto; transform: none; bottom: auto; }
  .vs-divider::after { top: 50%; right: 0; left: auto; transform: none; bottom: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid .feature:nth-child(3) { grid-column: 1 / -1; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cta-card { grid-template-columns: 1fr; padding: 40px; gap: 32px; }
  .timer .unit .v { font-size: 28px; }
  .site-footer .row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  section { padding: 60px 0; }
  h1 { font-size: 38px; line-height: 1.08; }
  h2 { font-size: 28px; }
  h3 { font-size: 18px; }
  .lede { font-size: 15px; }
  .site-header .row { height: 60px; }
  .brand { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 380px; }
  .hero-mockup { width: 160px; height: 220px; right: -10px; bottom: -10px; }
  .hero-meta { gap: 12px; font-size: 12px; }
  .offer-card { grid-template-columns: 1fr; text-align: center; gap: 4px; padding: 18px; }
  .offer-percent { font-size: 44px; }
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature:nth-child(3) { grid-column: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .vs-card { padding: 24px; min-height: auto; }
  .vs-stats { flex-wrap: wrap; gap: 16px; }
  .vs-stats .num { font-size: 24px; }
  .cta-card { padding: 28px; border-radius: 22px; }
  .timer { gap: 6px; }
  .timer .unit { padding: 10px 4px; }
  .timer .unit .v { font-size: 22px; }
  .timer .unit .l { font-size: 9px; }
  .form { padding: 22px; }
  .section-head { margin-bottom: 36px; }
  .video-wrap { padding: 14px; border-radius: 20px; }
  .play-btn { width: 64px; height: 64px; }
  .play-btn .tri { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
  .site-footer .links { flex-wrap: wrap; gap: 14px; font-size: 12px; }
}

