:root {
  --ink: #111827;
  --paper: #f7f5ef;
  --paper-strong: #fffdf8;
  --muted: #5d6674;
  --line: rgba(17, 24, 39, 0.14);
  --charcoal: #0b1116;
  --charcoal-2: #111b22;
  --cream: #fff8e9;
  --teal: #14b8a6;
  --green: #22c55e;
  --amber: #eab308;
  --rose: #e85d75;
  --steel: #d9e2e7;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
  --radius: 8px;
  --content: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--paper-strong);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  color: var(--cream);
  background: rgba(9, 15, 20, 0.56);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(9, 15, 20, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-shell {
  width: var(--content);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(20, 184, 166, 0.18);
  color: #ccfbf1;
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  color: rgba(255, 248, 233, 0.78);
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--amber));
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  background: var(--charcoal);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.94) 0%, rgba(4, 9, 12, 0.72) 33%, rgba(4, 9, 12, 0.12) 72%),
    linear-gradient(0deg, rgba(4, 9, 12, 0.78) 0%, rgba(4, 9, 12, 0.08) 42%, rgba(4, 9, 12, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
  padding: 144px 0 186px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4.25rem, 11vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 248, 233, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-action {
  color: var(--charcoal);
  background: var(--cream);
}

.secondary-action {
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  width: var(--content);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  transform: translateX(-50%);
}

.hero-metrics article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 13, 17, 0.64);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 248, 233, 0.74);
  font-size: 0.92rem;
}

.section {
  padding: 96px 0;
}

.section-inner {
  width: var(--content);
  margin: 0 auto;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading h2,
.split-heading h2,
.leadership-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.split-heading p,
.leadership-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.proof-band {
  background: var(--paper);
}

.proof-grid,
.component-grid,
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proof-card,
.component-card,
.leadership-grid article,
.signal-panel,
.architecture-notes article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.proof-card {
  min-height: 310px;
  padding: 24px;
}

.mini-label,
.component-index,
.evidence,
.arch-kicker {
  display: inline-flex;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-card h3,
.component-card h3,
.signal-panel h3,
.architecture-notes h3,
.leadership-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.proof-card p,
.component-card p,
.signal-panel li,
.architecture-notes p,
.leadership-grid p {
  color: var(--muted);
}

.architecture-band,
.leadership-band {
  color: var(--steel);
  background: var(--charcoal);
}

.architecture-band .eyebrow,
.leadership-band .eyebrow {
  color: #5eead4;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.8fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

.architecture-band .split-heading p,
.leadership-copy p {
  color: rgba(217, 226, 231, 0.74);
}

.architecture-map {
  display: grid;
  grid-template-columns:
    minmax(165px, 1fr) 32px minmax(165px, 1fr) 32px minmax(165px, 1fr) 32px minmax(165px, 1fr)
    32px minmax(165px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)), var(--charcoal-2);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.arch-column {
  min-width: 158px;
  display: grid;
  gap: 10px;
}

.arch-kicker {
  color: #99f6e4;
}

.arch-node {
  min-height: 58px;
  display: grid;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 680;
}

.arch-column:nth-of-type(1) .arch-node {
  border-color: rgba(20, 184, 166, 0.28);
}

.arch-column:nth-of-type(3) .arch-node {
  border-color: rgba(234, 179, 8, 0.28);
}

.arch-column:nth-of-type(5) .arch-node {
  border-color: rgba(34, 197, 94, 0.28);
}

.arch-arrow {
  height: 2px;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.18), rgba(34, 197, 94, 0.95));
  position: relative;
}

.arch-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(34, 197, 94, 0.95);
  border-right: 2px solid rgba(34, 197, 94, 0.95);
  transform: translateY(-50%) rotate(45deg);
}

.architecture-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.architecture-notes article {
  padding: 24px;
  color: var(--ink);
  background: #f5fbf9;
}

.components-band {
  background: linear-gradient(180deg, #f7f5ef 0%, #edf5f2 100%);
}

.component-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.component-card {
  min-height: 292px;
  padding: 22px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.component-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
}

.component-index {
  color: var(--teal);
}

.evidence {
  margin-top: 14px;
  color: #2f6f67;
}

.operations-band {
  background: #fffdf8;
}

.signals-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-panel {
  padding: 26px;
}

.signal-panel h3 {
  margin-top: 0;
}

.signal-list {
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding-left: 22px;
}

.signal-list li::marker {
  color: var(--teal);
  font-weight: 900;
}

.leadership-band {
  padding-bottom: 112px;
}

.leadership-copy {
  max-width: 920px;
  margin-bottom: 36px;
}

.leadership-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leadership-grid article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.leadership-grid h3 {
  color: #ffffff;
}

.leadership-grid p {
  color: rgba(217, 226, 231, 0.72);
}

.site-footer {
  color: var(--steel);
  background: #070b0f;
}

.footer-inner {
  width: var(--content);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  color: rgba(217, 226, 231, 0.68);
}

.footer-inner a {
  color: #99f6e4;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .proof-grid,
  .component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-map {
    grid-template-columns: minmax(180px, 1fr);
    align-items: stretch;
  }

  .arch-arrow {
    width: 2px;
    height: 28px;
    margin-left: 28px;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.18), rgba(34, 197, 94, 0.95));
  }

  .arch-arrow::after {
    right: auto;
    top: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .signals-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --content: min(100vw - 28px, 1180px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(9, 15, 20, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: 940px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 9, 12, 0.94) 0%, rgba(4, 9, 12, 0.76) 52%, rgba(4, 9, 12, 0.28) 100%),
      linear-gradient(0deg, rgba(4, 9, 12, 0.86) 0%, rgba(4, 9, 12, 0.16) 48%, rgba(4, 9, 12, 0.58) 100%);
  }

  .hero-content {
    padding: 122px 0 360px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 17vw, 6.4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }

  .primary-action,
  .secondary-action {
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics article {
    min-height: auto;
    padding: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .split-heading,
  .architecture-notes,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    gap: 18px;
  }

  .proof-grid,
  .component-grid {
    grid-template-columns: 1fr;
  }

  .proof-card,
  .component-card {
    min-height: auto;
  }

  .footer-inner {
    min-height: 104px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
