:root {
      --ink: #000;
      --ink-2: #050506;
      --silver-1: #f4f5f7;
      --silver-2: #c7cad2;
      --silver-3: #8a8d96;
      --blue: #4c8dff;
      --line: rgba(255, 255, 255, 0.08);
      --card: rgba(255, 255, 255, 0.025);
      --ease: cubic-bezier(.16, 1, .3, 1);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--ink);
      color: var(--silver-1);
      font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      line-height: 1.5;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

    .glow {
      position: fixed; top: -20%; left: 50%; transform: translateX(-50%);
      width: 900px; height: 900px;
      background: radial-gradient(circle, rgba(76, 141, 255, 0.10) 0%, transparent 60%);
      pointer-events: none; z-index: 0;
    }

    /* ---------- Nav ---------- */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 50;
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 24px; backdrop-filter: blur(10px);
      background: rgba(0, 0, 0, 0.35); border-bottom: 1px solid transparent;
      transition: border-color .3s, background .3s;
    }
    nav.scrolled { border-bottom-color: var(--line); background: rgba(0, 0, 0, 0.6); }
    .brand { font-weight: 600; letter-spacing: -.02em; font-size: 1.05rem; }
    .brand b { font-weight: 700; } .brand span { color: var(--silver-3); font-weight: 300; }
    .nav-links { display: flex; align-items: center; gap: 28px; }
    .nav-links a.link { color: var(--silver-3); font-size: .9rem; transition: color .2s; }
    .nav-links a.link:hover { color: var(--silver-1); }
    @media (max-width: 680px) { .nav-links a.link { display: none; } }

    .btn {
      cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
      color: #0b0b0d; letter-spacing: .01em;
      background: linear-gradient(#fff 0%, #d6d9e0 55%, #b7bbc4 100%);
      border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
      padding: .7rem 1.35rem; font-family: inherit; font-size: .92rem; font-weight: 600;
      transition: transform .18s var(--ease), box-shadow .18s, filter .18s;
      box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.9);
    }
    .btn svg { transition: transform .22s var(--ease); }
    .btn:hover { filter: brightness(1.05); box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 10px 40px rgba(140,170,255,.28), inset 0 1px rgba(255,255,255,.95); }
    .btn:hover svg { transform: translateX(3px); }
    .btn:active { transform: translateY(1px) scale(.99); }
    .btn.lg { padding: .95rem 1.9rem; font-size: 1rem; }

    /* ---------- Hero ---------- */
    header {
      position: relative; z-index: 1; min-height: 82vh;
      display: grid; place-items: center; text-align: center; padding: 118px 24px 56px;
    }
    .hero-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(1.1rem, 3vw, 1.75rem); }
    .wordmark {
      display: flex; align-items: baseline; gap: 0;
      letter-spacing: -.03em; line-height: .95;
      font-size: clamp(2.75rem, 11vw, 5.5rem); font-weight: 600;
      background: linear-gradient(177deg, var(--silver-1) 0%, var(--silver-2) 42%, var(--silver-3) 58%, var(--silver-1) 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .wordmark .al { font-weight: 700; letter-spacing: -.04em; }
    .wordmark .analytics { font-weight: 300; }
    .tagline {
      color: var(--blue); text-transform: uppercase; letter-spacing: .14em;
      font-weight: 500; font-size: clamp(.72rem, 2.1vw, .95rem);
      text-shadow: 0 0 24px rgba(76, 141, 255, 0.35);
    }
    .hero-sub {
      max-width: 640px; color: var(--silver-2);
      font-size: clamp(1.05rem, 2.5vw, 1.35rem); font-weight: 500;
      line-height: 1.65; letter-spacing: -.01em;
    }
    .hero-sub span { display: block; }
    .hero-sub .kick {
      margin-top: .55em; font-weight: 600;
      background: linear-gradient(177deg, #dfe6ff 0%, var(--blue) 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .fine-print { color: var(--silver-3); font-size: .95rem; letter-spacing: .02em; }
    .fine-print .dot { color: var(--blue); }

    /* ---------- Reveal ---------- */
    .rise { opacity: 0; transform: translateY(16px); animation: rise .95s var(--ease) forwards; }
    .d1 { animation-delay: .30s; } .d2 { animation-delay: .55s; }
    .d3 { animation-delay: .80s; } .d4 { animation-delay: 1.0s; } .d5 { animation-delay: 1.2s; }
    @keyframes rise { to { opacity: 1; transform: translateY(0); } }
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
    .reveal.in { opacity: 1; transform: translateY(0); }

    /* ---------- Sections ---------- */
    section { position: relative; z-index: 1; padding: clamp(72px, 12vw, 130px) 0; }
    .eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 500; margin-bottom: 18px; }
    .section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
    .section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 16px; }
    .section-head p { color: var(--silver-3); font-size: 1.08rem; max-width: 560px; margin: 0 auto; }
    .divider { height: 1px; background: var(--line); }

    /* ---------- Premise band ---------- */
    .premise { text-align: center; }
    .premise .big {
      font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 500; letter-spacing: -.02em;
      line-height: 1.35; max-width: 820px; margin: 0 auto; color: var(--silver-2);
    }
    .premise .big em { font-style: normal; color: var(--silver-1); }
    .premise .big b {
      font-weight: 600;
      background: linear-gradient(177deg, #dfe6ff 0%, var(--blue) 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }

    /* ---------- Trio ---------- */
    .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    @media (max-width: 780px) { .trio { grid-template-columns: 1fr; } }
    .tcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; transition: border-color .3s, background .3s; }
    .tcard:hover { border-color: rgba(76,141,255,.3); background: rgba(76,141,255,.035); }
    .tcard .k { color: var(--blue); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
    .tcard h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
    .tcard p { color: var(--silver-3); font-size: .97rem; line-height: 1.6; }

    /* ---------- AI Assistant demo ---------- */
    .assistant-wrap { max-width: 720px; margin: 0 auto; }
    .aw {
      border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
      background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
      box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(76,141,255,.06);
    }
    .aw-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.3); }
    .aw-dots { display: flex; gap: 6px; }
    .aw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2b30; }
    .aw-title { font-size: .85rem; font-weight: 600; color: var(--silver-2); margin-left: 4px; display: flex; align-items: center; gap: 8px; }
    .aw-title .spark { color: var(--blue); }
    .aw-fresh { margin-left: auto; font-size: .72rem; color: var(--silver-3); display: inline-flex; align-items: center; gap: 6px; }
    .aw-fresh .live { width: 7px; height: 7px; border-radius: 50%; background: #37d67a; box-shadow: 0 0 8px #37d67a; animation: pulse 2s infinite; }
    @keyframes pulse { 50% { opacity: .35; } }

    .aw-body { padding: 22px 20px; min-height: 300px; display: flex; flex-direction: column; gap: 14px; }
    .bubble { max-width: 86%; padding: 13px 16px; border-radius: 16px; font-size: .95rem; line-height: 1.6; white-space: pre-wrap; }
    .bubble.user { align-self: flex-end; background: linear-gradient(#fff, #dfe2e8); color: #0b0b0d; font-weight: 500; border-bottom-right-radius: 5px; }
    .bubble.bot { align-self: flex-start; background: rgba(255,255,255,.045); border: 1px solid var(--line); color: var(--silver-1); border-bottom-left-radius: 5px; }
    .bubble.bot .hl { color: var(--blue); font-weight: 600; }
    .bubble.bot .play { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--silver-2); }
    .bubble.bot .play b { color: var(--blue); font-weight: 600; }
    .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--blue); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
    @keyframes blink { 50% { opacity: 0; } }
    .thinking { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; }
    .thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--silver-3); animation: bob 1.2s infinite; }
    .thinking i:nth-child(2){ animation-delay: .15s; } .thinking i:nth-child(3){ animation-delay: .3s; }
    @keyframes bob { 0%,60%,100%{ transform: translateY(0); opacity:.4;} 30%{ transform: translateY(-5px); opacity:1;} }

    .aw-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); }
    .aw-field { flex: 1; min-height: 22px; color: var(--silver-2); font-size: .95rem; }
    .aw-field .ph { color: var(--silver-3); }
    .aw-send { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); flex-shrink: 0; }
    .aw-send svg { width: 16px; height: 16px; stroke: #fff; }

    /* ---------- Churn predictor spotlight ---------- */
    .churn { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
    @media (max-width: 840px) { .churn { grid-template-columns: 1fr; gap: 36px; } }
    .tag-new { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); border: 1px solid rgba(76,141,255,.4); background: rgba(76,141,255,.08); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
    .tag-new .d { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
    .churn h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 18px; }
    .churn > div > p { color: var(--silver-3); font-size: 1.05rem; line-height: 1.65; margin-bottom: 16px; }
    .churn .hl { color: var(--silver-1); font-weight: 500; }

    .decay { border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; background: var(--card); }
    .decay .who { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
    .decay .who .name { font-weight: 600; }
    .decay .who .name small { display: block; color: var(--silver-3); font-weight: 400; font-size: .82rem; margin-top: 2px; }
    .decay .who .risk { text-align: right; font-size: .8rem; color: var(--silver-3); }
    .decay .who .risk b { display: block; color: var(--blue); font-size: 1.05rem; font-weight: 700; }
    .bars { display: flex; align-items: flex-end; gap: 10px; height: 118px; margin-bottom: 10px; }
    .bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
    .bars .bar { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #3a3c42, #26272b); transition: height 1s var(--ease); }
    .bars .col.hot .bar { background: linear-gradient(180deg, #7fb0ff, var(--blue)); box-shadow: 0 0 18px rgba(76,141,255,.4); }
    .bars .col small { color: var(--silver-3); font-size: .72rem; }
    .decay .flagrow { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; }
    .decay .flagrow.old { color: var(--silver-3); }
    .decay .flagrow.newf { color: var(--silver-1); }
    .decay .flagrow .pill { font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
    .decay .flagrow.old .pill { color: var(--silver-3); border: 1px solid var(--line); }
    .decay .flagrow.newf .pill { color: var(--blue); background: rgba(76,141,255,.12); border: 1px solid rgba(76,141,255,.35); }

    /* ---------- Feature grid ---------- */
    .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    @media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
    .feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; transition: transform .3s var(--ease), border-color .3s, background .3s; }
    .feature:hover { transform: translateY(-4px); border-color: rgba(76,141,255,.35); background: rgba(76,141,255,.04); }
    .feature .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(76,141,255,.12); border: 1px solid rgba(76,141,255,.25); margin-bottom: 18px; }
    .feature .ic svg { width: 20px; height: 20px; stroke: var(--blue); }
    .feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
    .feature p { color: var(--silver-3); font-size: .92rem; line-height: 1.6; }

    /* ---------- Diff row ---------- */
    .diff { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    @media (max-width: 780px) { .diff { grid-template-columns: 1fr 1fr; } }
    .dcell { text-align: center; padding: 8px; }
    .dcell .n { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; background: linear-gradient(177deg, var(--silver-1), var(--silver-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .dcell .l { color: var(--silver-3); font-size: .9rem; margin-top: 6px; }

    /* ---------- CTA ---------- */
    .cta { text-align: center; }
    .cta-card {
      position: relative; border: 1px solid var(--line); border-radius: 24px;
      padding: clamp(48px, 8vw, 80px) 32px; overflow: hidden;
      background: radial-gradient(circle at 50% 0%, rgba(76,141,255,.12) 0%, transparent 55%), var(--ink-2);
    }
    .cta-card h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 18px; }
    .cta-card h2 .grad { background: linear-gradient(177deg, var(--silver-1) 0%, var(--silver-2) 50%, var(--silver-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .cta-card p { color: var(--silver-2); font-size: 1.1rem; max-width: 500px; margin: 0 auto 34px; }

    /* ---------- Demo modal ---------- */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 100; display: none;
      align-items: center; justify-content: center; padding: 24px;
      background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px);
      opacity: 0; transition: opacity .28s var(--ease);
    }
    .modal-overlay.open { display: flex; opacity: 1; }
    .modal {
      position: relative; width: 100%; max-width: 440px;
      background: radial-gradient(circle at 50% -10%, rgba(76,141,255,.12) 0%, transparent 55%), var(--ink-2);
      border: 1px solid var(--line); border-radius: 22px; padding: 38px 34px;
      box-shadow: 0 40px 100px rgba(0,0,0,.7);
      transform: translateY(14px) scale(.98); transition: transform .32s var(--ease);
    }
    .modal-overlay.open .modal { transform: translateY(0) scale(1); }
    .modal-close {
      position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
      border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--silver-2);
      border-radius: 10px; cursor: pointer; font-size: 1.1rem; line-height: 1;
      display: grid; place-items: center; transition: background .2s, color .2s;
    }
    .modal-close:hover { background: rgba(255,255,255,.08); color: var(--silver-1); }
    .modal .eyebrow { margin-bottom: 12px; }
    .modal h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
    .modal .sub { color: var(--silver-3); font-size: .95rem; margin-bottom: 26px; }
    .field-group { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
    .field label { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--silver-3); margin-bottom: 7px; }
    .field input {
      width: 100%; padding: 13px 15px; font-family: inherit; font-size: 1rem;
      color: var(--silver-1); background: rgba(255,255,255,.03);
      border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s;
    }
    .field input::placeholder { color: #55575f; }
    .field input:focus { outline: none; border-color: var(--blue); background: rgba(76,141,255,.05); }
    .modal .btn { width: 100%; justify-content: center; }
    .modal-note { text-align: center; color: var(--silver-3); font-size: .78rem; margin-top: 14px; }
    .visually-hidden { position: absolute; left: -9999px; }
    .modal-success { text-align: center; padding: 14px 0 6px; }
    .modal-success .check { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(76,141,255,.12); border: 1px solid rgba(76,141,255,.4); }
    .modal-success .check svg { width: 26px; height: 26px; stroke: var(--blue); }
    .modal-success h3 { margin-bottom: 8px; }
    .modal-success p { color: var(--silver-3); font-size: .95rem; }

    /* ---------- Footer ---------- */
    footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 40px 0; }
    .foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--silver-3); font-size: .88rem; }
    .foot a:hover { color: var(--silver-1); }

    @media (prefers-reduced-motion: reduce) {
      .rise, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
      html { scroll-behavior: auto; } .caret, .thinking i, .aw-fresh .live { animation: none; }
    }

/* ---------- Content pages (Security / About / Legal / Contact) ---------- */
.page-hero { position: relative; z-index: 1; min-height: 0; display: block; padding: clamp(104px, 13vw, 140px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
  background: linear-gradient(177deg, var(--silver-1) 0%, var(--silver-2) 55%, var(--silver-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p.lede { max-width: 620px; margin: 20px auto 0; color: var(--silver-2); font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.6; }
.page-hero .updated { margin-top: 14px; color: var(--silver-3); font-size: .85rem; }

.doc { position: relative; z-index: 1; padding: 0 0 clamp(72px, 12vw, 120px); }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; margin: 44px 0 4px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--silver-2); font-size: 1.02rem; line-height: 1.72; margin-top: 14px; }
.prose ul { margin-top: 10px; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose strong { color: var(--silver-1); font-weight: 600; }
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }

/* security controls grid — reuses the feature-card look */
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
@media (max-width: 620px) { .controls { grid-template-columns: 1fr; } }
.control { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px; }
.control h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.control h3 svg { width: 17px; height: 17px; stroke: var(--blue); flex: none; }
.control p { color: var(--silver-3); font-size: .93rem; line-height: 1.6; margin-top: 8px; }

/* contact */
.contact-grid { max-width: 720px; margin: 0 auto; display: grid; gap: 22px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.contact-card .field { margin-bottom: 14px; }
.contact-card textarea { width: 100%; padding: 13px 15px; font-family: inherit; font-size: 1rem; color: var(--silver-1); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; resize: vertical; }
.contact-card textarea:focus, .contact-card input:focus { outline: none; border-color: var(--blue); background: rgba(76,141,255,.05); }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.contact-info dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--silver-3); font-weight: 600; margin-top: 18px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin-top: 4px; font-size: 1rem; }
.contact-info dd a { color: var(--blue); }

/* footer links row */
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--silver-3); }
