:root {
  color-scheme: light dark;
  --ink: #111714;
  --ink-soft: #1a2420;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --surface-cool: #e8eeeb;
  --muted: #5e6c66;
  --line: #cfd9d4;
  --mint: #78d2b0;
  --mint-deep: #176348;
  --cobalt: #456b90;
  --coral: #bd5d4d;
  --focus: #176348;
  --radius: 6px;
  --font-sans: "Avenir Next", "Segoe UI Variable", "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", Charter, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(10, 20, 14, 0.2);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(207, 217, 212, 0.9);
  background: rgba(245, 247, 246, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: var(--radius);
}

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

.site-header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms, color 150ms, transform 150ms;
}

.site-header nav a:hover {
  background: var(--surface-cool);
  color: var(--ink);
}

.site-header nav a:active,
.button:active,
.product-links a:active {
  transform: scale(0.97);
}

.site-header nav .nav-app {
  background: var(--ink);
  color: #ffffff;
}

.site-header nav .nav-app:hover {
  background: var(--mint-deep);
  color: #ffffff;
}

.hero {
  position: relative;
  height: clamp(500px, calc(100svh - 170px), 680px);
  min-height: 500px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.04);
  animation: hero-image-in 700ms ease-out both;
}

.hero-scrim {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(70%, 900px);
  background: linear-gradient(
    90deg,
    rgba(10, 15, 13, 0.98) 0%,
    rgba(10, 15, 13, 0.9) 62%,
    rgba(10, 15, 13, 0) 100%
  );
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
  color: #f2f7f4;
  animation: hero-copy-in 520ms 80ms ease-out both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.dark-eyebrow {
  color: var(--mint-deep);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 88px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 570px;
  margin: 22px 0 0;
  color: #d4e2dc;
  font-size: 24px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, color 150ms, transform 150ms;
}

.button-primary {
  background: var(--mint);
  color: #0c251b;
}

.button-primary:hover {
  background: #91dfc2;
}

.button-quiet {
  border-color: rgba(224, 239, 231, 0.38);
  color: #f2f7f4;
}

.button-quiet:hover {
  border-color: var(--mint);
  background: rgba(120, 210, 176, 0.1);
}

.hero-note {
  margin: 18px 0 0;
  color: #aebdb7;
  font-size: 13px;
}

.model-band,
.ecosystem-band {
  padding: 92px 0;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px 72px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.08;
}

.section-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 18px;
}

.model-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.model-list li {
  min-height: 144px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 110px;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.model-index {
  align-self: start;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.model-list h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.model-list p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.model-signal {
  width: 96px;
  height: 56px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.pages-signal {
  background-image: linear-gradient(var(--mint-deep), var(--mint-deep));
  background-repeat: no-repeat;
  background-position: 18px 16px;
  background-size: 58px 2px;
  box-shadow: inset 0 -15px 0 #e2f4ed;
}

.types-signal {
  background-image:
    linear-gradient(var(--cobalt), var(--cobalt)),
    linear-gradient(var(--cobalt), var(--cobalt)),
    linear-gradient(var(--cobalt), var(--cobalt));
  background-repeat: no-repeat;
  background-position: 16px 14px, 16px 27px, 16px 40px;
  background-size: 38px 2px, 64px 2px, 49px 2px;
}

.relations-signal {
  background-image:
    radial-gradient(circle at 22px 28px, var(--coral) 0 5px, transparent 6px),
    radial-gradient(circle at 49px 15px, var(--mint-deep) 0 5px, transparent 6px),
    radial-gradient(circle at 75px 35px, var(--cobalt) 0 5px, transparent 6px),
    linear-gradient(153deg, transparent 44%, var(--line) 45% 47%, transparent 48%),
    linear-gradient(28deg, transparent 45%, var(--line) 46% 48%, transparent 49%);
}

.ownership-band {
  padding: 88px 0;
  background: var(--ink-soft);
  color: #edf6f1;
}

.ownership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 72px;
  align-items: center;
}

.ownership-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c6d4ce;
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 24px;
  color: var(--mint);
  font-weight: 750;
  text-decoration-thickness: 1px;
}

.ownership-facts {
  margin: 0;
  border-top: 1px solid #3a4a43;
}

.ownership-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #3a4a43;
}

.ownership-facts dt {
  color: #92a59c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.ownership-facts dd {
  margin: 0;
  font-weight: 650;
}

.ecosystem-heading {
  margin-bottom: 38px;
}

.product-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-links a {
  min-height: 122px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}

.product-links a:hover {
  border-color: #82968d;
  box-shadow: 0 10px 24px rgba(17, 23, 20, 0.08);
}

.product-links strong,
.product-links small {
  display: block;
}

.product-links strong {
  font-size: 16px;
}

.product-links small {
  margin-top: 3px;
  color: var(--muted);
}

.product-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #111714;
  color: var(--mint);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.matrix-mark {
  background: #263f55;
  color: #a9d8f3;
}

.kee-mark {
  background: #43392f;
  color: #f1c176;
}

.tier-mark {
  background: #4a3030;
  color: #f1aaa0;
}

.closing-band {
  padding: 72px 0;
  background: #dcebe5;
}

.closing-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.closing-layout h2 {
  font-size: 44px;
}

.closing-layout .button-primary {
  flex: 0 0 auto;
  background: var(--ink);
  color: #ffffff;
}

.closing-layout .button-primary:hover {
  background: var(--mint-deep);
}

footer {
  padding: 26px 0;
  border-top: 1px solid #2c3933;
  background: #111714;
  color: #aebeb7;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-inner span {
  margin-right: auto;
}

@keyframes hero-image-in {
  from { opacity: 0.65; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 940px) {
  .section-heading,
  .ownership-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .ownership-layout {
    gap: 46px;
  }

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

@media (max-width: 700px) {
  .site-header {
    min-height: 62px;
    gap: 12px;
  }

  .site-header nav a:not(.nav-app) {
    display: none;
  }

  .hero {
    height: min(650px, calc(100svh - 96px));
    min-height: 440px;
  }

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

  .hero-scrim {
    inset: 0;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(10, 15, 13, 0.76) 0%,
      rgba(10, 15, 13, 0.94) 64%,
      rgba(10, 15, 13, 0.99) 100%
    );
  }

  .hero-inner {
    align-items: flex-end;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 60px;
  }

  .hero-summary {
    font-size: 20px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .model-band,
  .ecosystem-band {
    padding: 68px 0;
  }

  h2,
  .closing-layout h2 {
    font-size: 38px;
  }

  .model-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  .model-signal {
    display: none;
  }

  .ownership-band {
    padding: 68px 0;
  }

  .product-links {
    grid-template-columns: 1fr;
  }

  .product-links a {
    min-height: 92px;
  }

  .closing-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-inner span {
    flex-basis: 100%;
  }
}

@media (max-width: 700px) and (max-height: 620px) {
  .hero {
    height: calc(100svh - 154px);
    min-height: 0;
  }

  .hero-inner {
    padding-bottom: 32px;
  }

  .hero-summary {
    margin-top: 14px;
    font-size: 18px;
  }

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

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

@media (max-width: 380px) {
  .brand {
    font-size: 16px;
  }

  .site-header nav .nav-app {
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 52px;
  }

  .ownership-facts div {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111714;
    --surface: #17201c;
    --surface-cool: #202c27;
    --ink: #edf4f0;
    --muted: #a6b5ae;
    --line: #35443d;
    --focus: #78d2b0;
  }

  .site-header {
    border-bottom-color: rgba(53, 68, 61, 0.92);
    background: rgba(17, 23, 20, 0.94);
  }

  .dark-eyebrow,
  .text-link {
    color: var(--mint);
  }

  .site-header nav .nav-app,
  .closing-layout .button-primary {
    background: var(--mint);
    color: #0c251b;
  }

  .site-header nav .nav-app:hover,
  .closing-layout .button-primary:hover {
    background: #91dfc2;
    color: #0c251b;
  }

  .pages-signal {
    box-shadow: inset 0 -15px 0 #203b32;
  }

  .closing-band {
    background: #22342d;
  }
}
