/* 2ndSightAI public site — plain CSS, no build step.
   Style: bright and minimal, one calm full-bleed photo in the hero, a floating pill nav, large but light
   display type, and plain (non-monospace) small labels. Dark is used sparingly, as a single accent band
   per page, never as the default background. */

:root {
  --blue: #007cb5;
  --blue-hover: #0b90cf;
  --blue-light: #3db2e8;
  --orange: #f28c00;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 56px;
  --radius: 28px;
  color-scheme: light;
}

/* Section themes: every component reads these tokens. */
.theme-dark {
  --bg: #000; --fg: #f5f5f7; --fg-2: #d2d2d7; --fg-muted: #a1a1a6;
  --card: #141416; --card-line: rgba(255, 255, 255, 0.1); --accent: var(--blue-light); --line: rgba(255, 255, 255, 0.14);
  --chip-bg: rgba(255, 255, 255, 0.08);
}
.theme-light {
  --bg: #f5f5f7; --fg: #1d1d1f; --fg-2: #424245; --fg-muted: #6e6e73;
  --card: #fff; --card-line: transparent; --accent: var(--blue); --line: #d2d2d7;
  --chip-bg: #ececef;
}
.theme-white {
  --bg: #fff; --fg: #1d1d1f; --fg-2: #424245; --fg-muted: #6e6e73;
  --card: #f5f5f7; --card-line: transparent; --accent: var(--blue); --line: #d2d2d7;
  --chip-bg: #ececef;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); background: #fff; }

body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: #1d1d1f; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { max-width: 100%; }
a { color: var(--accent, var(--blue)); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--fg); margin: 0 0 0.5em; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.03em; line-height: 1.04; font-weight: 500; }
h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ----------
   The bar itself always has *some* backdrop, so the logo stays legible no matter what has scrolled
   underneath it (a white section, a dark accent band, anything) — a plain white blur bar by default, or a
   soft top-down gradient (no hard edge) while the Home photo hero is behind it. main.js adds/removes
   body.header-on-photo for exactly that one case; every inner page keeps the default white bar throughout,
   since their opening section is light already. The nav pill and mobile-menu button carry their own dark
   glass background on top of that, so they read the same either way. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line, #e4e7ea); transition: background 0.25s ease, border-color 0.25s ease;
}
body.header-on-photo .site-header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.brand .brand-light { display: none; }
.brand .brand-dark { display: block; }
body.header-on-photo .brand .brand-light { display: block; }
body.header-on-photo .brand .brand-dark { display: none; }

.nav {
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(8, 16, 24, 0.45); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
}
.nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.16); }

.nav-toggle {
  display: none; background: rgba(8, 16, 24, 0.45); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14); width: 42px; height: 42px; padding: 0; cursor: pointer; color: #fff; border-radius: 50%;
}
.nav-toggle svg { display: block; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: 1.05rem; line-height: 1;
  padding: 15px 28px; border-radius: 980px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; pointer-events: auto;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.theme-dark .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.theme-dark .btn-secondary:hover { background: #fff; color: #000; border-color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.link-arrow { font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section { background: var(--bg); color: var(--fg-2); padding: 128px 0; position: relative; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 600; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; color: var(--fg-muted); font-weight: 400; letter-spacing: -0.01em; }
.section-head { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.section-head p:not(.lead):not(.eyebrow) { color: var(--fg-muted); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Hero: single full-bleed photo, minimal ----------
   One calm, high-resolution image (AI-generated) fills the section behind the header, with a slow,
   barely-perceptible zoom (a "Ken Burns" pan) rather than a busy looping video — the goal is a still,
   confident first impression, not visible machinery in motion. A gradient scrim keeps the overlaid title
   readable throughout the pan. Content sits in the lower two-thirds so the logo and nav read clearly
   against open sky/ceiling at the top of the shot. */
.hero {
  position: relative; min-height: min(max(100svh, 720px), 980px); display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate; background: #0b0f12;
  padding: 0 0 9vh;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 45%; animation: hz-pan 32s ease-in-out infinite alternate; }
.hero-media.paused img { animation-play-state: paused; }
@keyframes hz-pan { from { transform: scale(1); } to { transform: scale(1.045); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 10, 0.5) 0%, rgba(4, 8, 10, 0.06) 24%, rgba(4, 8, 10, 0.05) 55%, rgba(4, 8, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(4, 8, 10, 0.32) 0%, rgba(4, 8, 10, 0) 42%);
}
.hero-content { position: relative; pointer-events: none; }
.hero-content .eyebrow {
  font-size: 0.92rem; letter-spacing: 0.06em; font-weight: 500;
  color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); margin-bottom: 18px;
}
.hero h1 { max-width: 17em; color: #fff; text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35); font-weight: 450; }
.hero .lead { max-width: 34em; color: rgba(255, 255, 255, 0.92); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.hero .btn-row { pointer-events: auto; margin-top: 30px; }
.hero .btn-secondary { background: rgba(20, 24, 27, 0.28); color: #fff; border-color: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.hero-disclosure {
  position: absolute; left: 24px; bottom: 16px; z-index: 1; margin: 0; font-size: 0.74rem; color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.hero-caption {
  display: grid; grid-template-columns: minmax(280px, 0.72fr) 1.6fr; gap: 10px 36px; align-items: center; padding: 14px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 0.83rem; line-height: 1.5; color: #a1a1a6;
}
.hero-caption strong { color: #f5f5f7; font-weight: 600; }
.hero-caption .cap-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; color: #f5f5f7; font-weight: 600; font-size: 0.86rem; }
.chip { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; color: #ffb454; background: rgba(242, 140, 0, 0.16); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .l-ref { background: none; border-top: 2px solid #2fa8e0; border-radius: 0; height: 0; width: 14px; vertical-align: 3px; }
.legend .l-cycle { background: #fff; }
.legend .l-dev { background: var(--orange); }
.hero-caption p { margin: 0; }

/* ---------- Statement ---------- */
.statement { padding: 104px 0 112px; }
.statement p { max-width: 980px; margin: 0 auto; text-align: center; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.28; font-weight: 450; letter-spacing: -0.02em; color: var(--fg-muted); }
.statement p em { font-style: normal; color: var(--fg); font-weight: 600; }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 36px 36px 32px; color: #1d1d1f; overflow: hidden; }
.panel.dark { background: #000; color: #f5f5f7; }
.panel h3 { margin-bottom: 0.4em; color: inherit; font-size: 1.45rem; }
.panel p { margin-bottom: 0; color: #6e6e73; font-size: 1rem; }
.panel.dark p { color: #a1a1a6; }
.mini-label { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: #6e6e73; margin-bottom: 14px; font-weight: 600; }
.panel.dark .mini-label { color: var(--blue-light); }
.panel svg { display: block; width: 100%; height: auto; margin-bottom: 22px; }
.prose { max-width: 720px; }
.prose.center { margin-top: 56px; }
.prose p { color: var(--fg-2); font-size: 1.1rem; }

/* ---------- System flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.flow li { position: relative; background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: 28px 24px 24px; margin-right: 36px; }
.flow li:last-child { margin-right: 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -36px; width: 36px; height: 1.5px; background: linear-gradient(90deg, rgba(0, 124, 181, 0.15), var(--blue)); transform: translateY(-50%); }
.flow li:not(:last-child)::before { content: ""; position: absolute; top: 50%; right: -36px; width: 8px; height: 8px; border-top: 1.5px solid var(--blue); border-right: 1.5px solid var(--blue); transform: translate(0, -50%) rotate(45deg); z-index: 1; }
.flow .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--chip-bg); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.flow .icon svg { width: 24px; height: 24px; }
.flow h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.flow p { font-size: 0.92rem; line-height: 1.5; color: var(--fg-muted); margin: 0; }
.flow .tag { display: inline-block; margin-top: 14px; font-size: 0.7rem; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; color: var(--fg-muted); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; line-height: 1.4; }
.flow-note { margin: 28px auto 0; max-width: 820px; text-align: center; font-size: 0.88rem; color: var(--fg-muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 140px 0; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 500; }
.cta p { max-width: 40em; margin: 0 auto; font-size: 1.2rem; color: var(--fg-muted); }
.cta .btn-row { justify-content: center; }

/* ---------- Technology ---------- */
.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 32px; }
.signal { background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: 30px 28px; }
.signal .letter { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: var(--blue); color: #fff; font-weight: 700; }
.signal h3 { margin-bottom: 0.25em; font-size: 1.4rem; }
.signal p { margin: 0; color: var(--fg-muted); font-size: 1rem; }

.capability { display: grid; grid-template-columns: 0.42fr 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.capability.first { border-top: 0; padding-top: 0; }
.capability h3 { font-size: 1.7rem; letter-spacing: -0.025em; }
.badge { display: inline-block; font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.badge-existing { background: #d7ebf6; color: #005782; }
.badge-validating { background: #ffedcc; color: #8a4b00; }
.badge-dev { background: transparent; color: #6e6e73; border: 1px dashed #98989d; }
.capability p { font-size: 1.05rem; }
.capability p:last-child { margin-bottom: 0; }
.callout { margin: 24px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--card); font-size: 0.98rem; color: var(--fg-2); }
.callout strong { color: var(--fg); }
.status-note { margin: 0; font-size: 0.88rem; color: var(--fg-muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--card); border-radius: 24px; padding: 30px 28px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 14px; letter-spacing: 0.04em; }
.steps h3 { margin-bottom: 0.4em; font-size: 1.4rem; }
.steps p { margin: 0; font-size: 0.98rem; color: var(--fg-muted); }
.flow-note + .steps { margin-top: 56px; }
.subhead { margin: 88px 0 24px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; font-weight: 550; }
.dev-focus { max-width: 760px; margin-top: 16px; }
.dev-focus p { font-size: 1.1rem; }

/* ---------- About / Contact ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.two-col h2 { margin-bottom: 0.6em; }
.two-col h3 { font-size: 1.3rem; }
.two-col p { color: var(--fg-2); }
.two-col .lead { color: var(--fg-muted); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.contact-grid h3 { color: var(--fg); }
.details { margin: 0 0 1em; padding-left: 1.2em; color: var(--fg-2); }
.details li { margin-bottom: 4px; }

.form-card { background: var(--card); border-radius: var(--radius); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--fg); margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--fg-muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: #fff; border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 4px solid rgba(0, 124, 181, 0.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--fg-muted); margin: 0 0 20px; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; font-size: 0.95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e2f5e8; color: #14532d; }
.form-status.err { background: #fdeceb; color: #7f1d1d; }
.form-status.info { background: #fff2da; color: #6b3d00; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0f12; color: #9099a1; padding: 56px 0 44px; font-size: 0.85rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand img { height: 30px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { margin: 0; color: #d2d2d7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: #d2d2d7; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.78rem; line-height: 1.55; max-width: 62em; }

/* ---------- Inner pages ----------
   A light, airy opening (not a black slab): a soft blue glow on white, the same weight of type as the
   Home hero. Since this section is light from the first frame, the header defaults to its dark-logo,
   opaque-chrome look here — no scroll-based swap is needed on these pages. */
.page-hero {
  padding: calc(var(--header-h) + 96px) 0 88px; text-align: center;
  background: radial-gradient(60% 80% at 50% 100%, rgba(0, 124, 181, 0.14), transparent 70%), #fff;
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14em; margin-inline: auto; font-weight: 500; }
.page-hero .lead { max-width: 34em; margin: 0 auto; color: var(--fg-muted); }
.page-hero .btn-row { justify-content: center; }
.page-hero.has-photo {
  padding-top: calc(var(--header-h) + 140px); padding-bottom: 120px; background: #0b0f12;
  background-image: linear-gradient(180deg, rgba(4, 8, 10, 0.45) 0%, rgba(4, 8, 10, 0.15) 30%, rgba(4, 8, 10, 0.35) 70%, rgba(4, 8, 10, 0.82) 100%), var(--photo);
  background-size: cover; background-position: center;
}
.page-hero.has-photo h1, .page-hero.has-photo .eyebrow { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.page-hero.has-photo .lead { color: rgba(255, 255, 255, 0.88); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.role { background: var(--card); border-radius: var(--radius); padding: 40px 36px 34px; display: flex; flex-direction: column; }
.role h3 { font-size: 1.55rem; margin-bottom: 0.6em; }
.role p { color: var(--fg-2); font-size: 1.02rem; }
.role p.exp { color: var(--fg-muted); font-size: 0.96rem; }
.role .link-arrow { margin-top: auto; padding-top: 12px; }

.centered-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.centered-copy p { font-size: 1.15rem; }

.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 0.4em; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--fg-2); font-size: 1.05rem; }
.notice { background: #fff2da; color: #6b3d00; border-radius: 16px; padding: 16px 20px; margin: 0 0 8px; font-size: 0.98rem; }
.todo { background: #fff2da; color: #6b3d00; border-radius: 6px; padding: 1px 6px; font-weight: 600; }

/* ---------- Optional photos ---------- */
.photo { margin: 0 auto 56px; max-width: 1120px; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 21 / 9; background: #eceef0; }
.photo[hidden] { display: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%); }
.photo figcaption { position: absolute; left: 22px; bottom: 14px; z-index: 1; font-size: 0.78rem; color: #f0f0f0; }
[data-bg].has-photo { background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.35) 65%, rgba(0, 0, 0, 0.75) 100%), var(--photo); background-size: cover; background-position: center; background-color: #0b0f12; }
@media (max-width: 760px) { .photo { aspect-ratio: 4 / 3; margin-bottom: 40px; } }

/* ---------- Video toggle ("Pause/Play motion" pill, bottom-right of a photo/video) ---------- */
.video-toggle {
  position: absolute; right: 20px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 8px 14px 8px 12px;
  color: #fff; background: rgba(12, 15, 17, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.video-toggle:hover { background: rgba(12, 15, 17, 0.55); border-color: rgba(255, 255, 255, 0.7); }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }

.video-frame { position: relative; margin: 0 auto 72px; max-width: 1120px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1280 / 548; background: #dfe6ea; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame figcaption { position: absolute; left: 22px; bottom: 16px; font-size: 0.78rem; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
@media (max-width: 760px) { .video-frame { aspect-ratio: 16 / 9; margin-bottom: 48px; } }

/* ---------- How it works (3 steps) ----------
   Three framed diagrams: a card, a flowing ribbon, a card. Text lives in real HTML cards (so it stays crisp and
   readable at any width); only the ribbons/graphics are SVG. Below 860px each step stacks vertically and the
   ribbon swaps to a short vertical version. Step 3 is dark to set the dashboard apart. */
.how { padding: 120px 0 128px; }
.how .section-head { margin-bottom: 56px; }
.how-steps { display: flex; flex-direction: column; gap: 28px; max-width: 1000px; margin: 0 auto; }
.how-step { border-radius: 28px; background: #f2f4f6; padding: 34px 36px 32px; }
.how-step.dark { background: #0f1318; }
.how-label { margin: 0 0 22px; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: #1d1d1f; line-height: 1.2; }
.how-step.dark .how-label { color: #fff; }
.how-caption { margin: 26px 0 0; max-width: 46em; font-size: 1.1rem; line-height: 1.5; color: #424245; }
.how-step.dark .how-caption { color: #d6dce2; }

.fd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 0.6fr) minmax(0, 1fr); align-items: stretch; }
.fd.fd3 { grid-template-columns: minmax(0, 0.72fr) 64px minmax(0, 2.1fr); }
.fd-card { background: #fff; color: #1d1d1f; border-radius: 22px; padding: 22px 22px 18px; display: flex; flex-direction: column; min-height: 290px; box-shadow: 0 1px 2px rgba(15, 30, 42, 0.05), 0 8px 24px rgba(15, 30, 42, 0.06); }
.fd-ico { width: 40px; height: 40px; border-radius: 11px; background: #eef1f4; color: #007cb5; display: grid; place-items: center; margin-bottom: 14px; flex: none; }
.fd-ico svg { width: 22px; height: 22px; }
.fd-card h3 { font-size: 1.12rem; line-height: 1.2; margin: 0 0 0.7em; color: #1d1d1f; }
.wvs { display: flex; flex-direction: column; justify-content: space-around; gap: 6px; flex: 1; }
.wv span { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: #6e7a85; margin-bottom: 2px; }
.wv svg { display: block; width: 100%; height: 28px; }
.fd-gfx { display: block; width: min(100%, 150px); margin: auto; }
.fd-gfx .orbit { transform-box: fill-box; transform-origin: 50% 50%; animation: fd-spin 60s linear infinite; }
@keyframes fd-spin { to { transform: rotate(360deg); } }

.fd-rw { position: relative; min-height: 240px; }
.fd-rib { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fd-rib.v { display: none; }
.fd-lock { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #2f8db5; box-shadow: 0 2px 10px rgba(15, 30, 42, 0.18); }
.flowdash { stroke-dasharray: 3 12; animation: fd-flow 1.6s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes fd-flow { to { stroke-dashoffset: -30; } }
.fd-arr { display: grid; place-items: center; }
.fd-arr svg { width: 44px; height: 20px; }

.dash { background: #14191e; border: 1px solid #262e36; border-radius: 18px; padding: 0 14px 14px; color: #fff; min-width: 0; }
.dash-bar { display: flex; align-items: center; gap: 6px; height: 34px; }
.dash-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a434c; }
.dash-bar span { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.04em; color: #8b97a2; }
.dash-grid { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr; gap: 10px; }
.dash-p { background: #05080b; border: 1px solid #232a31; border-radius: 14px; padding: 12px 14px 10px; min-width: 0; }
.dash-p h4 { margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: #e8edf1; line-height: 1.2; }
.dash-p.corr { grid-row: 1 / span 2; display: flex; flex-direction: column; }
.dash-surf { display: block; width: 100%; height: auto; margin: auto 0; color: #fff; }
.hm { display: flex; gap: 12px; align-items: center; }
.hm-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; align-self: stretch; width: 34px; flex: none; }
.hm-l li { height: 3px; border-radius: 2px; background: #3a434c; }
.hm-g { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.hm-g i { aspect-ratio: 1; border-radius: 4px; background: #3b9bd0; }
.hm-g i.o { background: #ee9a2e; }
.dash-p.trend svg { display: block; width: 100%; height: 78px; }
.panel.dark p strong { color: #fff; font-weight: 600; }

@media (max-width: 860px) {
  .how { padding: 84px 0 96px; }
  .how .section-head { margin-bottom: 40px; }
  .how-step { padding: 24px 18px 22px; border-radius: 22px; }
  .fd, .fd.fd3 { grid-template-columns: 1fr; }
  .fd-card { min-height: 0; }
  .wvs { gap: 14px; }
  .fd-gfx { width: 120px; margin: 4px auto; }
  .fd-rw { min-height: 0; height: clamp(156px, 28vw, 224px); }
  .fd-rib.h { display: none; }
  .fd-rib.v { display: block; }
  .fd-arr { height: 76px; }
  .fd-arr svg { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .dash-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .dash-p.corr { grid-row: auto; }
  .dash-surf { max-height: 300px; }
}

/* ---------- Comparison panels: one sentence read across two boxes ---------- */
.compare .panel { display: flex; flex-direction: column; }
.cmp-cap { margin: 0 0 20px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; text-align: center; color: inherit; }
.panel.dark .cmp-cap { margin: 18px 0 0; color: #fff; }
.cmp-wvs { flex: 1; justify-content: space-around; gap: 12px; padding: 4px 4px 8px; }
.cmp-wvs .wv svg { height: 46px; margin-bottom: 0; }
.panel.dark svg.cmp-model { width: 100%; height: auto; max-height: 340px; margin: auto 0 0; }
.cmp-sum { max-width: 860px; }
.cmp-sum p:first-child { font-size: 1.15rem; line-height: 1.5; }
.cmp-sum strong { color: var(--fg); font-weight: 600; }

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  section { padding: 96px 0; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .capability { grid-template-columns: 1fr; gap: 12px; padding: 44px 0; }
  .flow { grid-template-columns: 1fr 1fr; gap: 36px; }
  .flow li { margin-right: 0; }
  .flow li:not(:last-child)::after, .flow li:not(:last-child)::before { display: none; }
}

@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  body { font-size: 16.5px; }
  section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: calc(var(--header-h) + 6px); right: 16px; left: auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 16, 24, 0.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 8px; border-radius: 20px;
    display: none; min-width: 190px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
  .hero { min-height: min(100svh, 760px); padding-bottom: 64px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .video-toggle span { display: none; } /* icon only at narrow widths, to keep the pill small */
  .hero-caption { grid-template-columns: 1fr; padding: 16px 18px; }
  .statement { padding: 64px 0 76px; }
  .compare, .signals, .steps, .field-row { grid-template-columns: 1fr; }
  .panel { padding: 28px 24px 26px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { margin-bottom: 34px; }
  .flow li:last-child { margin-bottom: 0; }
  .flow li:not(:last-child)::after { display: block; top: auto; bottom: -34px; right: auto; left: 44px; width: 1.5px; height: 34px; transform: none; background: linear-gradient(180deg, rgba(0, 124, 181, 0.15), var(--blue)); }
  .flow li:not(:last-child)::before { display: block; top: auto; bottom: -36px; right: auto; left: 41px; transform: rotate(135deg); }
  .cta { padding: 96px 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .form-card { padding: 26px 20px; }
  .subhead { margin-top: 64px; }
  .page-hero { padding: calc(var(--header-h) + 56px) 0 64px; }
  .page-hero.has-photo { padding-top: calc(var(--header-h) + 88px); padding-bottom: 72px; }
  .roles { grid-template-columns: 1fr; }
  .role { padding: 30px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Spec update 2026-10-12: status labels, intro line, form messages ---------- */
.how-status { display: inline-block; margin: -10px 0 18px; padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: #005782; background: #d7ebf6; line-height: 1.5; }
.how-step.dark .how-status { color: #cfe9f6; background: rgba(61, 178, 232, 0.18); }
.how .section-head .lead { max-width: 40em; margin-left: auto; margin-right: auto; }
.flow .tag + .tag { margin-left: 6px; }
.field .req { font-weight: 400; color: var(--fg-muted); }
.field-error { margin: 8px 0 0; font-size: 0.88rem; color: #b42318; }
.field [aria-invalid="true"] { border-color: #b42318; }
.form-notice { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: #fff2da; color: #6b3d00; font-size: 0.95rem; }
.form-notice[hidden], .field-error[hidden] { display: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
