/* ═══════════════════════════════════════════════════════
   ZENRA — Agentic Automation Engine
   Style: "constellation floating on black velvet"
   Void canvas · single violet accent · amber sparks
   ═══════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --color-void: #000000;
  --color-bone-white: #ffffff;
  --color-ash-gray: #9a9a9a;
  --color-silver-mist: #bdbdbd;
  --color-electric-iris: #8052ff;
  --color-saffron-spark: #ffb829;
  --color-deep-verdant: #15846e;

  /* Typography */
  --font-sans: 'PPNeueMontreal', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-caption: 12px;
  --text-nav-label: 14px;
  --text-body: 18px;
  --text-heading-2xs: 24px;

  /* Spacing */
  --sp-6: 6px;  --sp-12: 12px; --sp-18: 18px; --sp-24: 24px;
  --sp-30: 30px; --sp-36: 36px; --sp-60: 60px; --sp-96: 96px; --sp-120: 120px;

  /* Layout */
  --page-max-width: 1280px;

  /* Radius */
  --radius-3xl: 24px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-void);
  color: var(--color-bone-white);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 200;               /* signature ultra-light body */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on;
  overflow-x: hidden;
}

::selection { background: var(--color-electric-iris); color: var(--color-bone-white); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
canvas { display: block; }

.container {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--sp-24);
}
/* ── Morphing constellation (fixed, behind content) ── */
.constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Navigation ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;        /* sits directly on the void */
  transition: background .35s ease;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
  padding-block: var(--sp-18);
}

.logo { display: inline-flex; align-items: center; gap: 10px; z-index: 60; }
.logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--color-bone-white);
}

.nav-links { display: flex; gap: var(--sp-36); }
.nav-links a {
  font-size: var(--text-nav-label);
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--color-ash-gray);
  transition: color .25s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--color-bone-white); }

.nav-cta { display: flex; align-items: center; gap: var(--sp-18); }

/* Primary violet pill — the sole CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-electric-iris);
  color: var(--color-bone-white);
  font-size: var(--text-nav-label);
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  border-radius: var(--radius-3xl);
  padding: 14.4px 22px;
  transition: transform .25s ease, background .25s ease;
}
.btn-primary:hover { background: #8f66ff; transform: translateY(-1px); }

/* Ghost text link */
.ghost-link {
  font-size: var(--text-nav-label);
  font-weight: 400;
  color: var(--color-ash-gray);
  border-bottom: 1px solid rgba(154, 154, 154, .4);
  padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.ghost-link:hover { color: var(--color-saffron-spark); border-color: var(--color-saffron-spark); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 34px; height: 30px;
  cursor: pointer;
  z-index: 60;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--color-bone-white);
  transition: transform .3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }
/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; z-index: 1; padding-top: 150px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: var(--sp-60);
}

.display,
.heading-lg {
  font-weight: 400;                /* never bold — scale does the work */
  color: var(--color-bone-white);
}

.display {
  font-size: clamp(52px, 8.2vw, 113px);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: var(--sp-30);
}
.display-md { font-size: clamp(42px, 5.4vw, 78px); }

.heading-lg {
  font-size: clamp(38px, 5vw, 78px);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: var(--sp-30);
}

.heading-2xs {
  font-size: var(--text-heading-2xs);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.48px;
  margin-bottom: var(--sp-12);
}

.eyebrow {
  font-size: var(--text-nav-label);
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--color-saffron-spark);
  margin-bottom: var(--sp-18);
}

.lede, .body { color: var(--color-silver-mist); max-width: 520px; }
.lede { margin-bottom: var(--sp-36); }
.body + .body { margin-top: var(--sp-18); }
.body em { color: var(--color-bone-white); font-style: normal; }

.hero-actions { display: flex; align-items: center; gap: var(--sp-30); flex-wrap: wrap; }

.hero-visual { position: relative; min-height: 200px; }

.visual-caption {
  margin-top: var(--sp-12);
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--color-ash-gray);
  text-align: center;
}

/* Claims ticker */
.ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-18) var(--sp-24);
  margin-top: var(--sp-96);
}
.tick-item {
  font-size: var(--text-nav-label);
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--color-ash-gray);
}
.tick-sep {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--color-saffron-spark);
  opacity: .85;
}

/* ── Sections ──────────────────────────────────────── */
.section { position: relative; z-index: 1; padding-block: var(--sp-120); }
.section-head { max-width: 720px; }
.section-head .body.intro { margin-top: var(--sp-24); }

/* Zigzag split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--sp-96);
  align-items: center;
}
/* ── Agents: editorial typographic index ───────────── */
.agent-list { margin-top: var(--sp-96); display: flex; flex-direction: column; gap: var(--sp-60); }

.agent {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-36);
  align-items: start;
  transition: transform .35s ease;
}
.agent:hover { transform: translateX(6px); }

.agent-num {
  font-size: var(--text-nav-label);
  font-weight: 400;
  color: var(--color-ash-gray);
  padding-top: 10px;
  transition: color .3s ease;
}
.agent:hover .agent-num { color: var(--color-electric-iris); }

.agent-name {
  font-size: clamp(27px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.48px;
  color: var(--color-bone-white);
  margin-bottom: var(--sp-6);
  transition: color .3s ease;
}
.agent:hover .agent-name { color: var(--color-saffron-spark); }

.agent-tag { font-size: var(--text-body); font-weight: 200; color: var(--color-ash-gray); }
.agent-desc { color: var(--color-silver-mist); padding-top: 6px; }

/* ── Trust ─────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-60);
  margin-top: var(--sp-60);
}
.trust-block .eyebrow { margin-bottom: var(--sp-12); }
.trust-block .body { font-size: 16px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-36);
  margin-top: var(--sp-96);
}
.stat { display: flex; flex-direction: column; gap: var(--sp-6); }
.stat-value {
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--color-bone-white);
}
.stat-label {
  font-size: var(--text-caption);
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--color-ash-gray);
}

/* ── Manifesto ─────────────────────────────────────── */
.manifesto { padding-block: var(--sp-120); }
.quote {
  font-size: clamp(36px, 5vw, 78px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--color-bone-white);
  max-width: 1080px;
}
.quote-attrib {
  margin-top: var(--sp-36);
  font-size: var(--text-nav-label);
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--color-ash-gray);
}

/* ── Access CTA ────────────────────────────────────── */
.access-grid { display: block; }
.access-body { margin-top: var(--sp-24); margin-bottom: var(--sp-36); }

/* ── Registration form ─────────────────────────────── */
.register { padding-bottom: var(--sp-96); }
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--sp-96);
  align-items: start;
}
.register-body { margin-bottom: var(--sp-36); }
.register-points {
  display: flex;
  flex-direction: column;
  gap: var(--sp-18);
  max-width: 460px;
}
.register-points li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-12);
  font-size: 16px;
  color: var(--color-silver-mist);
}
.register-points .tick-sep { flex: none; margin-top: 7px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-30);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-bottom: var(--sp-24);
}
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-saffron-spark);
}
.form-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  color: var(--color-bone-white);
  font: inherit;
  font-weight: 200;
  font-size: 16px;
  padding: 10px 2px 12px;
  transition: border-color .25s ease;
}
.form-input::placeholder { color: rgba(154, 154, 154, .55); }
.form-input:focus { outline: none; border-color: var(--color-electric-iris); }
.form-input.is-invalid { border-color: #ff5470; }
textarea.form-input { resize: vertical; min-height: 104px; line-height: 1.5; }
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a9a9a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
select.form-input:invalid { color: rgba(154, 154, 154, .55); }
select.form-input option { background: var(--color-void); color: var(--color-bone-white); font-weight: 400; }
.form-submit {
  width: 100%;
  margin-top: var(--sp-12);
  border: 0;
  cursor: pointer;
}
.form-submit[disabled] { opacity: .55; cursor: default; transform: none; }
.form-note {
  margin-top: var(--sp-12);
  font-size: var(--text-caption);
  color: var(--color-ash-gray);
  text-align: center;
}
.form-success { border-left: 1px solid var(--color-electric-iris); padding-left: var(--sp-24); }
.form-success .body { margin-top: var(--sp-12); }
/* ── Footer ────────────────────────────────────────── */
.footer { position: relative; z-index: 1; padding-block: var(--sp-60); }
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: var(--sp-24); }
.footer-links a {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--color-ash-gray);
  transition: color .25s ease;
}
.footer-links a:hover { color: var(--color-bone-white); }
.footer-note { font-size: var(--text-caption); color: var(--color-silver-mist); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-12);
  font-size: var(--text-caption);
}
.footer-legal a {
  color: var(--color-silver-mist);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--color-bone-white); }
.footer-legal span { color: var(--color-silver-mist); opacity: 0.45; }

/* ── Reveal on scroll ──────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .agent, .btn-primary { transition: none; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: var(--sp-60); }
  .hero { padding-top: 130px; }
  .hero-visual, .split-visual { max-width: 560px; }
  .section { padding-block: var(--sp-96); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: 1fr; gap: var(--sp-36); }
  .register-grid { grid-template-columns: 1fr; gap: var(--sp-60); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--color-void);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-36);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 55;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 24px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }

  .agent { grid-template-columns: 1fr; gap: var(--sp-12); }
  .agent-num { padding-top: 0; }
  .agent-list { gap: var(--sp-36); }
  .ticker { gap: var(--sp-12) var(--sp-18); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════
   ADMIN ACCESS GATE — password modal for "Admin" nav links
   ═══════════════════════════════════════════════════════ */
.gate-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: var(--sp-24);
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gate-overlay.is-on { display: flex; }

.gate-card {
  position: relative; width: min(420px, 100%);
  padding: 36px 32px 24px;
  background: linear-gradient(160deg, #0b0716, #050308 70%);
  border: 1px solid rgba(128, 82, 255, .4);
  box-shadow: 0 0 70px rgba(128, 82, 255, .2), inset 0 0 44px rgba(128, 82, 255, .05);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.gate-card.is-shake { animation: gate-shake .4s; }
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.gate-x {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font: 400 22px/1 var(--font-sans); color: var(--color-ash-gray);
}
.gate-x:hover { color: var(--color-bone-white); }

.gate-kicker {
  display: block; margin-bottom: 10px;
  font: 500 10px/1 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .28em; color: var(--color-saffron-spark);
}
.gate-title {
  margin: 0 0 6px; font-size: 26px; font-weight: 600;
  letter-spacing: .02em; color: var(--color-bone-white);
}
.gate-sub {
  margin: 0 0 22px; font-size: var(--text-caption);
  color: var(--color-ash-gray); letter-spacing: .04em;
}

.gate-field { display: flex; gap: 8px; }
.gate-field input {
  flex: 1; min-width: 0; padding: 13px 14px;
  background: rgba(128, 82, 255, .06);
  border: 1px solid rgba(128, 82, 255, .35); border-radius: 0;
  color: var(--color-bone-white); outline: none;
  font: 500 15px ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .12em;
}
.gate-field input:focus {
  border-color: var(--color-electric-iris);
  box-shadow: 0 0 0 1px rgba(128, 82, 255, .4), 0 0 18px rgba(128, 82, 255, .25);
}
.gate-field input::placeholder { color: rgba(154, 154, 154, .5); letter-spacing: .1em; }

.gate-go {
  padding: 0 18px; cursor: pointer;
  background: var(--color-electric-iris); border: 0;
  color: #fff; font: 600 17px/1 var(--font-sans);
  transition: filter .15s, transform .15s;
}
.gate-go:hover { filter: brightness(1.2); }
.gate-go:active { transform: scale(.96); }

.gate-err {
  margin: 12px 0 0;
  font: 500 11px/1.5 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .12em; color: #ff4d5e;
}
.gate-err[hidden] { display: none; }

.gate-foot {
  display: block; margin-top: 24px; padding-top: 14px;
  border-top: 1px solid rgba(128, 82, 255, .18);
  font: 500 9px/1 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .24em; color: rgba(154, 154, 154, .6);
}





/* ═══════════════════════════════════════════════════════
   INTRO — logo animation overlay (intro.js)
   Fullscreen video opening that fades out into the site.
   Skipped for repeat views / reduced-motion / hash links.
   ═══════════════════════════════════════════════════════ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #04060a;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .7s ease;
}
.intro-overlay.is-done { opacity: 0; pointer-events: none; }
.intro-overlay.is-gone { display: none; }

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* logo stays uncropped */
  background: #04060a;
}

.intro-skip {
  position: absolute;
  right: 28px;
  bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(110,231,247,.75);
  background: rgba(110,231,247,.06);
  border: 1px solid rgba(110,231,247,.28);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.intro-skip:hover,
.intro-skip:focus-visible {
  color: #6ee7f7;
  border-color: rgba(110,231,247,.7);
  background: rgba(110,231,247,.12);
  outline: none;
}

/* Lock page scroll while the intro is on screen */
body.intro-lock { overflow: hidden; }
