/* Shared tokens + layout for the Z3NTRA marketing site. Same palette as
   the app itself (web/src/styles.css) so the two feel like one product. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f1f8;
  --border: #e0e1ef;
  --border-strong: #c7c9e0;
  --text: #16171f;
  --text-muted: #63657a;
  --text-faint: #8d8fa3;
  --accent: #5b56e0;
  --accent-2: #9b5cf6;
  --accent-3: #ec4899;
  --accent-soft: #edebfd;
  --accent-text: #ffffff;
  --brand-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --ok: #1f7a4d;
  --ok-soft: #e6f4ec;
  --shadow: 0 1px 2px rgba(38, 27, 90, 0.05), 0 4px 16px rgba(38, 27, 90, 0.07);
  --shadow-lg: 0 8px 24px rgba(38, 27, 90, 0.1), 0 24px 64px rgba(38, 27, 90, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131220;
    --surface: #1c1a2a;
    --surface-2: #242235;
    --border: #322f45;
    --border-strong: #454158;
    --text: #eeecf5;
    --text-muted: #a9a7c0;
    --text-faint: #7d7b99;
    --accent: #a78bfa;
    --accent-2: #c9a8ff;
    --accent-3: #f472b6;
    --accent-soft: #251f42;
    --accent-text: #17102c;
    --ok: #57caa0;
    --ok-soft: #16332a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 24px 64px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ nav */
.site-nav {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.site-nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .wordmark { font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 12px; font-size: 14.5px; font-weight: 550; }
.nav-links a { text-decoration: none; color: var(--text-muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------------ btn */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer; line-height: 1;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand-gradient); color: var(--accent-text); border: none; box-shadow: var(--shadow); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.lg { padding: 13px 24px; font-size: 15.5px; border-radius: 10px; }
.btn.ghost { background: none; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 88px 0 64px; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: -15% -10% -35%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(560px circle at 14% 18%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%),
    radial-gradient(480px circle at 88% 12%, color-mix(in srgb, var(--accent-3) 42%, transparent), transparent 60%),
    radial-gradient(680px circle at 50% 96%, color-mix(in srgb, var(--accent-2) 40%, transparent), transparent 65%);
  filter: blur(64px); opacity: 0.55;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 35%, transparent 100%);
  opacity: 0.55;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650;
  color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 auto 20px;
  max-width: 780px; font-weight: 800;
}
.hero h1 .grad {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  font-size: 19px; line-height: 1.55; color: var(--text-muted); max-width: 620px; margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 13.5px; color: var(--text-faint); }

/* ------------------------------------------------------------- sections */
section.band { padding: 64px 0; }
section.band.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.015em; margin: 0 0 12px; font-weight: 750; }
.section-head p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 19px;
}
/* Cycle the brand's three accents across cards so feature grids read as
   colorful rather than a single flat tint repeated six times. */
.grid.cols-3 .card:nth-child(3n+2) .icon {
  background: color-mix(in srgb, var(--accent-2) 16%, var(--accent-soft)); color: var(--accent-2);
}
.grid.cols-3 .card:nth-child(3n+3) .icon {
  background: color-mix(in srgb, var(--accent-3) 16%, var(--accent-soft)); color: var(--accent-3);
}
.card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* -------------------------------------------------------------- systems */
.systems-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px;
}
.system-chip {
  padding: 9px 16px; border-radius: 999px; background: var(--accent-soft); border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; color: var(--accent); box-shadow: var(--shadow);
}

/* --------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-gradient); color: var(--accent-text); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 2px 0 6px; font-size: 16px; font-weight: 700; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* --------------------------------------------------------------- quote */
.quote-block {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; font-size: 14.5px; color: var(--text-muted); margin: 10px 0;
}
.quote-block strong { color: var(--text); }

/* ----------------------------------------------------------------- cta */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand-gradient); border-radius: 20px; padding: 56px 40px; text-align: center;
  color: var(--accent-text); margin: 0 24px;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at 15% -10%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(420px circle at 100% 120%, rgba(255, 255, 255, 0.16), transparent 55%);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; font-weight: 750; }
.cta-band p { margin: 0 0 26px; font-size: 15.5px; opacity: 0.92; }
.cta-band .btn.primary { background: var(--surface); color: var(--accent); box-shadow: none; }
.cta-band .btn.ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: var(--accent-text); }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ------------------------------------------------------------------ faq */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 15.5px; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--text-faint); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* --------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 12.5px; color: var(--text-faint); }

/* --------------------------------------------------------------- misc */
.spin {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  display: inline-block; animation: spin 0.7s linear infinite; opacity: 0.6;
}
@keyframes spin { to { transform: rotate(360deg); } }
.text-center { text-align: center; }
.mobile-nav-toggle { display: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
}
