/* Zoza landing — uses the canonical product tokens from
   crates/cef-host/installer-assets/design-preview/tokens.css.
   3 themes (Midnight default, Daybreak, Apricot) — picker top-right.
   Server-blind: no Google Fonts CDN, system font stack. */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;

  /* Locked product accents — identical across every theme */
  --p-auth:      #19C3D6;
  --p-vault:     #7B5BFF;
  --p-verify:    #2ECC71;
  --p-shield:    #F5A623;
  --p-sign:      #FF7849;
  --p-ai:        #19C3D6;
  --p-messenger: #FF4D8D;
  --p-human:     #19C3D6;

  /* ---------- Midnight (default) ---------- */
  --bg-primary:    #0A0F1F;
  --bg-elevated:   #131A2E;
  --bg-hover:      #1B2240;
  --bg-sunken:     #060916;
  --text-primary:   #F5F7FA;
  --text-secondary: #7A8290;
  --text-muted:     #4A5168;
  --text-on-accent: #051018;
  --border-hairline: rgba(255, 255, 255, 0.06);
  --border-strong:   rgba(255, 255, 255, 0.12);
  --accent-primary: #19C3D6;
  --shadow-card:    0 2px 8px rgba(0,0,0,0.30), 0 0 1px rgba(25,195,214,0.10);
  --shadow-popover: 0 8px 24px rgba(0,0,0,0.45), 0 0 1px rgba(255,255,255,0.08);
  --glow-identity:  0 0 24px rgba(25,195,214,0.35);
  --glow-identity-strong: 0 0 32px rgba(25,195,214,0.55);
}

[data-theme="daybreak"] {
  --bg-primary:  #F7F8FB;
  --bg-elevated: #FFFFFF;
  --bg-hover:    #EEF1F6;
  --bg-sunken:   #EEF1F6;
  --text-primary:   #0A0F1F;
  --text-secondary: #5A6275;
  --text-muted:     #9098A8;
  --text-on-accent: #FFFFFF;
  --border-hairline: rgba(10, 15, 31, 0.08);
  --border-strong:   rgba(10, 15, 31, 0.16);
  --accent-primary: #0E97A8;
  --shadow-card:    0 1px 4px rgba(10,15,31,0.06), 0 0 12px rgba(14,151,168,0.10);
  --shadow-popover: 0 6px 20px rgba(10,15,31,0.10), 0 0 1px rgba(10,15,31,0.10);
  --glow-identity:  0 0 16px rgba(14,151,168,0.18);
  --glow-identity-strong: 0 0 24px rgba(14,151,168,0.30);
}

[data-theme="apricot"] {
  --bg-primary:  #FFF1E5;
  --bg-elevated: #FFFAF3;
  --bg-hover:    #FBE7D2;
  --bg-sunken:   #FBE7D2;
  --text-primary:   #2A1810;
  --text-secondary: #7A5A48;
  --text-muted:     #B89888;
  --text-on-accent: #FFFAF3;
  --border-hairline: rgba(42, 24, 16, 0.10);
  --border-strong:   rgba(42, 24, 16, 0.18);
  --accent-primary: #0E97A8;
  --shadow-card:    0 2px 6px rgba(42,24,16,0.08), 0 0 16px rgba(14,151,168,0.16);
  --shadow-popover: 0 8px 22px rgba(42,24,16,0.12), 0 0 1px rgba(42,24,16,0.10);
  --glow-identity:  0 0 18px rgba(14,151,168,0.20);
  --glow-identity-strong: 0 0 26px rgba(14,151,168,0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap   { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg-primary) 78%, transparent);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid var(--border-hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 2px solid var(--accent-primary);
  display: grid; place-items: center;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--glow-identity);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text-primary); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  box-shadow: var(--glow-identity);
}
.btn-primary:hover { box-shadow: var(--glow-identity-strong); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); }
.nav-links .btn { height: 32px; padding: 0 14px; font-size: 12.5px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    color-mix(in oklab, var(--accent-primary) 22%, transparent),
    transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}
.id-mark-lg {
  width: 80px; height: 80px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 2px solid var(--accent-primary);
  display: grid; place-items: center;
  margin: 0 auto 28px;
  box-shadow: var(--glow-identity-strong);
}
.id-mark-lg span {
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--accent-primary);
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 18ch;
  margin: 0 auto 22px;
}
.hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 auto 32px;
}
.hero .promise {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* ---------- product grid ---------- */

.products {
  padding: 80px 0;
  border-top: 1px solid var(--border-hairline);
}
.cap {
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-head .mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.section-head .mode .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--text-primary);
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pcard {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pcard:hover { background: var(--bg-hover); }
.pcard .glyph {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--tint) 14%, transparent);
  border: 1px solid var(--tint);
  color: var(--tint);
}
.pcard .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
}
.pcard .blurb {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- helpers grid (the consumer hook) ---------- */

.hgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hcard {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-card);
  transition: background var(--dur-fast) var(--ease);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.hcard:hover { background: var(--bg-hover); }
.hbadge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--p-verify) 14%, transparent);
  color: var(--p-verify);
  border: 1px solid color-mix(in oklab, var(--p-verify) 45%, transparent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 14px;
}
.hcard:nth-child(4) .hbadge,
.hcard:nth-child(5) .hbadge {
  background: color-mix(in oklab, var(--p-sign) 14%, transparent);
  color: var(--p-sign);
  border-color: color-mix(in oklab, var(--p-sign) 45%, transparent);
}
.hcard h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.hcard p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}
.hstat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  font-feature-settings: "tnum", "liga" 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}
.hcta {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  transition: all var(--dur-fast) var(--ease);
  width: fit-content;
}
.hcta:hover { transform: translateX(2px); filter: brightness(1.1); }
.hlearn {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tint, var(--accent-primary));
  transition: transform var(--dur-fast) var(--ease);
  width: fit-content;
}
.hlearn:hover { transform: translateX(3px); }
.hcard-more {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
  box-shadow: none;
}
.hcard-more h3 { color: var(--text-primary); }
.hcard-more p { color: var(--text-secondary); }

/* ---------- product grid (5 unique products) ---------- */

.prodgrid .hcard {
  min-height: 320px;
  padding: 28px 28px 24px;
}
.prodgrid .hcard h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
}
.prodgrid .hcard p {
  font-size: 15px;
  line-height: 1.6;
}
.prodgrid .hcard .hbadge {
  margin-bottom: 18px;
}
.prodgrid .hcard-more {
  background: color-mix(in oklab, var(--accent-primary) 6%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent-primary) 25%, var(--border-hairline));
  border-style: solid;
}
.prodgrid .hcard-more h3 {
  font-size: 22px;
  color: var(--accent-primary);
}

/* ---------- killmap (structural moat list) ---------- */

.killmap {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.killmap li {
  padding: 18px 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-hairline);
}
.killmap li:last-child { border-bottom: 1px solid var(--border-hairline); }
.killmap li strong {
  color: var(--text-primary);
  font-weight: 600;
}
.killmap li em {
  font-style: italic;
  color: var(--text-primary);
}

/* ---------- statement blocks ---------- */

.block {
  padding: 100px 0;
  border-top: 1px solid var(--border-hairline);
}
.block.sunken { background: var(--bg-sunken); }

.statement {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 18px;
  max-width: 24ch;
}
.statement .accent { color: var(--accent-primary); }

.prose {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 14px;
}

.link-arrow {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--dur-fast) var(--ease);
}
.link-arrow:hover { transform: translateX(3px); }

/* ---------- download block ---------- */

.download-block { text-align: center; }
.download-block .platforms {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 28px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.download-block .platforms span {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
}
.download-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
}

/* ---------- footer ---------- */

.footer {
  padding: 70px 0 40px;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-sunken);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-hairline);
}
.foot-brand-block { max-width: 36ch; }
.foot-tag {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.foot-origin {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.foot-mail {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  background: color-mix(in oklab, var(--accent-primary) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent-primary) 30%, var(--border-hairline));
  border-radius: 999px;
  transition: all var(--dur-fast) var(--ease);
}
.foot-mail:hover {
  background: color-mix(in oklab, var(--accent-primary) 16%, transparent);
  border-color: var(--accent-primary);
}
.foot-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: color var(--dur-fast) var(--ease);
}
.foot-col a:hover { color: var(--text-primary); }
.foot-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .hgrid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 10px; }
  .hero { padding: 60px 0 50px; }
  .block, .products { padding: 60px 0; }
  .pgrid { grid-template-columns: 1fr; }
  .hgrid { grid-template-columns: 1fr; }
  .killmap li { font-size: 15px; padding: 14px 0; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}
