/* Pithecus landing — the genesis intro, made scrollable. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #020207;
  --indigo: #818cf8;
  --indigo-deep: #4f46e5;
  --cyan: #22d3ee;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #475569;
}

html { scroll-behavior: smooth; }

body {
  /* not pure black — a faint indigo nebula keeps the void from feeling flat */
  background:
    radial-gradient(ellipse 65% 55% at 50% 36%, rgba(79, 70, 229, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 40% at 72% 78%, rgba(34, 211, 238, 0.05), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#brain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.site-nav, .hero, main, footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(rgba(2,2,7,0.85), transparent);
}

/* footer nav must NOT inherit the fixed-position main-nav styles */
.footer-links { position: static; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.35em; color: var(--text);
  text-decoration: none; font-weight: 300;
}
.logo-mark {
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.5));
}
.logo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 12px var(--indigo), 0 0 28px rgba(129,140,248,0.5);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.35); opacity: 0.8; } }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }
.nav-cta {
  border: 1px solid rgba(129,140,248,0.4);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--text) !important;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: rgba(99,102,241,0.18); border-color: var(--indigo); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.wordmark {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 200;
  letter-spacing: 0.45em;
  margin-left: 0.45em; /* visually recenter the tracked text */
  color: white;
  text-shadow: 0 0 40px rgba(129,140,248,0.85), 0 0 110px rgba(99,102,241,0.4);
}
.tagline {
  margin-top: 18px;
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.32em;
  margin-left: 0.32em;
  text-transform: uppercase;
  color: rgba(199,210,254,0.75);
  font-weight: 300;
}
.sub {
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  background: var(--indigo-deep);
  color: white; text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 13px 26px; border-radius: 14px;
  box-shadow: 0 0 30px rgba(79,70,229,0.45);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: #6366f1; transform: translateY(-1px); box-shadow: 0 0 44px rgba(99,102,241,0.6); }
.btn-primary.big { font-size: 16px; padding: 16px 36px; }
.btn-ghost {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 13px 10px; transition: color 0.2s;
}
.btn-ghost:hover { color: white; }
.scroll-hint {
  position: absolute; bottom: 30px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint span {
  width: 1px; height: 42px;
  background: linear-gradient(var(--indigo), transparent);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }

/* ---------- sections ---------- */
main { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

section { margin: 22vh auto; }

.kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(129,140,248,0.8);
  margin-bottom: 16px;
  font-weight: 600;
}
h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 250;
  line-height: 1.18;
  color: white;
  letter-spacing: 0.01em;
}
.lead { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 560px; }

.panel {
  max-width: 660px;
  padding: 48px;
  border-radius: 24px;
  background: rgba(8, 9, 24, 0.62);
  border: 1px solid rgba(129,140,248,0.14);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
}

.checks { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.65;
  color: #cbd5e1;
  font-weight: 300;
}
.checks li::before {
  content: '';
  position: absolute; left: 2px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34,211,238,0.8);
}
.checks em { color: white; font-style: italic; }

/* features grid */
.features { text-align: center; }
.grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
}
.card {
  padding: 34px 32px;
  border-radius: 22px;
  background: rgba(8, 9, 24, 0.6);
  border: 1px solid rgba(129,140,248,0.12);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(129,140,248,0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.12);
}
.card-glyph {
  font-size: 22px;
  color: var(--c, var(--indigo));
  text-shadow: 0 0 16px var(--c, var(--indigo));
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 500; color: white; margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.7; color: var(--muted); font-weight: 300; }

/* steps */
.steps { text-align: center; }
.steps ol {
  list-style: none;
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.steps li {
  padding: 32px 28px;
  border-radius: 22px;
  border: 1px solid rgba(129,140,248,0.1);
  background: rgba(8, 9, 24, 0.5);
  backdrop-filter: blur(14px);
}
.steps li span {
  font-size: 12px; letter-spacing: 0.25em;
  color: rgba(129,140,248,0.7);
}
.steps h3 { margin: 12px 0 8px; font-size: 16px; font-weight: 500; color: white; }
.steps p { font-size: 13.5px; line-height: 1.65; color: var(--muted); font-weight: 300; }

/* cta */
.cta { text-align: center; padding: 10vh 0 4vh; }
.cta p { margin-top: 16px; color: var(--muted); font-weight: 300; }
.cta strong { color: white; font-weight: 500; }
.fine { font-size: 12px !important; color: var(--faint) !important; margin-top: 22px !important; }

/* early-access signup */
.signup {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.signup input {
  width: min(320px, 80vw);
  padding: 15px 22px;
  border-radius: 14px;
  border: 1px solid rgba(129,140,248,0.3);
  background: rgba(8, 9, 24, 0.7);
  color: white;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 24px rgba(99,102,241,0.25);
}
.signup button { border: none; cursor: pointer; font-family: inherit; }
.signup button:disabled { opacity: 0.6; cursor: default; transform: none; }
.signup.done input { display: none; }

/* full signup form: name + email + notes stacked */
.signup-full {
  flex-direction: column;
  align-items: center;
}
.signup-full .signup-row {
  display: flex;
  gap: 12px;
  width: min(440px, 86vw);
}
.signup-full .signup-row input { flex: 1; width: auto; min-width: 0; }
.signup-full input, .signup-full textarea { width: min(440px, 86vw); }
.signup-full textarea {
  padding: 15px 22px;
  border-radius: 14px;
  border: 1px solid rgba(129,140,248,0.3);
  background: rgba(8, 9, 24, 0.7);
  color: white;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 76px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup-full textarea::placeholder { color: var(--faint); }
.signup-full textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 24px rgba(99,102,241,0.25);
}
.signup-full button { width: min(440px, 86vw); }
.signup.done textarea, .signup.done .signup-row { display: none; }
.signup.done button {
  background: rgba(34,211,238,0.12);
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.4);
  box-shadow: 0 0 30px rgba(34,211,238,0.2);
}

/* legal */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 110px 24px 80px;
}
.legal-page .kicker { margin-bottom: 12px; }
.legal-page h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 300;
  color: white;
  text-shadow: 0 0 40px rgba(129,140,248,0.5);
}
.legal-meta { margin-top: 10px; font-size: 13px; color: var(--faint); }
.legal-body { margin-top: 40px; display: flex; flex-direction: column; gap: 36px; }
.legal-body section h2 {
  font-size: 17px;
  font-weight: 500;
  color: white;
  margin-bottom: 12px;
}
.legal-body section h3 {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin: 16px 0 8px;
}
.legal-body p,
.legal-body li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}
.legal-body ul { margin-top: 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { color: var(--indigo); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: white; font-weight: 500; }
.legal-summary {
  padding: 24px 26px;
  border-radius: 18px;
  background: rgba(8, 9, 24, 0.62);
  border: 1px solid rgba(129,140,248,0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* demo */
.demo-media {
  margin-top: 24px;
  border-radius: 18px;
  border: 1px solid rgba(129,140,248,0.14);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.demo-media video,
.demo-media img { width: 100%; display: block; }

/* app stills grid */
.stills-panel { max-width: 1100px; }
.stills-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.still {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(129,140,248,0.16);
  background: rgba(8, 9, 24, 0.62);
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}
.still:hover {
  transform: translateY(-4px);
  border-color: rgba(129,140,248,0.4);
  box-shadow: 0 26px 70px rgba(79,70,229,0.25);
}
.still img { width: 100%; display: block; }
.still figcaption {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .stills-grid { grid-template-columns: 1fr; }
}

/* footer */
footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 24px 36px;
  border-top: 1px solid rgba(129,140,248,0.1);
  font-size: 12px;
  color: var(--faint);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo { font-size: 12px; }
.footer-tagline { font-size: 12px; color: var(--faint); font-weight: 300; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 520px;
  justify-content: flex-end;
}
.footer-links a { color: var(--faint); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--muted); }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .grid, .steps ol { grid-template-columns: 1fr; }
  .panel { padding: 34px 26px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

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