/* ============================================================
   HYPERION.AI: Shared site stylesheet
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-var.woff2?v=20') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so the swap to Inter does not shift layout */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --bg:         #ffffff;
  --bg-tint:    #f5f7fb;
  --surface:    #ffffff;
  --ink:        #101b30;
  --ink-2:      #47556b;
  --muted:      #5d6c82;
  --line:       #e4e9f1;
  --line-strong:#cfd8e6;
  --accent:     #2856c8;
  --accent-ink: #1d43a1;
  --accent-soft:#edf2ff;
  --navy:       #101d35;
  --navy-2:     #1a2a46;
  --navy-line:  #34445f;
  --navy-text:  #b7c3d6;
  --navy-accent:#a8c3ff;

  --font: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1240px;
  --gutter: 32px;
  --section-y: clamp(56px, 6vw, 88px);
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -20px rgba(22, 38, 67, 0.2);
  --shadow-lg: 0 24px 60px -32px rgba(22, 38, 67, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { 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; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top var(--ease); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max-w) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); letter-spacing: -0.045em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 560; letter-spacing: -0.034em; line-height: 1.12; max-width: 22ch; }
h2 .h-soft { color: var(--muted); }
.section-dark h2 .h-soft { color: rgba(255, 255, 255, 0.55); }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.018em; line-height: 1.35; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.lead strong { color: var(--ink); font-weight: 600; }
.lead-sm { font-size: 1.0625rem; color: var(--ink-2); margin: 20px 0 24px; max-width: 520px; }
.muted { color: var(--muted); font-size: 0.9375rem; }
.text-link { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--ease); }
.text-link:hover { text-decoration-color: currentColor; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(40, 86, 200, 0.5); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: #9cabc0; background: #f5f7fb; }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }
.btn-lg { padding: 15px 24px; font-size: 0.975rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: wait; }

/* ── NAV ──────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(228, 233, 241, 0.8);
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: 0 8px 24px -20px rgba(16, 27, 48, 0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 76px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.035em; color: var(--ink); }
.brand-dot { color: var(--accent); }
.nav-logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.nav-links a:not(.btn) { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); transition: color var(--ease); }
.nav-links .btn { margin-left: 8px; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).nav-active { color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(72px, 7vw, 100px) 0 clamp(64px, 6vw, 84px);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 82% 30%, rgba(149, 181, 244, 0.25), transparent 40%),
    radial-gradient(ellipse at 3% 95%, rgba(220, 229, 248, 0.5), transparent 40%),
    linear-gradient(120deg, #fbfcff, #f3f6fc 70%, #edf3fd);
  overflow: hidden;
}
.hero .container { position: relative; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); align-items: stretch; gap: 32px clamp(40px, 4vw, 64px); }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; max-width: 560px; text-align: left; }
.hero-copy .lead { max-width: 450px; color: var(--ink-2); font-size: 1.0625rem; }
.hero h1 { max-width: 560px; margin-bottom: 20px; font-size: clamp(2.5rem, 4.4vw, 3.5rem); letter-spacing: -0.045em; line-height: 1.1; }
.hero h1 span { display: block; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn-primary { background: var(--ink); color: #fff; box-shadow: none; }
.hero .btn-primary:hover { background: var(--accent); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.5); }
.hero .btn-ghost:hover { background: #fff; }
.hero-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; text-align: center; }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts strong { color: var(--ink); font-weight: 600; }

/* ── VIDEO CARD ───────────────────────────────────────────── */
.video-card {
  min-width: 0;
  background: transparent;
}
.video-card-hero {
  width: 100%; max-width: none; margin: 0;
}
.video-facade, .video-frame {
  position: relative; display: block;
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1324;
  box-shadow: var(--shadow-lg);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-facade img.is-fallback { object-fit: contain; padding: 18px; background: #fff; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 18, 38, 0.25), transparent 50%); pointer-events: none; }
.video-card-hero .video-facade, .video-card-hero .video-frame { border-radius: 14px; }
.video-card-hero .video-facade::after { background: linear-gradient(to top, rgba(5, 17, 35, 0.72), rgba(5, 17, 35, 0.04) 55%); }
.hero-video-label { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-size: 0.8125rem; font-weight: 600; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); }
.hero-video-fallback { display: inline-block; padding: 10px 12px 4px; color: var(--accent); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; }
.video-facade:hover img { transform: scale(1.015); }
.video-play {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(7, 18, 38, 0.35);
  transition: transform var(--ease);
}
.video-play svg { margin-left: 3px; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 2px 0; font-size: 0.8125rem; color: var(--muted); }
.video-meta strong { color: var(--ink); font-weight: 600; }
.video-meta a { color: var(--accent); font-weight: 500; }
.video-meta a::after { content: ' \2197'; }
.video-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.video-note { display: block; color: var(--muted); font-size: 0.75rem; }

/* ── AUDIENCE STRIP ───────────────────────────────────────── */
.audience { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.audience-inner { display: flex; align-items: center; gap: 16px clamp(48px, 8vw, 120px); padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.audience-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.audience ul { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.audience li { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }

/* ── PANEL GRIDS (hairline-divided columns) ───────────────── */
.market-grid, .security-grid, .pnl-grid, .stat-strip {
  display: grid; gap: 16px;
}
.market-grid > *, .security-grid > *, .pnl-grid > *, .stat-strip > * {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

/* ── MARKET COVERAGE ──────────────────────────────────────── */
.market-card { min-height: 0; }
.market-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  margin-bottom: 28px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.market-card { display: flex; flex-direction: column; align-items: flex-start; }
.market-card h3 { margin-bottom: 8px; }
.market-topics-label { margin-top: auto; padding-top: 24px; font-size: 0.6875rem !important; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted) !important; }
.market-topics { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.market-topics li { position: relative; padding-left: 14px; font-size: 0.8125rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.market-topics li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.market-card p, .market-note { color: var(--ink-2); font-size: 0.9375rem; }
.market-note {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--bg-tint); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(48px, 7vw, 100px); align-items: end;
  margin-bottom: 44px;
}
.section-head > * { grid-column: 1; }
.section-head .eyebrow { justify-self: start; }
.section-head .section-sub { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; padding-bottom: 4px; }
.section-sub { margin-top: 20px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 520px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-4.market-grid, .grid-4.security-grid { gap: 16px; }

.plain-card { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.plain-card h3 { margin-bottom: 12px; font-size: 1.125rem; }
.plain-card p { color: var(--ink-2); font-size: 0.9375rem; }
.num { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 20px; font-variant-numeric: tabular-nums; }

/* ── PLATFORM DIAGRAM ─────────────────────────────────────── */
.platform {
  background: transparent;
}
.workflow-example { margin-bottom: 40px; }
.workflow-example-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.workflow-example-head h3 { font-size: 1rem; }
.workflow-example-head p { color: var(--muted); font-size: 0.8125rem; }
.workflow-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.workflow-flow li { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.workflow-step-num { display: block; margin-bottom: 12px; color: var(--accent); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; }
.workflow-flow strong { display: block; margin-bottom: 6px; font-size: 0.875rem; }
.workflow-flow p { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; }
.platform-inputs { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 24px; }
.platform-inputs span {
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-2);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.platform-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.platform-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.platform-card:hover { border-color: #afc1ef; box-shadow: 0 18px 40px -24px rgba(40, 86, 200, 0.35); transform: translateY(-3px); }
.product-logo { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 28px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.product-logo img { width: 100%; height: 100%; object-fit: contain; }
.suite-tag { align-self: flex-start; margin: -4px 0 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; }
.platform-step { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.platform-card h3 { font-size: 1.5rem; font-weight: 600; margin: 8px 0 10px; letter-spacing: -0.035em; }
.platform-card p { color: var(--ink-2); font-size: 0.9375rem; flex: 1; }
.card-link { margin-top: 24px; font-weight: 550; font-size: 0.875rem; color: var(--accent); }
.platform-foundation {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 20px; padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #dfe6f3;
}
.foundation-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-accent); }
.platform-foundation ul { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.875rem; font-weight: 500; }
.platform-foundation li { display: inline-flex; align-items: center; gap: 8px; }
.platform-foundation li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--navy-accent); }

/* ── PRODUCT DEEP DIVES ───────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px clamp(48px, 6vw, 88px); align-items: center; }
.product-grid-reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.product-grid-reverse .product-copy { order: 2; }
.product-copy .product-stat { margin-bottom: 28px; }
.feature-list.feature-row { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.feature-list.feature-row li { display: flex; flex-direction: column; gap: 8px; padding: 24px 0 0; border-bottom: 0; }
.feature-list.feature-row strong { font-size: 0.9375rem; }
.feature-list.feature-row span { font-size: 0.875rem; line-height: 1.55; }
.product-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.product-brand picture { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-brand img { width: 100%; height: 100%; object-fit: contain; }
.product-brand p { display: flex; flex-direction: column; line-height: 1.3; }
.product-brand strong { font-size: 1rem; color: var(--ink); letter-spacing: -0.015em; }
.product-brand span { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.for-line { display: flex; align-items: baseline; gap: 10px; font-size: 0.875rem; color: var(--ink-2); margin-bottom: 28px; }
.for-line span { flex: none; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.feature-list { margin-bottom: 36px; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.55; }
.feature-list strong { font-weight: 600; color: var(--ink); }
.feature-list span { color: var(--ink-2); }

/* ── DARK SECTIONS ────────────────────────────────────────── */
.section-dark { background: linear-gradient(135deg, #101d35, #172b4b); color: var(--navy-text); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark .eyebrow, .section-dark .num { color: var(--navy-accent); }
.section-dark .section-sub { color: var(--navy-text); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 36px 32px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--navy-line); border-radius: var(--radius); }
.steps h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.steps p { font-size: 0.9375rem; }

/* ── SECURITY ─────────────────────────────────────────────── */
.icon-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 28px; }
.icon-card h3 { margin-bottom: 8px; }
.icon-card p { color: var(--ink-2); font-size: 0.9375rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 80px; align-items: start; }
.faq-grid .section-head { display: block; margin-bottom: 0; position: sticky; top: 112px; }
.faq-grid .section-head .section-sub { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-weight: 550; font-size: 1rem; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
  transition: color var(--ease);
}
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; font-size: 1.25rem; font-weight: 300; line-height: 1; color: var(--muted); transition: transform var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 0.9375rem; }

/* ── FOUNDER ──────────────────────────────────────────────── */
.markets-section + #problem { padding-top: 0; }
.markets-section + #problem > .container { padding-top: var(--section-y); background: linear-gradient(var(--line), var(--line)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1000px; padding: 56px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, #fff, #f7f9fd); box-shadow: var(--shadow); }
.founder picture { width: 128px; }
.founder-photo { width: 128px; height: 128px; aspect-ratio: 1; object-fit: cover; object-position: center top; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 6px var(--bg-tint); }
.founder-copy h2 { margin-bottom: 20px; }
.founder-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.0625rem; max-width: 640px; }
.founder-name { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 640px; }
.founder-name strong { display: block; font-size: 1.0625rem; }
.founder-name span { color: var(--muted); font-size: 0.875rem; }
.founder-copy > p.muted { color: var(--muted); font-size: 0.9375rem; }
.founder-section { max-width: 1000px; margin: 0 auto; }

/* ── SECURITY PACK ────────────────────────────────────────── */
.security-pack { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 16px; padding: 28px 32px; border-radius: var(--radius); background: var(--navy); color: var(--navy-text); }
.security-pack h3 { color: #fff; margin-bottom: 6px; }
.security-pack p { font-size: 0.9375rem; max-width: 720px; }
.security-pack .btn { flex: none; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-section { background: radial-gradient(ellipse at 80% 10%, rgba(91, 128, 207, 0.2), transparent 45%), linear-gradient(135deg, #101d35, #182d4e); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.contact-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; border: 1px solid var(--navy-line); border-radius: 16px; background: rgba(255, 255, 255, 0.025); }
.contact-copy h2 { margin-bottom: 20px; }
.contact-intro > p:not(.eyebrow) { font-size: 1.0625rem; max-width: 480px; }
.contact-next h3 { font-size: 1rem; }
.next-steps { margin: 16px 0 0; display: grid; }
.next-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--navy-line); }
.next-steps li:last-child { padding-bottom: 0; }
.next-steps .num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin: 0; border-radius: 50%; border: 1px solid var(--navy-line); background: transparent; font-size: 0.75rem; }
.next-steps strong { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.next-steps p { color: var(--navy-text); font-size: 0.8125rem; line-height: 1.5; }

.contact-form {
  background: var(--surface);
  color: var(--ink);
  width: 100%; max-width: 480px; justify-self: end;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.section-dark .contact-form h3 { color: var(--ink); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 550; margin-bottom: 5px; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font: inherit; font-size: 0.875rem;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: #b7c0cf; }
.form-field input, .form-field select { height: 40px; }
.form-field textarea { resize: vertical; min-height: 64px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 76, 168, 0.15); }
.form-field [aria-invalid="true"] { border-color: #c2281d; }
.contact-form .btn-full { margin-top: 4px; padding: 11px 18px; }
.form-note { margin-top: 12px; font-size: 0.6875rem; line-height: 1.55; color: var(--muted); text-align: center; }
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-top: 12px; font-size: 0.875rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: #157a3c; }
.form-status.is-error { color: #c2281d; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: #f9fafc; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 0.875rem; max-width: 280px; }
.footer-contact { display: grid; gap: 4px; margin-top: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: var(--ink-2); font-size: 0.8125rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact svg { flex: none; }
.footer-heading { max-width: none; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-2); font-size: 0.875rem; transition: color var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ── VALUE & METRICS ──────────────────────────────────────── */
.product-stat { display: flex; align-items: baseline; gap: 16px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-stat strong { font-size: 1.75rem; font-weight: 560; color: var(--ink); white-space: nowrap; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.product-stat span { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.stat-strip { grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; }
.stat-strip strong { display: block; font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 560; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-strip span { color: var(--ink-2); font-size: 0.875rem; }
.metric-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-hint { display: none; }
.metric-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; min-width: 640px; }
.metric-table th, .metric-table td { padding: 16px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.metric-table thead th { padding-top: 14px; padding-bottom: 14px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-tint); }
.metric-table tbody th { color: var(--ink); font-weight: 600; border-right: 1px solid var(--line); white-space: nowrap; }
.metric-table th + td, .metric-table tr > td:first-child { font-weight: 550; color: var(--ink); }
.metric-table td { color: var(--ink-2); }
.metric-table td:last-child { color: var(--accent); font-weight: 500; }
.metric-table tbody tr:last-child > * { border-bottom: 0; }
.pnl-grid { grid-template-columns: repeat(4, 1fr); margin-top: 80px; }
.pnl-card h3 { margin-bottom: 8px; }
.pnl-card p { color: var(--ink-2); font-size: 0.9375rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 80px; }
.benefit-col h3 { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 0.42em; width: 10px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.roi { margin-top: 96px; padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: linear-gradient(135deg, #101d35, #1a3155); color: #fff; }
.roi-head h3 { color: #fff; font-size: 1.5rem; font-weight: 560; letter-spacing: -0.022em; margin-bottom: 10px; }
.roi-head p, .roi-foot { color: var(--navy-text); font-size: 0.875rem; max-width: 720px; }
.roi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; margin: 32px 0; }
.roi-grid label { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; font-size: 0.75rem; font-weight: 500; color: var(--navy-text); }
.roi-grid input, .roi-grid select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--navy-line); border-radius: var(--radius-sm); background: var(--navy-2); color: #fff; font: inherit; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.roi-grid input:focus, .roi-grid select:focus { outline: 2px solid var(--navy-accent); outline-offset: 1px; }
.roi-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 24px; background: var(--navy-line); border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; }
.roi-out div { padding: 20px 22px; background: var(--navy-2); }
.roi-out dt { font-size: 0.75rem; color: var(--navy-text); margin-bottom: 8px; }
.roi-out dd { font-size: 1.625rem; font-weight: 560; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.roi-out .roi-total dd { color: var(--navy-accent); }
.roi-foot .text-link { color: var(--navy-accent); }
.roi-actions { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.roi-actions .roi-foot { flex: 1 1 360px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); transform: translateY(-1px); }

/* ── PRIVACY POLICY ───────────────────────────────────────── */
.policy-hero {
  padding: clamp(72px, 7vw, 104px) 0;
  background: radial-gradient(ellipse at 85% 20%, rgba(149, 181, 244, 0.23), transparent 40%), #f5f8fd;
  border-bottom: 1px solid var(--line);
}
.policy-hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 18px; }
.policy-hero p { color: var(--ink-2); font-size: 0.9375rem; margin-top: 6px; }
.policy-hero p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.policy-badge { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.policy-badge span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; }
.policy-layout { display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); align-items: start; padding: 72px 0 100px; }
.policy-toc { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint); }
.policy-toc h3 { margin-bottom: 18px; color: var(--muted); font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.policy-toc ol { counter-reset: toc; }
.policy-toc li { counter-increment: toc; margin-top: 10px; }
.policy-toc a { display: flex; gap: 8px; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.45; }
.policy-toc a::before { content: counter(toc, decimal-leading-zero); min-width: 20px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.policy-toc a:hover { color: var(--accent); }
.policy-content { min-width: 0; max-width: 860px; }
.policy-section { margin-bottom: 56px; scroll-margin-top: 16px; }
.policy-section h2 { max-width: none; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 1.5rem; }
.policy-section h2 .section-num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 650; letter-spacing: 0; }
.policy-section h3 { margin: 24px 0 10px; font-size: 1.0625rem; }
.policy-section p, .policy-section li { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.8; }
.policy-section p { margin-bottom: 14px; }
.policy-section ul, .policy-section ol { margin: 0 0 16px; padding-left: 22px; }
.policy-section ul { list-style: disc; }
.policy-section ol { list-style: decimal; }
.policy-section li { padding-left: 2px; margin-bottom: 6px; }
.policy-section a { color: var(--accent); text-decoration: underline; text-decoration-color: #b6c5ef; text-underline-offset: 3px; }
.policy-section a:hover { text-decoration-color: currentColor; }
.policy-highlight { margin: 22px 0; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #f3f6fd; }
.policy-highlight p { margin-bottom: 0; }
.contact-box { margin-top: 18px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint); }
.contact-box p { margin-bottom: 6px; }
.last-updated-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-tint); color: var(--ink-2); font-size: 0.8125rem; }
.last-updated-bar svg { flex: none; color: var(--accent); }
.policy-footer .footer-grid { grid-template-columns: 1.7fr repeat(4, 1fr); }
.policy-footer .footer-social { display: flex; gap: 8px; margin-top: 20px; }
.policy-footer .footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); }
.policy-footer .footer-social a:hover { color: var(--accent); border-color: #b7c8f2; }

/* ── 404 ──────────────────────────────────────────────────── */
body[data-page="not-found"] { min-height: 100vh; display: flex; flex-direction: column; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px var(--gutter); }
body[data-page="not-found"] .not-found { flex: 1; }
.not-found p { color: var(--ink-2); margin: 16px 0 28px; }
.not-found .hero-actions { justify-content: center; }
body[data-page="not-found"] .footer { padding: 32px 0; }
body[data-page="not-found"] .footer-bottom { margin-top: 0; }

/* ── REVEAL (only when JS is available) ───────────────────── */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .platform-card, .video-facade img, .video-play { transition: none; }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-copy, .contact-form { width: 100%; max-width: 720px; justify-self: center; }
  .product-grid > .video-card { width: 100%; max-width: 720px; }
  .product-grid-reverse { grid-template-columns: 1fr; }
  .product-grid-reverse .product-copy { order: 0; }
  .feature-list.feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .faq-grid .section-head { position: static; }
  .lead-sm, .contact-intro > p:not(.eyebrow) { max-width: 640px; }
  .pnl-grid, .roi-grid, .roi-out { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; gap: 40px; }
  .policy-footer .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .policy-footer .footer-brand { grid-column: 1 / -1; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(11, 19, 36, 0.2);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links .btn { margin: 16px 0 0; padding: 12px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .hero { padding: 56px 0 64px; }
  .policy-layout { grid-template-columns: 1fr; gap: 32px; }
  .policy-toc { position: static; max-height: none; overflow: visible; }
  .policy-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }

  .section-head { display: block; margin-bottom: 32px; }
  .section-head .section-sub { margin-top: 16px; }
  .grid-3, .steps, .platform-products, .stat-strip, .workflow-flow { grid-template-columns: 1fr; }
  .grid-3 { gap: 32px; }
  .founder { gap: 32px; padding: 40px; }
  .founder picture, .founder-photo { width: 104px; height: 104px; }
  .security-pack { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero { padding: 48px 0 56px; }
  h1 { font-size: 2.25rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .market-grid > *, .security-grid > *, .pnl-grid > *, .stat-strip > * { padding: 24px; }
  .pnl-grid, .roi-grid, .roi-out { grid-template-columns: 1fr; }
  .table-hint { display: block; margin: -20px 0 12px; color: var(--muted); font-size: 0.8125rem; }
  .feature-list li { grid-template-columns: 1fr; gap: 4px; }
  .feature-list.feature-row { grid-template-columns: 1fr; }
  .feature-list.feature-row li { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .security-pack { padding: 24px; }
  .roi-actions .btn { width: 100%; white-space: normal; }
  .founder { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .contact-copy { padding: 24px 22px; gap: 28px; }
  .contact-form { padding: 22px 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .video-play { width: 52px; height: 52px; }
  .audience-inner { justify-content: center; gap: 12px 24px; }
  .audience ul { flex-basis: 100%; justify-content: center; gap: 8px 24px; }
  .policy-hero { padding: 64px 0; }
  .policy-layout { padding: 48px 0 72px; }
  .policy-toc ol { gap: 0 16px; }
  .policy-section h2 { font-size: 1.25rem; }
  .policy-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
