/* ============================================================
   Zonai Systems — site stylesheet
   Single dark theme, no JS, system font stack.
   ============================================================ */

:root {
  --bg: #0a0f14;
  --bg-raise: #0e151d;
  --surface: #111a24;
  --line: rgba(148, 180, 199, 0.14);
  --line-strong: rgba(148, 180, 199, 0.26);
  --text: #e8eef3;
  --muted: #9db0be;
  --faint: #6b7f8d;
  --accent: #34d399;
  --accent-2: #22d3ee;
  --accent-ink: #052e22;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 650;
}
.nav-cta:hover { filter: brightness(1.08); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  border: 1px solid transparent;
  transition: filter 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #2fbfa4);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(52% 46% at 68% 6%, rgba(52, 211, 153, 0.13), transparent 70%),
    radial-gradient(40% 38% at 18% 88%, rgba(34, 211, 238, 0.08), transparent 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(65% 60% at 50% 30%, rgba(0, 0, 0, 0.5), transparent 78%);
  -webkit-mask-image: radial-gradient(65% 60% at 50% 30%, rgba(0, 0, 0, 0.5), transparent 78%);
  pointer-events: none;
}

.hero .container { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  max-width: 13ch;
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: 19.5px;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 14px;
}
.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.85;
}

/* ---------- sections ---------- */

.section { padding: 92px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }

/* services */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 140ms ease, transform 140ms ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.22);
  margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; }

.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: var(--bg-raise);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.step h3 { font-size: 17.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* stack chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: 999px;
  padding: 8px 15px;
}

/* CTA band */

.cta-band {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background:
    radial-gradient(80% 130% at 85% 0%, rgba(52, 211, 153, 0.12), transparent 60%),
    var(--surface);
  border-radius: 18px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin: 0; max-width: 46ch; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 36px;
  background: var(--bg-raise);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 34ch;
  margin-top: 14px;
  font-size: 14.5px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }

.footer-col address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--faint);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- prose pages (about / legal) ---------- */

.page-head {
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 90% at 70% 0%, rgba(52, 211, 153, 0.08), transparent 70%);
}
.page-head h1 { font-size: clamp(34px, 5vw, 52px); max-width: 20ch; }
.page-head .lede { color: var(--muted); font-size: 18.5px; max-width: 60ch; margin: 0; }

.prose {
  max-width: 760px;
  padding: 64px 0 96px;
}
.prose h2 { font-size: 24px; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .effective {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--faint);
  margin-bottom: 2.4em;
}

/* facts card (about / contact) */

.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px 26px;
  margin: 2.2em 0;
}
.facts dl { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 15px 0;
}
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--faint); font-size: 14px; }
.facts dd { margin: 0; color: var(--text); font-size: 15.5px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 2.4em 0;
}

/* contact */

.contact-panel {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background:
    radial-gradient(90% 140% at 90% 0%, rgba(52, 211, 153, 0.1), transparent 60%),
    var(--surface);
  border-radius: 18px;
  padding: 40px 36px;
  margin: 0 0 2em;
}
.contact-panel .email {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-block;
  margin: 6px 0 18px;
}

/* 404 */

.notfound {
  min-height: 52vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 80px 24px;
}
.notfound .code {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.notfound h1 { font-size: clamp(32px, 5vw, 48px); }
.notfound p { color: var(--muted); margin-bottom: 28px; }

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

@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .card-grid, .steps, .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 36px 26px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .site-nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transform: none; transition: none; }
}
