:root{
  --teal-900:#16303b;
  --teal-800:#1d4a58;
  --teal-700:#296274;
  --teal-600:#3a7787;
  --teal-500:#62b0ab;
  --teal-300:#a8d8d1;
  --teal-200:#cfe8e3;
  --teal-100:#eaf5f3;
  --paper:#f7fbfa;
  --white:#ffffff;
  --ink-900:#142024;
  --ink-700:#31474b;
  --ink-500:#5c7276;
  --ink-300:#93a7a9;
  --border: rgba(20,44,52,0.10);
  --border-strong: rgba(20,44,52,0.16);
  --shadow-sm: 0 1px 2px rgba(20,48,59,0.07);
  --shadow-md: 0 18px 40px -18px rgba(15,40,49,0.35);
  --shadow-card: 0 1px 1px rgba(20,48,59,0.04), 0 12px 28px -14px rgba(20,48,59,0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ff-display:'Space Grotesk', sans-serif;
  --ff-body:'Inter', sans-serif;
  --ff-mono:'IBM Plex Mono', monospace;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,.8,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--ff-body);
  background:var(--paper);
  color:var(--ink-900);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}

h1,h2,h3,h4{
  font-family:var(--ff-display);
  color:var(--ink-900);
  margin:0 0 .5em;
  letter-spacing:-0.01em;
  line-height:1.12;
}

p{ margin:0 0 1em; color:var(--ink-700); }
a{ color:inherit; }
img,svg{ display:block; max-width:100%; }
button{ font-family:inherit; }

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 32px;
}

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0; padding:0; margin:-1px;
}

a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible{
  outline:2px solid var(--teal-500);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow{
  font-family:var(--ff-mono);
  font-size:12.5px;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--teal-600);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px; border-radius:50%;
  background:var(--teal-500);
  box-shadow:0 0 0 3px var(--teal-100);
}
.on-dark .eyebrow{ color:var(--teal-300); }
.on-dark .eyebrow::before{ box-shadow:0 0 0 3px rgba(98,176,171,0.18); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--ff-body);
  font-weight:600;
  font-size:15px;
  padding:13px 24px;
  border-radius:var(--radius-pill);
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--teal-700);
  color:var(--white);
  box-shadow:0 10px 24px -12px rgba(41,98,116,0.65);
}
.btn-primary:hover{ background:var(--teal-900); transform:translateY(-1px); }
.btn-ghost{
  background:transparent;
  color:var(--ink-900);
  border-color:var(--border-strong);
}
.btn-ghost:hover{ border-color:var(--teal-500); background:var(--teal-100); }
.on-dark .btn-ghost{ color:var(--white); border-color:rgba(255,255,255,0.28); }
.on-dark .btn-ghost:hover{ background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.5); }
.btn-light{
  background:var(--white);
  color:var(--teal-800);
}
.btn-light:hover{ background:var(--teal-100); transform:translateY(-1px); }
.btn-sm{ padding:9px 16px; font-size:13.5px; }

/* ============================================================
   Nav
   ============================================================ */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(247,251,250,0.86);
  backdrop-filter:blur(10px) saturate(1.4);
  border-bottom:1px solid var(--border);
}
.nav .container{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  font-family:var(--ff-display);
  font-weight:700;
  font-size:19px;
  color:var(--ink-900);
  letter-spacing:-0.01em;
}
.brand-mark{ width:30px; height:30px; flex:none; }
.nav-links{
  display:flex; align-items:center; gap:36px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  text-decoration:none;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink-700);
  transition:color .15s var(--ease);
}
.nav-links a:hover{ color:var(--teal-700); }
.nav-links .current{ color:var(--teal-700); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.nav-toggle{
  display:none;
  background:none; border:1px solid var(--border-strong); border-radius:10px;
  width:42px; height:42px; align-items:center; justify-content:center;
  cursor:pointer;
}
.nav-toggle svg{ width:18px; height:18px; }
.nav-mobile-panel{ display:none; }

@media (max-width:880px){
  .nav-links{ display:none; }
  .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; }
  .nav.is-open .nav-mobile-panel{
    display:block;
    border-top:1px solid var(--border);
    background:var(--paper);
  }
  .nav-mobile-panel .container{
    display:flex; flex-direction:column; gap:2px; padding-top:10px; padding-bottom:18px; height:auto;
  }
  .nav-mobile-panel a{
    text-decoration:none; color:var(--ink-900); font-weight:500; font-size:15.5px;
    padding:12px 4px; border-bottom:1px solid var(--border);
  }
  .nav-mobile-panel .btn{ margin-top:14px; width:100%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position:relative;
  overflow:hidden;
  padding:88px 0 108px;
}
.hero .container{
  display:grid;
  grid-template-columns:1fr 460px;
  gap:56px;
  align-items:center;
}
.hero h1{
  font-size:clamp(36px,4.6vw,58px);
  max-width:14ch;
}
.hero-sub{
  font-size:17.5px;
  color:var(--ink-700);
  max-width:46ch;
  margin-bottom:32px;
}
.hero-ctas{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:36px; }
.trust-row{
  display:flex; flex-wrap:wrap; gap:10px 22px;
  font-family:var(--ff-mono);
  font-size:12px;
  letter-spacing:.03em;
  color:var(--ink-500);
}
.trust-row span{ display:flex; align-items:center; gap:8px; }
.trust-row span::before{ content:"·"; color:var(--teal-500); font-size:18px; line-height:0; }
.trust-row span:first-child::before{ content:none; }

/* ---- vault mockup ---- */
.hero-visual{ position:relative; height:460px; }
.ripple-field{ position:absolute; inset:-60px; }
.ripple-field circle{
  fill:none; stroke:var(--teal-500);
  transform-origin:center;
  animation:ripple 5.5s var(--ease) infinite;
  opacity:0;
}
.ripple-field circle:nth-child(1){ animation-delay:0s; }
.ripple-field circle:nth-child(2){ animation-delay:1.3s; }
.ripple-field circle:nth-child(3){ animation-delay:2.6s; }
.ripple-field circle:nth-child(4){ animation-delay:3.9s; }
@keyframes ripple{
  0%{ r:34px; opacity:0; stroke-width:2; }
  12%{ opacity:.35; }
  70%{ opacity:.08; }
  100%{ r:210px; opacity:0; stroke-width:.4; }
}
@media (prefers-reduced-motion: reduce){
  .ripple-field circle{ animation:none; opacity:.14; r:120px; }
}

.vault-card{
  position:relative;
  margin:24px auto 0;
  width:100%; max-width:392px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  padding:26px 24px 22px;
}
.vault-card-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid var(--border);
}
.vault-card-head .label{
  font-family:var(--ff-mono); font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-500);
}
.vault-lock{ width:22px; height:22px; color:var(--teal-600); }
.vault-row{
  display:flex; align-items:center; gap:12px;
  padding:11px 0;
}
.vault-row + .vault-row{ border-top:1px dashed var(--border); }
.vault-swatch{
  width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--ff-display); font-weight:700; font-size:13px; color:var(--white);
  flex:none;
}
.vault-info{ flex:1; min-width:0; }
.vault-name{ font-size:13.5px; font-weight:600; color:var(--ink-900); }
.vault-user{ font-size:12px; color:var(--ink-500); }
.vault-secret{
  font-family:var(--ff-mono); font-size:14px; letter-spacing:.06em;
  color:var(--teal-700); min-width:96px; text-align:right;
}
.vault-card-foot{
  margin-top:16px; padding-top:14px; border-top:1px solid var(--border);
  display:flex; align-items:center; gap:8px;
  font-family:var(--ff-mono); font-size:11.5px; color:var(--ink-500);
}
.vault-card-foot .dot{ width:6px; height:6px; border-radius:50%; background:var(--teal-500); flex:none; }

@media (max-width:960px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-visual{ height:auto; max-width:420px; margin:0 auto; }
  .hero h1{ max-width:none; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section{ padding:104px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(28px,3.2vw,40px); }
.section-head p{ font-size:16.5px; }

.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- Feature grid ---------- */
.features{ background:var(--white); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.feature-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.feature{
  background:var(--white);
  padding:34px 28px 30px;
}
.feature-icon{
  width:40px; height:40px; margin-bottom:22px;
  color:var(--teal-700);
}
.feature h3{ font-size:18px; margin-bottom:10px; }
.feature p{ font-size:14.5px; margin-bottom:0; color:var(--ink-500); }

@media (max-width:960px){
  .feature-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:620px){
  .feature-grid{ grid-template-columns:1fr; }
}

/* ---------- Security band ---------- */
.security-band{
  background:linear-gradient(165deg, var(--teal-900) 0%, var(--teal-800) 62%, var(--teal-700) 100%);
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.security-band::before{
  content:"";
  position:absolute; right:-140px; top:50%; transform:translateY(-50%);
  width:520px; height:520px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 0 0 70px rgba(255,255,255,0.02), 0 0 0 140px rgba(255,255,255,0.015);
}
.security-band .container{ position:relative; }
.security-grid{
  display:grid; grid-template-columns:1.1fr 1fr; gap:64px; align-items:start;
}
.security-band h2{ color:var(--white); font-size:clamp(26px,3vw,36px); max-width:16ch; }
.security-band p{ color:rgba(255,255,255,0.72); font-size:16px; max-width:48ch; }
.security-band .btn-light{ margin-top:8px; }
.spec-list{ display:grid; gap:14px; }
.spec{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 22px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--radius-md);
}
.spec-name{ font-size:14px; color:rgba(255,255,255,0.82); }
.spec-value{ font-family:var(--ff-mono); font-size:13px; color:var(--teal-300); text-align:right; }

@media (max-width:880px){
  .security-grid{ grid-template-columns:1fr; }
}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--teal-100);
  text-align:center;
}
.cta-band h2{ font-size:clamp(26px,3.4vw,38px); max-width:16ch; margin:0 auto 14px; }
.cta-band p{ max-width:44ch; margin:0 auto 32px; font-size:16px; }
.cta-band .hero-ctas{ justify-content:center; margin-bottom:0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{ background:var(--teal-900); color:rgba(255,255,255,0.66); padding:64px 0 32px; }
.footer-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand{ color:var(--white); }
.footer-brand p{ color:rgba(255,255,255,0.5); font-size:14px; max-width:32ch; margin-top:14px; }
.footer-col h4{
  font-family:var(--ff-mono); font-size:12px; letter-spacing:.09em; text-transform:uppercase;
  color:rgba(255,255,255,0.42); margin-bottom:16px; font-weight:500;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.footer-col a{ text-decoration:none; font-size:14.5px; color:rgba(255,255,255,0.72); transition:color .15s; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  padding-top:26px; display:flex; justify-content:space-between; align-items:center; gap:20px;
  font-size:13px; color:rgba(255,255,255,0.42); flex-wrap:wrap;
}

@media (max-width:820px){
  .footer-top{ grid-template-columns:1fr 1fr; row-gap:36px; }
}
@media (max-width:520px){
  .footer-top{ grid-template-columns:1fr; }
}

/* ============================================================
   Legal / document pages (privacy, terms, security detail)
   ============================================================ */
.doc-hero{
  padding:72px 0 48px;
  border-bottom:1px solid var(--border);
}
.doc-hero h1{ font-size:clamp(32px,4vw,46px); }
.doc-updated{
  font-family:var(--ff-mono); font-size:12.5px; color:var(--ink-500);
  letter-spacing:.02em;
}
.doc-lede{ font-size:16.5px; max-width:60ch; margin-top:18px; }

.doc-layout{
  display:grid; grid-template-columns:240px 1fr; gap:64px;
  padding:64px 0 120px;
  align-items:start;
}
.doc-toc{ position:sticky; top:100px; }
.doc-toc h4{
  font-family:var(--ff-mono); font-size:11.5px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-500); margin-bottom:16px; font-weight:500;
}
.doc-toc ol{ list-style:none; margin:0; padding:0; counter-reset:toc; display:grid; gap:2px; }
.doc-toc li{ counter-increment:toc; }
.doc-toc a{
  display:flex; gap:10px; text-decoration:none; font-size:13.5px; color:var(--ink-700);
  padding:8px 10px; border-radius:8px; transition:background .15s, color .15s;
}
.doc-toc a::before{
  content:counter(toc, decimal-leading-zero);
  font-family:var(--ff-mono); font-size:11px; color:var(--teal-500); flex:none; padding-top:1px;
}
.doc-toc a:hover{ background:var(--teal-100); color:var(--teal-800); }

.doc-body{ max-width:720px; }
.doc-section{ padding-bottom:40px; margin-bottom:40px; border-bottom:1px solid var(--border); scroll-margin-top:100px; }
.doc-section:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
.doc-section-num{
  font-family:var(--ff-mono); font-size:12.5px; color:var(--teal-600); letter-spacing:.06em;
  display:block; margin-bottom:10px;
}
.doc-section h2{ font-size:22px; margin-bottom:14px; }
.doc-section h3{ font-size:16.5px; margin:24px 0 8px; }
.doc-section p{ font-size:15.5px; color:var(--ink-700); }
.doc-section ul{ padding-left:20px; margin:0 0 16px; color:var(--ink-700); font-size:15.5px; }
.doc-section li{ margin-bottom:8px; }
.doc-section a.inline-link{ color:var(--teal-700); text-decoration-color:var(--teal-300); text-underline-offset:3px; }
.doc-callout{
  background:var(--teal-100); border:1px solid var(--teal-200); border-radius:var(--radius-md);
  padding:18px 20px; font-size:14.5px; color:var(--ink-700); margin:18px 0;
}
.doc-callout strong{ color:var(--teal-800); }

@media (max-width:880px){
  .doc-layout{ grid-template-columns:1fr; }
  .doc-toc{ position:static; border:1px solid var(--border); border-radius:var(--radius-md); padding:18px 20px; }
  .doc-toc ol{ display:grid; grid-template-columns:1fr 1fr; }
}

/* ---------- Security detail page extras ---------- */
.spec-table{ width:100%; border-collapse:collapse; margin:18px 0 8px; }
.spec-table th, .spec-table td{
  text-align:left; padding:12px 14px; font-size:14.5px; border-bottom:1px solid var(--border);
}
.spec-table th{
  font-family:var(--ff-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em;
  color:var(--ink-500); font-weight:500;
}
.spec-table td:first-child{ color:var(--ink-900); font-weight:500; width:38%; }
.spec-table td{ color:var(--ink-700); }

/* generic small helpers */
.mono{ font-family:var(--ff-mono); }
