/* ============================================================
   PROJECT HELA — projecthela.com
   Design tokens derived from HELA's own HUD language.
   ============================================================ */

:root {
  /* Void + surfaces */
  --void: #05070B;
  --surface: #0A0F16;
  --surface-2: #0E1520;
  --line: rgba(148, 197, 222, 0.10);
  --line-bright: rgba(34, 211, 238, 0.35);

  /* Text */
  --text: #E6EDF3;
  --text-dim: #8B98A5;
  --text-faint: #55606C;

  /* Primary — HUD cyan */
  --cyan: #22D3EE;
  --cyan-deep: #0EA5B7;
  --cyan-glow: rgba(34, 211, 238, 0.16);

  /* Memory-dot accent system (six types, from the Stark Globe) */
  --dot-semantic: #34D399;   /* facts */
  --dot-episodic: #A78BFA;   /* days */
  --dot-emotional: #F472B6;  /* mood */
  --dot-goal: #F59E0B;       /* goals */
  --dot-vision: #22D3EE;     /* sight */
  --dot-system: #94A3B8;     /* internals */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1120px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan-deep); color: var(--void); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px;
}

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

/* ---------- Telemetry label (the site's structural voice) ---------- */
.tele {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tele .on { color: var(--cyan); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.14em; color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--cyan); }
.brand .dot { color: var(--cyan); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--cyan); }
.btn-signin {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--cyan); border: 1px solid var(--line-bright);
  padding: 7px 16px; border-radius: 6px;
}
.btn-signin:hover { background: var(--cyan-glow); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 72px 24px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  min-height: 78vh;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--cyan); }
.hero .sub { margin-top: 22px; color: var(--text-dim); font-size: 18px; max-width: 46ch; }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 500;
  font-size: 15px; padding: 12px 24px; border-radius: 8px; border: 1px solid transparent;
}
.btn-primary { background: var(--cyan); color: #03252B; }
.btn-primary:hover { background: #4ADEF0; text-decoration: none; }
.btn-ghost { border-color: var(--line-bright); color: var(--text); }
.btn-ghost:hover { background: var(--cyan-glow); text-decoration: none; }

.globe-stage { position: relative; height: 520px; }
#globe { width: 100%; height: 100%; cursor: grab; touch-action: none; }
#globe:active { cursor: grabbing; }
.globe-hint {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.dot-card {
  position: absolute; pointer-events: none; opacity: 0;
  transform: translateY(6px); transition: opacity 0.25s, transform 0.25s;
  background: var(--surface-2); border: 1px solid var(--line-bright);
  border-radius: var(--radius); padding: 12px 16px; max-width: 260px;
  font-size: 13px; color: var(--text-dim); box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.dot-card.show { opacity: 1; transform: translateY(0); }
.dot-card .type { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 5px; }

/* ---------- Live stats strip ---------- */
.stats {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34,211,238,0.03), transparent);
}
.stats-inner {
  max-width: var(--max); margin: 0 auto; padding: 26px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat .v {
  font-family: var(--font-mono); font-size: 26px; color: var(--text);
  display: flex; align-items: baseline; gap: 8px;
}
.stat .v .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--dot-semantic);
  align-self: center; animation: pulse 2.4s ease-in-out infinite;
}
.stat .v .pulse.off { background: var(--text-faint); animation: none; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.35 } }
.stat .k { margin-top: 4px; }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
.block h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.015em; line-height: 1.15;
}
.block .lede { color: var(--text-dim); font-size: 17px; margin-top: 16px; max-width: 60ch; }
.eyebrow { display: block; margin-bottom: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card:hover { border-color: var(--line-bright); }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; }
.card .tele { display: block; margin-bottom: 14px; }

/* ---------- Feed ---------- */
.feed { margin-top: 48px; }
.entry {
  display: grid; grid-template-columns: 150px 1fr; gap: 28px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry .date { padding-top: 3px; }
.entry h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.entry h3 .mark { color: var(--cyan); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; margin-right: 10px; }
.entry p { color: var(--text-dim); margin-top: 8px; font-size: 15px; max-width: 68ch; }
.entry .tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--text-dim);
}

/* ---------- Waitlist ---------- */
.waitlist-box {
  margin-top: 40px; background: var(--surface); border: 1px solid var(--line-bright);
  border-radius: var(--radius); padding: 40px;
  background-image: radial-gradient(ellipse at top left, var(--cyan-glow), transparent 55%);
}
.waitlist-form { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 240px; background: var(--void); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px;
  font-family: var(--font-body); font-size: 15px;
}
.waitlist-form input[type="email"]::placeholder { color: var(--text-faint); }
.waitlist-form button { cursor: pointer; border: none; }

/* ---------- Story / prose pages ---------- */
.prose { max-width: 720px; }
.prose p { color: var(--text-dim); margin: 18px 0; font-size: 16.5px; }
.prose h2 { margin-top: 56px; }
.prose .pull {
  border-left: 2px solid var(--cyan); padding-left: 22px; margin: 34px 0;
  font-family: var(--font-display); font-size: 21px; color: var(--text); line-height: 1.45;
}

/* ---------- Footer ---------- */
footer { padding: 56px 0 72px; }
.foot-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.foot-inner .tele a { color: var(--text-faint); }
.foot-inner .tele a:hover { color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: unset; padding-top: 48px; }
  .globe-stage { height: 380px; order: -1; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 8px; }
  section.block { padding: 64px 0; }
}
