:root {
  --night-ink: #101020;
  --deep-panel: #202030;
  --strange-purple: #8f4dff;
  --true-cyan: #5fd8ff;
  --idea-gold: #ffd166;
  --help-green: #62f6a5;
  --minjerribah-aqua: #90f0e0;
  --soft-white: #f7f3ff;
  --muted-light: #c9c3de;
  --heading: "Nunito Sans", "Avenir Next", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Source Sans 3", Arial, sans-serif;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 0, rgba(143, 77, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(95, 216, 255, 0.13), transparent 30rem),
    var(--night-ink);
  color: var(--soft-white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--idea-gold);
  color: #17202a;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
}

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

.site-header {
  background: rgba(16, 16, 32, 0.92);
  border-bottom: 1px solid rgba(144, 240, 224, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0.8rem 1.25rem;
}

.brand-mark {
  color: var(--soft-white);
  display: grid;
  font-family: var(--heading);
  font-weight: 900;
  line-height: 0.95;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-strange {
  color: var(--strange-purple);
  text-shadow: 0 0 12px rgba(143, 77, 255, 0.8);
}

.brand-but {
  color: var(--true-cyan);
  text-shadow: 0 0 12px rgba(95, 216, 255, 0.8);
}

.brand-true {
  color: var(--idea-gold);
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.7);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 0.9rem;
}

.nav-links a {
  color: var(--muted-light);
  font-family: var(--heading);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: var(--minjerribah-aqua);
}

.hero,
.demo-hero,
.page-hero,
.section,
.site-footer {
  margin: 0 auto;
  max-width: var(--max-width);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  min-height: calc(100vh - 74px);
  padding-bottom: 3rem;
  padding-top: 4rem;
}

.demo-hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.9fr);
  min-height: calc(100vh - 74px);
  padding-bottom: 3rem;
  padding-top: 3rem;
}

.demo-hero-copy h1 {
  max-width: 12ch;
}

.demo-visual {
  background: linear-gradient(145deg, rgba(32, 32, 48, 0.96), rgba(16, 16, 32, 0.98));
  border: 1px solid rgba(144, 240, 224, 0.2);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.demo-visual img {
  background: rgba(247, 243, 255, 0.96);
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.demo-visual figcaption {
  color: var(--muted-light);
  font-size: 0.95rem;
  padding: 0.9rem 1rem 1rem;
}

.page-hero {
  padding-bottom: 3rem;
  padding-top: 5rem;
}

.section {
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.eyebrow {
  color: var(--help-green);
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

h1 {
  color: var(--soft-white);
  font-size: clamp(2.8rem, 6.3vw, 5.2rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.hero-lede,
.page-copy,
.section-heading p,
.hero-panel p,
.layer-card p,
.choice-card p,
.tiny-note,
.site-footer {
  color: var(--muted-light);
}

.hero-lede {
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  margin-top: 1.35rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--heading);
  font-weight: 900;
  justify-content: center;
  min-width: 10rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--strange-purple), #5b34d9);
  color: var(--soft-white);
}

.button.secondary {
  border: 1px solid rgba(95, 216, 255, 0.75);
  color: var(--true-cyan);
}

.hero-panel,
.spine-card,
.layer-card,
.choice-card,
.stat-card,
.pipeline-card,
.device,
.river-grid article,
.mutual-grid article {
  background: linear-gradient(145deg, rgba(32, 32, 48, 0.95), rgba(16, 16, 32, 0.98));
  border: 1px solid rgba(144, 240, 224, 0.18);
  border-radius: 8px;
}

.hero-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.hero-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading {
  max-width: 820px;
}

.section-heading p,
.page-copy {
  font-size: 1.12rem;
  margin-top: 1rem;
}

.two-column {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.layer-grid,
.choice-grid,
.stat-grid {
  display: grid;
  gap: 1rem;
}

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

.layer-grid.compact {
  grid-template-columns: 1fr;
}

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

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

.layer-card,
.choice-card,
.stat-card {
  padding: clamp(1rem, 2vw, 1.2rem);
}

a.layer-card {
  text-decoration: none;
}

.layer-card span,
.choice-card span {
  background: rgba(95, 216, 255, 0.14);
  border: 1px solid rgba(95, 216, 255, 0.3);
  border-radius: 999px;
  color: var(--true-cyan);
  display: inline-flex;
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.7rem;
}

.layer-card strong,
.choice-card strong,
.stat-card strong {
  color: var(--soft-white);
  display: block;
  font-family: var(--heading);
  font-size: 1.28rem;
  line-height: 1.15;
}

.layer-card p,
.choice-card p {
  margin-top: 0.7rem;
}

.stat-card strong {
  color: var(--help-green);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.stat-card span {
  color: var(--muted-light);
  display: block;
  margin-top: 0.5rem;
}

.tiny-note {
  font-size: 0.92rem;
  margin-top: 1rem;
}

.spine-card {
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

.feature-section .section-heading {
  max-width: 850px;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.scenario-tab {
  background: rgba(95, 216, 255, 0.08);
  border: 1px solid rgba(95, 216, 255, 0.35);
  border-radius: 999px;
  color: var(--true-cyan);
  cursor: pointer;
  font-family: var(--heading);
  font-size: 0.94rem;
  font-weight: 900;
  padding: 0.7rem 1rem;
}

.scenario-tab:hover,
.scenario-tab:focus,
.scenario-tab.is-active {
  background: linear-gradient(135deg, rgba(143, 77, 255, 0.8), rgba(95, 216, 255, 0.3));
  color: var(--soft-white);
  outline: 2px solid rgba(98, 246, 165, 0.45);
  outline-offset: 2px;
}

.pipeline-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.pipeline-card {
  border-top: 5px solid var(--strange-purple);
  padding: 1.15rem;
}

.agent-card {
  border-top-color: var(--true-cyan);
}

.human-card {
  border-top-color: var(--idea-gold);
}

.pipeline-card span,
.river-grid span,
.mutual-grid span,
.device-label {
  color: var(--help-green);
  display: block;
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline-card h3,
.device h3,
.river-grid strong,
.mutual-grid strong {
  margin-top: 0.45rem;
}

.pipeline-card p,
.pipeline-card li,
.check-row span,
.device p,
.river-grid p,
.mutual-grid p {
  color: var(--muted-light);
}

.pipeline-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.signal-tags b {
  background: rgba(98, 246, 165, 0.12);
  border: 1px solid rgba(98, 246, 165, 0.3);
  border-radius: 999px;
  color: var(--help-green);
  font-size: 0.82rem;
  padding: 0.28rem 0.55rem;
}

.check-row {
  border-bottom: 1px solid rgba(144, 240, 224, 0.16);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 7rem minmax(0, 1fr);
  padding: 0.75rem 0;
}

.check-row:last-child {
  border-bottom: 0;
}

.device-wall {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(210px, 0.65fr) minmax(280px, 1.05fr) minmax(240px, 0.8fr);
  margin-top: 1.6rem;
}

.device {
  overflow: hidden;
  padding: 1.1rem;
}

.phone-device {
  align-self: center;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  min-height: 430px;
}

.device-bar {
  background: rgba(247, 243, 255, 0.24);
  border-radius: 999px;
  height: 0.4rem;
  margin: 0 auto 2rem;
  width: 4.2rem;
}

.tv-device {
  background:
    linear-gradient(135deg, rgba(95, 216, 255, 0.18), rgba(143, 77, 255, 0.15)),
    linear-gradient(145deg, rgba(32, 32, 48, 0.95), rgba(16, 16, 32, 0.98));
  grid-column: span 2;
  min-height: 230px;
}

.tv-device h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 13ch;
}

.ticker {
  background: var(--idea-gold);
  border-radius: 999px;
  color: var(--night-ink);
  font-family: var(--heading);
  font-weight: 900;
  margin-top: 2rem;
  padding: 0.55rem 0.8rem;
}

.web-device {
  min-height: 250px;
}

.web-device a {
  color: var(--true-cyan);
  display: inline-block;
  font-family: var(--heading);
  font-weight: 900;
  margin-top: 1rem;
}

.kiosk-device {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-column: span 2;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr);
}

.kiosk-device img {
  background: rgba(247, 243, 255, 0.96);
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.river-grid,
.mutual-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.river-grid article,
.mutual-grid article {
  padding: 1.15rem;
}

.river-grid strong,
.mutual-grid strong {
  color: var(--soft-white);
  display: block;
  font-family: var(--heading);
  font-size: 1.25rem;
}

.mutual-grid article:nth-child(1) {
  border-top: 5px solid var(--true-cyan);
}

.mutual-grid article:nth-child(2) {
  border-top: 5px solid var(--strange-purple);
}

.mutual-grid article:nth-child(3) {
  border-top: 5px solid var(--idea-gold);
}

.mutual-grid article:nth-child(4) {
  border-top: 5px solid var(--help-green);
}

.site-footer {
  border-top: 1px solid rgba(144, 240, 224, 0.18);
  padding-bottom: 2rem;
  padding-top: 2rem;
}

@media (max-width: 900px) {
  .hero,
  .demo-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .stat-grid,
  .pipeline-grid,
  .river-grid,
  .mutual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-wall,
  .kiosk-device {
    grid-template-columns: 1fr;
  }

  .tv-device,
  .kiosk-device {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .site-header {
    position: static;
  }

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

  .nav-links {
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    width: 100%;
  }

  .hero,
  .demo-hero,
  .page-hero,
  .section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 2rem;
    padding-top: 2.5rem;
  }

  .page-hero {
    padding-top: 2.5rem;
  }

  .section {
    padding-bottom: 2.6rem;
    padding-top: 2.6rem;
  }

  .layer-grid,
  .choice-grid,
  .stat-grid,
  .pipeline-grid,
  .river-grid,
  .mutual-grid {
    grid-template-columns: 1fr;
  }

  .check-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
