:root {
  --bg: #07070b;
  --bg-2: #0c0d14;
  --ink: #f4f5fb;
  --muted: #9aa0b5;
  --muted-2: #6b7184;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.025);
  --card-2: rgba(255, 255, 255, 0.04);
  --v1: #7c5cff;
  --v2: #b14bff;
  --c1: #3ad6ff;
  --grad: linear-gradient(110deg, #7c5cff 0%, #b14bff 45%, #3ad6ff 100%);
  --glow-v: rgba(124, 92, 255, 0.55);
  --glow-c: rgba(58, 214, 255, 0.4);
  --radius: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Unbounded', 'Manrope', sans-serif; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BACKGROUND */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(45% 40% at 12% 22%, rgba(58, 214, 255, 0.12), transparent 60%),
    radial-gradient(50% 45% at 60% 92%, rgba(177, 75, 255, 0.14), transparent 60%),
    var(--bg);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 40px);
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 8, 13, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 700; color: #fff;
  background: var(--grad); box-shadow: 0 6px 24px var(--glow-v);
}
.brand-mark.sm { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.brand-name { font-family: 'Unbounded', sans-serif; font-size: 18px; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 14px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer;
  padding: 13px 24px; border-radius: 13px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  background: var(--grad); color: #fff; background-size: 160% 160%;
  box-shadow: 0 10px 34px -8px var(--glow-v), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -8px var(--glow-v); background-position: 100% 0; }
.btn-line { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-line:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); padding: 10px 18px; border-radius: 11px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn.full { width: 100%; }

/* HERO */
.hero { position: relative; padding: 150px clamp(18px, 4vw, 40px) 90px; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--card);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ad6ff; box-shadow: 0 0 12px #3ad6ff; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: clamp(38px, 5.4vw, 70px); margin: 24px 0 22px; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin: 34px 0 38px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 22px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item b { font-family: 'Unbounded', sans-serif; font-size: 22px; }
.trust-item span { font-size: 13px; color: var(--muted-2); }
.trust-sep { width: 1px; height: 34px; background: var(--line-2); }

/* CALCULATOR */
.calc {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.calc-glow {
  position: absolute; inset: -1px; border-radius: var(--radius); z-index: -1; padding: 1px;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.6), transparent 40%, rgba(58, 214, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.calc-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #3ad6ff; background: rgba(58, 214, 255, 0.1); padding: 5px 11px; border-radius: 8px;
}
.calc-head h3 { font-size: 22px; margin-top: 14px; }
.calc-label { display: block; font-size: 13.5px; color: var(--muted); margin: 22px 0 9px; }
.calc-input-wrap { position: relative; }
.calc-input-wrap input {
  width: 100%; font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 600; color: var(--ink);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); border-radius: 13px;
  padding: 15px 48px 15px 18px; outline: none; transition: border-color 0.2s;
}
.calc-input-wrap input:focus { border-color: var(--v1); }
.calc-cur { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 20px; }
.calc-slider { width: 100%; margin: 18px 0 4px; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); outline: none; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); cursor: pointer; box-shadow: 0 4px 14px var(--glow-v); border: 2px solid #fff; }
.calc-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #b14bff; cursor: pointer; border: 2px solid #fff; }
.calc-result { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 14.5px; color: var(--muted); }
.calc-row .muted { color: var(--muted-2); font-weight: 500; }
.calc-row .loss { font-family: 'Unbounded', sans-serif; font-size: 16px; color: #ff7a8a; white-space: nowrap; }
.calc-row.big { font-size: 15px; color: var(--ink); }
.calc-row.big .loss-year { font-family: 'Unbounded', sans-serif; font-size: 26px; color: #ff5d72; white-space: nowrap; }
.calc-foot { font-size: 13px; color: var(--muted-2); margin-top: 6px; }

/* SCROLL HINT */
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 4px; background: var(--muted); animation: scrolly 1.6s infinite; }
@keyframes scrolly { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } 100% { opacity: 0; } }

/* SECTIONS */
section { position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v2); }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); margin: 16px 0 0; }
.section-lead { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* STATS */
.stats { max-width: var(--maxw); margin: 0 auto; padding: 90px clamp(18px, 4vw, 40px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 30px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s; }
.stat:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); }
.stat-num { font-family: 'Unbounded', sans-serif; font-size: clamp(34px, 4vw, 46px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* HOW */
.how { max-width: var(--maxw); margin: 0 auto; padding: 70px clamp(18px, 4vw, 40px); }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.step { padding: 34px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s; }
.step:hover { transform: translateY(-5px); border-color: var(--line-2); }
.step-no { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 700; color: var(--v2); letter-spacing: 0.1em; }
.step h3 { font-size: 21px; margin: 16px 0 12px; }
.step p { color: var(--muted); font-size: 15px; }
.step-line { align-self: center; width: 46px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); margin: 0 4px; }

/* AI */
.ai { max-width: var(--maxw); margin: 0 auto; padding: 90px clamp(18px, 4vw, 40px); }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ai-card { position: relative; padding: 30px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s; overflow: hidden; }
.ai-card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--card-2); }
.ai-card.feat { background: linear-gradient(165deg, rgba(124, 92, 255, 0.16), rgba(58, 214, 255, 0.05)); border-color: rgba(124, 92, 255, 0.35); }
.ai-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); margin-bottom: 18px; }
.ai-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.ai-card p { color: var(--muted); font-size: 14.5px; }
.ai-card .tag { display: inline-block; margin-top: 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: var(--grad); padding: 4px 10px; border-radius: 7px; }

/* COMPARE */
.compare { max-width: 1000px; margin: 0 auto; padding: 70px clamp(18px, 4vw, 40px); }
.cmp { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.cmp-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: center; }
.cmp-row > div { padding: 17px 20px; font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.cmp-row:last-child > div { border-bottom: none; }
.cmp-head > div { color: var(--ink); font-weight: 700; font-family: 'Unbounded', sans-serif; font-size: 14px; background: rgba(255, 255, 255, 0.02); }
.cmp-col { display: flex; flex-direction: column; gap: 2px; }
.cmp-col small { font-weight: 400; font-family: 'Manrope'; color: var(--muted-2); font-size: 12px; }
.cmp-k { color: var(--ink) !important; font-weight: 600; }
.cmp-us, .cmp-col.cmp-us { color: var(--ink) !important; font-weight: 600; background: rgba(124, 92, 255, 0.08); }
.cmp-row .cmp-us { box-shadow: inset 2px 0 0 var(--v1); }

/* PRICING */
.pricing { max-width: var(--maxw); margin: 0 auto; padding: 90px clamp(18px, 4vw, 40px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 34px 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), border-color 0.3s; }
.plan:hover { transform: translateY(-5px); border-color: var(--line-2); }
.plan-pop { background: linear-gradient(180deg, rgba(124, 92, 255, 0.14), rgba(255, 255, 255, 0.02)); border-color: rgba(124, 92, 255, 0.4); box-shadow: 0 30px 70px -30px var(--glow-v); }
.plan-badge { position: absolute; top: 20px; right: 22px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--grad); padding: 5px 12px; border-radius: 8px; }
.plan h3 { font-size: 22px; }
.price { font-family: 'Unbounded', sans-serif; font-size: 34px; font-weight: 700; margin: 16px 0 4px; }
.price span { font-size: 15px; color: var(--muted-2); font-family: 'Manrope'; font-weight: 500; }
.price small { font-size: 16px; color: var(--muted-2); font-family: 'Manrope'; }
.plan-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.plan ul { list-style: none; margin-bottom: 26px; flex-grow: 1; }
.plan li { position: relative; padding: 9px 0 9px 28px; font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: none; }
.plan li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* CTA */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 70px clamp(18px, 4vw, 40px) 100px; }
.cta-card { position: relative; text-align: center; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px); border-radius: 30px; overflow: hidden; background: linear-gradient(165deg, rgba(124, 92, 255, 0.12), rgba(58, 214, 255, 0.05)); border: 1px solid var(--line-2); }
.cta-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, var(--glow-v), transparent 65%); top: -240px; left: 50%; transform: translateX(-50%); filter: blur(40px); opacity: 0.6; pointer-events: none; }
.cta-card h2 { font-size: clamp(28px, 4vw, 48px); position: relative; }
.cta-card > p { color: var(--muted); font-size: 17px; margin: 16px auto 30px; max-width: 480px; position: relative; }
.cta-form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; position: relative; }
.cta-form input { flex: 1; padding: 15px 20px; border-radius: 13px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); color: var(--ink); font-family: inherit; font-size: 15px; outline: none; transition: border-color 0.2s; }
.cta-form input:focus { border-color: var(--v1); }
.cta-fine { font-size: 13px; color: var(--muted-2); margin-top: 16px; position: relative; }

/* FOOTER */
.footer { text-align: center; padding: 50px 20px; border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 17px; }
.footer p { color: var(--muted); margin: 12px 0 18px; font-size: 15px; }
.footer small { color: var(--muted-2); font-size: 13px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid, .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step-line { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .stat-grid, .ai-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row > div { border-bottom: 1px solid var(--line); }
  .cmp-head { display: none; }
  .cmp-row > div::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted-2); text-transform: uppercase; }
  .cta-form { flex-direction: column; }
  .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
