@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --navy-950: #02092e;
  --navy-900: #03143f;
  --navy-800: #071a4d;
  --blue-800: #042a77;
  --blue-700: #0c4bac;
  --blue-600: #0f67d5;
  --blue-500: #1285ee;
  --blue-400: #259df3;
  --blue-300: #76b3ea;
  --ice-100: #eaf5ff;
  --ice-50: #f7fbff;
  --text-main: #071638;
  --text-muted: #526178;
  --border-soft: #dce8f7;
  --surface: #ffffff;
  --success: #138a63;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --container-max: 1180px;
  --container-padding: 24px;
  --section-y: 112px;
  --section-y-mobile: 72px;
  --grid-gap: 24px;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(7, 22, 56, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--navy-900);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(3, 20, 63, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-word {
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 32px);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--navy-900);
  border-color: var(--blue-500);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--navy-900);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(3, 20, 63, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-700);
}

.button-secondary {
  background: #ffffff;
  color: var(--navy-900);
  border-color: var(--border-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 24%, rgba(37, 157, 243, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--ice-50) 100%);
}

.hero::before,
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 75, 172, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(12, 75, 172, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, black 16%, black 84%, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5.7fr) minmax(360px, 6.3fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
  width: min(var(--container-max), calc(100% - var(--container-padding) * 2));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--text-main);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  max-width: 880px;
  margin-bottom: 20px;
  color: var(--text-main);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-copy {
  max-width: 650px;
  font-size: clamp(18px, 1.8vw, 22px);
}

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

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.tile-map {
  --tile-size: clamp(6px, 1.1vw, 20px);
  --tile-gap: calc(var(--tile-size) * 0.35);
  display: grid;
  grid-template-columns: repeat(24, var(--tile-size));
  grid-auto-rows: var(--tile-size);
  gap: var(--tile-gap);
  width: max-content;
}

.tile-map-small {
  --tile-size: 1.35px;
  --tile-gap: 0.45px;
  width: 42px;
  height: 38px;
  overflow: hidden;
}

.tile-map-large {
  --tile-size: clamp(12px, 1.45vw, 20px);
  filter: drop-shadow(0 28px 54px rgba(7, 22, 56, 0.12));
}

.tile-map-showcase {
  --tile-size: clamp(9px, 1.15vw, 18px);
  justify-self: center;
}

.tile {
  width: var(--tile-size);
  height: var(--tile-size);
  opacity: 0;
  transform: translateY(4px);
  animation: tileIn 420ms ease forwards;
}

@keyframes tileIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  position: absolute;
  min-width: 190px;
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.stat-card span,
.data-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.stat-card strong {
  display: block;
  color: var(--navy-900);
  font-size: 18px;
  line-height: 1.25;
}

.stat-card-top {
  top: 72px;
  right: 14px;
}

.stat-card-mid {
  left: 4px;
  top: 46%;
}

.stat-card-bottom {
  right: 0;
  bottom: 74px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--container-max), calc(100% - var(--container-padding) * 2));
  margin: 0 auto;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  background: #ffffff;
}

.trust-strip div {
  padding: 24px;
  border-right: 1px solid var(--border-soft);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
}

.trust-strip span {
  color: var(--text-muted);
  font-size: 14px;
}

.section {
  padding: var(--section-y) var(--container-padding);
  background: #ffffff;
}

.section-ice {
  background: var(--ice-50);
}

.section-navy {
  background: var(--navy-950);
  color: #ffffff;
}

.section-navy h2,
.section-navy h3 {
  color: #ffffff;
}

.section-navy p {
  color: rgba(234, 245, 255, 0.78);
}

.section-navy .eyebrow {
  color: var(--blue-300);
}

.section-heading,
.comparison-grid,
.feature-grid,
.method-grid,
.use-case-grid,
.dashboard-shell,
.governance-section > *,
.closing-inner {
  width: min(var(--container-max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: clamp(34px, 5vw, 60px);
  text-align: center;
}

.align-left {
  margin-left: auto;
  text-align: left;
}

.comparison-grid,
.feature-grid,
.method-grid,
.use-case-grid {
  display: grid;
  gap: var(--grid-gap);
}

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

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

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

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

.card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card p {
  margin-bottom: 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
}

.card li::before,
.square-bullet {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--blue-500);
}

.card li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
}

.emphasis-card {
  background: var(--navy-900);
  border-color: rgba(118, 179, 234, 0.32);
}

.emphasis-card h3 {
  color: #ffffff;
}

.emphasis-card li {
  color: rgba(234, 245, 255, 0.86);
}

.emphasis-card li::before {
  background: var(--blue-300);
}

.feature-card,
.use-case-grid .card,
.method-grid .card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.use-case-grid .card:hover,
.method-grid .card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 103, 213, 0.35);
}

.matrix-icon,
.mini-map {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  background:
    linear-gradient(90deg, var(--blue-300) 7px, transparent 7px) 0 0 / 13px 13px,
    linear-gradient(90deg, var(--blue-500) 7px, transparent 7px) 13px 13px / 13px 13px,
    linear-gradient(90deg, var(--blue-700) 7px, transparent 7px) 26px 26px / 13px 13px;
}

.matrix-icon.variant {
  background:
    linear-gradient(90deg, var(--blue-300) 7px, transparent 7px) 0 13px / 13px 13px,
    linear-gradient(90deg, var(--blue-500) 7px, transparent 7px) 13px 0 / 13px 13px,
    linear-gradient(90deg, var(--blue-800) 7px, transparent 7px) 26px 26px / 13px 13px;
}

.matrix-icon.dense {
  background:
    linear-gradient(90deg, var(--blue-300) 7px, transparent 7px) 0 0 / 13px 13px,
    linear-gradient(90deg, var(--blue-500) 7px, transparent 7px) 13px 0 / 13px 13px,
    linear-gradient(90deg, var(--blue-700) 7px, transparent 7px) 0 13px / 13px 13px,
    linear-gradient(90deg, var(--navy-900) 7px, transparent 7px) 26px 26px / 13px 13px;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(32px, 8vw, 100px);
  align-items: center;
}

.map-copy {
  width: min(520px, 100%);
  justify-self: end;
}

.method-grid .card span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--blue-600);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-shell {
  background: var(--ice-50);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 16px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 18px 18px 28px;
}

.dashboard-header h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 16px;
}

.dashboard-panel {
  min-height: 230px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px;
}

.selector-panel strong {
  display: block;
  margin-bottom: 34px;
  color: var(--navy-900);
  font-size: 22px;
}

.mini-map {
  width: 130px;
  height: 86px;
  margin: 0;
  opacity: 0.9;
}

.bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  height: 165px;
  padding-top: 24px;
}

.bars i {
  display: block;
  min-height: 30px;
  background: linear-gradient(180deg, var(--blue-300), var(--blue-700));
}

.bars i:nth-child(1) { height: 42%; }
.bars i:nth-child(2) { height: 66%; }
.bars i:nth-child(3) { height: 58%; }
.bars i:nth-child(4) { height: 84%; }
.bars i:nth-child(5) { height: 72%; }
.bars i:nth-child(6) { height: 51%; }

.table-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.table-panel div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-main);
}

.table-panel span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.governance-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 7vw, 86px);
  align-items: start;
}

.governance-list {
  display: grid;
  gap: 14px;
}

.governance-list div {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(220, 232, 247, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.governance-list p {
  margin-bottom: 0;
}

.governance-list .square-bullet {
  margin-top: 10px;
  background: var(--blue-300);
}

.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, var(--ice-50));
}

.closing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.closing-inner h2,
.closing-inner p {
  margin-left: auto;
  margin-right: auto;
}

.closing-inner .hero-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 4vw, 48px);
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 14px;
}

.site-footer .brand-word {
  font-size: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease, border-color 180ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1023px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .site-header {
    height: auto;
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 0;
  }

  .header-cta {
    justify-self: end;
  }

  .hero-inner,
  .map-section,
  .governance-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

  .map-copy {
    justify-self: start;
  }

  .method-grid,
  .use-case-grid,
  .feature-grid,
  .dashboard-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --container-padding: 18px;
  }

  .section {
    padding-top: var(--section-y-mobile);
    padding-bottom: var(--section-y-mobile);
  }

  .brand-word {
    font-size: 22px;
  }

  .header-cta {
    min-height: 40px;
    padding: 10px 13px;
  }

  .hero-inner {
    width: min(var(--container-max), calc(100% - var(--container-padding) * 2));
    padding: 58px 0 44px;
  }

  .hero-visual {
    min-height: 390px;
    overflow: hidden;
  }

  .tile-map-large {
    --tile-size: clamp(8px, 2.4vw, 12px);
  }

  .stat-card {
    min-width: 160px;
    padding: 12px 14px;
  }

  .stat-card strong {
    font-size: 15px;
  }

  .stat-card-top {
    top: 28px;
  }

  .stat-card-mid {
    left: 0;
  }

  .stat-card-bottom {
    bottom: 32px;
  }

  .hero-actions,
  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .comparison-grid,
  .method-grid,
  .use-case-grid,
  .feature-grid,
  .dashboard-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    border-top: 1px solid var(--border-soft);
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .map-section {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .tile-map-showcase {
    --tile-size: clamp(6px, 2.2vw, 10px);
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 16px;
    font-size: 13px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .stat-card-mid {
    top: auto;
    bottom: 112px;
  }
}

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

  .reveal,
  .tile {
    opacity: 1;
    transform: none;
  }
}
