/* ============================================
   BetaBot — Presentation Site
   Matches main app design system
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ── Backgrounds (from app) ── */
  --bg-primary: #0b0e11;
  --bg-secondary: #161a1e;
  --bg-tertiary: #1e2329;
  --bg-elevated: #11161d;
  --bg-canvas:
    radial-gradient(circle at top left, rgba(14, 203, 129, 0.07), rgba(14, 203, 129, 0) 28%),
    radial-gradient(circle at top right, rgba(56, 97, 251, 0.08), rgba(56, 97, 251, 0) 24%),
    linear-gradient(180deg, #08111a 0%, #0b1622 48%, #0a1220 100%);

  /* ── Text (from app) ── */
  --text-primary: #eaecef;
  --text-muted: #848e9c;

  /* ── Accents (from app) ── */
  --accent: #0ecb81;
  --accent-green: #0ecb81;
  --accent-red: #f6465d;
  --accent-blue: #3861fb;
  --accent-amber: #f59e0b;

  /* ── Mint system (from app) ── */
  --mint: #0ecb81;
  --mint-soft: #6ee7b7;
  --mint-border: rgba(16, 185, 129, 0.4);
  --mint-border-hover: rgba(110, 231, 183, 0.55);

  /* ── Glows (from app) ── */
  --mint-glow-sm: 0 0 18px rgba(14, 203, 129, 0.2), 0 0 36px rgba(14, 203, 129, 0.07);
  --mint-glow-md: 0 0 26px rgba(14, 203, 129, 0.32), 0 0 48px rgba(14, 203, 129, 0.12);
  --mint-glow-strong: 0 0 32px rgba(14, 203, 129, 0.42), 0 0 56px rgba(14, 203, 129, 0.16);

  /* ── Borders (from app) ── */
  --border: #2b3139;
  --border-strong: rgba(255, 255, 255, 0.09);

  /* ── Gradients ── */
  --gradient-main: linear-gradient(135deg, #0ecb81 0%, #34d399 50%, #3861fb 100%);
  --gradient-mint: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(6, 55, 42, 0.42) 42%, rgba(8, 20, 16, 0.94));
  --gradient-btn: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(6, 55, 42, 0.42) 42%, rgba(8, 20, 16, 0.94));

  /* ── Fonts (from app) ── */
  --font-main: 'Plus Jakarta Sans', 'Jura', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* ── Radius ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 1.35rem;

  /* ── Shadows ── */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  /* ── Motion (from app) ── */
  --animate-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --animate-duration: 0.35s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
}

/* RU copy uses the same px sizes but can look smaller (Cyrillic metrics / longer lines). */
html:lang(ru) {
  font-size: 104%;
  letter-spacing: 0.005em;
}

html:lang(ru) .hero h1,
html:lang(ru) .section-header h2,
html:lang(ru) .ai-engine__h2 {
  letter-spacing: -0.08em;
}

body {
  font-family: var(--font-main);
  background: var(--bg-canvas);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--mint-soft);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(
    115deg,
    #d1fae5 0%,
    var(--accent) 28%,
    #34d399 52%,
    #5eead4 70%,
    var(--accent-blue) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-text-flow 10s ease-in-out infinite alternate;
}

@keyframes gradient-text-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* ── Buttons (match app style) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--animate-duration) var(--animate-ease-out);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  border: 1px solid rgba(110, 231, 183, 0.42);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(6, 55, 42, 0.42) 42%, rgba(8, 20, 16, 0.94));
  color: #c6fae3;
  box-shadow: var(--mint-glow-sm);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-16deg);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: btn-primary-glint 0.85s var(--animate-ease-out) both;
}

@keyframes btn-primary-glint {
  from {
    transform: skewX(-16deg) translateX(0);
  }
  to {
    transform: skewX(-16deg) translateX(380%);
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 183, 0.55);
  box-shadow: var(--mint-glow-md);
  color: #c6fae3;
}

.btn-primary svg {
  transition: transform 0.4s var(--animate-ease-out);
}

.btn-primary:hover svg {
  transform: translateX(2px) scale(1.05);
}

.btn-boost {
  border: 1px solid rgba(167, 243, 208, 0.45);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(52, 211, 153, 0.32), transparent 55%),
    linear-gradient(145deg, rgba(16, 185, 129, 0.38), rgba(6, 78, 52, 0.58) 35%, rgba(8, 20, 16, 0.96));
  color: #031910;
  font-weight: 700;
  box-shadow: var(--mint-glow-md);
}

.btn-boost:hover {
  transform: translateY(-2px);
  box-shadow: var(--mint-glow-strong);
  color: #031910;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(14, 203, 129, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--animate-ease-out);
  z-index: 0;
  pointer-events: none;
}

.btn-ghost:hover::after {
  opacity: 1;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--mint-border);
  color: var(--accent);
  background: rgba(14, 203, 129, 0.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.btn-ghost svg {
  transition: transform 0.35s var(--animate-ease-out);
}

.btn-ghost:hover svg {
  transform: translate(2px, -2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--animate-ease-out), transform 0.8s var(--animate-ease-out);
}

.reveal.reveal-delay-1 { transition-delay: 0.15s; }
.reveal.reveal-delay-2 { transition-delay: 0.3s; }
.reveal.reveal-delay-3 { transition-delay: 0.45s; }

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--animate-ease-out);
}

.navbar.scrolled {
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.94) 0%, rgba(8, 12, 16, 0.82) 58%, rgba(8, 12, 16, 0.28) 82%, rgba(8, 12, 16, 0) 100%);
  backdrop-filter: blur(22px) saturate(145%);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

/* Logo — matches BetaBotLogo.jsx */
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo:hover { color: var(--text-primary); }

.logo-alpha {
  color: var(--text-primary);
}

.logo-engine {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(56, 97, 251, 0.85));
  transition: width 0.38s var(--animate-ease-out);
  opacity: 0.95;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  border: 1px solid rgba(110, 231, 183, 0.42);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(6, 55, 42, 0.42) 42%, rgba(8, 20, 16, 0.94));
  color: #c6fae3 !important;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--animate-duration) var(--animate-ease-out);
  text-decoration: none;
}

.nav-cta:hover {
  box-shadow: var(--mint-glow-md);
  border-color: var(--mint-border-hover);
  transform: translateY(-1px);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  position: relative;
  background: rgba(15, 20, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 3px;
  backdrop-filter: blur(12px);
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(6, 55, 42, 0.35));
  border: 1px solid rgba(14, 203, 129, 0.2);
  border-radius: 9px;
  box-shadow: 0 0 12px rgba(14, 203, 129, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.lang-switcher:has(.lang-btn:last-child.active) .lang-slider {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border: none;
  border-radius: 9px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent);
  background: transparent;
  border: none;
  box-shadow: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 203, 129, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 203, 129, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  animation: hero-grid-drift 90s linear infinite;
}

@keyframes hero-grid-drift {
  to {
    background-position: 60px 60px, 60px 60px;
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  transition: transform 0.3s ease-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.2), transparent 70%);
  top: -10%;
  right: -5%;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 97, 251, 0.18), transparent 70%);
  bottom: 10%;
  left: -10%;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.12), transparent 70%);
  top: 40%;
  left: 30%;
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--duration) var(--delay) infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-200px); }
}

.hero-content {
  flex: 1;
  min-width: 320px;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 203, 129, 0.08);
  border: 1px solid rgba(14, 203, 129, 0.18);
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(14, 203, 129, 0); }
}

.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-sublink-wrap {
  margin-bottom: 36px;
}
.hero-sublink {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.9;
}
.hero-sublink:hover {
  color: var(--accent);
  opacity: 1;
}

.hero-stats-mini {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  padding: 8px 16px;
  background: rgba(22, 26, 31, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 13px;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  transition:
    transform 0.35s var(--animate-ease-out),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.stat-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 203, 129, 0.28);
  background: rgba(22, 30, 36, 0.75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), var(--mint-glow-sm);
}

.stat-pill .stat-val {
  color: var(--accent);
  font-weight: 700;
  margin-right: 4px;
}

/* ============================================
   HERO VISUAL — iPhone 15 Pro Mockup
   ============================================ */
.hero-visual {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.iphone-mockup {
  position: relative;
  width: 310px;
  animation: phoneFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-1.5deg) rotateX(0.5deg); }
  50% { transform: translateY(-14px) rotateY(1.5deg) rotateX(-0.5deg); }
}

.iphone-glow {
  position: absolute;
  top: 5%;
  left: -35%;
  right: -35%;
  bottom: 5%;
  background:
    radial-gradient(ellipse at 40% 25%, rgba(14, 203, 129, 0.2), transparent 50%),
    radial-gradient(ellipse at 60% 75%, rgba(56, 97, 251, 0.12), transparent 45%);
  filter: blur(60px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* SVG frame */
.iphone-svg-frame {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

/* Screen content overlay — positioned on top of SVG */
.iphone-screen-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Align to screen rect: x=10, y=10, w=300, h=630 out of viewBox 320x650 */
  padding: calc(650px * 10 / 650) 0 0 0;
  /* Use percentages for positioning */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Position screen content precisely over the SVG screen area */
.iphone-screen-content {
  position: absolute;
  top: 1.54%;    /* 10/650 */
  left: 3.125%;  /* 10/320 */
  width: 93.75%; /* 300/320 */
  height: 96.92%;/* 630/650 */
  border-radius: 14.375% / 7.3%; /* 46/320 and 46/630 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Mock Screen Content
   ============================================ */

/* ── Status Bar ── */
.mock-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px 0;
  height: 38px;
  flex-shrink: 0;
}

.mock-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.mock-indicators {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── App Header ── */
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 8px;
  flex-shrink: 0;
}

.mock-logo {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.mock-logo-a { color: var(--text-primary); }
.mock-logo-e { color: var(--accent); }

.mock-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mock-username {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.2;
}

.mock-balance {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.mock-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.3), rgba(6, 55, 42, 0.5));
  border: 1.5px solid var(--mint-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--mint-soft);
}

/* ── Shared card style ── */
.mock-card {
  margin: 4px 10px;
  border-radius: 12px;
}

/* ── Boost Card ── */
.mock-boost-card {
  background: linear-gradient(135deg, rgba(14, 203, 129, 0.08), rgba(14, 203, 129, 0.02) 50%, rgba(8, 16, 12, 0.6));
  border: 1px solid rgba(14, 203, 129, 0.18);
}

.mock-boost-inner {
  padding: 12px 14px;
}

.mock-boost-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.mock-boost-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.mock-boost-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 203, 129, 0.15);
  border: 1px solid rgba(14, 203, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: boostPulse 2s infinite;
}

@keyframes balancePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); color: var(--mint-soft); }
  100% { transform: scale(1); }
}

@keyframes boostPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(14, 203, 129, 0); }
}

.mock-boost-time {
  font-size: 30px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.mock-boost-hint {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.mock-boost-bar {
  margin-top: 10px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.mock-boost-fill {
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, rgba(14, 203, 129, 0.6), rgba(52, 211, 153, 0.95));
  border-radius: 3px;
}

/* ── Status Card ── */
.mock-status-card {
  background: linear-gradient(135deg, rgba(14, 203, 129, 0.05), transparent);
  border: 1px solid rgba(14, 203, 129, 0.1);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-kicker {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.3;
}

.mock-status-val {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.mock-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(14, 203, 129, 0.5);
  animation: pulse 2s infinite;
}

/* ── Trades Table ── */
.mock-trades {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mock-trades-head {
  display: grid;
  grid-template-columns: 42px 36px 1fr 28px;
  padding: 6px 10px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mock-trade {
  display: grid;
  grid-template-columns: 42px 36px 1fr 28px;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  animation: tradeRowIn 0.5s var(--animate-ease-out) both;
}

.mock-trade:nth-child(2) { animation-delay: 0.05s; }
.mock-trade:nth-child(3) { animation-delay: 0.1s; }
.mock-trade:nth-child(4) { animation-delay: 0.15s; }
.mock-trade:nth-child(5) { animation-delay: 0.2s; }
.mock-trade:nth-child(6) { animation-delay: 0.25s; }
.mock-trade:nth-child(7) { animation-delay: 0.3s; }
.mock-trade:nth-child(8) { animation-delay: 0.35s; }

@keyframes tradeRowIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-trade.profit {
  background: linear-gradient(90deg, rgba(14, 203, 129, 0.04), transparent 50%);
}

.mock-trade.loss {
  background: linear-gradient(90deg, rgba(246, 70, 93, 0.04), transparent 50%);
}

.mock-trade span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.mock-trade span:nth-child(2) {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 10.5px;
}

.mock-right {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
}

.mock-right.g { color: var(--accent); }
.mock-right.r { color: var(--accent-red); }

.mock-badge {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  text-align: center;
}

.mock-badge.tp {
  background: rgba(14, 203, 129, 0.12);
  color: var(--accent);
}

.mock-badge.sl {
  background: rgba(246, 70, 93, 0.12);
  color: var(--accent-red);
}

/* ── Bottom Nav ── */
.mock-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 6px 14px;
  flex-shrink: 0;
  background: linear-gradient(0deg, rgba(8, 12, 16, 0.96) 0%, rgba(8, 12, 16, 0.7) 60%, transparent 100%);
}

.mock-bnav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(22, 26, 31, 0.55);
}

.mock-bnav.active {
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.38);
  background: linear-gradient(135deg, rgba(14, 203, 129, 0.14), rgba(14, 203, 129, 0.04) 45%, transparent), rgba(22, 28, 34, 0.75);
  box-shadow: var(--mint-glow-sm);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 120px 0;
  position: relative;
}

/* Soft hairline dividers between flow sections so transitions read clearly even without
   section backgrounds. Keeps the page visually continuous; adds structure without a panel look. */
.ai-engine,
.features,
.stats-showcase,
.reviews,
.instructions-index-cta,
.faq-section,
.cta-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.ai-engine::after,
.features::after,
.stats-showcase::after,
.reviews::after,
.instructions-index-cta::after,
.faq-section::after,
.cta-section::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 72%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 203, 129, 0.28), transparent);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(14, 203, 129, 0.08);
  border: 1px solid rgba(14, 203, 129, 0.15);
  border-radius: var(--radius-xl);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  animation: section-tag-pulse 5s ease-in-out infinite;
}

@keyframes section-tag-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 203, 129, 0);
  }
  50% {
    box-shadow: 0 0 22px -4px rgba(14, 203, 129, 0.14);
  }
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Feature cards — match app-surface style */
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--animate-duration) var(--animate-ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  border-color: var(--mint-border);
  transform: translateY(-4px);
  box-shadow: var(--mint-glow-sm);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 100% 70% at 50% -30%, rgba(14, 203, 129, 0.1), transparent 52%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--animate-ease-out);
}

.feature-card:hover::after {
  opacity: 1;
}

/* Icon tiles — match app-icon-tile */
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: rgba(22, 28, 34, 0.88);
  box-shadow: 0 0 14px rgba(14, 203, 129, 0.08);
  transition:
    transform 0.45s var(--animate-ease-out),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  transition: transform 0.45s var(--animate-ease-out);
}

.feature-card:hover .feature-icon {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 0 22px rgba(14, 203, 129, 0.15);
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.05);
}

.icon-ai { border: 1px solid rgba(14, 203, 129, 0.18); }
.icon-ai svg { stroke: var(--accent); }

.icon-auto { border: 1px solid rgba(56, 97, 251, 0.18); }
.icon-auto svg { stroke: var(--accent-blue); }

.icon-shield { border: 1px solid rgba(14, 203, 129, 0.18); }
.icon-shield svg { stroke: var(--accent); }

.icon-speed { border: 1px solid rgba(245, 158, 11, 0.18); }
.icon-speed svg { stroke: var(--accent-amber); }

.icon-ref { border: 1px solid rgba(56, 97, 251, 0.18); }
.icon-ref svg { stroke: var(--accent-blue); }

.icon-tg { border: 1px solid rgba(14, 203, 129, 0.18); }
.icon-tg svg { fill: var(--accent); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   STATS — “Numbers that speak” showcase
   ============================================ */
.stats-showcase {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Shares the body gradient canvas — only ambient radial glows + orbs remain, no opaque panel. */
.stats-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(14, 203, 129, 0.09), transparent 60%),
    radial-gradient(ellipse 55% 40% at 100% 30%, rgba(56, 97, 251, 0.055), transparent 55%);
}

.stats-bg__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 20%, transparent 80%);
}

.stats-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.4s ease, transform 2s ease;
}
.stats-showcase--active .stats-bg__orb {
  opacity: 1;
  transform: scale(1);
}
.stats-bg__orb--a {
  width: 320px;
  height: 320px;
  top: -8%;
  left: -6%;
  background: rgba(14, 203, 129, 0.14);
  animation: stats-orb-drift-a 18s ease-in-out infinite alternate;
}
.stats-bg__orb--b {
  width: 260px;
  height: 260px;
  bottom: 5%;
  right: -4%;
  background: rgba(56, 97, 251, 0.12);
  animation: stats-orb-drift-b 22s ease-in-out infinite alternate;
}
.stats-bg__orb--c {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 42%;
  background: rgba(14, 203, 129, 0.06);
  animation: stats-orb-drift-c 26s ease-in-out infinite alternate;
}

@keyframes stats-orb-drift-a {
  to { transform: translate(24px, 18px) scale(1.05); }
}
@keyframes stats-orb-drift-b {
  to { transform: translate(-20px, -14px) scale(1.08); }
}
@keyframes stats-orb-drift-c {
  to { transform: translate(12px, -22px) scale(1.03); }
}

.stats-showcase__inner {
  position: relative;
  z-index: 1;
}

.section-header--stats {
  margin-bottom: 3rem;
}

.section-tag--stats {
  border: 1px solid rgba(14, 203, 129, 0.25);
  background: rgba(14, 203, 129, 0.08);
}

.stats-showcase__title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-top: 0.35rem;
}

.stats-showcase__sub {
  max-width: 520px;
  margin: 0.85rem auto 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.stats-grid--showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stat-card.stat-card--showcase {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  border-radius: calc(var(--radius-lg) + 2px);
  transition: transform 0.45s var(--animate-ease-out), box-shadow 0.45s var(--animate-ease-out);
}

.stat-card--showcase.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 1s var(--animate-ease-out),
    transform 1s var(--animate-ease-out),
    filter 1s var(--animate-ease-out);
}

.stat-card--showcase.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.stat-card--showcase:hover {
  transform: translateY(-6px);
  z-index: 2;
}

.stat-card--showcase:hover .stat-card__inner {
  box-shadow: var(--mint-glow-md), 0 24px 48px rgba(0, 0, 0, 0.45);
  border-color: rgba(14, 203, 129, 0.22);
}

.stat-card__border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(14, 203, 129, 0.45),
    rgba(56, 97, 251, 0.25) 40%,
    rgba(255, 255, 255, 0.08) 70%,
    rgba(14, 203, 129, 0.2)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.stat-card--showcase:hover .stat-card__border {
  opacity: 1;
}

.stat-card__inner {
  position: relative;
  margin: 1px;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  background: linear-gradient(165deg, rgba(24, 28, 34, 0.98) 0%, rgba(14, 17, 21, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.45s var(--animate-ease-out);
}

.stat-card__shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 255, 255, 0.02) 52%,
    transparent 65%
  );
  transform: translateX(-35%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.stats-showcase--active .stat-card--showcase.revealed .stat-card__shine {
  opacity: 1;
  animation: stat-card-shine 5.5s ease-in-out infinite;
}

.stat-card__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 100% 0%, rgba(14, 203, 129, 0.12), transparent 65%);
  pointer-events: none;
}

@keyframes stat-card-shine {
  0%,
  100% {
    transform: translateX(-40%) rotate(8deg);
  }
  50% {
    transform: translateX(42%) rotate(8deg);
  }
}

.stat-number-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-height: 3.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.stat-card--showcase .stat-number {
  font-size: clamp(2.35rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #e6fff4 0%, var(--accent) 38%, #34d399 72%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(14, 203, 129, 0.15);
  transition: transform 0.35s var(--animate-ease-out);
}

.stat-number-wrap--done .stat-number {
  animation: stat-number-pop 0.65s var(--animate-ease-out) both;
}

.stat-card.revealed .stat-number-wrap:has(.stat-number[data-static="true"]) .stat-number {
  animation: stat-number-pop 0.75s var(--animate-ease-out) 0.35s both;
}

@keyframes stat-number-pop {
  0% {
    transform: scale(0.88);
    filter: brightness(0.85);
  }
  55% {
    transform: scale(1.06);
    filter: brightness(1.12);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.stat-card--showcase .stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.stat-track {
  position: relative;
  padding: 0 2px;
}

.stat-card--showcase .stat-bar {
  position: relative;
  height: 9px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.stat-card--showcase .stat-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669 0%, var(--accent) 35%, #5eead4 88%, rgba(255, 255, 255, 0.35) 100%);
  background-size: 160% 100%;
  box-shadow: 0 0 18px rgba(14, 203, 129, 0.35);
  transition: width 1.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-bar-fill.animate {
  width: var(--fill);
  animation: stat-bar-sheen 2.8s ease-in-out 0.4s infinite;
}

@keyframes stat-bar-sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-bg__orb {
    animation: none !important;
  }

  .stats-showcase--active .stats-bg__orb {
    transform: scale(1);
  }

  .stats-showcase--active .stat-card--showcase.revealed .stat-card__shine {
    animation: none;
    opacity: 0;
  }

  .stat-bar-fill.animate {
    animation: none;
  }

  .stat-number-wrap--done .stat-number,
  .stat-card.revealed .stat-number-wrap:has(.stat-number[data-static="true"]) .stat-number {
    animation: none;
  }

  .stat-card--showcase.reveal {
    filter: none;
    transition-duration: 0.01ms;
  }

  .gradient-text {
    animation: none !important;
    background-position: 0% 50%;
  }

  .grid-overlay {
    animation: none !important;
  }

  .section-tag {
    animation: none !important;
  }

  .btn-primary::after,
  .btn-primary:hover::after {
    animation: none !important;
    opacity: 0;
  }

  .orb-cta-1,
  .orb-cta-2 {
    animation: none !important;
  }

  .cta-features span::before {
    animation: none !important;
  }

  .cta-content.revealed .cta-features span {
    animation: none !important;
  }

  .faq-item[open] p {
    animation: none !important;
  }

  .ai-engine__ambient {
    animation: none !important;
  }

  .stat-pill:hover,
  .feature-card:hover,
  .review-card:hover,
  .partner-tile:hover,
  .ai-model-row__item:hover,
  .footer-links a:hover,
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }

  .feature-card:hover .feature-icon,
  .feature-card:hover .feature-icon svg {
    transform: none;
  }

  .btn-primary:hover svg,
  .btn-ghost:hover svg {
    transform: none;
  }

  .back-to-top {
    transition-duration: 0.01ms;
  }

  .back-to-top:hover {
    transform: none;
  }
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  padding: 120px 0;
  overflow: hidden;
  position: relative;
}

.reviews-track-wrapper {
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px;
}

.reviews-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition:
    transform 0.4s var(--animate-ease-out),
    border-color 0.35s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(14, 203, 129, 0.45), rgba(56, 97, 251, 0.35), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 0.4s ease,
    transform 0.5s var(--animate-ease-out);
}

.review-card:hover {
  border-color: var(--mint-border);
  transform: translateY(-5px);
  box-shadow: var(--mint-glow-md), 0 20px 48px rgba(0, 0, 0, 0.35);
  background: linear-gradient(165deg, rgba(24, 28, 34, 0.98) 0%, rgba(18, 22, 28, 0.95) 100%);
}

.review-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.review-stars {
  color: var(--accent-amber);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  transition: filter 0.35s ease, letter-spacing 0.35s ease;
}

.review-card:hover .review-stars {
  filter: brightness(1.2) saturate(1.15);
  letter-spacing: 3px;
}

.review-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(6, 55, 42, 0.42));
  border: 1px solid var(--mint-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--mint-soft);
}

.review-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.review-author span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   INSTRUCTIONS
   ============================================ */
.instructions {
  padding: 120px 0;
  position: relative;
}

.steps-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 80px;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-blue));
  opacity: 0.25;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  min-width: 80px;
  line-height: 1;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-visual {
  flex-shrink: 0;
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 28, 34, 0.88);
  border: 1px solid rgba(14, 203, 129, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 0 14px rgba(14, 203, 129, 0.08);
}

.step-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}

/* API / Code Section */
.api-section {
  max-width: 800px;
  margin: 0 auto;
}

.api-header {
  margin-bottom: 32px;
}

.api-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.api-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.code-method {
  padding: 4px 10px;
  background: rgba(14, 203, 129, 0.15);
  color: var(--accent-green);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.method-get {
  background: rgba(56, 97, 251, 0.15);
  color: var(--accent-blue);
}

.method-post {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.code-url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-btn.copied {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.code-block pre {
  padding: 20px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.code-comment { color: var(--text-muted); }
.code-keyword { color: var(--accent-blue); }
.code-func { color: var(--accent); }
.code-string { color: var(--mint-soft); }
.code-key { color: #c6fae3; }

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: 120px 0;
  position: relative;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 60%),
              rgba(11,14,17,0.7);
  backdrop-filter: blur(4px);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover {
  border-color: rgba(14,203,129,0.25);
}
.faq-item[open] {
  border-color: rgba(14,203,129,0.35);
  box-shadow: 0 0 20px -6px rgba(14,203,129,0.2);
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #eaecef;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: #0ecb81;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  color: #0ecb81;
}
.faq-item p {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #848e9c;
}

.faq-item[open] p {
  animation: faq-body-in 0.42s var(--animate-ease-out) both;
}

@keyframes faq-body-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .faq-item summary { padding: 16px 18px; font-size: 0.88rem; }
  .faq-item p { padding: 0 18px 16px; font-size: 0.82rem; }
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.orb-cta-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.12), transparent 70%);
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  animation: cta-orb-drift-a 16s ease-in-out infinite alternate;
}

.orb-cta-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 97, 251, 0.1), transparent 70%);
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  animation: cta-orb-drift-b 20s ease-in-out infinite alternate;
}

@keyframes cta-orb-drift-a {
  from {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    transform: translateX(calc(-50% + 28px)) translateY(18px) scale(1.06);
  }
}

@keyframes cta-orb-drift-b {
  from {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    transform: translateX(calc(-50% - 22px)) translateY(-14px) scale(1.05);
  }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-actions {
  margin-bottom: 28px;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-features span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(14, 203, 129, 0.45);
  animation: cta-dot-pulse 2.4s ease-in-out infinite;
}

.cta-features span:nth-child(2)::before {
  animation-delay: 0.4s;
}

.cta-features span:nth-child(3)::before {
  animation-delay: 0.8s;
}

@keyframes cta-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.75;
  }
}

.cta-content.revealed .cta-features span {
  animation: cta-chip-rise 0.55s var(--animate-ease-out) both;
}

.cta-content.revealed .cta-features span:nth-child(1) {
  animation-delay: 0.08s;
}

.cta-content.revealed .cta-features span:nth-child(2) {
  animation-delay: 0.18s;
}

.cta-content.revealed .cta-features span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes cta-chip-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(14, 203, 129, 0.28);
  background: linear-gradient(165deg, rgba(22, 28, 34, 0.95) 0%, rgba(11, 14, 17, 0.92) 100%);
  color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), var(--mint-glow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.92);
  transition:
    opacity 0.4s var(--animate-ease-out),
    visibility 0.4s,
    transform 0.45s var(--animate-ease-out),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    color 0.25s ease;
}

.back-to-top svg {
  display: block;
}

.back-to-top:hover {
  color: var(--mint-soft);
  border-color: rgba(110, 231, 183, 0.45);
  box-shadow: var(--mint-glow-md), 0 16px 44px rgba(0, 0, 0, 0.4);
  transform: translateY(0) scale(1.04);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.back-to-top.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(11, 14, 17, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .nav-logo {
  margin-bottom: 0;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  display: block;
  position: relative;
  z-index: 1;
  transition:
    color 0.25s ease,
    transform 0.3s var(--animate-ease-out);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-style: italic;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11, 14, 17, 0.95);
    backdrop-filter: blur(22px) saturate(145%);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
    padding-top: 100px;
    gap: 40px;
    min-height: auto;
  }

  .hero-content, .hero-visual {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .reviews-track {
    grid-template-columns: 1fr;
  }

  .step-card {
    flex-direction: column;
    gap: 16px;
  }

  .steps-timeline::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-card--showcase .stat-number {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .hero-stats-mini {
    flex-direction: column;
  }
}

/* ============================================
   INSTRUCTIONS — full manual + screenshots
   ============================================ */
.instructions-manual {
  padding-bottom: 140px;
}

.inst-lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.instructions-index-cta {
  padding-bottom: 100px;
}
.instructions-index-cta .inst-index-cta-btn {
  margin-top: 1.5rem;
}

.inst-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 auto 48px;
  padding: 16px 20px;
  max-width: 980px;
  background: rgba(11, 14, 17, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.inst-toc a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.inst-toc a:hover {
  color: var(--accent);
  border-color: rgba(14, 203, 129, 0.35);
  background: rgba(14, 203, 129, 0.06);
}

.inst-chapters {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.inst-chapter {
  padding: 28px 28px 32px;
  background: linear-gradient(165deg, rgba(22, 28, 34, 0.95) 0%, rgba(11, 14, 17, 0.88) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.inst-chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inst-chapter-num {
  flex-shrink: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(14, 203, 129, 0.35);
  font-variant-numeric: tabular-nums;
}

.inst-chapter-head h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.inst-chapter-lead {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 720px;
}

/* Text row, then image row — keeps screenshot blocks aligned in two columns */
.inst-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto min-content;
  gap: 20px 32px;
  align-items: start;
  width: 100%;
}

.inst-pair__text--a {
  grid-column: 1;
  grid-row: 1;
}

.inst-pair__text--b {
  grid-column: 2;
  grid-row: 1;
}

.inst-pair__shot--a,
.inst-pair .inst-pair__shot--a {
  grid-column: 1;
  grid-row: 2;
}

.inst-pair__shot--b,
.inst-pair .inst-pair__shot--b {
  grid-column: 2;
  grid-row: 2;
}

/* One screenshot (right column): text row full width split, second row: spacer + figure */
.inst-pair--asym .inst-pair__spacer {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  min-height: 0;
  pointer-events: none;
}

.inst-pair--asym .inst-pair__shot--b,
.inst-pair--asym figure.inst-shot {
  grid-column: 2;
  grid-row: 2;
}

.inst-pair .inst-shot,
.inst-pair > figure.inst-shot {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
}

/* Equal-height screenshot slots (independent of text length in row 1) */
.inst-pair .inst-shot-frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  width: 100%;
  flex: 1 1 auto;
}

.inst-pair__text h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #eaecef;
}

.inst-pair__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.inst-pair__text p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.inst-pair__text p a:hover {
  text-decoration: underline;
}

.inst-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.inst-subgrid--single {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.inst-sub h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #eaecef;
}

.inst-sub p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.inst-sub p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.inst-sub p a:hover {
  text-decoration: underline;
}

.inst-shot {
  margin: 20px 0 0;
}

.inst-shot-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(14, 203, 129, 0.2);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.inst-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.inst-shot-fallback {
  display: none;
  min-height: 200px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 8px,
    rgba(255, 255, 255, 0.06) 8px,
    rgba(255, 255, 255, 0.06) 16px
  );
}

.inst-shot-fallback:not([hidden]) {
  display: flex;
}

/* Viewport: sizes phone vs in-app; images keep natural aspect */
.inst-shot-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  margin: 0;
  padding: 14px 12px 16px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(20, 26, 32, 0.98) 0%, rgba(9, 11, 14, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.inst-shot-viewport:hover {
  border-color: rgba(14, 203, 129, 0.28);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(14, 203, 129, 0.1);
  transform: translateY(-1px);
}
.page-instructions .inst-shot-viewport:focus {
  outline: 2px solid rgba(14, 203, 129, 0.55);
  outline-offset: 2px;
}
.page-instructions .inst-shot-viewport:focus:not(:focus-visible) {
  outline: none;
}
.page-instructions .inst-shot-viewport:focus-visible {
  outline: 2px solid rgba(14, 203, 129, 0.55);
  outline-offset: 2px;
}
/* Tall Telegram / phone frames — narrower column, allow full height on screen */
.inst-shot-viewport--tall {
  min-height: 240px;
  max-width: 100%;
}
.inst-shot-viewport--tall .inst-shot-frame {
  max-width: min(100%, 300px);
  width: 100%;
}
.inst-shot-viewport--tall .inst-shot__img {
  max-height: min(75vh, 720px);
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* In-app screens (typical full-width phone mock) */
.inst-shot-viewport--app {
  min-height: 220px;
}
.inst-shot-viewport--app .inst-shot-frame {
  max-width: min(100%, 360px);
  width: 100%;
  margin: 0 auto;
}
.inst-shot-viewport--app .inst-shot__img {
  max-height: min(70vh, 640px);
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Single-column chapter (withdraw / referrals) */
.inst-sub .inst-shot-viewport--single .inst-shot-frame {
  max-width: min(100%, 400px);
}
.inst-sub .inst-shot-viewport--single .inst-shot__img {
  max-height: min(72vh, 680px);
}
.inst-shot-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(11, 14, 17, 0.95);
  background: rgba(14, 203, 129, 0.88);
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .inst-shot-viewport:hover .inst-shot-zoom-hint {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .inst-shot-zoom-hint {
    opacity: 0.95;
    transform: translateY(0);
  }
}
.inst-figcaption {
  display: block;
  margin-top: 14px;
  padding: 0 2px 0 0;
  text-align: left;
}
.inst-figcaption__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #eaecef;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.inst-figcaption__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
/* Lightbox (instructions page) */
.inst-lightbox[hidden] {
  display: none !important;
}
.inst-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
  pointer-events: auto;
}
.inst-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}
.inst-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 96vw;
  max-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
}
.inst-lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0c0e;
  cursor: default;
}
.inst-lightbox__x {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: rgba(11, 14, 17, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.inst-lightbox__x:hover {
  background: rgba(246, 70, 93, 0.9);
  transform: scale(1.05);
}

.inst-sub .inst-shot {
  margin-top: 0;
}
.inst-sub .inst-figcaption {
  max-width: 100%;
}

.inst-quick {
  margin-top: 8px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(14, 203, 129, 0.35);
  background: rgba(14, 203, 129, 0.05);
}

.inst-quick-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
}

.inst-quick-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.inst-quick-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.inst-quick-list a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .inst-pair,
  .inst-pair--asym {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .inst-pair__text--a,
  .inst-pair__text--b,
  .inst-pair__shot--a,
  .inst-pair__shot--b,
  .inst-pair .inst-pair__shot--a,
  .inst-pair .inst-pair__shot--b,
  .inst-pair--asym figure.inst-shot,
  .inst-pair--asym .inst-pair__spacer {
    grid-column: 1;
    grid-row: auto;
  }

  .inst-pair--asym .inst-pair__spacer {
    display: none;
  }

  .inst-subgrid {
    grid-template-columns: 1fr;
  }

  .inst-chapter {
    padding: 22px 18px 26px;
  }

  .inst-chapter-head {
    flex-direction: column;
    gap: 8px;
  }

  .inst-toc {
    justify-content: flex-start;
  }
}

/* ── AI engine flagship (index) — single-column flow ──
   Shares the page canvas (body gradient). Only a soft mint halo hints at the section
   transition, no opaque panel / hard borders so the page reads as one continuous flow.
*/
.ai-engine {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.ai-engine::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(14, 203, 129, 0.09), transparent 60%);
  z-index: 0;
}

.ai-engine__ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(14, 203, 129, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 203, 129, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 10%, transparent 80%);
  animation: ai-engine-grid-drift 75s linear infinite;
}

@keyframes ai-engine-grid-drift {
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

.ai-engine__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ai-engine__head {
  text-align: center;
  max-width: 640px;
}

.ai-engine__tag {
  margin-bottom: 0.75rem;
}

.ai-engine__h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.ai-engine__lead {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
}

.ai-engine__band {
  width: 100%;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(22, 26, 31, 0.55) 0%, rgba(11, 14, 17, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.ai-engine__band--venues {
  padding-bottom: 1.5rem;
}

.ai-engine__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 0 0 1.1rem;
}

.ai-engine__models-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 1.5rem;
}

/* Model spec cards (yield + fee; matches in-app tier table) */
.ai-model-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0 0 1.25rem;
  list-style: none;
  padding: 0;
}

.ai-model-spec-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--animate-ease-out);
}

.ai-model-spec-card:hover {
  border-color: rgba(14, 203, 129, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), var(--mint-glow-sm);
  transform: translateY(-2px);
}

.ai-model-spec-card[data-tier="ultra"] { border-top: 2px solid rgba(212, 175, 55, 0.55); }
.ai-model-spec-card[data-tier="pro"] { border-top: 2px solid rgba(14, 203, 129, 0.4); }
.ai-model-spec-card[data-tier="basic"] { border-top: 2px solid rgba(100, 149, 237, 0.45); }
.ai-model-spec-card[data-tier="start"] { border-top: 2px solid rgba(132, 142, 156, 0.5); }

.ai-model-spec-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.ai-model-spec-card__mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ai-model-spec-card__mark .brand-logo-img {
  width: 34px;
  height: 34px;
}

.ai-model-spec-card__titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  text-align: left;
}

.ai-model-spec-card__tier {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0ecb81;
  line-height: 1.2;
}

.ai-model-spec-card__name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ai-model-spec-card__vendor {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.ai-model-spec-card__stats {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-model-spec-card__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.4rem 0 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-model-spec-card__row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.ai-model-spec-card__row dt {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}

.ai-model-spec-card__row dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  color: #eaf3ef;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ai-model-spec-card__fee {
  color: #0ecb81;
  font-size: 1.05rem;
}

.ai-model-spec-card__fee span {
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-sans, inherit);
}

.ai-model-spec-card__desc {
  margin: 0.75rem 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(132, 142, 156, 0.95);
  flex-grow: 1;
}

/* Auto strip */
.ai-model-auto-strip {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin: 0.25rem 0 0;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 14px;
  background: rgba(14, 203, 129, 0.07);
  border: 1px solid rgba(14, 203, 129, 0.2);
  align-items: flex-start;
}

.ai-model-auto-strip__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.ai-model-auto-strip__body { min-width: 0; flex: 1; }
.ai-model-auto-strip__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 700px) {
  .ai-model-auto-strip__row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
  }
}

.ai-model-auto-strip__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.2rem 0;
  width: 100%;
}

@media (min-width: 700px) {
  .ai-model-auto-strip__title { width: auto; margin: 0; flex: 0 0 auto; }
  .ai-model-auto-strip__row { align-items: center; }
}

.ai-model-auto-strip__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  flex: 1;
  justify-content: flex-end;
}
.ai-model-auto-strip__stats > div { min-width: 0; }
.ai-model-auto-strip__stats dt {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.1rem 0;
}
.ai-model-auto-strip__stats dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #eaf3ef;
}

.ai-model-auto-strip__note {
  margin: 0.65rem 0 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  width: 100%;
}

.ai-engine__band .ai-engine__legal {
  margin-top: 1.1rem;
}

@media (max-width: 1024px) {
  .ai-model-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ai-model-spec-grid {
    grid-template-columns: 1fr;
  }
}

.ai-engine__venues-line {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

.ai-model-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}

.ai-model-row__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(100%, 200px);
  flex: 1 1 200px;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--animate-ease-out);
}

.ai-model-row__item:hover {
  border-color: rgba(14, 203, 129, 0.22);
  box-shadow: var(--mint-glow-sm);
  transform: translateY(-2px);
}

.ai-model-row__mark {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s var(--animate-ease-out);
}

.ai-model-row__item:hover .brand-logo-img {
  transform: scale(1.06);
}

.ai-model-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.ai-model-row__name {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.ai-model-row__vendor {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.ai-engine__ex-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 22px 28px;
  margin-top: 0.25rem;
}

.partner-tile {
  margin: 0;
  text-align: center;
  transition: transform 0.35s var(--animate-ease-out);
}

.partner-tile:hover {
  transform: translateY(-4px);
}

.partner-tile__logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.partner-tile:hover .partner-tile__logo {
  border-color: rgba(14, 203, 129, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--mint-glow-sm);
}

.partner-tile__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.partner-tile figcaption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.ai-engine__legal {
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.88;
}

@media (max-width: 600px) {
  .ai-engine__container {
    gap: 2rem;
  }

  .ai-model-row__item {
    max-width: none;
    flex: 1 1 100%;
  }

  .ai-model-row__meta {
    align-items: flex-start;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Selection ── */
::selection {
  background: rgba(14, 203, 129, 0.25);
  color: #fff;
}
