/* zenoko.com public site — same palette, type and navy brand treatment as
   the apps.zenoko.com login screen (public/assets/style.css). */
:root {
  --bg: #f2f3f8;
  --surface: #ffffff;
  --border: #dcdfe8;
  --text: #161a26;
  --text-muted: #5b6275;
  --accent: #96742f;
  --violet: #6a55d6;
  --success: #3f7d52;
  --shadow: 0 1px 2px rgba(16, 19, 30, 0.04), 0 8px 24px rgba(16, 19, 30, 0.06);
  --navy: #10131e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", ui-serif, Georgia, serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e16;
    --surface: #141824;
    --border: #262c3b;
    --text: #eceef4;
    --text-muted: #969db0;
    --accent: #d8b877;
    --violet: #a596f5;
    --success: #6fae7c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e16;
  --surface: #141824;
  --border: #262c3b;
  --text: #eceef4;
  --text-muted: #969db0;
  --accent: #d8b877;
  --violet: #a596f5;
  --success: #6fae7c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; text-wrap: balance; margin: 0; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- navy hero ---------- */
.hero {
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #d8b877;
  --success: #6fae7c;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--text);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 70% at 25% 30%, black 20%, transparent 75%);
  pointer-events: none;
}
#nodeField { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero > .wrap { position: relative; z-index: 2; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
}
.wordmark { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.wordmark svg { width: 40px; height: 40px; flex: none; }
.wordmark span { font-family: var(--mono); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.01em; color: #ffffff; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: 0.88rem; }
.nav-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.nav-links a:hover { color: #ffffff; }
.nav-links .signin {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
}
.nav-links .signin:hover { border-color: #d8b877; color: #d8b877; }

.hero-body { padding: clamp(3.5rem, 12vh, 7.5rem) 0 clamp(3.5rem, 10vh, 6rem); max-width: 40rem; }
.eyebrow-live { display: flex; align-items: center; gap: 0.55rem; }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111, 174, 124, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(111, 174, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 174, 124, 0); }
}
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; margin-top: 1rem; }
.hero .claim { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--text-muted); margin: 1.2rem 0 0; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: #4f54d8; color: #ffffff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { border-color: #d8b877; }

/* ---------- content sections ---------- */
section.block { padding: clamp(3rem, 8vw, 5.5rem) 0; }
section.block + section.block { border-top: 1px solid var(--border); }
.section-head { max-width: 42rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin-top: 0.6rem; }
.section-head p { color: var(--text-muted); margin: 1rem 0 0; font-size: 1.02rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  color: var(--violet);
}
.feature h3 { font-size: 1.2rem; margin-top: 1rem; }
.feature p { color: var(--text-muted); font-size: 0.92rem; margin: 0.5rem 0 0; }

.note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-left: 3px solid var(--violet);
  padding: 0.2rem 0 0.2rem 1rem;
  max-width: 46rem;
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 820px) { .details { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 1.4rem; }
dt { font-size: 0.8rem; color: var(--text-muted); padding-top: 0.12rem; }
dd { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
dd.mono { font-family: var(--mono); font-size: 0.88rem; }
dd a { color: var(--violet); text-decoration: none; }
dd a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  dl { grid-template-columns: 1fr; gap: 0.15rem; }
  dd { margin-bottom: 0.7rem; }
}

/* ---------- footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  padding: 2rem 0;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 1.5rem; }
footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
footer a:hover { color: #d8b877; }
footer .links { display: flex; gap: 1.4rem; }

/* ---------- legal page ---------- */
.legal { max-width: 46rem; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 0.6rem; }
.legal .updated { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--text); font-size: 0.97rem; }
.legal p { margin: 0.8rem 0 0; }
.legal ul { padding-left: 1.2rem; margin: 0.8rem 0 0; }
.legal li + li { margin-top: 0.35rem; }
.legal a { color: var(--violet); }
.hero.slim .nav { padding: 1.2rem 0; }

@media (max-width: 560px) {
  .nav-links .hide-sm { display: none; }
  .wordmark span { font-size: 1.3rem; }
  .wordmark svg { width: 34px; height: 34px; }
}
