:root {
  color-scheme: light;
  --graphite: #121311;
  --ink: #22231e;
  --paper: #f4f1e8;
  --paper-2: #ebe7dc;
  --muted: #6d7064;
  --line: #c6c0b2;
  --green: #15b284;
  --cyan: #2fbed9;
  --coral: #ff5c35;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 18px 55px rgba(18, 19, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

body::selection {
  background: var(--green);
  color: var(--graphite);
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 0.95rem;
  background: var(--paper);
  color: var(--graphite);
  border: 2px solid var(--graphite);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem max(1rem, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  transition: background 180ms ease, border-color 180ms ease;
}

.topbar[data-scrolled] {
  background: rgba(18, 19, 17, 0.92);
  border-bottom: 1px solid rgba(244, 241, 232, 0.15);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 12.5rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.nav a {
  color: rgba(244, 241, 232, 0.8);
  text-decoration: none;
}

.nav a:hover {
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  background: var(--graphite);
  color: var(--paper);
  isolation: isolate;
}

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

.hero-media {
  z-index: -2;
  background: url("/assets/brand/hero-lattice.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 19, 17, 0.92) 0%, rgba(18, 19, 17, 0.74) 42%, rgba(18, 19, 17, 0.2) 100%),
    linear-gradient(0deg, rgba(18, 19, 17, 0.82) 0%, rgba(18, 19, 17, 0.12) 44%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 82svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8.25rem 0 3.5rem;
}

.kicker,
.section-label {
  margin: 0 0 0.95rem;
  color: var(--green);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Avenir Next Condensed", "Avenir Next", "Arial Narrow", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  font-size: 5rem;
  line-height: 0.95;
}

h2 {
  max-width: 12ch;
  font-size: 3.05rem;
  line-height: 1;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.1;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 43rem;
  margin-top: 1.35rem;
  color: rgba(244, 241, 232, 0.84);
  font-size: 1.22rem;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--green);
  color: var(--graphite);
}

.button.secondary {
  border-color: rgba(244, 241, 232, 0.36);
  color: var(--paper);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 760px);
  margin: 2.4rem 0 0;
  border: 1px solid rgba(244, 241, 232, 0.22);
  background: rgba(244, 241, 232, 0.22);
}

.proof-row div {
  padding: 1rem;
  background: rgba(18, 19, 17, 0.72);
}

.proof-row dt {
  margin-bottom: 0.38rem;
  color: rgba(244, 241, 232, 0.52);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.proof-row dd {
  margin: 0;
  color: var(--paper);
  font-weight: 800;
}

.section-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.intro-grid {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 2rem;
  padding: 2.2rem 0;
}

.intro-grid p:last-child {
  max-width: 57rem;
  color: var(--ink);
  font-size: 1.12rem;
}

.section-block,
.metrics-band,
.final-cta {
  padding: 5.25rem 0;
}

.section-block.tonal {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}

.section-heading.split {
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.65fr);
  align-items: end;
}

.section-heading.split p:last-child {
  max-width: 31rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.mode-item,
.metric-grid article,
.audience-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 17rem;
  padding: 1.15rem;
}

.index {
  display: block;
  margin-bottom: 3.2rem;
  color: var(--coral);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-card h3,
.mode-item h3,
.audience-grid h3 {
  margin-bottom: 0.85rem;
}

.mode-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.mode-item {
  display: grid;
  grid-template-columns: 10rem minmax(12rem, 0.45fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mode-item span {
  color: var(--green);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics-band {
  background: var(--graphite);
  color: var(--paper);
}

.metrics-band .section-label,
.metrics-band h2 {
  color: var(--paper);
}

.metrics-band p {
  color: rgba(244, 241, 232, 0.67);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-grid article {
  min-height: 13rem;
  padding: 1.15rem;
  background: rgba(244, 241, 232, 0.06);
  border-color: rgba(244, 241, 232, 0.18);
  box-shadow: none;
}

.metric-grid span {
  display: block;
  color: var(--cyan);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin: 1.55rem 0 0.8rem;
  color: var(--green);
  font-family: "Avenir Next Condensed", "Avenir Next", "Arial Narrow", sans-serif;
  font-size: 4rem;
  line-height: 0.9;
}

.source-note {
  max-width: 56rem;
  margin-top: 1.3rem;
  font-size: 0.95rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.audience-grid article {
  padding: 1.4rem;
}

.audience-grid ul {
  display: grid;
  gap: 0.72rem;
  margin: 1rem 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.audience-grid a {
  color: var(--graphite);
  font-weight: 800;
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.45fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.15rem;
}

.faq-list summary {
  cursor: pointer;
  font-family: "Avenir Next Condensed", "Avenir Next", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.faq-list details p {
  padding-top: 0.75rem;
}

.final-cta {
  background: var(--green);
  color: var(--graphite);
}

.final-cta .section-label,
.final-cta p {
  color: rgba(18, 19, 17, 0.72);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.final-actions {
  margin-top: 0;
}

.final-actions .button.primary {
  background: var(--graphite);
  color: var(--paper);
}

.final-actions .button.secondary {
  border-color: rgba(18, 19, 17, 0.35);
  color: var(--graphite);
}

.footer {
  padding: 2rem 0;
  background: var(--graphite);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
}

.footer-brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer a {
  color: rgba(244, 241, 232, 0.82);
}

.footer p {
  color: rgba(244, 241, 232, 0.6);
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
  }

  .brand {
    width: 10rem;
  }

  .nav {
    max-width: 16rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem 0.9rem;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .proof-row,
  .card-grid.four,
  .metric-grid,
  .audience-grid,
  .faq-layout,
  .final-grid,
  .intro-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .proof-row {
    width: 100%;
  }

  .mode-item {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .topbar {
    position: absolute;
    padding: 0.85rem 1rem;
  }

  .nav {
    display: none;
  }

  .brand {
    width: 9.25rem;
  }

  .hero,
  .hero-inner {
    min-height: 84svh;
  }

  .hero-inner {
    padding-top: 6.5rem;
    padding-bottom: 2rem;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
  }

  .section-block,
  .metrics-band,
  .final-cta {
    padding: 3.7rem 0;
  }

  .feature-card {
    min-height: auto;
  }

  .index {
    margin-bottom: 2rem;
  }
}

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