:root {
    --bg: #07080b;
    --bg-2: #0b0d12;
    --surface: #0e1118;
    --surface-2: #12161f;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.16);
    --text: #f3f5f9;
    --text-mid: #aab2c0;
    --text-dim: #6b7384;
    --accent: #0066ff;
    --accent-soft: #3d8bff;
    --accent-glow: rgba(0,102,255,0.55);
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  ::selection { background: var(--accent); color: #fff; }

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

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

  h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }

  .eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before {
    content: "";
    width: 22px; height: 1px;
    background: var(--accent-soft);
    opacity: 0.6;
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s, border-color 0.3s;
    will-change: transform;
  }
  .btn svg { width: 19px; height: 19px; }
  .btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
    background: #1a74ff;
  }
  .btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-color: var(--border);
    backdrop-filter: blur(8px);
  }
  .btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.07);
  }

  /* ---------- Nav ---------- */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
  }
  nav.scrolled {
    background: rgba(7,8,11,0.72);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -0.03em;
    color: var(--text);
  }
  .brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    transition: opacity 0.25s;
  }
  .brand:hover .logo { opacity: 0.85; }
  .brand .logo .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow), inset 0 1px 1px rgba(255,255,255,0.35);
    transform: translateY(1px);
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
  }
  .nav-links .links {
    display: flex;
    gap: 32px;
  }
  .nav-links a.link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.25s;
    position: relative;
  }
  .nav-links a.link:hover { color: var(--text); }
  .nav-links .btn { padding: 11px 20px; font-size: 15px; }
  @media (max-width: 760px) {
    .nav-links .links { display: none; }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding: 184px 0 120px;
    overflow: hidden;
  }
  .mesh {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 900px;
    z-index: 0;
    pointer-events: none;
    filter: blur(8px);
  }
  .mesh i {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    animation: float 18s ease-in-out infinite;
  }
  .mesh i:nth-child(1){ width: 520px; height: 520px; left: 8%; top: -60px; background: radial-gradient(circle, rgba(0,102,255,0.55), transparent 70%); }
  .mesh i:nth-child(2){ width: 440px; height: 440px; right: 6%; top: 40px; background: radial-gradient(circle, rgba(61,139,255,0.4), transparent 70%); animation-delay: -6s; }
  .mesh i:nth-child(3){ width: 380px; height: 380px; left: 42%; top: 220px; background: radial-gradient(circle, rgba(0,72,200,0.45), transparent 70%); animation-delay: -11s; }
  @keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(40px,-30px) scale(1.08); }
    66% { transform: translate(-30px,25px) scale(0.95); }
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(120% 80% at 50% -10%, transparent 40%, var(--bg) 92%),
      linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
    pointer-events: none;
  }
  .hero .wrap { position: relative; z-index: 2; }
  .hero-inner { max-width: 860px; }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 9px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 30px;
  }
  .pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #2dd47e;
    box-shadow: 0 0 0 4px rgba(45,212,126,0.18);
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity: 0.4 } }
  .hero h1 {
    font-size: clamp(46px, 8.5vw, 92px);
    font-weight: 600;
    margin-bottom: 26px;
  }
  .hero h1 .grad {
    background: linear-gradient(110deg, #fff 20%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero .sub {
    font-size: clamp(18px, 2.4vw, 22px);
    color: var(--text-mid);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.5;
  }
  .hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  .trust {
    margin-top: 22px;
    font-size: 14.5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .trust svg { width: 16px; height: 16px; color: #2dd47e; }

  /* ---------- Section scaffolding ---------- */
  section { position: relative; }
  .section-pad { padding: 116px 0; }
  .section-head { max-width: 640px; margin-bottom: 60px; }
  .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .section-head h2 {
    font-size: clamp(34px, 5vw, 54px);
    margin: 18px 0 0;
  }
  .section-head p {
    color: var(--text-mid);
    font-size: 18px;
    margin-top: 18px;
  }

  /* ---------- Problem / stats ---------- */
  .problem { background: linear-gradient(to bottom, var(--bg), var(--bg-2)); }
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .stat {
    padding: 40px 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.4s var(--ease);
  }
  .stat::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
  }
  .stat:hover { transform: translateY(-5px); border-color: var(--border-hover); }
  .stat .num {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    margin-bottom: 16px;
  }
  .stat .num span { color: var(--accent-soft); }
  .stat .label { color: var(--text-mid); font-size: 16px; line-height: 1.5; }
  @media (max-width: 820px) { .stats { grid-template-columns: 1fr; } }

  /* ---------- Bento ---------- */
  .bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
  }
  .tile {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    transition: border-color 0.35s, transform 0.5s var(--ease), background 0.35s;
  }
  .tile:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--surface-2);
  }
  .tile .glow {
    position: absolute;
    width: 240px; height: 240px;
    right: -80px; top: -80px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
  }
  .tile:hover .glow { opacity: 0.22; }
  .tile .ico {
    width: 52px; height: 52px;
    border-radius: 13px;
    background: rgba(0,102,255,0.12);
    border: 1px solid rgba(0,102,255,0.25);
    display: grid;
    place-items: center;
    margin-bottom: auto;
    color: var(--accent-soft);
  }
  .tile .ico svg { width: 24px; height: 24px; }
  .tile h3 { font-size: 22px; margin: 26px 0 9px; }
  .tile p { color: var(--text-mid); font-size: 15.5px; line-height: 1.5; }
  .tile.wide { grid-column: span 2; }
  .tile.wide .body { max-width: 60%; }
  .tile.feature {
    background: linear-gradient(135deg, rgba(0,102,255,0.14), var(--surface) 60%);
    border-color: rgba(0,102,255,0.25);
  }
  .tile.feature .ico { background: rgba(0,102,255,0.2); }
  @media (max-width: 920px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile.wide { grid-column: span 2; }
    .tile.wide .body { max-width: 100%; }
  }
  @media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .tile.wide { grid-column: span 1; }
  }

  /* ---------- How it works ---------- */
  .how { background: linear-gradient(to bottom, var(--bg-2), var(--bg)); }
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
  }
  .steps::before {
    content: "";
    position: absolute;
    top: 34px; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover) 20%, var(--border-hover) 80%, transparent);
    z-index: 0;
  }
  .step { position: relative; z-index: 1; }
  .step .n {
    width: 68px; height: 68px;
    border-radius: 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--accent-soft);
    margin-bottom: 28px;
    position: relative;
  }
  .step .n .ring {
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    border: 1px solid rgba(0,102,255,0.4);
    opacity: 0;
  }
  .step:hover .n .ring { opacity: 1; }
  .step h3 { font-size: 23px; margin-bottom: 10px; }
  .step p { color: var(--text-mid); font-size: 16px; }
  @media (max-width: 820px) {
    .steps { grid-template-columns: 1fr; gap: 36px; }
    .steps::before { display: none; }
  }

  /* ---------- Final CTA ---------- */
  .final {
    padding: 116px 0;
  }
  .final-card {
    position: relative;
    border-radius: 28px;
    padding: 84px 48px;
    text-align: center;
    overflow: hidden;
    background:
      radial-gradient(120% 130% at 50% -20%, #1a74ff 0%, var(--accent) 38%, #0042b5 100%);
    box-shadow: 0 40px 100px -30px var(--accent-glow);
  }
  .final-card::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(60% 100% at 80% 100%, rgba(255,255,255,0.18), transparent 60%),
      radial-gradient(50% 80% at 10% 0%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
  }
  .final-card > * { position: relative; z-index: 1; }
  .final-card h2 {
    font-size: clamp(34px, 5.5vw, 60px);
    color: #fff;
    max-width: 760px;
    margin: 0 auto 18px;
  }
  .final-card p {
    color: rgba(255,255,255,0.85);
    font-size: 20px;
    margin-bottom: 40px;
  }
  .final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .final-card .btn-primary {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 14px 40px -12px rgba(0,0,0,0.5);
  }
  .final-card .btn-primary:hover { background: #fff; transform: translateY(-3px); }
  .final-card .btn-ghost {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
  }
  .final-card .btn-ghost:hover { background: rgba(255,255,255,0.22); }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 40px;
    background: var(--bg);
  }
  .foot-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border);
  }
  .foot-brand { max-width: 320px; }
  .foot-brand .brand { margin-bottom: 16px; }
  .foot-brand p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
  .foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
  .foot-col h4 {
    font-family: var(--font-body);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
  }
  .foot-col a {
    display: block;
    color: var(--text-mid);
    font-size: 15px;
    margin-bottom: 11px;
    transition: color 0.25s;
  }
  .foot-col a:hover { color: var(--text); }
  .foot-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-dim);
    font-size: 14px;
  }

  /* ---------- Reveal ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
  .reveal.d3 { transition-delay: 0.24s; }
  .reveal.d4 { transition-delay: 0.32s; }
  .reveal.d5 { transition-delay: 0.40s; }

  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .mesh i { animation: none; }
    html { scroll-behavior: auto; }
  }
