:root {
  --black: #0a0a0a;
  --black-2: #121212;
  --black-3: #191919;
  --border: #1e2e24;
  --gold: #39ff88;
  --gold-soft: #b6ffce;
  --text: #ededed;
  --text-dim: #a8a8a8;
  --success: #4caf6f;
  --danger: #e05a5a;
  --white-soft: #f7f5f0;
  --ai-violet: #00d4ff;
  --ai-blue: #00e5a8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 50px -12px rgba(57, 255, 136, 0.35);
  --max-width: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, transparent, rgba(10, 10, 10, 0.55) 70%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(10, 10, 10, 0.7), transparent 40%);
}

body > *:not(#matrix-rain) { position: relative; z-index: 2; }

.scroll-3d { perspective: 1400px; }

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(57, 255, 136, 0.1);
  border: 1px solid rgba(57, 255, 136, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 14px; font-weight: 650; }
.section-head p { color: var(--text-dim); font-size: 17px; line-height: 1.6; margin: 0; }

.text-gradient {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 45%, var(--ai-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-weight: 650;
  font-size: 15px;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #6dffa8 100%);
  color: #04140a;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.06); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

:is(.btn-primary, .btn-secondary, a, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 14.5px; color: var(--text-dim); }
.nav-login:hover { color: var(--text); }
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-size: 15px;
  color: rgba(168, 168, 168, 0.35);
  transition: color 0.2s, background 0.2s;
}
.nav-icon-link:hover { color: var(--gold-soft); background: rgba(57, 255, 136, 0.08); }
.nav-actions .btn-primary { padding: 10px 22px; font-size: 14px; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 40px; height: 40px; color: var(--text); cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 25% 20%, rgba(57, 255, 136, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(0, 212, 255, 0.1), transparent 60%);
  pointer-events: none;
  will-change: transform;
}
#hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 22px;
}
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--text-dim); max-width: 500px; margin: 0 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.trust-row { display: flex; gap: 10px; align-items: center; color: var(--text-dim); font-size: 13.5px; flex-wrap: wrap; }
.trust-row span:not(:last-child)::after { content: ""; }

.hero-visual {
  position: relative;
  height: 560px;
  perspective: 1400px;
}
.flow-card {
  position: absolute;
  left: 50%;
  width: 260px;
  padding: 16px 18px;
  background: rgba(25, 25, 25, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 560;
  will-change: transform;
  transition: box-shadow 0.3s;
}
.flow-card .icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.flow-card:nth-child(1) { top: 0%; margin-left: -230px; }
.flow-card:nth-child(2) { top: 12%; margin-left: -40px; }
.flow-card:nth-child(3) { top: 26%; margin-left: -260px; }
.flow-card:nth-child(4) { top: 40%; margin-left: -20px; }
.flow-card:nth-child(5) { top: 54%; margin-left: -250px; }
.flow-card:nth-child(6) { top: 68%; margin-left: -30px; }
.flow-card:nth-child(7) { top: 82%; margin-left: -220px; }

.flow-card:nth-child(1) .icon { background: rgba(57,255,136,0.15); color: var(--gold-soft); }
.flow-card:nth-child(2) .icon { background: rgba(224,90,90,0.15); color: var(--danger); }
.flow-card:nth-child(3) .icon,
.flow-card:nth-child(4) .icon { background: rgba(0,212,255,0.15); color: var(--ai-violet); }
.flow-card:nth-child(5) .icon,
.flow-card:nth-child(6) .icon,
.flow-card:nth-child(7) .icon { background: rgba(76,175,111,0.15); color: var(--success); }

/* ---------- Problem ---------- */

.problem { padding: 100px 0 60px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.problem-stat {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.stat-number {
  font-size: 42px;
  font-weight: 750;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.problem-stat p { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 0; }
.problem-stat p strong { color: var(--text); }
.problem-note { text-align: center; color: var(--text-dim); font-size: 12px; margin: 22px 0 0; opacity: 0.75; }

/* ---------- Story ---------- */

.story { padding: 120px 0; position: relative; }
.story-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.story-step {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.story-step.in-view { opacity: 1; transform: translateY(0); }
.step-num {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(57,255,136,0.12); border: 1px solid rgba(57,255,136,0.3);
  color: var(--gold-soft); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.story-step.tilt-ready .step-num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(57, 255, 136, 0.5);
  animation: step-ping 2.2s var(--ease) infinite;
}
@keyframes step-ping {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}
.story-step h3 { font-size: 16px; margin: 0 0 8px; font-weight: 620; }
.story-step p { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.55; }

/* ---------- Cinematic flow ---------- */

.cinema { position: relative; height: 600vh; }
.cinema-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, #0d1410, var(--black) 70%);
}
#cinema-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cinema-haze {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(57, 255, 136, 0.08), transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.65), transparent 50%);
}
.cinema-intro {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 3; max-width: 560px; padding: 0 20px;
}
.cinema-intro .eyebrow { margin-bottom: 10px; }
.cinema-intro h2 { font-size: clamp(22px, 3vw, 32px); margin: 0; font-weight: 650; }

.cinema-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cinema-card {
  position: absolute;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.cinema-phone {
  left: 18%; top: 46%;
  width: clamp(210px, 22vw, 260px);
  background: linear-gradient(160deg, var(--black-2), var(--black-3));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 0 60px -10px rgba(57, 255, 136, 0.25), var(--shadow-soft);
}
.phone-status { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; transition: color 0.4s; }
.phone-caller { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.phone-number { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.phone-ring { display: flex; justify-content: center; gap: 6px; height: 14px; }
.phone-ring span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: ring-bounce 1s ease-in-out infinite; }
.phone-ring span:nth-child(2) { animation-delay: 0.15s; }
.phone-ring span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ring-bounce { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-6px); opacity: 1; } }
.phone-missed {
  display: none; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--danger); border: 1px solid rgba(224, 90, 90, 0.4); background: rgba(224, 90, 90, 0.1);
  border-radius: 100px; padding: 6px 14px;
}
.cinema-phone.is-missed .phone-ring { display: none; }
.cinema-phone.is-missed .phone-missed { display: inline-block; }
.cinema-phone.is-missed .phone-status { color: var(--danger); }

.cinema-ai { left: 50%; top: 40%; text-align: center; width: 200px; }
.ai-orb {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 16px;
  background: radial-gradient(circle at 35% 30%, rgba(57, 255, 136, 0.9), rgba(0, 229, 168, 0.25) 55%, transparent 75%);
  box-shadow: 0 0 60px 10px rgba(57, 255, 136, 0.3), 0 0 140px 30px rgba(0, 212, 255, 0.12);
  animation: ai-pulse 2.6s ease-in-out infinite;
}
.cinema-ai.is-active .ai-orb { animation: ai-pulse-active 1s ease-in-out infinite; }
@keyframes ai-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ai-pulse-active { 0%, 100% { transform: scale(1.02); } 50% { transform: scale(1.18); } }
.ai-label { font-size: 13.5px; color: var(--gold-soft); font-weight: 600; }

.cinema-sms, .cinema-reply {
  width: clamp(220px, 24vw, 280px);
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.cinema-sms { left: 78%; top: 28%; }
.cinema-reply { left: 78%; top: 60%; }
.bubble-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 8px; }
.bubble { padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.bubble-out { background: linear-gradient(135deg, rgba(57, 255, 136, 0.18), rgba(0, 229, 168, 0.1)); border: 1px solid rgba(57, 255, 136, 0.3); }
.bubble-in { background: var(--black-3); border: 1px solid var(--border); }

.cinema-lead {
  left: 50%; top: 68%;
  width: clamp(240px, 26vw, 300px);
  background: linear-gradient(160deg, var(--black-2), var(--black-3));
  border: 1px solid rgba(57, 255, 136, 0.35);
  border-radius: var(--radius);
  padding: 20px 20px;
  box-shadow: 0 0 50px -14px rgba(57, 255, 136, 0.3), var(--shadow-soft);
}
.lead-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-soft); font-weight: 700; margin-bottom: 12px; }
.lead-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.lead-row:last-child { border-bottom: none; }
.lead-row strong { color: var(--text); font-weight: 620; }
.lead-hot { color: var(--danger) !important; }

.cinema-dashboard {
  left: 50%; top: 50%;
  width: clamp(280px, 30vw, 380px);
  background: linear-gradient(160deg, var(--black-2), var(--black-3));
  border: 1px solid rgba(57, 255, 136, 0.35);
  border-radius: 20px;
  padding: 22px 22px;
  box-shadow: 0 0 90px -12px rgba(57, 255, 136, 0.4), var(--shadow-soft);
}
.dash-header { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; margin-bottom: 14px; color: var(--text-dim); }
.dash-header .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.dash-new-lead { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: #04140a; background: var(--gold); border-radius: 100px; padding: 4px 12px; margin-bottom: 12px; }
.dash-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--text-dim); }
.dash-row strong { color: var(--text); font-weight: 620; }
.dash-revenue { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.dash-revenue span { color: var(--gold-soft); font-weight: 750; font-size: 16px; }

.cinema-progress {
  position: absolute; left: 60px; right: 60px; bottom: 28px; height: 3px; z-index: 3;
  background: rgba(255, 255, 255, 0.08); border-radius: 100px; overflow: hidden;
}
.cinema-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--ai-blue)); border-radius: 100px; }
.cinema-replay {
  position: absolute; top: 24px; right: 28px; z-index: 3;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 12.5px; padding: 8px 16px; border-radius: 100px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s;
}
.cinema-replay:hover { color: var(--text); border-color: var(--gold); }

.cinema-fallback { display: none; padding: 100px 0; }
.fallback-step { max-width: 560px; margin: 0 auto 32px; padding: 20px 24px; background: var(--black-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.fallback-step strong { display: block; margin-bottom: 6px; color: var(--gold-soft); font-size: 14px; }
.fallback-step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

@media (max-width: 900px) {
  .cinema { height: 460vh; }
  .cinema-phone, .cinema-ai, .cinema-sms, .cinema-reply, .cinema-lead, .cinema-dashboard {
    left: 50% !important; top: 50% !important;
  }
  .cinema-intro { top: 40px; }
  .cinema-progress { left: 24px; right: 24px; }
  .cinema-replay { top: auto; bottom: 44px; right: 50%; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cinema { height: auto; }
  .cinema-sticky { display: none; }
  .cinema-fallback { display: block; }
}

/* ---------- Demo ---------- */

.demo { padding: 120px 0; perspective: 1400px; }
.demo-window {
  max-width: 480px;
  margin: 0 auto;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: perspective(1000px) rotateX(-12deg) translateY(30px) scale(0.96);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.demo-window.in-view { opacity: 1; transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1); }
.demo-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 620;
  display: flex; align-items: center; gap: 10px;
}
.demo-header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.demo-chat { padding: 22px 20px; min-height: 320px; display: flex; flex-direction: column; gap: 12px; }
.demo-msg {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.demo-msg.show { opacity: 1; transform: translateY(0); }
.demo-msg.customer { align-self: flex-end; background: var(--black-3); border: 1px solid var(--border); border-bottom-right-radius: 4px; }
.demo-msg.ai {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(0,212,255,0.16), rgba(0,229,168,0.1));
  border: 1px solid rgba(0,212,255,0.3);
  border-bottom-left-radius: 4px;
}
.demo-checklist {
  align-self: flex-start;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px; color: var(--text-dim);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.demo-checklist.show { opacity: 1; }
.demo-checklist .check-item { display: flex; align-items: center; gap: 8px; }
.demo-checklist .check-item .mark { color: var(--success); font-weight: 700; }
.demo-status {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
  min-height: 46px;
}
.demo-status .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- Features ---------- */

.features { padding: 120px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature-card.in-view { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: rgba(57,255,136,0.35); box-shadow: var(--shadow-soft); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(57,255,136,0.1); border: 1px solid rgba(57,255,136,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
}
.feature-card h3 { font-size: 15px; margin: 0 0 6px; font-weight: 620; }
.feature-card p { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* ---------- Dashboard preview ---------- */

.dash-preview { padding: 100px 0; perspective: 1400px; }
.dash-mock {
  max-width: 760px; margin: 0 auto;
  background: linear-gradient(160deg, var(--black-2), var(--black-3));
  border: 1px solid rgba(57, 255, 136, 0.25);
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 0 70px -20px rgba(57, 255, 136, 0.25), var(--shadow-soft);
}
.dash-mock.reveal { transform: perspective(1000px) rotateX(-9deg) translateY(30px) scale(0.97); }
.dash-mock.reveal.in-view { transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1); }
.dash-mock-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text-dim); margin-bottom: 20px; }
.dash-mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.dash-mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.dash-mock-stat {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px;
  opacity: 0; transform: translateY(10px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.dash-mock.in-view .dash-mock-stat { opacity: 1; transform: translateY(0) scale(1); }
.dash-mock.in-view .dash-mock-stat:nth-child(1) { transition-delay: 0.05s; }
.dash-mock.in-view .dash-mock-stat:nth-child(2) { transition-delay: 0.12s; }
.dash-mock.in-view .dash-mock-stat:nth-child(3) { transition-delay: 0.19s; }
.dash-mock.in-view .dash-mock-stat:nth-child(4) { transition-delay: 0.26s; }
.dash-mock.in-view .dash-mock-stat:nth-child(5) { transition-delay: 0.33s; }
.dash-mock.in-view .dash-mock-stat:nth-child(6) { transition-delay: 0.40s; }
.dash-mock.in-view .dash-mock-stat:nth-child(7) { transition-delay: 0.47s; }
.dash-mock.in-view .dash-mock-stat:nth-child(8) { transition-delay: 0.54s; }
.dash-mock-stat .v { font-size: 20px; font-weight: 750; color: var(--text); }
.dash-mock-stat .v.gold { color: var(--gold-soft); }
.dash-mock-stat .v.good { color: var(--success); font-size: 16px; }
.dash-mock-stat .l { font-size: 11px; color: var(--text-dim); margin-top: 4px; line-height: 1.3; }
.dash-mock-activity { border-top: 1px solid var(--border); padding-top: 16px; }
.dash-mock-activity-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 10px; }
.dash-mock-row {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); padding: 6px 0;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.dash-mock.in-view .dash-mock-row { opacity: 1; transform: translateX(0); }
.dash-mock.in-view .dash-mock-row:nth-child(2) { transition-delay: 0.65s; }
.dash-mock.in-view .dash-mock-row:nth-child(3) { transition-delay: 0.75s; }
.dash-mock.in-view .dash-mock-row:nth-child(4) { transition-delay: 0.85s; }
.dash-mock-row .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dash-mock-row .dot.success { background: var(--success); }
.dash-mock-row .dot.gold { background: var(--gold); }
.dash-mock-row .dot.info { background: var(--ai-blue); }

/* ---------- Trust ---------- */

.trust { padding: 90px 0; position: relative; perspective: 1400px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--black-2);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.trust-item.in-view { opacity: 1; transform: translateY(0); }
.trust-item .mark { color: var(--success); font-size: 16px; flex-shrink: 0; }
.trust-item span:last-child { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

/* ---------- Pricing ---------- */

.pricing { padding: 120px 0; position: relative; perspective: 1400px; }
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--black-2), var(--black-3));
  border: 1px solid rgba(57,255,136,0.3);
  border-radius: 24px;
  padding: 42px 38px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.pricing-card.reveal { transform: perspective(1000px) rotateX(-9deg) translateY(30px) scale(0.97); }
.pricing-card.reveal.in-view { transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1); }
.price-big { font-size: 56px; font-weight: 750; color: var(--gold-soft); line-height: 1; }
.price-big span { font-size: 18px; color: var(--text-dim); font-weight: 500; }
.pricing-card > p { color: var(--text-dim); margin: 10px 0 26px; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; display: flex; flex-direction: column; gap: 11px; }
.pricing-list li { display: flex; justify-content: space-between; font-size: 14.5px; padding-bottom: 11px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.pricing-list li span { color: var(--text); font-weight: 620; }
.pricing-note { font-size: 12.5px; color: var(--text-dim); margin: 20px 0 26px; line-height: 1.6; }
.pricing-features { display: flex; flex-direction: column; gap: 9px; text-align: left; margin: 0 0 22px; }
.pricing-features div { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-dim); }
.pricing-features .mark { color: var(--success); font-size: 14px; }

/* ---------- FAQ ---------- */

.faq { padding: 100px 0; }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--black-2); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: var(--text); font-size: 15px; font-weight: 560;
  padding: 18px 20px; cursor: pointer; text-align: left; font-family: inherit;
}
.faq-icon { color: var(--gold); font-size: 18px; font-weight: 400; transition: transform 0.25s var(--ease); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { margin: 0 20px 18px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* ---------- Final CTA ---------- */

.final-cta { padding: 130px 0; text-align: center; }
.final-cta h2 { font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 16px; font-weight: 680; }
.final-cta p { color: var(--text-dim); font-size: 17px; max-width: 520px; margin: 0 auto 34px; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 50px 0 34px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.footer-brand span { color: var(--gold); }
.footer p { color: var(--text-dim); font-size: 13.5px; max-width: 320px; margin: 0; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }

/* ---------- 3D tilt cards (shared: story, feature, trust, demo, dashboard, pricing) ---------- */

.tilt-card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(57, 255, 136, 0.45), transparent 68%);
  transition: opacity 0.3s var(--ease);
}
.tilt-card.tilt-hovered::before { opacity: 1; }
.tilt-card.tilt-hovered {
  border-color: rgba(57, 255, 136, 0.7);
  box-shadow: 0 34px 90px -18px rgba(57, 255, 136, 0.55), var(--shadow-soft);
}

/* ---------- Scene camera (section-level dolly, see initSceneCamera) ---------- */

.story, .demo, .features, .dash-preview, .trust, .pricing {
  position: relative;
}
.story > .wrap, .demo > .wrap, .features > .wrap, .dash-preview > .wrap, .trust > .wrap, .pricing > .wrap {
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}
.story::before, .demo::before, .features::before, .dash-preview::before, .trust::before, .pricing::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 50% 35%, rgba(57, 255, 136, 0.1), transparent 62%);
}
.tilt-card.tilt-ready {
  transition: opacity 0.7s var(--ease), transform 0.15s linear, border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* ---------- Section network canvases (security, pricing) ---------- */

.section-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

/* ---------- Reveal utility ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; margin-top: 20px; }
  .flow-card { width: 220px; font-size: 13px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .dash-mock-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; padding: 14px 20px;
    background: rgba(10, 10, 10, 0.95); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 120px 0 70px; }
  .hero-visual { height: 340px; }
  .flow-card { width: 180px; padding: 12px 14px; font-size: 12.5px; }
  .flow-card .icon { width: 28px; height: 28px; font-size: 14px; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .dash-mock-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-mock { padding: 20px 18px; }
  .nav-actions .nav-login { display: none; }
  .story-track { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 24px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .flow-card { transform: none !important; }
  .reveal, .story-step, .demo-window, .demo-msg, .demo-checklist,
  .feature-card, .trust-item, .dash-mock-stat, .dash-mock-row { opacity: 1 !important; transform: none !important; }
  .tilt-card::before { display: none; }
  .step-num::after { display: none; }
}
