:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --accent: #0a84ff;
  --accent-2: #bf5af2;
  --grad: linear-gradient(90deg, #0a84ff, #6e5ff5 55%, #bf5af2);
  --radius: 22px;
  --maxw: 1024px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  height: 48px;
}
.nav-logo { font-size: 17px; font-weight: 600; color: #f5f5f7; letter-spacing: -0.2px; }
.nav-logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: rgba(245,245,247,0.85); font-size: 13px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 5px 14px; border-radius: 980px; font-size: 13px; font-weight: 500;
}
.nav-cta:hover { background: #0071e3; text-decoration: none; }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  background: #000; color: #f5f5f7; text-align: center;
  padding: 130px 22px 120px; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: -300px; transform: translateX(-50%);
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110,95,245,0.35), rgba(10,132,255,0.12), transparent);
  pointer-events: none;
}
.hero .eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #86868b; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(44px, 7.5vw, 84px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.05; margin-bottom: 22px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead {
  font-size: clamp(18px, 2.4vw, 24px); color: #a1a1a6; max-width: 720px; margin: 0 auto 38px; font-weight: 400;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: #000; color: #f5f5f7; padding: 90px 22px 70px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -200px; top: -200px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110,95,245,0.28), rgba(10,132,255,0.10), transparent);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { font-size: 13px; color: #86868b; margin-bottom: 22px; }
.crumbs a { color: #a1a1a6; }
.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  margin-bottom: 18px; max-width: 820px;
}
.page-hero p.lead { font-size: clamp(17px, 2.2vw, 22px); color: #a1a1a6; max-width: 720px; margin-bottom: 34px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-row.left { justify-content: flex-start; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 980px;
  font-size: 17px; font-weight: 500; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: scale(1.03); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0071e3; }
.btn-ghost { color: var(--accent); border: 1px solid var(--accent); }

/* ---------- Trust strip ---------- */
.trust { background: #000; color: #86868b; padding: 0 22px 56px; text-align: center; }
.trust ul { list-style: none; display: flex; gap: 14px 34px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.kicker {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
h2 {
  font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1;
  margin-bottom: 18px;
}
h3.block { font-size: 24px; font-weight: 700; margin: 34px 0 10px; }
.sub { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 680px; margin-bottom: 48px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; font-size: 17px; color: #3a3a3c; }
.prose ul { margin: 0 0 18px 22px; font-size: 17px; color: #3a3a3c; }
.prose li { margin-bottom: 8px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: var(--bg); border-radius: var(--radius); padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.10); }
.card .icon { font-size: 34px; margin-bottom: 16px; display: block; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.card .tag { font-size: 14px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; display: block; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 500; }
.card a.more::after { content: " ›"; }
a.card-link { position: absolute; inset: 0; border-radius: var(--radius); }
a.card-link:hover { text-decoration: none; }

/* ---------- Dark band ---------- */
.band { background: #000; color: #f5f5f7; }
.band h2 { color: #f5f5f7; }
.band .sub { color: #a1a1a6; }
.band .card { background: #1d1d1f; box-shadow: none; }
.band .card h3 { color: #f5f5f7; }
.band .card p { color: #a1a1a6; }
.band .card:hover { box-shadow: 0 12px 36px rgba(110,95,245,0.25); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius); padding: 34px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06); counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 30px; margin-top: 10px; }
.checklist li { font-size: 17px; color: #3a3a3c; padding-left: 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.checklist li strong { color: var(--ink); }

/* ---------- Credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.cred {
  background: #fff; border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.cred h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cred p { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.cred a { font-size: 15px; font-weight: 500; }
.cred a::after { content: " ›"; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pill {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  border: 1px solid #d2d2d7; border-radius: 980px; padding: 7px 16px; background: #fff;
}

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 40px; }
details { border-bottom: 1px solid #d2d2d7; padding: 22px 4px; }
details summary {
  font-size: 19px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--ink-soft); transition: transform 0.2s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; max-width: 800px; }

/* ---------- CTA band ---------- */
.cta-band { background: #000; color: #f5f5f7; text-align: center; }
.cta-band h2 { color: #f5f5f7; }
.cta-band .sub { color: #a1a1a6; margin-left: auto; margin-right: auto; }

/* ---------- Contact form ---------- */
form.contact {
  max-width: 640px; margin: 48px auto 0; text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field-full { grid-column: 1 / -1; }
form.contact label { display: block; font-size: 13px; font-weight: 600; color: #a1a1a6; margin-bottom: 6px; }
form.contact input, form.contact textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid #333336;
  background: #1d1d1f; color: #f5f5f7; font-size: 16px; font-family: inherit;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
form.contact textarea { min-height: 130px; resize: vertical; }
.form-submit {
  grid-column: 1 / -1; justify-self: center;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 14px 44px; border-radius: 980px; font-size: 17px; font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}
.form-submit:hover { background: #0071e3; transform: scale(1.03); }
.form-note { grid-column: 1 / -1; text-align: center; font-size: 13px; color: #6e6e73; }
#thanks {
  display: none; max-width: 640px; margin: 40px auto 0; padding: 26px;
  border-radius: var(--radius); background: #1d1d1f; font-size: 18px;
}
@media (max-width: 620px) { form.contact { grid-template-columns: 1fr; } }

/* ---------- Related links ---------- */
.related { display: flex; flex-wrap: wrap; gap: 12px; }
.related a {
  border: 1px solid #d2d2d7; border-radius: 980px; padding: 10px 20px;
  font-size: 15px; font-weight: 500; color: var(--ink); background: #fff;
}
.related a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- Footer ---------- */
footer { background: #f5f5f7; color: var(--ink-soft); font-size: 13px; padding: 52px 0 44px; border-top: 1px solid #e8e8ed; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; margin-bottom: 34px; }
.foot-grid h4 { font-size: 13px; color: var(--ink); margin-bottom: 10px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 7px; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--ink); }
.foot-legal { border-top: 1px solid #d2d2d7; padding-top: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Blog ---------- */
.post-body { font-size: 18px; }
.post-body h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 44px 0 14px; }
.post-body h3 { font-size: 22px; font-weight: 700; margin: 34px 0 10px; }
.post-body p { margin-bottom: 20px; color: #3a3a3c; }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; color: #3a3a3c; }
.post-body li { margin-bottom: 10px; }
.post-body blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 0 0 20px;
  color: var(--ink-soft); font-size: 19px;
}
.post-body strong { color: var(--ink); }
.post-body hr { border: none; border-top: 1px solid #d2d2d7; margin: 40px 0; }
.post-body code {
  background: var(--bg-alt); border-radius: 6px; padding: 2px 7px;
  font-size: 15px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Imagery ---------- */
.art-full { background: #000; margin: 0; }
.art-full img { display: block; width: 100%; height: auto; }
.card-thumb { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 18px; }
