:root {
  color-scheme: dark;
  --bg: #07090b;
  --bg-2: #0f1114;
  --panel: rgba(18, 18, 18, 0.92);
  --panel-strong: rgba(12, 12, 12, 0.98);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 204, 0, 0.2);
  --text: #f4f4f4;
  --muted: #a4a4a4;
  --amber: #ffcc00;
  --amber-soft: rgba(255, 204, 0, 0.15);
  --cyan: #76c7ff;
  --cyan-soft: rgba(118, 199, 255, 0.08);
  --green: #73d99f;
  --green-soft: rgba(115, 217, 159, 0.15);
  --danger: #ff7d68;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 204, 0, 0.04), transparent 20%),
    radial-gradient(circle at top right, rgba(118, 199, 255, 0.05), transparent 24%),
    linear-gradient(180deg, #101214 0%, #08090b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(118, 199, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 199, 255, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 94%);
}

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

button,
input,
select {
  font: inherit;
}

.site-grid {
  position: fixed;
  inset: auto 0 0 0;
  height: 28vh;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 204, 0, 0.1), transparent 45%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
  opacity: 0.65;
}

.site-shell {
  width: min(calc(100% - 28px), 1360px);
  margin: 0 auto;
  padding: 24px 0 56px;
  position: relative;
  z-index: 1;
}

.topbar,
.hero,
.metrics-strip,
.section,
.closing-panel {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

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

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 204, 0, 0.95), rgba(255, 204, 0, 0.12)),
    linear-gradient(315deg, rgba(118, 199, 255, 0.95), transparent);
  box-shadow:
    0 0 24px rgba(255, 204, 0, 0.22),
    0 0 36px rgba(118, 199, 255, 0.18);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong,
.nav,
h1,
h2,
h3,
.button,
.status-chip,
.state-button,
.metric-card strong {
  font-family: var(--display);
}

.brand-copy strong {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.nav a {
  transition: color 140ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.panel,
.feature-panel,
.card,
.flow-step,
.metric-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.98), rgba(13, 13, 13, 0.98));
}

.panel {
  border-radius: var(--radius-xl);
}

.panel-inset {
  padding: 18px;
  border-radius: calc(var(--radius-xl) - 2px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(12, 12, 12, 0.98));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  padding: 34px;
  overflow: hidden;
}

.hero-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.hero-subsection-heading,
.hero-demo-layout,
.hero-setup-panel {
  grid-column: 1 / -1;
}

.hero-subsection-heading {
  margin-top: 10px;
}

.hero-demo-layout {
  margin-top: 2px;
}

.hero-setup-panel {
  margin-top: 2px;
}

.hero::after,
.demo-surface::after {
  content: "";
  position: absolute;
  inset: auto -10% 14% 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(118, 199, 255, 0.4), transparent);
  transform: rotate(-14deg);
}

.eyebrow,
.section-tag,
.card-tag,
.demo-label,
.surface-tag,
.ops-strip span,
.table-row em,
.demo-surface-top span,
.metric-card p,
.screen-tag,
.surface-chrome p {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0.015em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.6rem);
  max-width: 10ch;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  margin-bottom: 14px;
}

h3 {
  font-size: clamp(1.32rem, 1.8vw, 1.9rem);
  margin-bottom: 12px;
}

.lead,
.section-heading p,
.feature-panel p,
.card p,
.flow-step p,
.demo-copy p,
.setup-panel p,
.closing-panel p,
.screen-stage p,
.audience-surface p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.05em;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

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

.button-primary {
  color: #0b0f12;
  background: linear-gradient(135deg, #ffd24d, #fff0ab);
}

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

.signal-list,
.panel-list,
.demo-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-list li,
.panel-list li {
  display: flex;
  gap: 10px;
  align-items: start;
}

.signal-list li::before,
.panel-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.48rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--green);
  box-shadow: 0 0 16px rgba(115, 217, 159, 0.55);
}

.surface-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot-amber {
  background: var(--amber);
}

.dot-cyan {
  background: var(--cyan);
}

.dot-green {
  background: var(--green);
}

.hero-console {
  display: grid;
  gap: 16px;
}

.console-panel,
.dashboard,
.feature-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.98), rgba(13, 13, 13, 0.98));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.console-panel,
.dashboard,
.feature-panel,
.card,
.flow-step,
.metric-card {
  padding: 16px;
}

.console-panel header,
.dashboard header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.console-panel header p,
.dashboard header p {
  margin: 0 0 6px;
  color: #9ea8ae;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.status-live {
  background: var(--amber-soft);
  color: #ffe187;
  border-color: rgba(255, 204, 0, 0.24);
}

.status-ready {
  background: var(--green-soft);
  color: #b9f4cf;
  border-color: rgba(115, 217, 159, 0.24);
}

.ops-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ops-strip div,
.metric-card,
.demo-metrics li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.ops-strip strong,
.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
}

.table-mock,
.operator-demo-list {
  display: grid;
  gap: 10px;
}

.table-row,
.operator-demo-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #121212;
  border: 1px solid #2a2a2a;
}

.table-row strong,
.operator-demo-row p {
  margin: 0;
}

.table-row em {
  color: #d4dde2;
  font-style: normal;
}

.table-row.is-live,
.operator-demo-row.current {
  box-shadow: inset 3px 0 0 rgba(255, 204, 0, 0.92);
  background: rgba(255, 204, 0, 0.08);
}

.table-row.is-next,
.operator-demo-row.next {
  box-shadow: inset 3px 0 0 rgba(118, 199, 255, 0.9);
  background: rgba(118, 199, 255, 0.08);
}

.screen-stage,
.audience-surface {
  padding: 22px;
  border-radius: 18px;
  min-height: 220px;
  border: 1px solid rgba(255, 204, 0, 0.08);
  background:
    radial-gradient(circle at top center, rgba(255, 204, 0, 0.05), transparent 28%),
    linear-gradient(180deg, #101214, #090909);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screen-stage h2,
.audience-surface h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  max-width: 10ch;
}

.screen-bars {
  display: flex;
  gap: 10px;
}

.screen-bars span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), rgba(255, 255, 255, 0.18));
}

.screen-bars span:nth-child(1) {
  width: 42%;
}

.screen-bars span:nth-child(2) {
  width: 28%;
}

.screen-bars span:nth-child(3) {
  width: 18%;
}

.dual-layout,
.cards-grid,
.setup-grid {
  display: grid;
  gap: 18px;
}

.metric-card p {
  color: var(--muted);
}

.section {
  margin-bottom: 22px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 14px;
}

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

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

.flow-step {
  position: relative;
  overflow: hidden;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(255, 204, 0, 0.1);
  color: #ffe390;
  font-family: var(--display);
  font-size: 1.2rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
}

.demo-sidebar,
.demo-surface {
  padding: 18px;
}

.state-buttons {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
}

.state-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.state-button.is-active {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.26), rgba(255, 204, 0, 0.1));
  border-color: rgba(255, 204, 0, 0.28);
}

.demo-copy h3 {
  margin-bottom: 10px;
}

.demo-metrics {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.demo-metrics li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-metrics span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.demo-surface {
  overflow: hidden;
}

.demo-surface-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.demo-surface-top strong {
  font-family: var(--display);
  font-size: 1.6rem;
}

.demo-screens {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.dashboard-operator,
.dashboard-screen {
  min-height: 280px;
}

.audience-surface {
  min-height: 220px;
}

.demo-surface[data-state="ready"] .audience-surface {
  border-color: rgba(115, 217, 159, 0.2);
}

.demo-surface[data-state="standby"] .audience-surface {
  border-color: rgba(118, 199, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(118, 199, 255, 0.1);
}

.demo-surface[data-state="live"] .audience-surface {
  border-color: rgba(255, 204, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.12);
}

.setup-panel,
.closing-panel {
  padding: 20px;
}

.compact-panel {
  max-width: 860px;
}

.closing-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .hero,
  .hero-metrics,
  .demo-layout,
  .demo-screens,
  .dual-layout,
  .cards-grid,
  .workflow-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), 1360px);
    padding-top: 18px;
  }

  .topbar,
  .hero-actions,
  .closing-actions,
  .demo-surface-top,
  .console-panel header,
  .dashboard header {
    flex-direction: column;
    align-items: start;
  }

  .nav,
  .state-buttons {
    flex-wrap: wrap;
  }

  .hero,
  .demo-sidebar,
  .demo-surface,
  .setup-panel,
  .closing-panel {
    padding: 18px;
  }

  .ops-strip {
    grid-template-columns: 1fr;
  }

  .table-row,
  .operator-demo-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .demo-surface-top strong {
    font-size: 1.35rem;
  }
}
