/* =========================================================
   OCUP.ai — design tokens
   ========================================================= */
:root {
  --void: #0b0e14;
  --void-2: #0f131b;
  --panel: #121722;
  --panel-line: #232b3a;
  --ink: #e9edf3;
  --ink-dim: #8b95a7;
  --ink-faint: #5c6577;

  --glow: #4fb3d9;
  --glow-dim: #2c5a70;
  --glow-soft: rgba(79, 179, 217, 0.14);

  --green: #4fae82;
  --amber: #d6a544;
  --red: #c9615f;
  --none: #5c6577;

  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max-w: 1180px;
  --section-pad: clamp(4rem, 10vw, 7rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

a { color: inherit; }

main, .footer {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--glow);
  color: var(--void);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}
.topbar__mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.topbar__mark-dot { color: var(--glow); }
.topbar__nav { display: flex; gap: clamp(0.9rem, 2vw, 1.75rem); }
.topbar__nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  transition: color 0.2s ease;
}
.topbar__nav a:hover { color: var(--glow); }
@media (max-width: 640px) {
  .topbar__nav { display: none; }
}

/* =========================================================
   Global Proposal routing banner — always visible, not part
   of the collapsible nav, so it survives on mobile too.
   ========================================================= */
.proposal-banner {
  position: relative;
  z-index: 30;
  background: var(--glow);
  border-bottom: 1px solid var(--glow-dim);
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.proposal-banner__text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--void);
}
.proposal-banner__link {
  color: var(--void);
  font-weight: 700;
  text-decoration: underline;
}
.proposal-banner__link:hover { opacity: 0.75; }

/* =========================================================
   Page-long video background
   ========================================================= */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--void); /* fallback if video/poster fail */
}
.page-bg__video,
.page-bg__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  background-size: cover;
  background-position: center 35%;
}
.page-bg__poster { display: none; }
.page-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,20,0.30) 0%, rgba(11,14,20,0.45) 30%, rgba(11,14,20,0.68) 70%, rgba(11,14,20,0.88) 100%),
    linear-gradient(90deg, rgba(11,14,20,0.55) 0%, rgba(11,14,20,0.12) 30%, rgba(11,14,20,0.12) 70%, rgba(11,14,20,0.65) 100%);
}
/* mobile / reduced-motion / data-saver: swap video for the static poster layer */
.is-static-bg .page-bg__video { display: none; }
.is-static-bg .page-bg__poster { display: block; }

/* =========================================================
   Page-long spine rail (fixed, tracks whole-document scroll)
   ========================================================= */
.page-spine {
  position: fixed;
  left: clamp(20px, 3vw, 44px);
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 25;
  display: flex;
  justify-content: center;
  padding: 90px 0 60px;
}
.spine-rail {
  position: relative;
  width: 3px;
  height: 100%;
  background: rgba(35, 43, 58, 0.65);
  border-radius: 2px;
}
.spine-rail__fill {
  position: absolute;
  top: 0; left: 0; width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--glow), var(--glow-dim));
  border-radius: 2px;
  transition: height 0.15s linear;
}
.spine-node {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  z-index: 2;
  transition: top 0.2s ease;
}
.spine-node__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--void);
  box-shadow: 0 0 0 1px var(--panel-line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.spine-node__dot--none  { background: var(--none); }
.spine-node__dot--green { background: var(--green); }
.spine-node__dot--amber { background: var(--amber); }
.spine-node__dot--red   { background: var(--red); }

.spine-node.is-active .spine-node__dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 6px var(--glow-soft);
}

@media (max-width: 860px) {
  .page-spine { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 4rem clamp(1.25rem, 5vw, 4rem) 4rem clamp(4.5rem, 9vw, 7rem);
}
.hero__content { max-width: 640px; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--glow);
  margin: 0 0 1rem;
}
.hero__headline {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink);
  max-width: 34rem;
  margin: 0 0 0.9rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero__micro {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  max-width: 34rem;
  margin: 0 0 2.2rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

@media (max-width: 860px) {
  .hero { padding-left: clamp(1.25rem, 5vw, 4rem); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.3rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--glow); color: var(--void); }
.btn--primary:hover { background: #6cc3e6; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--panel-line); }
.btn--secondary:hover { border-color: var(--glow); color: var(--glow); }
.btn--ghost { background: transparent; color: var(--ink-dim); }
.btn--ghost:hover { color: var(--ink); }

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: var(--section-pad) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--panel-line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.is-visible { opacity: 1; transform: translateY(0); }

.section__inner {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(15, 19, 27, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(35, 43, 58, 0.7);
  border-radius: 14px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.section__eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--glow);
  margin: 0 0 0.9rem;
}
.section__heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.section__body {
  color: var(--ink-dim);
  font-size: 1.02rem;
  margin: 0 0 1.1rem;
}
.section__body--muted { font-size: 0.92rem; color: var(--ink-faint); }
.inline-link { color: var(--glow); text-underline-offset: 3px; }

/* =========================================================
   Status grid (validation body map)
   ========================================================= */
.section--status .section__inner { max-width: var(--max-w); }
.status-grid {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.status-card {
  background: rgba(18, 23, 34, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(35, 43, 58, 0.75);
  border-radius: 10px;
  padding: 1.4rem;
  border-top: 3px solid var(--none);
}
.status-card[data-light="green"] { border-top-color: var(--green); }
.status-card[data-light="amber"] { border-top-color: var(--amber); }
.status-card[data-light="red"]   { border-top-color: var(--red); }

.status-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.status-card__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--none);
  flex: 0 0 auto;
}
.status-card[data-light="green"] .status-card__dot { background: var(--green); }
.status-card[data-light="amber"] .status-card__dot { background: var(--amber); }
.status-card[data-light="red"]   .status-card__dot { background: var(--red); }

.status-card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.status-card__layer {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.status-card__items {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.status-card__items li { margin-bottom: 0.4rem; }

/* Wide feature block within the status/validation area — same glass-card
   language as .status-card, sized to span the full grid width beneath it. */
.status-feature {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  background: rgba(18, 23, 34, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(35, 43, 58, 0.75);
  border-radius: 10px;
  padding: 1.75rem clamp(1.5rem, 4vw, 2.5rem) 2rem;
}
.status-feature__heading {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.status-feature__body {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  max-width: 62ch;
}
.status-feature__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(35, 43, 58, 0.6);
}

/* =========================================================
   Scope / non-claims
   ========================================================= */
.section--scope .section__inner {
  border: 1px solid rgba(35, 43, 58, 0.75);
  background: rgba(15, 19, 27, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
}
.scope-subhead {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 1.75rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(35, 43, 58, 0.7);
}
.scope-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.scope-list li { margin-bottom: 0.5rem; }
.scope-list li::marker { color: var(--red); }

/* =========================================================
   Critical updates signup form
   ========================================================= */
.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;
}
.updates-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.updates-form__input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0.72rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--panel-line);
  background: rgba(11, 14, 20, 0.55);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.updates-form__input::placeholder { color: var(--ink-faint); }
.updates-form__input:focus {
  outline: 2px solid var(--glow);
  outline-offset: 1px;
  border-color: var(--glow);
}
.updates-form__honeypot { display: none; }
.updates-form__status {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  min-height: 1.2em;
}
.updates-form__status--ok { color: var(--green); }
.updates-form__status--error { color: var(--red); }

@media (max-width: 560px) {
  .updates-form { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--panel-line);
  padding: 3.5rem clamp(1.25rem, 5vw, 4rem) 2.5rem;
  background: var(--void-2);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer__mark { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; }
.footer__note { color: var(--ink-faint); font-size: 0.9rem; margin: 0; }
.footer__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin: 0 0 0.6rem;
}
.footer__line { font-size: 0.88rem; color: var(--ink-dim); margin: 0 0 0.35rem; }
.footer__cta { color: var(--glow); text-decoration: none; font-size: 0.92rem; }
.footer__cta:hover { text-decoration: underline; }
.footer__fineprint {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
}


/* =========================================================
   Whitepaper download CTAs
   ========================================================= */
.topbar__nav .topbar__download {
  color: var(--glow);
  font-weight: 600;
}
.topbar__nav .topbar__download:hover {
  color: #8bd7f2;
}

.btn--whitepaper {
  background: linear-gradient(135deg, #7dd8f4 0%, var(--glow) 55%, #3b8fae 100%);
  color: #061018;
  border-color: rgba(144, 223, 248, 0.65);
  box-shadow: 0 0 0 1px rgba(79, 179, 217, 0.12), 0 12px 32px rgba(24, 116, 151, 0.22);
  font-weight: 600;
}
.btn--whitepaper:hover {
  background: linear-gradient(135deg, #9be4fa 0%, #67c7e9 58%, #459fbe 100%);
  box-shadow: 0 0 0 1px rgba(144, 223, 248, 0.25), 0 15px 38px rgba(24, 116, 151, 0.3);
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.5rem;
}

.download-note {
  margin: 0.75rem 0 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.footer__cta--stacked {
  display: block;
  width: fit-content;
  margin-bottom: 0.55rem;
}

@media (max-width: 560px) {
  .hero__ctas,
  .section__actions {
    align-items: stretch;
  }

  .hero__ctas .btn,
  .section__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
