:root {
  color-scheme: dark;
  --bg: #041113;
  --bg-band: #081719;
  --bg-card: rgba(12, 26, 29, 0.92);
  --bg-card-strong: rgba(14, 31, 35, 0.98);
  --line: rgba(111, 255, 184, 0.14);
  --line-strong: rgba(111, 255, 184, 0.38);
  --text: #e9efec;
  --muted: #9ab0a7;
  --accent: #46f39a;
  --accent-strong: #21d77d;
  --accent-soft: rgba(70, 243, 154, 0.12);
  --warning: #ff7a70;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --radius-card: 18px;
  --max: 1200px;
  --font-sans: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Cascadia Code", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top right, rgba(70, 243, 154, 0.08), transparent 28%),
    linear-gradient(180deg, #041113 0%, #051215 28%, #071618 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 92%);
}

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

button {
  font: inherit;
}

code {
  font-family: var(--font-mono);
  color: var(--accent);
}

.site-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 17, 19, 0.2), rgba(4, 17, 19, 0.66)),
    radial-gradient(circle at 18% 12%, rgba(70, 243, 154, 0.08), transparent 16%);
  z-index: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 46px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 2px 34px;
}

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

.brand-word {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-link,
.header-cta {
  border: 1px solid var(--line-strong);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.icon-box,
.icon-square {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--text);
}

.icon-box {
  border-radius: 3px;
}

.icon-square {
  background: linear-gradient(135deg, transparent 0 52%, var(--text) 52% 56%, transparent 56%);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--accent), #7cffbc);
  color: #041113;
  border-radius: 3px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero,
.band,
.site-footer {
  animation: rise 700ms ease forwards;
  opacity: 0;
  transform: translateY(14px);
}

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

.hero {
  padding: 30px 0 54px;
}

.hero-copy {
  max-width: 760px;
}

.section-kicker,
.story-heading,
.final-kicker,
.media-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--accent);
  margin-bottom: 8px;
}

.hero h1 {
  margin: 12px 0 18px;
  max-width: 9.8ch;
  font-size: clamp(3.35rem, 7.2vw, 5.95rem);
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.accent-text {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 54ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-actions-centered {
  justify-content: center;
}

.button,
.text-link {
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #8cffc6);
  color: #041113;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

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

.text-link {
  color: var(--text);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #f9a59f;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(255, 122, 112, 0.08);
}

.terminal-panel {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  min-height: 178px;
  padding: 20px 24px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 24, 28, 0.98) 0 66%, rgba(12, 25, 27, 0.74) 66% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
}

.terminal-noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.018)),
    linear-gradient(180deg, rgba(70, 243, 154, 0.04), transparent 55%);
  pointer-events: none;
}

.terminal-panel p {
  position: relative;
  margin: 0 0 7px;
  color: #cdd8d2;
  font-size: 0.72rem;
  line-height: 1.48;
}

.terminal-alert {
  color: #ff9a90;
}

.band {
  padding: 62px 0;
}

.band + .band {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.band-logic,
.band-scope,
.band-final-cta {
  background: rgba(8, 23, 25, 0.62);
}

.band-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 20px;
}

.band-head h2,
.scope-copy h2,
.band-final-cta h2 {
  margin: 10px 0 0;
  max-width: 10.2ch;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.logic-meta {
  display: grid;
  gap: 3px;
  min-width: 150px;
  padding-top: 10px;
}

.logic-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logic-meta span {
  color: var(--text);
}

.logic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
}

.logic-card {
  min-height: 198px;
  padding: 24px 22px 22px;
  background: rgba(255, 255, 255, 0.028);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.logic-card:last-child {
  border-right: 0;
}

.logic-card-featured {
  background: rgba(255, 255, 255, 0.034);
  box-shadow: inset 0 2px 0 var(--accent);
}

.logic-icon {
  color: var(--accent);
  font-size: 0.94rem;
}

.logic-card h3,
.story-step h3,
.scope-group h3,
.matrix-card h3 {
  margin: 16px 0 10px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.logic-card p,
.story-step p,
.scope-group li,
.matrix-card p,
.architecture-subtitle,
.final-copy,
.footer-copy {
  color: var(--muted);
  line-height: 1.68;
}

.story-heading,
.final-kicker {
  color: var(--text);
  text-align: center;
}

.story-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.story-line::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.story-step {
  position: relative;
  text-align: center;
  padding: 0 6px;
}

.story-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.story-index.is-active {
  border-color: var(--line-strong);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(70, 243, 154, 0.08);
}

.story-step h3 {
  margin-top: 0;
  font-size: 0.63rem;
  letter-spacing: 0.11em;
}

.story-step p {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.5;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
}

.scope-group + .scope-group {
  margin-top: 24px;
}

.scope-group h3 {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: none;
}

.scope-group ul {
  margin: 0;
  padding-left: 18px;
}

.scope-group li {
  margin-bottom: 9px;
  font-size: 0.82rem;
}

.matrix-card {
  align-self: start;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  min-height: 100%;
}

.matrix-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.matrix-block {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(70, 243, 154, 0.04);
}

.matrix-block + .matrix-block {
  margin-top: 16px;
}

.matrix-block-muted {
  background: rgba(255, 255, 255, 0.03);
}

.matrix-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: none;
}

.band-architecture {
  text-align: center;
}

.architecture-subtitle {
  max-width: 52ch;
  margin: 12px auto 24px;
  font-size: 0.8rem;
}

.architecture-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.flow-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  text-transform: lowercase;
}

.flow-node-accent {
  border-color: var(--line-strong);
  background: rgba(70, 243, 154, 0.14);
  color: var(--accent);
}

.flow-node-alert {
  border-color: rgba(255, 122, 112, 0.38);
  color: #ff9a90;
}

.flow-arrow {
  color: var(--accent);
  font-size: 0.98rem;
}

.flow-arrow-drop {
  display: inline-flex;
  align-items: center;
  transform: translateY(16px);
}

.band-media {
  padding-top: 20px;
}

.media-kicker {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 14px;
}

.media-stage {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(circle at center, rgba(70, 243, 154, 0.08), transparent 28%),
    linear-gradient(180deg, #0c1518, #091113);
  box-shadow: var(--shadow);
}

.rack {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 12%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.04) 88%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 48px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  opacity: 0.36;
}

.rack-left {
  left: 10%;
}

.rack-center {
  left: 38%;
}

.rack-right {
  right: 10%;
}

.media-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(70, 243, 154, 0.32);
  border-radius: 8px;
  background: rgba(6, 17, 19, 0.9);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.media-caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
}

.caption-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.media-caption p:last-child {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.band-final-cta {
  text-align: center;
  padding-bottom: 72px;
}

.band-final-cta h2 {
  max-width: 10ch;
  margin: 10px auto 14px;
  text-transform: uppercase;
}

.final-copy {
  max-width: 48ch;
  margin: 0 auto 20px;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a,
.footer-copy {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .band-head,
  .scope-grid,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .logic-cards,
  .story-line {
    grid-template-columns: 1fr;
  }

  .story-line::before {
    display: none;
  }

  .logic-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .logic-card:last-child {
    border-bottom: 0;
  }

  .scope-grid {
    display: grid;
  }

  .flow-arrow-drop {
    transform: none;
  }

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

@media (max-width: 860px) {
  .site-shell {
    width: min(var(--max), calc(100% - 20px));
  }

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

  .site-nav,
  .header-actions,
  .hero-actions,
  .hero-actions-centered,
  .footer-links,
  .architecture-flow {
    width: 100%;
  }

  .site-nav,
  .header-actions,
  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero h1,
  .band-head h2,
  .scope-copy h2,
  .band-final-cta h2 {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
  }

  .terminal-panel,
  .media-stage {
    max-width: none;
  }

  .media-stage {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(var(--max), calc(100% - 16px));
  }

  .hero,
  .band {
    padding: 34px 0;
  }

  .terminal-panel,
  .matrix-card {
    padding: 18px;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .media-badge {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.6rem;
  }
}
