﻿/* Omega landing page — design tokens + styling */

:root {
  --bg: #08090a;
  --bg-elevated: #0d0e10;
  --fg: #f7f8f8;
  --fg-secondary: #8a8f98;
  /* Carries real body copy at 11-13px (trust line, panel labels, footer), so
     it has to clear WCAG AA 4.5:1 — 5.15:1 on --bg, 4.99:1 on --bg-elevated. */
  --fg-tertiary: #7c828c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #7c8aff;
  --accent-soft: rgba(124, 138, 255, 0.12);
  --accent-ink: #0b0c0e;
  --glow-accent: rgba(124, 138, 255, 0.10);
  --glow-teal: rgba(56, 189, 148, 0.06);
  --card: rgba(255, 255, 255, 0.03);

  --font-sans: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Code", ui-monospace, Consolas, monospace;

  /* Applied top and bottom, so adjacent sections sit 2x this apart. Keep that
     doubling in mind before raising it — 96px here reads as 192px on screen. */
  --section-pad: clamp(56px, 6vw, 96px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 9, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--border);
}

.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wordmark-glyph {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--fg-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Only ever visible below 860px, where .nav-links collapses into a panel. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-secondary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

.nav-toggle-icon {
  width: 20px;
  height: 20px;
}

.site-nav.is-nav-open .nav-toggle-icon-open,
.nav-toggle-icon-close {
  display: none;
}

.site-nav.is-nav-open .nav-toggle-icon-close {
  display: block;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.lang-toggle a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* The pill stays visually compact so it doesn't inflate the nav bar, but the
   tap area is padded out to 44px tall. Width is a real 44px above (min-width)
   rather than an overlay — the two links sit 2px apart and overlapping hit
   areas would be worse than none. */
.lang-toggle a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.lang-toggle a:hover {
  color: var(--fg);
}

.lang-toggle a.is-current {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--accent:hover {
  transform: translateY(-1px);
}

.btn--small {
  font-size: 13px;
  padding: 8px 14px;
}

.btn--large {
  font-size: 16px;
  padding: 14px 28px;
}

.btn--ghost {
  color: var(--fg-secondary);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

/* ---------- Sections ---------- */

section {
  padding: var(--section-pad) 0;
  position: relative;
  /* Clears the sticky nav so anchor links don't park their own heading
     underneath it. Matches .how-sticky's offset. */
  scroll-margin-top: 88px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--section-pad) + 24px);
  overflow: hidden;
  /* Cursor position, updated by initPointerFx. Defaults keep the composition
     sensible before any pointer input, on touch, and under reduced motion. */
  --mx: 50%;
  --my: 32%;
}

/* Cursor-lit dot grid: a faint base grid everywhere, brighter dots revealed
   only inside a soft circle around the cursor. */
.hero-grid,
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
  mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
}

.hero-spotlight {
  background: radial-gradient(circle 320px at var(--mx) var(--my), rgba(124, 138, 255, 0.16), transparent 70%);
  mix-blend-mode: screen;
}

.glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.glow--accent {
  background: var(--glow-accent);
  top: -160px;
  left: -120px;
}

.glow--teal {
  background: var(--glow-teal);
  top: 40px;
  right: -200px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy,
.chat-card {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: linear-gradient(90deg, var(--accent), #38bd94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-trust {
  font-size: 13px;
  color: var(--fg-tertiary);
}

.chat-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(6px);
}

.chat-bubble {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble--user {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  align-self: flex-end;
  max-width: 85%;
}

/* Positioned so the .metric-tag inside it anchors here and not on .chat-card,
   where it would land on top of the user bubble. */
.chat-bubble--answer {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}

.chat-answer-value {
  font-size: 2.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 10px;
}

.chat-answer-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-secondary);
  margin-bottom: 14px;
}

.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 4px 8px;
}

.chat-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-export {
  font-size: 12px;
  color: var(--fg-tertiary);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Capabilities ---------- */

.capabilities h2 {
  max-width: 780px;
  margin-top: 16px;
}

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

@media (min-width: 1100px) {
  .capability-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.capability-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.capability-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.capability-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.capability-card p {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.5;
}


/* ---------- How it works ---------- */

/* The section pins while a ~3-screen scroller passes behind it. Each third of
   that travel is one stage: the step column slides so the active step sits
   ~40% down, and the matching panel cross-fades in. Panels are stacked in one
   fixed-size frame, so only ever one is opaque — they never overlap visually.
   Driven by initHowSteps; below 900px the static fallback below takes over. */
/* Tighter than the standard section rhythm: the pinned scroller already ends
   on a centred, mostly-empty viewport, so a full --section-pad below it reads
   as dead space. Bottom padding is dropped entirely — the next section's own
   top padding is the whole gap. */
.how {
  padding-top: clamp(48px, 5vw, 80px);
  padding-bottom: 0;
}

.how h2 {
  max-width: 640px;
}

/* Scroll budget for the three pinned stages. initHowSteps reads progress as a
   fraction of (height - viewport), so this scales without touching the JS —
   lower means a tighter section but less time to read each stage. */
.how-scroller {
  position: relative;
  height: 180vh;
}

.how-sticky {
  position: sticky;
  top: 88px;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
}

.how-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Fixed-height window; the track inside it is what moves. */
.how-steps {
  position: relative;
  height: 300px;
  overflow: hidden;
}

/* Transform and opacity are written per scroll frame by initHowSteps, so no
   CSS transition here — a transition would lag behind the scroll instead of
   following it. Values below are the pre-JS defaults. */
.how-steps-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
}

.how-step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-tertiary);
  padding-top: 4px;
  transition: color 0.45s ease;
}

.how-step.is-active .how-step-number {
  color: var(--accent);
}

.how-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.how-step p {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.5;
  margin: 0;
}

/* The card frame is the container and stays put; the three panels stack
   inside it and only their contents cross-fade, so the frame never blinks
   empty mid-transition. */
.how-visual {
  position: relative;
  min-height: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.how-panel {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  will-change: opacity, transform;
}

/* Pre-JS default: show the first panel rather than an empty frame. */
.how-panel:first-child {
  opacity: 1;
}

.how-panel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-tertiary);
  margin: 0;
}

.how-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.how-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
}

.how-composer-text {
  flex: 1;
  font-size: 14px;
  color: var(--fg);
  margin: 0;
}

.how-caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .how-caret {
    animation: how-caret-blink 1s step-end infinite;
  }
}

@keyframes how-caret-blink {
  50% { opacity: 0; }
}

.how-composer-send {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.how-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.how-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
}

.how-tick {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.how-steps-done {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-tertiary);
  margin: 0;
}

.how-answer-value {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

.how-answer-chart {
  width: 100%;
  height: 44px;
  color: var(--accent);
}

.how-answer-note {
  font-size: 13px;
  color: var(--fg-secondary);
  margin: 0;
}

.how-answer-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-tertiary);
  margin: 0;
}

@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(48px, 6vw, 88px);
  }
}

/* Static fallback under 900px: no pinning, no stage-stepping. Steps stack in
   full, and the three panels follow in flow. Mirrors initHowSteps bailing out
   at the same breakpoint. */
@media (max-width: 899px) {
  .how-scroller {
    height: auto;
  }

  .how-sticky {
    position: static;
    min-height: 0;
    display: block;
  }

  .how-steps {
    height: auto;
    overflow: visible;
  }

  .how-steps-track {
    position: static;
    transform: none !important;
  }

  .how-step {
    opacity: 1 !important;
    padding: 0 0 28px;
  }

  .how-step-number {
    color: var(--accent);
  }

  /* Stacked in flow, so each panel carries its own card instead of sharing
     the frame. */
  .how-visual {
    min-height: 0;
    background: none;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .how-panel {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    min-height: 300px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-step-number {
    transition-duration: 0.001ms;
  }

  .how-caret {
    animation: none;
  }
}

/* ---------- Connector ---------- */

.connector-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.connector-copy h2 {
  margin: 12px 0 16px;
}

.connector-copy p {
  color: var(--fg-secondary);
  max-width: 560px;
}

.connector-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-tertiary);
}

.tool-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 1100px) {
  .tool-chips {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tool-chip:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.tool-chip-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.tool-chip p {
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.45;
}

.tool-chip--accent {
  border-color: var(--accent);
}

.tool-chip--accent .tool-chip-name {
  color: var(--accent);
}

/* ---------- Trust ---------- */

.trust h2 {
  max-width: 780px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (min-width: 1100px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.trust-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

/* ---------- Semantic layer ---------- */

.semantic h2 {
  max-width: 780px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.metric-tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.metric-tile:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.metric-question {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.metric-tile--accent .metric-question {
  padding-right: 80px;
}

.metric-tile .sparkline {
  width: 100%;
  height: 24px;
  color: var(--fg-tertiary);
}

.metric-tile p {
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.metric-tile--accent {
  border-color: var(--accent);
}

.metric-tile--accent .sparkline {
  color: var(--accent);
}

.metric-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 3px 6px;
}

/* ---------- Who ---------- */

.who h2 {
  max-width: 780px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.persona h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.persona p {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.who-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-tertiary);
}

/* ---------- FAQ ---------- */

.faq h2 {
  max-width: 780px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.6;
  max-width: 680px;
}

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

.cta-footer {
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-footer h2 {
  max-width: 680px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  font-size: 13px;
  color: var(--fg-tertiary);
}

/* ---------- Cursor glow on cards ---------- */

/* Pointer-following highlight, in two layers: ::before is the soft fill that
   washes across the card, ::after is a 1px ring that lights only the stretch of
   border nearest the cursor. --mx/--my are set per card by initPointerFx; the
   fallback centre keeps hover sane without JS and under reduced motion.

   No overflow:hidden here — it clips to the padding box, which would trap the
   ring inside the card's own border and read as a doubled edge. The pseudos
   inherit the radius instead, which clips the fill just as well and leaves
   ::after free to sit out on the border itself. */
[data-glow] {
  position: relative;
  isolation: isolate;
}

[data-glow]::before,
[data-glow]::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

[data-glow]::before {
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(124, 138, 255, 0.16), transparent 70%);
}

/* Ring trick: paint the gradient over the whole box, then mask out everything
   but a 1px frame by XOR-ing a content-box mask against a full-box one. Pulled
   out by 1px so the lit frame lands exactly on the card's border. */
[data-glow]::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(circle 180px at var(--mx, 50%) var(--my, 50%), rgba(124, 138, 255, 0.6), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@media (any-hover: hover) and (any-pointer: fine) {
  [data-glow]:hover::before,
  [data-glow]:hover::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-glow]::before,
  [data-glow]::after {
    transition: none;
  }
}

/* ---------- Scroll reveal ---------- */

/* Gated on the .js class an inline head script sets, so that if app.js never
   loads the page renders fully visible instead of blank below the hero. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-reveal-delay="75"] {
    transition-delay: 75ms;
  }

  [data-reveal-delay="150"] {
    transition-delay: 150ms;
  }

  [data-reveal-delay="225"] {
    transition-delay: 225ms;
  }

  [data-reveal-delay="300"] {
    transition-delay: 300ms;
  }

  [data-reveal-delay="375"] {
    transition-delay: 375ms;
  }
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

/* Touch targets. Keyed on pointer type rather than width — a tablet above the
   860px breakpoint is still a thumb, and a narrow desktop window is not. Kept
   ahead of the width queries so the mobile nav panel's own rules win below
   860px, where the links are a stacked list rather than a row in the bar. */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  /* Inline by default, so it needs a box before min-height means anything. */
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .connector-inner {
    grid-template-columns: 1fr;
  }

  .tool-chips {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .persona-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* The links move into a panel under the bar rather than disappearing.
     Absolute against .site-nav, which is a containing block via position:
     sticky. Toggled by initNavMenu. */
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px 16px 12px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
  }

  .nav-links a + a {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-nav-inner {
    gap: 12px;
    padding: 14px 16px;
  }

  .nav-right {
    gap: 10px;
  }

  .btn--small {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-chips {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .container {
    padding: 0 20px;
  }
}
