/**
 * BENNETT landing page.
 *
 * The palette, surface treatment and component shapes are the app's own (`code/frontend/src/styles.css`),
 * so the marketing page and the product read as one system. Only what a single static page needs is kept.
 */

:root {
  --bg: #101a28;
  --panel: #172334;
  --panel-alt: #1d2b3e;
  --border: #2a3f5c;
  --line: #1d2b3e;
  --fg: #f3f7ff;
  --muted: #94a3b8;
  --dim: #64748b;
  --ok: #11c5a6;
  --info: #4ea3ff;
  --cyan: #18d7e8;
  --amber: #d58a38;
  --content-max: 940px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* Same reasoning as the app: the reserved gutter sits outside body's box, so the page background has to be
   on `html` or a bright band appears down the right edge. */
html {
  scrollbar-gutter: stable;
  background: var(--bg);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: radial-gradient(circle at top right, #172334, #101a28) fixed;
  color: var(--fg);
  font: 15px/1.5 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--ok);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.82rem; }
.tiny { font-size: 0.74rem; }
.mono { font-family: ui-monospace, SFMono-Regular, monospace; }
.center-text { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--ok);
  border-radius: 0 0 8px 0;
  color: var(--fg);
}

.skip-link:focus {
  left: 0;
}

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

/* ---------------------------------------------------------------- nav */
/**
 * The band is full-bleed and the row inside it is constrained — so the nav is two elements, not one with a
 * stretched pseudo-element.
 *
 * The earlier form was a `::before` at `inset: 0 -100vw`, which overflows the document by a full viewport
 * on the right: measured `scrollWidth` was exactly 2.00x `clientWidth` and the page scrolled sideways.
 * `100vw` is the wrong unit for this in any case — it counts the scrollbar gutter that
 * `scrollbar-gutter: stable` permanently reserves, so it is always wider than the space actually available.
 * Keep this as a plain block element and no viewport unit is needed at all.
 */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 26, 40, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.brand-text small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }
}

/* ---------------------------------------------------------------- buttons */
button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid transparent;
}

.cta {
  background: var(--ok);
  color: #06231f;
  font-weight: 700;
  padding: 9px 16px;
}

.cta:hover {
  background: #0fb396;
}

.ghost-link {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
  padding: 9px 16px;
}

.ghost-link:hover {
  color: var(--fg);
  background: var(--panel-alt);
}

.cta.large,
.ghost-link.large {
  padding: 12px 24px;
  font-size: 1rem;
}

.row-tight {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.center-row {
  justify-content: center;
  margin-top: 26px;
}

/* ---------------------------------------------------------------- layout */
main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

/* The nav is sticky, so an anchor jump would otherwise land the section heading underneath it. */
.section[id],
#main {
  scroll-margin-top: 84px;
}

.section-head {
  margin-bottom: 26px;
  max-width: 660px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- hero */
.hero-block {
  text-align: center;
  padding: 72px 0 60px;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero-block h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.accent {
  background: linear-gradient(96deg, var(--ok), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.hero-note {
  margin-top: 18px;
}

.principle {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(29, 43, 62, 0.35);
}

/* ---------------------------------------------------------------- pipeline */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.step {
  background: rgba(23, 35, 52, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.step-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--panel-alt);
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- formats */
.format-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0 0 18px;
}

.format-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(29, 43, 62, 0.4);
}

/* ---------------------------------------------------------------- claim */
.claim {
  text-align: center;
}

.claim p {
  max-width: 660px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- foundation */
.lab-figure {
  margin: 0 0 24px;
}

.lab-figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.lab-figure figcaption {
  margin-top: 10px;
}

.foundation-body {
  max-width: 700px;
}

.numbers {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 30px 0 0;
}

.numbers li {
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

.numbers strong {
  display: block;
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------- closing */
.closing {
  text-align: center;
}

.closing h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.closing p {
  max-width: 620px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- footer */
.landing-foot {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.foot-brand img {
  width: 200px;
  margin-bottom: 12px;
}

.foot-brand p {
  max-width: 320px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.foot-col h3 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
  font-weight: 500;
}

.foot-col p + p {
  margin-top: 6px;
}

.identifyn-mark {
  width: 108px;
  margin-top: 12px;
  opacity: 0.85;
}

.foot-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

@media (max-width: 720px) {
  .landing-foot {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- coming-soon toast */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  padding: 0 16px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--cyan);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(4, 9, 16, 0.55);
  max-width: 420px;
  animation: toast-in 0.22s ease-out;
}

.toast strong {
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  white-space: nowrap;
}

.toast span {
  color: var(--muted);
  font-size: 0.84rem;
}

.toast.leaving {
  animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.leaving {
    animation: none;
  }
}
