/* Heimdall — landing */

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

:root {
  --bg: #ffffff;
  --bg-2: #f7f7f6;
  --ink: #0a0a0c;
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --rule: #e7e7e9;

  /* Dark scheme */
  --d-bg: #0b0d10;
  --d-bg-2: #14181d;
  --d-ink: #f6f6f4;
  --d-text: #d6d6d4;
  --d-muted: #84858a;
  --d-faint: #4d5158;
  --d-rule: rgba(255,255,255,0.08);

  --signal: #16a34a;
  --navy: #194262;
  --gold: #ba9c62;
  --amber: #d97706;
  --escalate: #ef4444;
  --watch: #94a3b8;
  --conflicted: #a78bfa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--d-text);
  background: var(--d-bg);
  font-feature-settings: 'cv11', 'ss01', 'tnum';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-feature-settings: 'tnum';
}

.col {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: #2a2a2c; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(2px); }

.btn--lg { padding: 14px 22px; font-size: 15px; border-radius: 10px; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink); }

.btn--invert {
  background: #f5f3ec;
  color: #0a0a0c;
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 1px 2px rgba(0,0,0,0.3),
    0 10px 28px -8px rgba(186,156,98,0.28);
  font-weight: 500;
}
.btn--invert:hover {
  background: #fffcf2;
  border-color: rgba(255,255,255,0.22);
}

.btn--invert-ghost {
  background: transparent;
  color: var(--d-ink);
  border-color: rgba(255,255,255,0.18);
}
.btn--invert-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}

/* ── HERO (dark, cinematic) ──────────────────────────────────────────── */
.hero {
  background: var(--d-bg);
  color: var(--d-ink);
  position: relative;
  height: 100vh;
  min-height: 680px;
  max-height: 920px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 0.7px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Soft gradient glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 75% 35%, rgba(217, 119, 6, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 600px at 20% 80%, rgba(25, 66, 98, 0.30) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

/* Hero nav */
.hero__nav {
  padding: 18px 0;
  flex-shrink: 0;
}
.hero__nav-inner {
  display: flex; align-items: center; gap: 24px;
}
.hero__brand img { height: 22px; width: auto; display: block; filter: invert(1) brightness(1.6) hue-rotate(180deg) saturate(0); opacity: 0.95; }
.hero__nav-spacer { flex: 1; }
.hero__nav-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--d-muted);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__nav-meta .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  position: relative;
}
.hero__nav-meta .pulse::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  opacity: 0.45;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

/* Hero body — asymmetric: text on the left, cascade fills full width behind */
.hero__body {
  flex: 1;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 36px;
  min-height: 0;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--d-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.hero__h1 {
  font-size: clamp(44px, 5.8vw, 84px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--d-ink);
  margin-bottom: 22px;
}
.hero__h1 .muted {
  color: var(--d-muted);
  font-weight: 400;
}

.hero__sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--d-text);
  max-width: 440px;
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}

.hero__cta {
  display: flex; gap: 10px;
}

/* ── Cascade visualization (the signature) ───────────────────────────── */
.cascade {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cascade svg {
  width: 100%;
  height: 100%;
  max-height: 620px;
  display: block;
}

/* Overlay HUD */
.hud {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--d-text);
  letter-spacing: 0.04em;
  padding: 8px 12px;
  background: rgba(11,13,16,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  z-index: 3;
}
.hud strong { color: white; font-weight: 600; }
.hud--tl { top: 10px; left: 0; }
.hud--br { bottom: 10px; right: 10px; }

.hud-grid {
  display: flex;
  gap: 22px;
  align-items: center;
}
.hud-grid > div { display: flex; flex-direction: column; gap: 2px; }
.hud-grid .lbl { font-size: 9px; color: var(--d-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hud-grid .val { font-size: 14px; color: white; font-weight: 600; letter-spacing: 0; }

/* ── Marquee strip below hero (live ticker feel) ─────────────────────── */
.marquee {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 13px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--d-muted);
  letter-spacing: 0.03em;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}
.marquee__inner {
  display: flex;
  gap: 64px;
  animation: scroll 45s linear infinite;
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.marquee__item .tag {
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.marquee__item .tag.flag { background: rgba(239,68,68,0.18); color: var(--escalate); }
.marquee__item .tag.bridge { background: rgba(186,156,98,0.18); color: var(--gold); }
.marquee__item .tag.fizz { background: rgba(148,163,184,0.18); color: var(--watch); }
.marquee__item .tag.actor { background: rgba(167,139,250,0.18); color: var(--conflicted); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Body sections (dark — same plane as hero) ───────────────────────── */
.scene {
  padding: 110px 0;
  position: relative;
  isolation: isolate;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 0.6px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}
.scene > * { position: relative; }

.scene--glow-amber::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 30% 50%, rgba(217,119,6,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.scene--glow-navy::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 70% 50%, rgba(25,66,98,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.scene__head {
  max-width: 760px;
  margin-bottom: 56px;
}
.scene__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.scene__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--d-muted);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.scene__num::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--d-faint);
}

.scene__h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--d-ink);
  margin-bottom: 18px;
}
.scene__h2 .muted { color: var(--d-faint); font-weight: 400; }

.scene__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--d-text);
  max-width: 600px;
  letter-spacing: -0.005em;
}

/* ── Product shot frame (the "screen on a dark room" treatment) ──────── */
.shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.6),
    0 24px 48px -12px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.06) inset;
}
.shot__chrome {
  position: absolute;
  top: 12px; left: 14px;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
}
.shot__chrome .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.shot__chrome .dot:nth-child(1) { background: rgba(255,255,255,0.12); }
.shot__chrome .dot:nth-child(2) { background: rgba(255,255,255,0.10); }
.shot__chrome .dot:nth-child(3) { background: rgba(255,255,255,0.08); }

.shot__caption {
  position: absolute;
  bottom: 14px; right: 18px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--d-muted);
  letter-spacing: 0.04em;
  background: rgba(11,13,16,0.7);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.06);
}

.shot__frame {
  width: 100%;
  background: white;
  overflow: hidden;
  position: relative;
}
.shot__frame iframe {
  width: 1440px;
  height: 1180px;
  border: none;
  display: block;
  transform-origin: top left;
}
.shot--dashboard .shot__frame {
  height: 720px;
  aspect-ratio: 1440 / 920;
}
.shot--dashboard .shot__frame iframe {
  /* container width / native iframe width */
  transform: scale(calc(100cqw / 1440));
}
@supports not (container-type: inline-size) {
  .shot--dashboard .shot__frame iframe { transform: scale(0.84); }
}
.shot--story .shot__frame {
  height: 720px;
  aspect-ratio: 1440 / 1180;
}
.shot--story .shot__frame iframe {
  transform: scale(0.84);
}
.shot--alert {
  max-width: 760px;
  margin: 0 auto;
  background: #f0f1f4;
}
.shot--alert .shot__frame {
  height: 540px;
  aspect-ratio: auto;
  background: #f0f1f4;
}
.shot--alert .shot__frame iframe {
  position: relative;
  width: 100%;
  height: 540px;
  transform: none;
  background: #f0f1f4;
}

/* Two-column scene (copy + shot) */
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.scene-grid.reverse {
  grid-template-columns: 1.4fr 1fr;
}
.scene-grid.reverse > .scene-grid__copy { order: 2; }
.scene-grid.reverse > .scene-grid__visual { order: 1; }

.scene-grid__copy h3 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--d-ink);
  margin-bottom: 16px;
}
.scene-grid__copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--d-text);
  letter-spacing: -0.003em;
  max-width: 440px;
}
.scene-grid__copy .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--d-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.scene-grid__copy .eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--d-faint);
}

/* ── Closing (dark, mirrors hero) ────────────────────────────────────── */
.close {
  background: var(--d-bg);
  color: var(--d-ink);
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.close::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 0.6px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.close::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 900px 500px at 50% 30%, rgba(217,119,6,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.close > * { position: relative; }

.close__inner { text-align: center; }
.close__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--d-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.close__h2 {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--d-ink);
  margin: 0 auto 18px;
  max-width: 800px;
}
.close__h2 .muted { color: var(--d-muted); font-weight: 400; }

.close__sub {
  font-size: 17px;
  color: var(--d-text);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.close__row { display: flex; gap: 10px; justify-content: center; }

/* Closing footer */
.close__footer {
  margin-top: 100px;
  padding-top: 32px;
  border-top: 1px solid var(--d-rule);
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--d-muted);
  letter-spacing: 0.02em;
}
.close__footer-brand {
  display: flex; align-items: center; gap: 12px;
}
.close__footer-brand img {
  height: 16px; width: auto;
  filter: invert(1) brightness(1.6) hue-rotate(180deg) saturate(0);
  opacity: 0.6;
}
.close__footer-links { display: flex; gap: 22px; }
.close__footer-links a:hover { color: var(--d-ink); }
