:root {
  --bg-0: #050510;
  --bg-1: #0a0a1c;
  --bg-2: #11112a;
  --ink-0: #f6f6ff;
  --ink-1: #d8d8e8;
  --ink-2: #9fa0bd;
  --cyan: #22e4ff;
  --cyan-2: #7af1ff;
  --violet: #7c3aff;
  --violet-2: #a78bfa;
  --pink: #ff3ea5;
  --amber: #ffb86b;
  --line: rgba(246, 246, 255, 0.09);
  --line-strong: rgba(246, 246, 255, 0.18);
  --gradient: linear-gradient(120deg, #7af1ff 0%, #22e4ff 38%, #a78bfa 78%, #ff3ea5 120%);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(124, 58, 255, 0.28), transparent 60%),
    radial-gradient(40rem 22rem at 5% 10%, rgba(34, 228, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--cyan-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-0); }
em.accent { font-family: var(--serif); font-style: italic; font-weight: 400; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; border-top: 1px solid var(--line); }
section > .wrap > p.lede { max-width: 44rem; font-size: 1.1rem; color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink-0); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 36px; height: 36px; }
.brand small { color: var(--ink-2); font-size: 0.75rem; font-weight: 400; margin-left: 0.15rem; }
.nav nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav nav a { color: var(--ink-1); text-decoration: none; font-size: 0.92rem; }
.nav nav a:hover { color: var(--ink-0); }
.nav .actions { display: flex; gap: 0.6rem; }
.nav .menu { display: none; }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .wrap { gap: 0.75rem; }
  .nav .actions { margin-left: auto; }
  .brand small { display: none; }
  .button { padding: 0.6rem 0.9rem; }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-0);
  font: 500 0.92rem/1 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.button:hover { border-color: var(--cyan); color: var(--ink-0); transform: translateY(-1px); }
.button.primary { background: var(--gradient); color: var(--bg-0); border-color: transparent; }
.button.primary:hover { filter: brightness(1.08); }
.button[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Hero */
.hero { padding: 6rem 0 4rem; border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 40rem; }
.hero .cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero .fine { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); margin-top: 1rem; }
.proof {
  background: rgba(17, 17, 42, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.proof header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.proof header strong { font-family: var(--display); color: var(--ink-0); }
.proof header span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); }
.proof ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.proof li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.92rem; }
.proof li span { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); padding-top: 0.2rem; }
.proof li b { color: var(--ink-0); font-weight: 500; }
.proof footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); display: flex; justify-content: space-between; }
.hero .proof, .hero .platforms { grid-column: 1 / -1; }
.hero .proof ol { grid-template-columns: repeat(3, 1fr); gap: 0.9rem 1.5rem; }
@media (max-width: 860px) {
  .hero { padding-top: 3.5rem; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .proof ol { grid-template-columns: 1fr; }
}

/* Decorative grid + blobs behind hero and pricing */
.hero, #pricing { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, #pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(30rem 18rem at 78% 20%, rgba(124, 58, 255, 0.22), transparent 65%),
    radial-gradient(22rem 16rem at 12% 80%, rgba(34, 228, 255, 0.12), transparent 65%),
    linear-gradient(rgba(246, 246, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 246, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(75% 80% at 50% 40%, #000 25%, transparent 100%);
  mask-image: radial-gradient(75% 80% at 50% 40%, #000 25%, transparent 100%);
}

/* Browser window frame */
.window {
  position: relative;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 90px rgba(34, 228, 255, 0.08);
}
.window-bar { display: flex; align-items: center; gap: 0.4rem; height: 2rem; padding: 0 0.75rem; background: rgba(5, 5, 16, 0.9); border-bottom: 1px solid var(--line); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.window-bar i:nth-child(1) { background: var(--pink); opacity: 0.75; }
.window-bar i:nth-child(2) { background: var(--amber); opacity: 0.75; }
.window-bar i:nth-child(3) { background: var(--cyan); opacity: 0.75; }
.window-bar span { margin-left: 0.5rem; font: 0.68rem var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window img { display: block; width: 100%; height: auto; }
.window.crop img { aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }

/* Hero visual: window + floating phone */
.hero-visual { position: relative; padding: 0 1.5rem 3.5rem 0; }
.phone { position: absolute; right: 0; bottom: 0; width: 36%; max-width: 190px; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.phone text { font-family: var(--display); }
.ph-bug { font-size: 9px; font-weight: 600; letter-spacing: 0.12em; fill: #050510; text-anchor: middle; }
.ph-pill { font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: 0.1em; fill: var(--cyan); text-anchor: middle; }
.ph-kicker { font-family: var(--mono); font-size: 7.5px; font-weight: 500; letter-spacing: 0.12em; fill: var(--violet); }
.ph-head { font-size: 15px; font-weight: 600; fill: #050510; letter-spacing: -0.02em; }
.ph-cap { font-family: var(--body); font-size: 11px; font-weight: 500; fill: var(--ink-0); text-anchor: middle; }
.ph-cap .on { fill: var(--cyan); }
.ph-src { font-family: var(--mono); font-size: 7.5px; fill: var(--ink-2); letter-spacing: 0.04em; }

/* Platform chips */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.platforms-label { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); }
.platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.platforms li { font: 500 0.72rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-1); padding: 0.45rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(17, 17, 42, 0.6); }

/* Pipeline */
.pipeline-wrap { margin: 2.5rem 0 3rem; padding: 1.75rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17, 17, 42, 0.45); }
.pipeline-wrap figcaption { margin: 0 1.5rem 1.25rem; }
.pipeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.pipeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 1.5rem; height: 1px; background: var(--line-strong); }
.pipeline::after { content: ""; position: absolute; top: calc(1.5rem - 3px); left: 10%; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px 3px rgba(34, 228, 255, 0.55); animation: pipeline-pulse-x 7s linear infinite; }
@keyframes pipeline-pulse-x { 0% { left: 10%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: 90%; opacity: 0; } }
@keyframes pipeline-pulse-y { 0% { top: 1.5rem; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: calc(100% - 1.5rem); opacity: 0; } }
.pipeline li { display: grid; justify-items: center; gap: 0.35rem; padding: 0 0.75rem; text-align: center; }
.pipeline .node { position: relative; z-index: 1; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--cyan); box-shadow: 0 0 0 6px var(--bg-0); }
.pipeline .node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pipeline b { font-family: var(--display); font-weight: 500; color: var(--ink-0); margin-top: 0.4rem; }
.pipeline li > span:last-child { font-size: 0.82rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 700px) {
  .pipeline { grid-template-columns: 1fr; gap: 1.25rem; padding: 0 1.25rem; }
  .pipeline::before { left: calc(1.25rem + 1.5rem); right: auto; top: 1.5rem; bottom: 1.5rem; width: 1px; height: auto; }
  .pipeline::after { left: calc(1.25rem + 1.5rem); margin-left: 0; margin-top: -3px; animation-name: pipeline-pulse-y; }
  .pipeline li { grid-template-columns: 3rem 1fr; column-gap: 1rem; row-gap: 0.1rem; justify-items: start; align-items: center; text-align: left; padding: 0; }
  .pipeline .node { grid-row: 1 / 3; }
  .pipeline b { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .pipeline::after { display: none; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-text h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-top: 0.4rem; }
.feature-text p { color: var(--ink-2); margin: 0; }
.feature-text .tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-2); }
@media (min-width: 861px) { .feature.flip .feature-text { order: 2; } }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.25rem 0; }
  .hero-visual { padding-right: 0.75rem; }
}

/* Cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }
.card {
  background: rgba(17, 17, 42, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-top: 0.25rem; }
.card p { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 0; }
.card .tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-2); }
.pillars { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.pillars article { border-left: 2px solid transparent; border-image: var(--gradient) 1; padding-left: 1.1rem; }
.pillars p { color: var(--ink-2); margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 10, 28, 0.7); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--display); font-weight: 500; color: var(--ink-0); font-size: 0.85rem; background: rgba(17, 17, 42, 0.9); position: sticky; top: 0; }
thead th small { display: block; font-family: var(--body); font-weight: 400; color: var(--ink-2); font-size: 0.75rem; }
tbody th { font-weight: 500; color: var(--ink-0); min-width: 13rem; }
td.us { background: rgba(34, 228, 255, 0.06); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--cyan); font-weight: 600; }
.part { color: var(--amber); }
.no { color: var(--ink-2); }
.unclear { color: var(--ink-2); font-style: italic; }
td small { display: block; color: var(--ink-2); font-size: 0.75rem; }
.legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.8rem; color: var(--ink-2); margin: 1rem 0; }
.footnote { font-size: 0.8rem; color: var(--ink-2); margin-top: 1rem; }
.footnote a { color: var(--ink-2); }
.num { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }

/* Pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.plan.featured { border-color: rgba(34, 228, 255, 0.45); box-shadow: 0 0 0 1px rgba(34, 228, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.35); }
.plan .price { font-family: var(--display); font-size: 2.2rem; color: var(--ink-0); letter-spacing: -0.03em; white-space: nowrap; }
.plan .price.from { font-size: 1.7rem; }
.plan .price small { font-size: 0.9rem; color: var(--ink-2); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.92rem; color: var(--ink-1); }
.plan ul li::before { content: "◆ "; color: var(--cyan); font-size: 0.6rem; vertical-align: middle; }
.plan details { margin-top: auto; }
.plan summary { list-style: none; }
.plan summary::-webkit-details-marker { display: none; }
.plan summary .button { width: 100%; }
.plan details[open] summary .button { display: none; }
.plan .rates { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); }

/* Forms */
form { display: grid; gap: 0.7rem; }
label { display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--ink-2); }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 16, 0.7);
  color: var(--ink-0);
  font: 0.95rem var(--body);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: transparent; }
textarea { min-height: 7rem; resize: vertical; }
.form-note { min-height: 1.4em; font-size: 0.88rem; color: var(--amber); margin: 0; }
.form-note.ok { color: var(--cyan-2); }
.custom-form { max-width: 44rem; }
.custom-form .two { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .custom-form .two { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 500; color: var(--ink-0); font-size: 1.05rem; }
.faq summary::marker { color: var(--cyan); }
.faq details p { color: var(--ink-2); margin: 0.6rem 0 0; max-width: 60rem; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 3rem 0; font-size: 0.88rem; color: var(--ink-2); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer.site a { color: var(--ink-2); }
footer.site a:hover { color: var(--ink-0); }

/* Legal documents */
.legal { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal .meta { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.legal .notice { border: 1px solid var(--line-strong); border-radius: 12px; padding: 0.8rem 1rem; background: rgba(17, 17, 42, 0.6); color: var(--ink-1); font-size: 0.92rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li { margin-bottom: 0.4rem; }
.legal table { font-size: 0.88rem; }
