:root {
  --navy-950: #060f22;
  --navy-900: #0B1B3A;
  --navy-800: #12295C;
  --navy-700: #1b3a7a;
  --blue: #006CFB;
  --blue-hover: #1a7dff;
  --cyan: #22D3EE;
  --ink: #0B1B3A;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --paper-2: #f5f8fc;
  --on-dark: #e6edf8;
  --on-dark-muted: #9fb0cc;
  --radius: 14px;
  --maxw: 1160px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.dark { background: var(--navy-900); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.alt { background: var(--paper-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: var(--cyan); }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 680px; }
.dark .lead { color: var(--on-dark-muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 10px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  background: var(--blue); color: #fff;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px -10px rgba(0,108,251,.7);
}
.btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 20px; }
.logo img { height: 56px; width: auto; }
@media (max-width: 640px) { .site-header .container { height: 76px; } .logo img { height: 46px; } .nav { top: 76px !important; } }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--slate); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--blue); }
.nav .btn { padding: 11px 18px; font-size: .92rem; color: #fff; }
.nav .btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 88px; left: 0; right: 0; flex-direction: column; align-items: stretch;
         gap: 0; background: #fff; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(11,27,58,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--blue); }
  .nav .btn { margin-top: 16px; padding: 15px; border: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.hero video, .hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(34,211,238,.18), transparent 60%),
              linear-gradient(180deg, rgba(6,15,34,.35) 0%, rgba(6,15,34,.9) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { max-width: 880px; color: #fff; }
.hero h1 .accent { color: var(--cyan); }
.hero .lead { color: var(--on-dark); font-size: 1.25rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--on-dark-muted); }
.hero-note strong { color: #fff; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } .section { padding: 72px 0; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: #c9d6ea; transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(11,27,58,.35); }
.card p { color: var(--slate); margin: 0; }
.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); }
.dark .card p { color: var(--on-dark-muted); }
.dark .card:hover { border-color: rgba(34,211,238,.4); box-shadow: none; }
.icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(0,108,251,.1); color: var(--blue); margin-bottom: 20px;
}
.dark .icon { background: rgba(34,211,238,.12); color: var(--cyan); }
.icon svg { width: 24px; height: 24px; }
.section-head { margin-bottom: 52px; }

/* Use-case list */
.usecase { display: flex; flex-direction: column; }
.usecase .tag { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.usecase .before-after { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--slate); }
.usecase .before-after b { color: var(--ink); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--blue);
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(0,108,251,.1); margin-bottom: 16px;
}
.dark .step .num { color: var(--cyan); background: rgba(34,211,238,.12); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: #fff; border-radius: 20px; padding: 56px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.3), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark); max-width: 640px; }
@media (max-width: 640px) { .cta-band { padding: 36px 26px; } }

/* Audit page */
.audit-hero { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.audit-hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 10% 0%, rgba(0,108,251,.28), transparent 60%),
              radial-gradient(700px 500px at 100% 100%, rgba(34,211,238,.14), transparent 60%); }
.audit-hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; padding-top: 80px; padding-bottom: 96px; align-items: start; }
@media (max-width: 960px) { .audit-hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; } }
.audit-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); color: #fff; }
.audit-hero .lead { color: var(--on-dark); }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); }
.checklist li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B3A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }
.checklist li strong { color: #fff; }

/* Form */
#audit-form, .form-success { scroll-margin-top: 108px; }
.form-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 34px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .sub { color: var(--slate); font-size: .95rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,108,251,.14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; cursor: pointer; user-select: none; transition: all .15s; }
.chip input:checked + span { border-color: var(--blue); background: rgba(0,108,251,.08); color: var(--blue); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,108,251,.25); }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-foot { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 14px; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #b42318; font-size: .9rem; margin-top: 10px; display: none; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: rgba(34,211,238,.18); display: grid; place-items: center; margin: 0 auto 18px; color: #0891B2; }
.form-success .check svg { width: 32px; height: 32px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--slate); }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split img { border-radius: 18px; width: 100%; height: 100%; object-fit: cover; }
.person { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.person img { width: 180px; height: 210px; object-fit: cover; border-radius: 14px; }
.person .role { color: var(--blue); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.person p { color: var(--slate); font-size: .98rem; }
.person .li { font-size: .9rem; font-weight: 600; color: var(--blue); text-decoration: none; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } .person img { width: 140px; height: 160px; } }

/* Legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--slate); }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 44px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.socials a:hover { background: rgba(34,211,238,.15); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.tagline { letter-spacing: .2em; font-family: var(--font-head); font-size: .78rem; }

/* Sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; }
  .mobile-cta .btn { width: 100%; }
  body.has-mobile-cta { padding-bottom: 76px; }
}

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

/* Tierval */
.btn-gold { background: #C9A15A; color: #0E1B2C; box-shadow: 0 8px 24px -12px rgba(201,161,90,.8); }
.btn-gold:hover { background: #d6b06b; }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); margin-top: 18px; }
.btn-ghost-dark:hover { background: rgba(11,27,58,.05); }
.tierval-band { background: #0E1B2C; color: #fff; border-radius: 20px; padding: 48px 56px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; border: 1px solid rgba(201,161,90,.25); }
.tierval-band .eyebrow { color: #C9A15A; }
.tierval-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tierval-band p { color: var(--on-dark); max-width: 620px; }
.tierval-band .hero-ctas { margin-top: 24px; }
.tierval-band .btn-ghost { color: #fff; }
.tierval-logo { display: flex; justify-content: center; }
.tierval-logo img { width: 100%; max-width: 320px; height: auto; }
@media (max-width: 860px) { .tierval-band { grid-template-columns: 1fr; padding: 36px 26px; } .tierval-logo { order: -1; justify-content: flex-start; } .tierval-logo img { max-width: 240px; } }
.venture { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.venture-logo { background: #0E1B2C; border-radius: 14px; padding: 28px; display: flex; justify-content: center; }
.venture-logo img { width: 100%; max-width: 260px; height: auto; }
.venture p { color: var(--slate); margin: 0; }
@media (max-width: 760px) { .venture { grid-template-columns: 1fr; gap: 24px; padding: 24px; } }
.site-footer .sister { font-size: .88rem; margin-top: -4px; }
.site-footer .sister a { color: #C9A15A; font-weight: 600; }
