:root {
  --bg: #fafafa;
  --ink: #11141a;
  --ink-2: #4b5160;
  --muted: #6b7280;
  --line: #e6e8ec;
  --card: #ffffff;
  --dark: #0b0d12;
  --dark-2: #16202e;
  --accent: #1f93ff;
  --accent-2: #8b5cf6;
  --radius: 22px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky; top: 12px; z-index: 50;
  padding: 0 16px;
}
.nav {
  width: min(1120px, 100%);
  margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 6px 24px rgba(17,20,26,.08);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: #f1f2f4; color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover { background: #262626; color: #fafafa; padding: 0 16px; margin-left: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: #262626; color: #fafafa; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark);
  color: #fff;
  margin-top: -76px;
  padding: 170px 0 110px;
  text-align: center;
  border-radius: 0 0 36px 36px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: 55%;
  width: 900px; height: 500px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(31,147,255,.25), transparent);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.float-tile {
  position: absolute; z-index: 0;
  width: 46px; height: 46px; border-radius: 12px;
  background: #1b1f27; border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center; color: rgba(255,255,255,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.hero h1, .page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05; font-weight: 600; letter-spacing: -.035em;
  margin: 0 auto 18px; max-width: 880px;
}
.grad {
  background: linear-gradient(90deg, #6ab8ff, #a78bfa 60%, #f0abfc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chip-icon {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: .9em; height: .9em; border-radius: .22em; margin-right: .15em;
  background: linear-gradient(135deg, #1f93ff, #8b5cf6);
}
.chip-icon svg { width: 55%; height: 55%; }
.lead { font-size: 18px; color: rgba(255,255,255,.72); max-width: 620px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.6); }
.trust b { color: #fff; font-weight: 600; }
.stars { color: #fbbf24; letter-spacing: 2px; }

/* ---------- Tabs strip ---------- */
.pill-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-size: 14px; color: rgba(255,255,255,.85);
}
.dot { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); background: #e8f3ff; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin: 0 0 14px; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 640px; margin: 0; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(17,20,26,.04);
}
.card h3 { margin: 18px 0 6px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
}
.i-blue { background: #e8f3ff; color: #1874cc; }
.i-green { background: #e7f6ee; color: #1a7f5a; }
.i-orange { background: #fff1e6; color: #c2410c; }
.i-purple { background: #f1ecff; color: #6d28d9; }
.i-pink { background: #fde8f4; color: #be185d; }
.i-yellow { background: #fef3c7; color: #b45309; }

/* Letter card (like the founder note) */
.letter {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 5vw, 56px); box-shadow: 0 20px 60px rgba(17,20,26,.06);
}
.letter h2 { margin-top: 0; }
.letter p { color: var(--ink-2); font-size: 17px; }
.hl {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 7px; border-radius: 7px; font-weight: 500;
}
.hl-green { background: #e7f6ee; color: #128860; }
.hl-red { background: #fde8e6; color: #b42318; }
.hl-blue { background: #e8f3ff; color: #1874cc; }
.hl-purple { background: #f1ecff; color: #6d28d9; }
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 14px; border-radius: 50%;
  background: #1a7f5a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.step-n {
  font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; display: inline-block;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 40px; letter-spacing: -.03em; font-weight: 600; }
.stat span { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); }

/* Dark CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff; border-radius: 32px;
  padding: clamp(40px, 7vw, 80px) 24px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 18px; margin: 0 auto 28px; max-width: 560px; }

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  margin-top: -76px; padding: 150px 0 70px; text-align: center;
  border-radius: 0 0 36px 36px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 70%);
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); }
.page-hero p { color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Legal ---------- */
.legal { padding: 56px 0 90px; }
.legal .letter h2 { font-size: 22px; letter-spacing: -.015em; margin: 36px 0 8px; color: var(--ink); }
.legal .letter h2:first-of-type { margin-top: 0; }
.legal .letter h3 { font-size: 17px; margin: 22px 0 6px; }
.legal .letter p, .legal .letter li { font-size: 16px; color: var(--ink-2); }
.legal .letter ul { padding-left: 20px; }
.legal .letter li { margin: 6px 0; }
.toc {
  background: #f6f7f9; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; margin-bottom: 36px;
}
.toc b { display: block; margin-bottom: 8px; font-size: 14px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.info-card + .info-card { margin-top: 18px; }
.info-card a { color: var(--accent); text-decoration: none; font-weight: 500; word-break: break-all; }
form label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  width: 100%; font: 15px var(--font); color: var(--ink);
  background: #fff; border: 1px solid #dfe3e9; border-radius: 12px;
  padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,147,255,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { width: auto; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-ok {
  display: none; margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: #e7f6ee; color: #128860; font-size: 14px;
}

/* ---------- Footer ---------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 12px; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--ink); }
.foot p { color: var(--muted); font-size: 14px; margin: 10px 0 0; max-width: 360px; }
.copy { margin-top: 40px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-tile { display: none; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .grid-3, .steps, .row-2 { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .toc ol { columns: 1; }
  section { padding: 64px 0; }
  .hero { padding: 140px 0 80px; }
}
