/* Trillion landing — glassmorphism, ice-cyan on near-black blue. Palette mirrors the deck
   (shell/web/src/styles.css) so the public face matches the product. */

:root {
  --bg: #06080d;
  --surface: #0a0e16;
  --text: #e6ecf5;
  --muted: #8a95a8;
  --accent: #5ee6ff; /* ice cyan — primary glow */
  --amber: #ffb877;
  --indigo: #8b7bf0;
  --green: #4bd991;
  --red: #ff6b5a;

  --glass-fill: rgba(255, 255, 255, 0.05);
  --glass-tint: rgba(10, 14, 22, 0.55);
  --border: rgba(255, 255, 255, 0.1);
  --border-2: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(20px) saturate(140%);

  --font-display: "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Ambient background: a slow cyan/indigo aurora + film grain. */
.bg-grad {
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  background:
    radial-gradient(40vmax 40vmax at 72% 12%, rgba(94, 230, 255, 0.16), transparent 60%),
    radial-gradient(46vmax 46vmax at 18% 78%, rgba(139, 123, 240, 0.14), transparent 62%),
    radial-gradient(30vmax 30vmax at 50% 50%, rgba(255, 184, 119, 0.05), transparent 60%);
  filter: blur(8px);
  animation: drift 26s var(--ease-out) infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(2%, -2%, 0) scale(1.06); }
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  backdrop-filter: var(--glass-blur);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.wordmark.sm { font-size: 1.05rem; }
.wordmark .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6fbff, var(--accent) 55%, #1aa6c4);
  box-shadow: 0 0 14px var(--accent), 0 0 4px var(--accent);
  animation: pulse 3.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
}
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 12px;
  padding: 0.72rem 1.25rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #7ff0ff, var(--accent));
  color: #04222b;
  box-shadow: 0 6px 24px rgba(94, 230, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(94, 230, 255, 0.45); }
.btn-ghost {
  background: var(--glass-fill);
  color: var(--text);
  border-color: var(--border-2);
  padding: 0.5rem 0.95rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 1.5rem clamp(4rem, 9vw, 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 78vh;
}
/* Orb + HUD: a square wrapper holds both, so the HUD instrument ring frames the point-sphere
   at the same ratio on every screen. The sphere is the glowing core inside the ring. */
.orbwrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(660px, 94vw);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -54%);
  z-index: 0;
  pointer-events: none;
}
.orb {
  /* <canvas> is a replaced element — inset won't stretch it (auto size = intrinsic 300×150),
     so size it explicitly. Centre 64% lands the sphere just inside the HUD core ring. */
  position: absolute;
  top: 18%;
  left: 18%;
  width: 64%;
  height: 64%;
  opacity: 0.95;
}
.orb-hud {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.orb-hud .trillion-hud {
  display: block;
  width: 100%;
  height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .orb-hud { opacity: 0.7; }
}
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}
.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: #c4cde0;
  margin: 0 auto 2rem;
  max-width: 580px;
}

/* Inline hero email capture */
.access-inline {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto;
}
.access-inline input,
.access-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--glass-tint);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 0.72rem 1rem;
  backdrop-filter: var(--glass-blur);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.access-inline input::placeholder,
.access-form input::placeholder { color: var(--muted); }
.access-inline input:focus,
.access-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 230, 255, 0.18);
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.9rem auto 0;
  min-height: 1.2em;
  transition: color 0.2s;
}
.form-note.ok { color: var(--green); }
.form-note.err { color: var(--red); }

/* Private-build state (waitlist disabled) */
.cta-static {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.cta-static.center { justify-content: center; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--glass-tint);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  backdrop-filter: var(--glass-blur);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6fbff, var(--accent) 55%, #1aa6c4);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 3.6s var(--ease-out) infinite;
}
.cta-static-text { color: var(--muted); font-size: 0.95rem; }

/* ───────────────────────── Bands ───────────────────────── */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
}
.band-tight { padding-top: 0; }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.band-lede {
  font-size: 1.12rem;
  color: #c4cde0;
  max-width: 60ch;
  margin: 0 0 2.4rem;
}

/* Card grids */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card,
.crew-card {
  background: linear-gradient(var(--glass-fill), var(--glass-fill)), var(--glass-tint);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.card:hover,
.crew-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card h3,
.crew-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.card p,
.crew-card p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.crew-card { text-align: left; }
.crew-glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  color: #04222b;
}
.crew-glyph[data-c="cyan"] { background: radial-gradient(circle at 35% 30%, #d6fbff, var(--accent)); box-shadow: 0 0 18px rgba(94,230,255,0.4); }
.crew-glyph[data-c="indigo"] { background: radial-gradient(circle at 35% 30%, #cdc6ff, var(--indigo)); box-shadow: 0 0 18px rgba(139,123,240,0.4); color:#180f3a; }
.crew-glyph[data-c="amber"] { background: radial-gradient(circle at 35% 30%, #ffe3c4, var(--amber)); box-shadow: 0 0 18px rgba(255,184,119,0.4); color:#3a2410; }
.crew-glyph[data-c="green"] { background: radial-gradient(circle at 35% 30%, #c4ffe0, var(--green)); box-shadow: 0 0 18px rgba(75,217,145,0.4); color:#08321f; }

/* Crew portraits — the real agent roster */
.crew-grid { gap: 1.2rem; }
.crew-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.crew-portrait {
  display: block;
  width: 100%;
  height: 200px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  /* let the cyan/indigo art read against the dark glass */
  -webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0.86));
  mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0.86));
}
.crew-body { padding: 1.25rem 1.4rem 1.5rem; }
.crew-card h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
}
.crew-role {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Tech stack cards */
.stack-grid { gap: 1.1rem; }
.stack-card { position: relative; }
.stack-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.stack-card h3 { font-size: 1.18rem; }
.stack-card em { color: var(--accent); font-style: normal; }

/* Domains row */
.domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.domains li {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--glass-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  backdrop-filter: var(--glass-blur);
}

/* Voice quotes */
.quotes { columns: 2; column-gap: 1.1rem; }
.quotes blockquote {
  break-inside: avoid;
  margin: 0 0 1.1rem;
  padding: 1.2rem 1.3rem;
  font-size: 1.06rem;
  line-height: 1.45;
  color: #d5deee;
  background: linear-gradient(var(--glass-fill), var(--glass-fill)), var(--glass-tint);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 14px;
  backdrop-filter: var(--glass-blur);
}

/* ───────────────────── Access section ───────────────────── */
.access {
  position: relative;
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 1.5rem;
}
.access-inner {
  text-align: center;
  padding: clamp(2.6rem, 6vw, 4.5rem) 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(94, 230, 255, 0.14), transparent 70%),
    var(--glass-tint);
  border: 1px solid var(--border-2);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}
.access-inner h2 { margin: 0 auto 0.7rem; max-width: none; }
.access-inner p { color: #c4cde0; max-width: 46ch; margin: 0 auto 1.8rem; }
.access-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ───────────────────────── Footer ───────────────────────── */
.foot {
  max-width: var(--maxw);
  margin: 4rem auto 0;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-meta { color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono); }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .quotes { columns: 1; }
}
@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .access-inline, .access-form { flex-direction: column; }
  .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grad, .wordmark .dot { animation: none; }
  html { scroll-behavior: auto; }
}
