/* Strategic Intelligence Community — landing.
   Design language lifted from the Principle homepage (webflow):
   black canvas, Zalando Sans / SemiExpanded, white + gold #ffaf00 on black,
   rectangular white CTAs, glassy panels, particle-strand hero art. */

:root {
  --black: #000;
  --white: #fff;
  --smoke: whitesmoke;
  --text: #f2f2f2;
  --text-dim: #b9b9b9;
  --text-faint: #7d7d7d;
  --teal: #146d6c;
  --teal-deep: #014140;
  --amber: #ffaf00;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --body-font: "Zalando Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: "Zalando Sans SemiExpanded", "Zalando Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 150%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 500; }

/* ── Buttons (rectangular, per homepage hero CTA) ── */
.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 2.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--body-font);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.l-btn--white {
  background: var(--white);
  color: #010101;
}
.l-btn--white:hover { background: #d9d9d9; }
.l-btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.l-btn--ghost:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.l-btn--small { height: 2.125rem; padding: 0 1.25rem; font-size: 0.6875rem; }
.l-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Nav ─────────────────────────────── */
.l-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.l-nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  height: 3.75rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.l-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
}
.l-brand img { display: block; }
.l-brand span { color: var(--text-faint); font-weight: 500; font-size: 0.8125rem; }
.l-nav__links { display: flex; align-items: center; gap: 1.5rem; }
.l-nav__links > a:not(.l-btn) { font-size: 0.75rem; color: var(--text-dim); }
.l-nav__links > a:not(.l-btn):hover { color: var(--white); }

/* ── Glow (radial gradient — no filter: cheap to composite) ── */
.l-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 175, 0, 0.10), transparent);
  width: 48rem; height: 30rem; left: 50%; transform: translateX(-50%);
}
.l-glow--low { top: auto; bottom: -14rem; }

/* ── Hero (left-aligned over the strand canvas) ── */
.l-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 5rem;
}
#strands {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.l-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.l-eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}
.l-eyebrow--amber { color: var(--amber); }
.l-hero__title {
  font-size: clamp(1.9rem, 4vw, 2.875rem);
  line-height: 120%;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.l-hero__tagline {
  font-size: 1rem;
  font-weight: 400;
  line-height: 165%;
  color: var(--text-dim);
  max-width: 38rem;
  margin-bottom: 1.25rem;
}
.l-hero__formula { font-size: 0.8125rem; color: var(--text-faint); margin-bottom: 2.5rem; }
.l-hero__formula span { white-space: nowrap; }
.l-hero__formula span:not(:last-child)::after { content: "·"; margin: 0 0.6rem; color: var(--amber); }
.l-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.l-hero__note {
  margin-top: 1.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ── Sections ────────────────────────── */
.l-section { position: relative; padding: 7.5rem 1.5rem; overflow: hidden; }
.l-section--line { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.l-section__inner { position: relative; z-index: 1; max-width: 66rem; margin: 0 auto; }
.l-h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  line-height: 130%;
  color: var(--white);
  margin-bottom: 2.5rem;
  max-width: 44rem;
}
.l-body { font-size: 0.9375rem; line-height: 165%; color: var(--text-dim); }
.l-narrow { max-width: 38rem; }

/* ── Cards grid ──────────────────────── */
.l-grid { display: grid; gap: 1rem; }
.l-grid--4 { grid-template-columns: repeat(4, 1fr); }
.l-card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
}
.l-card__num {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.l-card h3 { font-size: 0.9375rem; color: var(--white); margin-bottom: 0.6rem; line-height: 135%; }
.l-card p { font-size: 0.8125rem; line-height: 160%; color: var(--text-dim); }

/* ── Steps ───────────────────────────── */
.l-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 1rem; }
.l-step__k {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
  padding-top: 1.25rem;
  border-top: 1px solid var(--amber);
  margin-bottom: 0.85rem;
}
.l-step p { font-size: 0.8438rem; line-height: 165%; color: var(--text-dim); }

/* ── Confidential ────────────────────── */
.l-confidential { text-align: center; }
.l-confidential .l-h2 { margin-left: auto; margin-right: auto; }
.l-confidential .l-narrow { margin: 0 auto; }

/* ── Request form ────────────────────── */
.l-request { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.l-form {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.l-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.l-form input, .l-form textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.875rem;
  padding: 0.65rem 0.85rem;
}
.l-form textarea { min-height: 4.5rem; resize: vertical; }
.l-form input:focus, .l-form textarea:focus { outline: none; border-color: rgba(255, 175, 0, 0.6); }
.l-form .l-btn { margin-top: 0.5rem; }
.l-form__msg { font-size: 0.8125rem; color: #ff8f8f; min-height: 1.2em; }
.l-form__msg.ok { color: #7fe0c3; }
.l-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ── Footer ──────────────────────────── */
.l-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem 1.5rem;
}
.l-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.l-footer__brand { display: flex; align-items: center; gap: 0.5rem; }
.l-footer__brand img { display: block; opacity: 0.9; }
.l-footer__dim { color: var(--text-faint); }
.l-footer a { color: var(--text-dim); }
.l-footer a:hover { color: var(--white); }

/* ── Benchmark page (/benchmark) ─────── */
.l-hero--short { min-height: 66vh; }
.l-gold { color: var(--amber); }
.l-glow--hero {
  top: -10rem;
  background: radial-gradient(closest-side, rgba(255, 175, 0, 0.09), transparent);
}

.bm-banner[hidden] {
  display: none;
}

.bm-banner {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 175, 0, 0.4);
  border-radius: 0.5rem;
  background: rgba(255, 175, 0, 0.08);
  color: var(--amber);
  font-size: 0.8125rem;
}

.bm-controls { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.bm-tabs, .bm-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bm-tab, .bm-chip {
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--body-font);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.bm-tab:hover, .bm-chip:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.bm-tab.on, .bm-chip.on { background: var(--white); border-color: var(--white); color: #010101; }

.bm-lb-wrap { overflow-x: auto; }
.bm-lb { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.bm-lb th {
  text-align: left;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--glass-edge);
}
.bm-lb td { padding: 0.85rem 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: middle; }
.bm-dir { color: var(--text-faint); font-weight: 400; }
.bm-col-rank { width: 3.5rem; }

.bm-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-dim); border: 1px solid rgba(255, 255, 255, 0.12);
}
.bm-rank-1 { background: var(--amber); border-color: var(--amber); color: #241500; }
.bm-rank-2 { background: #c7cdd6; border-color: #c7cdd6; color: #101010; }
.bm-rank-3 { background: #cd8f5a; border-color: #cd8f5a; color: #1d0f02; }

.bm-model { display: flex; align-items: center; gap: 0.75rem; }
.bm-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 0.4rem;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.bm-model-name { font-weight: 600; color: var(--white); font-size: 0.875rem; }
.bm-model-org { font-size: 0.75rem; color: var(--text-faint); }
.bm-os {
  margin-left: 0.5rem; padding: 0.1rem 0.45rem;
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.12em;
  border: 1px solid rgba(126, 226, 168, 0.4); border-radius: 999px;
  color: #7ee2a8; vertical-align: 1px;
}
.bm-score { font-family: var(--body-font); font-weight: 600; color: var(--white); font-size: 0.9375rem; }
.bm-ci { margin-left: 0.4rem; font-size: 0.6875rem; color: var(--text-faint); }
.bm-cal, .bm-run { font-size: 0.8125rem; color: var(--text-dim); }
.mini-bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); margin-top: 6px; max-width: 11rem; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 175, 0, 0.5), var(--amber)); }

.bm-expand { margin-top: 1rem; }
.bm-stamp { margin-top: 1.25rem; font-size: 0.75rem; color: var(--text-faint); }

.bm-lq { margin-top: 2.5rem; }
.bm-lq-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.bm-lq-chip {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
}

.bm-chart-card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.bm-chart svg { width: 100%; height: auto; display: block; }
.bm-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem; }
.bm-legend-item { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; color: var(--text-dim); }
.bm-swatch { width: 0.7rem; height: 0.7rem; border-radius: 2px; display: inline-block; }

.bm-human-cta { margin-top: 2rem; display: flex; justify-content: center; }

.bm-updates { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.bm-updates input[type="email"] {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.4rem;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
  min-width: 15rem;
}
.bm-updates input[type="email"]:focus { outline: none; border-color: rgba(255, 175, 0, 0.6); }

/* ── Responsive ──────────────────────── */
@media (max-width: 991px) {
  .l-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .l-steps { grid-template-columns: 1fr; gap: 2rem; }
  .l-request { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .l-grid--4 { grid-template-columns: 1fr; }
  .l-section { padding: 5rem 1.25rem; }
  .l-brand span { display: none; }
}

/* ── Info button + changelog modal ───── */
.l-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.5rem;
  vertical-align: -0.15em;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background: var(--glass);
  color: var(--text-faint);
  font-family: var(--body-font);
  font-size: 0.625rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.l-info-btn:hover { color: var(--amber); border-color: rgba(255, 175, 0, 0.6); }

.l-modal {
  max-width: 34rem;
  width: calc(100% - 3rem);
  border: 1px solid var(--glass-edge);
  border-radius: 0.6rem;
  background: #0b0b0b;
  color: var(--text);
  padding: 0;
}
.l-modal::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); }
.l-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-edge);
}
.l-modal__close {
  border: none;
  background: none;
  color: var(--text-faint);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.l-modal__close:hover { color: var(--white); }
.l-modal__body { padding: 1.5rem; max-height: 60vh; overflow-y: auto; }
.l-modal__entry { margin-bottom: 1.5rem; }
.l-modal__entry:last-child { margin-bottom: 0; }
.l-modal__ver {
  font-family: var(--heading-font);
  font-size: 0.875rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.l-modal__date {
  font-size: 0.6875rem;
  color: var(--text-faint);
  font-family: var(--body-font);
  margin-left: 0.4rem;
}
.l-modal__entry p { font-size: 0.8125rem; line-height: 160%; color: var(--text-dim); }
