@font-face {
  font-family: "Geist Pixel Circle";
  src: url("/fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Geist Pixel Circle", monospace;
  /* content sections */
  --surface: #0f0f10;
  --surface-2: #161618;
  --line: rgba(255, 255, 255, 0.1);
  --ink-2: #c9c9cc;
  --live: #7ee2c4;
  --live-bg: rgba(126, 226, 196, 0.12);
  --soon: #f0c070;
  --soon-bg: rgba(240, 192, 112, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= FIRST VIEWPORT ================= */
.hero-screen { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.bg { position: absolute; inset: 0; background: #000; overflow: hidden; }
.bg { background: radial-gradient(120% 90% at 50% 45%, #0a0a12 0%, #000 70%); }
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }

.page {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  height: 100vh; height: 100dvh; overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

/* header */
.site-header {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 720px; gap: clamp(18px, 2.8vw, 28px);
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.logo {
  flex-shrink: 0; display: grid; place-items: center;
  width: clamp(40px, 4.4vw, 46px); height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%; background: #fff; box-shadow: var(--nav-shadow);
  transition: transform 0.25s ease;
}
.logo:hover { transform: scale(1.04); }
.logo svg, .logo img { width: 72%; height: 72%; object-fit: contain; overflow: visible; }
/* Keel mark draws itself on load (same motion as the in-app loader) */
.logo .lg-trunk, .logo .lg-branch { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lgDraw 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards; }
.logo .lg-branch { animation-delay: 0.45s; }
.logo .lg-node { transform-box: fill-box; transform-origin: center; scale: 0.4; opacity: 0; animation: lgPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards; }
.logo .lg-node.n2 { animation-delay: 0.75s; }
.logo .lg-node.n3 { animation-delay: 0.9s; }
@keyframes lgDraw { to { stroke-dashoffset: 0; } }
@keyframes lgPop { 60% { scale: 1.25; opacity: 1; } to { scale: 1; opacity: 1; } }

.nav-pill {
  flex: 1; max-width: 430px; height: clamp(44px, 5.2vw, 48px);
  display: flex; align-items: center; justify-content: space-around;
  padding: 4px 8px; border-radius: 999px; background: #fff; box-shadow: var(--nav-shadow);
}
.nav-pill a {
  position: relative; text-decoration: none; color: var(--nav-text);
  font-weight: 500; font-size: clamp(13px, 1.4vw, 15px); letter-spacing: -0.01em;
  opacity: 0.5; padding: 8px 6px; transition: opacity 0.2s; white-space: nowrap;
}
.nav-pill a:hover { opacity: 0.75; }
.nav-pill a.active { opacity: 1; }
.nav-pill a.active::after, .mobile-menu a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 3px; height: 3px; margin-left: -1.5px;
  border-radius: 50%; background: #000; box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}
.sign-in {
  flex-shrink: 0; display: inline-flex; align-items: center;
  height: clamp(44px, 5.2vw, 48px); padding: 0 clamp(18px, 2.2vw, 24px);
  border-radius: 999px; background: var(--pill-dark); color: var(--sign-in-text);
  text-decoration: none; font-weight: 500; font-size: clamp(13px, 1.4vw, 15px);
  box-shadow: var(--nav-shadow); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.sign-in:hover { background: #323234; color: #fff; transform: translateY(-1px); }

.burger { display: none; }

/* hero */
.hero {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; width: 100%; max-width: 900px;
}
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex; align-items: center; margin-bottom: clamp(16px, 2.5vh, 26px);
}
.trust-avatar {
  position: relative; display: block; width: var(--trust-size); height: var(--trust-size);
  border-radius: 50%; background: var(--trust-bg); border: 1px solid var(--trust-border);
  padding: 5px; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.trust-avatar > span {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; background: #fff; color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}
.trust-avatar.a1 { z-index: 1; }
.trust-avatar.a2 { z-index: 2; margin-left: calc(var(--trust-size) * -0.42); }
.trust-avatar.a3 { z-index: 4; margin-left: calc(var(--trust-size) * -0.42); }
.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-2px); }
.trust-pill {
  position: relative; z-index: 3; display: inline-flex; align-items: center;
  height: var(--trust-size); border-radius: 999px;
  background: var(--trust-bg); border: 1px solid var(--trust-border);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 16px 0 calc(var(--trust-size) * 0.58);
  color: var(--trust-text); font-weight: 500; font-size: clamp(12px, 1.4vw, 13.5px); white-space: nowrap;
}

.headline {
  margin: 0; font-family: var(--font-display); font-weight: 400; color: #fff;
  font-size: clamp(28px, 6.2vw, 80px); letter-spacing: -0.04em; line-height: 1.12;
  white-space: nowrap; overflow: hidden;
}
.hl-line {
  display: block; opacity: 0; transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
.subhead {
  max-width: min(500px, 92%); margin: clamp(14px, 2.2vh, 22px) 0 clamp(20px, 3.2vh, 32px);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55; font-weight: 400; color: #d0d0d0; opacity: 0.8;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #000; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: clamp(13.5px, 1.5vw, 14.5px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px); border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 22px rgba(255,255,255,0.32), 0 0 44px rgba(255,255,255,0.12);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 0 30px rgba(255,255,255,0.45), 0 0 64px rgba(255,255,255,0.2);
}
.cta:disabled { opacity: 0.6; cursor: wait; }

/* stats */
.stats {
  position: relative; z-index: 1; flex-shrink: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px);
  width: 100%; max-width: 920px; text-align: center;
}
.stat-icon { font-family: var(--font-display); color: #fff; font-size: clamp(22px, 3vw, 33px); line-height: 1; margin-bottom: 8px; }
.stat-value { color: #fff; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; font-weight: 500; }
.stat-label { color: var(--muted); font-size: clamp(11px, 1.2vw, 12.5px); margin-top: 4px; }

/* entrance */
.anim, .anim-pulse {
  opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
.anim-pulse { animation-name: revealPulse; animation-duration: 1.1s; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes headlineFade { to { opacity: 1; transform: none; } }
@keyframes reveal { to { opacity: 1; transform: none; filter: none; } }
@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  60% { opacity: 1; transform: translateY(0) scale(1.04); filter: none; }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translate(-50%, -10px) scale(0.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes linkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* mobile menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: overlayIn 0.28s ease both;
}
.mobile-menu {
  position: fixed; z-index: 31; left: 50%; top: calc(clamp(16px, 2.4vh, 28px) + 60px);
  width: min(360px, calc(100% - 28px)); transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border-radius: 28px; padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mobile-menu[hidden], .menu-overlay[hidden] { display: none; }
.mobile-menu a {
  position: relative; display: block; text-align: center; text-decoration: none;
  color: var(--nav-text); font-weight: 500; font-size: 16px; padding: 14px 10px 18px;
  opacity: 0; animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mobile-menu a.active::after { bottom: 8px; }
.mobile-menu a:nth-child(1) { animation-delay: 0.06s; }
.mobile-menu a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu a:nth-child(3) { animation-delay: 0.14s; }
.mobile-menu a:nth-child(4) { animation-delay: 0.18s; }
.mobile-menu a.mm-sign { animation-delay: 0.22s; margin-top: 8px; padding: 14px; border-radius: 999px; background: var(--pill-dark); color: #fff; }

@media (max-width: 720px) {
  .nav-pill, .sign-in { display: none; }
  .site-header { justify-content: space-between; }
  .logo { width: 48px; height: 48px; }
  .burger {
    display: grid; place-content: center; gap: 5px; width: 48px; height: 48px; border-radius: 50%;
    border: 0; padding: 0; cursor: pointer; background: var(--pill-dark); box-shadow: var(--nav-shadow);
    position: relative; z-index: 32; transition: background 0.25s;
  }
  .burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform 0.3s, opacity 0.2s, background 0.25s; }
  .burger[aria-expanded="true"] { background: #fff; }
  .burger[aria-expanded="true"] span { background: #000; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-header .logo { position: relative; z-index: 32; }
  .headline { letter-spacing: -0.08em; line-height: 1.05; font-size: clamp(28px, 8.6vw, 60px); }
  .trust-pill { font-size: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
}
@media (max-width: 420px) {
  .trust { --trust-size: 34px; }
  .headline { letter-spacing: -0.09em; line-height: 1.04; }
}
@media (max-height: 700px) {
  .subhead { margin: 10px 0 16px; }
  .trust { margin-bottom: 12px; }
  .stat-icon { margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo .lg-node { scale: 1 !important; opacity: 1 !important; }
  .logo .lg-trunk, .logo .lg-branch { stroke-dashoffset: 0 !important; }
  .anim, .anim-pulse, .hl-line, .mobile-menu a { opacity: 1 !important; transform: none !important; filter: none !important; }
  html { scroll-behavior: auto; }
}

/* ================= CONTENT SECTIONS ================= */
.content { position: relative; background: var(--bg); border-top: 1px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.content section { padding: clamp(64px, 10vw, 104px) 0; }
.content section + section { border-top: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.content h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.15; letter-spacing: -0.03em; margin: 10px 0 12px; font-weight: 600; }
.sec-head p, .muted { color: var(--ink-2); font-size: 17px; line-height: 1.65; margin: 0 0 10px; }
.content h3 { font-size: 18px; margin: 0 0 10px; letter-spacing: -0.015em; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card p { color: var(--ink-2); margin: 0; line-height: 1.6; font-size: 15.5px; }
.card p strong, .card li strong { color: #fff; }
.card .n { font-family: var(--font-display); color: var(--muted); font-size: 18px; margin-bottom: 8px; }
.ico { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; margin-bottom: 16px; font-size: 17px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature.wide { grid-column: 1 / -1; }
.ft { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.feature ul { list-style: none; margin: 0; padding: 0; }
.feature li { position: relative; padding-left: 20px; margin: 9px 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.feature li.soon::before { background: var(--soon); box-shadow: 0 0 8px rgba(240,192,112,0.6); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 500; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge.live { background: var(--live-bg); color: var(--live); }
.badge.soon { background: var(--soon-bg); color: var(--soon); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #fff; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { position: relative; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000; font-family: var(--font-display); font-size: 20px; margin-bottom: 14px; }
.steps p { color: var(--ink-2); margin: 0; line-height: 1.6; font-size: 15.5px; }
.flow { margin-top: 16px; overflow-x: auto; }
.flow svg { min-width: 720px; width: 100%; height: auto; display: block; }
.flow .b rect { fill: var(--surface-2); stroke: var(--line); }
.flow .b.k rect { fill: #fff; stroke: #fff; }
.flow .b.k text { fill: #000; }
.flow .b.k text.s { fill: #444; }
.flow text { fill: #fff; font: 600 13px var(--font-sans); }
.flow text.s { fill: var(--muted); font: 400 11px ui-monospace, Menlo, monospace; }
.flow .e { stroke: var(--muted); stroke-width: 1.5; fill: none; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare th { width: 200px; color: var(--muted); font-weight: 500; font-size: 14.5px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 500; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.65; }

.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; color: #fff; background: #000; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
.form textarea { min-height: 88px; resize: vertical; }
.form .cta { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 14.5px; }
.form-msg.ok { color: var(--live); }
.form-msg.err { color: #ff8a8a; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.site-footer a { color: var(--muted); }

@media (max-width: 960px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .grid3, .features, .steps, .signup-grid, .cols2, .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  .compare th { width: auto; display: block; border-bottom: 0; padding-bottom: 2px; }
  .compare td { display: block; padding-top: 0; }
}
