/* EVOEON — public landing page
   Deep indigo starfield, molten-gold accent, monospace-forward type. */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #060414;
  --nebula: #150b2e;
  --nebula-hi: #241348;
  --void: #02010a;
  --panel: rgba(8, 7, 24, 0.97);
  --border: rgba(167, 230, 255, 0.08);
  --text: #c2e7ff;
  --text-secondary: #8fa3bd;
  --cyan: #a7e6ff;
  --violet: #c9b6ff;
  --gold: #c89632;
  --gold-hi: #e6b24a;
  --gold-melt: #ffb347;
  --gold-deep: #ff7a18;
  --gold-glow: rgba(255, 150, 40, 0.35);
  --molten: linear-gradient(135deg, #c89632 0%, #ffb347 45%, #ff7a18 100%);
  --green: #bff7d1;
  --amber: #ffe1a6;
  --red: #ff5b5b;

  --font-display: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --line: 1px solid var(--border);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- starfield ---- */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 22% 8%, var(--nebula-hi) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 82% 18%, var(--nebula) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 100%, var(--nebula) 0%, transparent 60%),
    var(--void);
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 30% 70%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 50% 30%, #fff 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 60%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 85% 15%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 15% 85%, #fff 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 90%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 92% 75%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 40% 45%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 75% 40%, #fff 0%, transparent 60%);
  background-size: 480px 480px;
  opacity: 0.35;
}

.starfield::after {
  background-size: 720px 720px;
  background-position: 120px 200px;
  opacity: 0.2;
  animation: drift 140s linear infinite;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-240px, -240px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .starfield::after { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---- layout shell ---- */

main, header, footer { position: relative; z-index: 1; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
  border-bottom: var(--line);
}

section:last-of-type { border-bottom: none; }

/* ---- type ---- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

h2 .accent { color: var(--gold-hi); }

p { margin: 0 0 16px; color: var(--text-secondary); max-width: 62ch; }

.lede {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 56ch;
}

a { color: var(--cyan); }

.small-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ---- sigil ---- */

.sigil { display: block; }

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

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 56px;
  border-bottom: var(--line);
  text-align: center;
}

.hero .sigil-wrap {
  margin: 0 auto 28px;
  width: 64px;
  height: 64px;
}

.hero h1 {
  font-size: clamp(2rem, 7.5vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero .lede {
  margin: 0 auto 34px;
  text-align: center;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--molten);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- early access form ---- */

.signup {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--panel);
  border: var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 16px;
  border-radius: 3px;
  outline: none;
}

.signup input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.signup input[type="email"]::placeholder { color: var(--text-secondary); }

.btn-molten {
  flex: 0 0 auto;
  background: var(--molten);
  color: var(--void);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-molten:hover { filter: brightness(1.08); }
.btn-molten:active { transform: translateY(1px); }
.btn-molten:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.signup-note {
  margin: 14px auto 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 420px;
}

.signup-note[data-state="ok"] { color: var(--green); }
.signup-note[data-state="err"] { color: var(--amber); }

.test-build {
  margin-top: 26px;
  font-size: 0.9rem;
}

.test-build a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

.test-build a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* ---- steps (genuinely sequential — talk / remembers / becomes yours) ---- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: var(--line);
}

.step:first-child { border-top: none; }

.step-mark {
  width: 30px;
  height: 30px;
  position: relative;
}

.step-mark svg { width: 100%; height: 100%; }

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: var(--cyan);
}

.step p { margin-bottom: 0; }

/* ---- what it remembers ---- */

.remember-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}

@media (min-width: 560px) {
  .remember-grid { grid-template-columns: 1fr 1fr; }
}

.remember-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 4px;
}

.diamond-bullet {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  background: var(--molten);
  transform: rotate(45deg);
}

.remember-item h3 {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 4px;
}

.remember-item p { font-size: 0.92rem; margin-bottom: 0; }

/* ---- honesty terminal ---- */

.terminal {
  margin-top: 32px;
  background: var(--panel);
  border: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: var(--line);
}

.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-body {
  padding: 20px 18px 22px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.7;
}

.terminal-line { margin-bottom: 10px; }
.terminal-line:last-child { margin-bottom: 0; }

.terminal-you { color: var(--text-secondary); }
.terminal-you::before { content: "you  "; color: var(--violet); }

.terminal-twin { color: var(--cyan); }
.terminal-twin::before { content: "twin "; color: var(--gold-hi); }

/* ---- privacy statements ---- */

.privacy-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-list p {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  color: var(--text);
}

/* ---- legacy — deliberately low visual weight ---- */

.legacy-panel {
  margin-top: 24px;
  border: var(--line);
  border-radius: 4px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.015);
}

.legacy-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.legacy-panel h3 {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 8px;
}

.legacy-panel p { font-size: 0.92rem; margin-bottom: 0; }

/* ---- about the name ---- */

.name-note p { font-size: 0.94rem; }
.name-note .latin { color: var(--violet); font-style: italic; }

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

footer {
  padding: 40px 0 56px;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

footer .foot-sigil { width: 22px; height: 22px; opacity: 0.7; }

footer .foot-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

footer a { color: var(--text-secondary); }
footer a:hover { color: var(--cyan); }

/* ---- privacy.html specifics ---- */

.doc h1 {
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  margin-bottom: 8px;
}

.doc .updated {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 1.15rem;
  margin-top: 36px;
  color: var(--gold-hi);
}

.doc p, .doc li { color: var(--text-secondary); font-size: 0.96rem; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a.back { display: inline-block; margin-top: 44px; font-size: 0.9rem; }
