@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ── Base ── */
.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(107, 168, 255, 0.1), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(0, 188, 212, 0.06), transparent 18%),
    linear-gradient(180deg, #020406 0%, #050912 48%, #030406 100%);
  color: #e6edf3;
  scroll-behavior: smooth;
}

.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 16%),
    repeating-linear-gradient(0deg, transparent, transparent 25px, rgba(255, 255, 255, 0.01) 25px, rgba(255, 255, 255, 0.01) 26px);
  opacity: 0.48;
}

.landing-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 84px;
}

/* ── Sticky Nav ── */
.landing-sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 260ms ease;
}

.landing-sticky-nav.is-visible {
  transform: translateY(0);
}

.landing-sticky-nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 24px;
  background: rgba(5, 9, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-sticky-nav__brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
  color: #f5f8fb;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.landing-sticky-nav__links {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.landing-sticky-nav__link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8a9aaa;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 140ms ease, background 140ms ease;
}

.landing-sticky-nav__link:hover {
  color: #d6e1ea;
}

.landing-sticky-nav__link.is-active {
  color: #f5f8fb;
  background: rgba(90, 147, 255, 0.12);
}

.landing-button--sm {
  min-width: auto;
  padding: 8px 14px;
  font-size: 0.7rem;
}

/* ── Font families ── */
.landing-masthead__brand,
.landing-masthead__links,
.landing-kicker,
.landing-card__label,
.landing-section__label,
.landing-proof-strip__label {
  font-family: 'IBM Plex Mono', monospace;
}

.landing-title,
.landing-section__heading h2,
.landing-closing h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* ── Masthead ── */
.landing-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-masthead__brand,
.landing-masthead__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-masthead__brand span:first-child { color: #eef4f8; }
.landing-masthead__brand span:last-child,
.landing-masthead__links a { color: #98a8b6; text-decoration: none; }
.landing-masthead__links a:hover { color: #d6e1ea; }

/* ── Hero ── */
.landing-hero {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 46px 0 30px;
}

.landing-hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  align-items: start;
  margin-top: 30px;
}

.landing-hero__row .landing-actions {
  margin-top: 0;
}

.landing-hero__row .landing-proof-strip {
  margin-top: 0;
  flex: 1;
  min-width: 300px;
}

.landing-kicker,
.landing-card__label,
.landing-section__label,
.landing-proof-strip__label {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #84a8cb;
}

.landing-backronym {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #7a9ab8;
  text-align: center;
}

.landing-bl {
  font-size: 1.5em;
  font-weight: 600;
  color: #b8d4ee;
}

.landing-bs {
  font-size: 0.75em;
  color: #566d80;
  letter-spacing: 0.05em;
}

.landing-title-sub {
  margin: 12px 0 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #f5f8fb;
  text-align: center;
}

.landing-statement {
  margin: 16px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: #afc0ce;
  text-align: center;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  justify-content: center;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #edf3f8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
  cursor: pointer;
}

.landing-button:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.landing-button--primary {
  background: linear-gradient(180deg, rgba(90, 147, 255, 0.2), rgba(90, 147, 255, 0.08));
  border-color: rgba(126, 184, 255, 0.35);
  color: #f4f9fd;
}

/* ── Proof Strip ── */
.landing-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.landing-proof-strip__item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.94), rgba(7, 10, 15, 0.82));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.landing-proof-strip__value {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.8rem;
  line-height: 0.92;
  color: #efc889;
}

.landing-proof-strip__label {
  margin: 0;
  font-size: 0.66rem;
  color: #8a9aaa;
}

/* ── Hero Visual ── */
.landing-hero-card {
  cursor: pointer;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 9, 14, 0.88);
}

.landing-hero-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Shared card styles ── */
.landing-figure-card,
.landing-validation-card,
.landing-recordings-card,
.landing-example-card,
.landing-application-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.94), rgba(7, 10, 15, 0.82));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

/* ── Sections ── */
.landing-section {
  padding-top: 64px;
}

.landing-section__heading {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-section__heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.0;
  color: #f4f7fa;
}

/* ── Gallery cards ── */
.landing-example-card {
  overflow: hidden;
}

.landing-example-card__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 14px 0;
}

.landing-example-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #99acbc;
  padding: 10px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.landing-example-tab:hover {
  color: #dce6ef;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.landing-example-tab.is-active {
  color: #f5f8fb;
  border-color: rgba(126, 184, 255, 0.32);
  background: linear-gradient(180deg, rgba(90, 147, 255, 0.18), rgba(90, 147, 255, 0.05));
}

.landing-example-card__frame {
  padding: 14px;
  transition: height 300ms ease;
}

.landing-figure-card {
  margin: 0;
  overflow: hidden;
}

.landing-figure-card--gallery img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain;
  background: #060910;
}

.landing-figure-card figcaption {
  padding: 12px 14px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.58;
  color: #8e9ca9;
}

/* ── Evidence honest framing ── */
.landing-evidence-honest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.landing-evidence-col {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.94), rgba(7, 10, 15, 0.82));
}

.landing-evidence-col h3 {
  margin: 0 0 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-evidence-col--sharp h3 {
  color: #6fcf97;
}

.landing-evidence-col--maturing h3 {
  color: #efc889;
}

.landing-evidence-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-evidence-col li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #aabac8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-evidence-col li:first-child {
  border-top: none;
  padding-top: 0;
}

.landing-evidence-col li::before {
  position: absolute;
  left: 0;
  top: 7px;
}

.landing-evidence-col--sharp li::before {
  content: '~';
  color: #6fcf97;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.landing-evidence-col--maturing li::before {
  content: '\b7';
  color: #efc889;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

/* ── Applications grid ── */
.landing-applications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-application-card {
  padding: 20px 22px;
}

.landing-application-card h3 {
  margin: 0 0 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #eef4f8;
}

.landing-application-card p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.72;
  color: #aabac8;
}

/* ── Architecture ── */
.landing-architecture-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}

.landing-architecture-embed {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.landing-lineage-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.landing-architecture-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-architecture-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-architecture-links .landing-button {
  text-align: center;
}

.landing-validation-card {
  padding: 16px 18px;
}

.landing-validation-card p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.72;
  color: #aabac8;
}

/* ── About ── */
.landing-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.landing-section__heading--about {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.landing-stage-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a8199;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.landing-about-statement p {
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.72;
  color: #c8d4de;
}

/* ── IP / Stats card ── */
.landing-ip-card {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.94), rgba(7, 10, 15, 0.82));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.landing-ip-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.landing-ip-table td {
  padding: 8px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: #aabac8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-ip-table tr:first-child td {
  border-top: none;
  padding-top: 0;
}

.landing-ip-table td:first-child {
  color: #d0dce6;
  font-weight: 500;
}

.landing-ip-table td:last-child {
  text-align: right;
  color: #6a8199;
}

.landing-ip-detail {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #6a8199;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.landing-stats-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-stat-value {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #efc889;
}

.landing-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a8199;
}

/* ── Clickable gallery ── */
.landing-figure-card--clickable {
  cursor: pointer;
  transition: border-color 160ms ease;
}

.landing-figure-card--clickable:hover {
  border-color: rgba(126, 184, 255, 0.3);
}

.landing-expand-hint {
  font-size: 0.75rem;
  color: #6a8199;
  margin-left: 8px;
}

.landing-figure-card--clickable:hover .landing-expand-hint {
  color: #8dc8ff;
}

/* ── Lightbox ── */
.landing-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
  padding: 24px;
}

.landing-lightbox img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.landing-lightbox__close {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a8199;
}

/* ── Responsive ── */
@media (max-width: 1120px) {
  .landing-architecture-layout,
  .landing-about-layout {
    grid-template-columns: 1fr;
  }

  .landing-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-applications-grid {
    grid-template-columns: 1fr;
  }

  .landing-sticky-nav__links {
    display: none;
  }
}

@media (max-width: 760px) {
  .landing-shell {
    width: min(100% - 28px, 1220px);
  }

  .landing-masthead {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-proof-strip,
  .landing-evidence-honest,
  .landing-applications-grid {
    grid-template-columns: 1fr;
  }

  .landing-actions {
    flex-direction: column;
  }

  .landing-button {
    width: 100%;
  }

  .landing-figure-card--gallery img {
    max-height: 360px;
  }
}
