:root {
  color-scheme: dark;
  --ink: #080b0d;
  --panel: #111619;
  --panel-2: #182025;
  --steel: #8e999d;
  --line: rgba(214, 224, 226, 0.16);
  --text: #f5f1e8;
  --muted: #a9b0af;
  --amber: #d69d32;
  --amber-bright: #f4c466;
  --green: #96b277;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 13, 0.82);
  backdrop-filter: blur(16px);
  padding: 0 32px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.landing-brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a,
.nav-login,
footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.site-nav a:hover,
.nav-login:hover,
footer a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.language-control select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 22, 25, 0.9);
  color: var(--text);
  padding: 0 8px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 42px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: rgba(5, 8, 10, 0.12);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, 48vw);
  margin-left: max(32px, calc((100vw - 1280px) / 2));
  padding-top: 64px;
}

.eyebrow {
  color: var(--amber-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(50px, 6.4vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: #c4c9c7;
  font-size: 20px;
  line-height: 1.55;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
}

.cta.primary {
  border-color: #a87622;
  background: var(--amber);
  color: #11100c;
}

.cta.secondary {
  background: rgba(12, 16, 18, 0.7);
}

.cta:hover {
  transform: translateY(-1px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-facts span + span {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.hero-next {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  color: var(--amber-bright);
  text-decoration: none;
  font-size: 24px;
  animation: nudge 1.8s ease-in-out infinite;
}

.demo-band,
.modes-band,
.steps-band,
.moderation-band,
.faq-band,
.final-cta {
  max-width: 1320px;
  margin: 0 auto;
  padding: 110px 32px;
}

.demo-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  gap: 70px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.moderation-band h2,
.final-cta h2 {
  margin: 12px 0 18px;
  max-width: 860px;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy p,
.mode-copy p,
.setup-steps p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.demo-controls,
.mode-switch {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

.demo-controls button,
.mode-switch button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 0 13px;
  cursor: pointer;
}

.demo-controls button:hover,
.mode-switch button.active {
  border-color: var(--amber);
  color: var(--amber-bright);
}

.broadcast-stage {
  position: relative;
  border: 1px solid rgba(214, 157, 50, 0.35);
  border-radius: 8px;
  background: #0f1417;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.broadcast-stage::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -8px;
  left: 18px;
  height: 8px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #151c20;
}

.stage-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--amber-bright);
  font-size: 12px;
}

.stage-topline strong {
  color: var(--muted);
  font-weight: 600;
}

.demo-queue {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-queue li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-left: 3px solid #4e5c61;
  background: #151b1e;
  padding: 10px 12px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.demo-queue li.is-live {
  border-left-color: var(--amber);
  background: #1b1e1b;
}

.demo-queue small,
.demo-queue strong {
  display: block;
}

.demo-queue small {
  color: var(--amber-bright);
  font-size: 10px;
  text-transform: uppercase;
}

.demo-queue strong {
  margin-top: 4px;
  font-size: 17px;
}

.demo-queue b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--amber-bright);
}

.demo-rank {
  color: #758186;
  font-family: Consolas, monospace;
}

.modes-band {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  justify-items: start;
}

.mode-switch {
  justify-content: flex-end;
  margin-top: -50px;
}

.mode-detail {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 70px;
  align-items: center;
  margin-top: 70px;
}

.mode-visual {
  position: relative;
  min-height: 470px;
}

.mode-screen {
  position: absolute;
  display: grid;
  align-content: end;
  width: 78%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141a1e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  padding: 28px;
  transition: transform 420ms ease, opacity 420ms ease;
}

.cloud-screen {
  top: 0;
  left: 0;
  background: #141a1e url("/static/img/landing-hero.png") 75% center / cover;
}

.local-screen {
  right: 0;
  bottom: 0;
  background: #1a2226;
}

.mode-screen strong {
  margin: 8px 0;
  font-size: 28px;
}

.mode-screen span {
  color: var(--muted);
}

.mode-detail[data-active-mode="cloud"] .cloud-screen,
.mode-detail[data-active-mode="local"] .local-screen {
  z-index: 2;
  transform: translate(0, 0);
  opacity: 1;
}

.mode-detail[data-active-mode="cloud"] .local-screen {
  transform: translate(18px, 14px) scale(0.92);
  opacity: 0.42;
}

.mode-detail[data-active-mode="local"] .cloud-screen {
  transform: translate(-18px, -14px) scale(0.92);
  opacity: 0.42;
}

.mode-copy {
  display: none;
}

.mode-detail[data-active-mode="cloud"] .cloud-copy,
.mode-detail[data-active-mode="local"] .local-copy {
  display: block;
  animation: copyIn 300ms ease;
}

.mode-copy h3 {
  margin: 0 0 10px;
  font-size: 34px;
}

.mode-copy a {
  color: var(--amber-bright);
  font-weight: 800;
}

.steps-band {
  border-top: 1px solid var(--line);
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 60px 0 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.setup-steps li {
  min-height: 260px;
  background: var(--panel);
  padding: 28px;
}

.setup-steps li > span {
  color: var(--amber-bright);
  font-family: Consolas, monospace;
}

.setup-steps strong {
  display: block;
  margin-top: 70px;
  font-size: 22px;
}

.moderation-band {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.moderation-band ul {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moderation-band li {
  border-bottom: 1px solid var(--line);
  color: #c7cecc;
  padding: 18px 0;
}

.moderation-band li::before {
  content: "✓";
  color: var(--green);
  margin-right: 10px;
}

.faq-band {
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 920px;
  margin-top: 48px;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
}

.faq-list p {
  max-width: 760px;
}

.final-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  max-width: 750px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 90px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 20px 32px;
  font-size: 12px;
}

footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.login-page {
  min-height: 100vh;
  background: #080b0d url("/static/img/landing-hero.png") center / cover;
}

.login-back {
  position: fixed;
  top: 26px;
  left: 32px;
  color: var(--muted);
  text-decoration: none;
}

.login-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(570px, 90vw);
  min-height: 100vh;
  margin-left: max(32px, calc((100vw - 1280px) / 2));
}

.login-shell h1 {
  margin: 14px 0;
  font-size: 48px;
}

.login-shell p,
.login-shell small {
  color: var(--muted);
  line-height: 1.6;
}

.region-list {
  display: flex;
  gap: 8px;
  margin: 24px 0;
}

.region-list a {
  display: grid;
  place-items: center;
  width: 90px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-decoration: none;
  font-weight: 800;
}

.region-list a:hover {
  border-color: var(--amber);
}

.legal-page main {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 28px;
}

.legal-page h1 {
  margin-top: 50px;
  font-size: 48px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.75;
}

@keyframes nudge {
  50% {
    transform: translateY(5px);
  }
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .site-nav {
    display: none;
  }

  .landing-brand span {
    font-size: 14px;
  }

  .hero {
    min-height: 92svh;
    align-items: flex-end;
  }

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

  .hero-shade {
    background: rgba(5, 8, 10, 0.42);
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 120px 20px 72px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .cta {
    width: 100%;
  }

  .demo-band,
  .mode-detail,
  .moderation-band {
    grid-template-columns: 1fr;
  }

  .demo-band,
  .modes-band,
  .steps-band,
  .moderation-band,
  .faq-band,
  .final-cta {
    padding: 78px 20px;
  }

  .broadcast-stage {
    padding: 14px;
  }

  .mode-switch {
    justify-content: flex-start;
    margin-top: 24px;
  }

  .mode-detail {
    gap: 30px;
    margin-top: 36px;
  }

  .mode-visual {
    min-height: 340px;
  }

  .setup-steps {
    grid-template-columns: 1fr;
  }

  .setup-steps li {
    min-height: 190px;
  }

  .setup-steps strong {
    margin-top: 35px;
  }

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

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-content: flex-start;
  }

  .login-shell {
    margin: 0;
    padding: 30px 22px;
  }

  .login-shell h1 {
    font-size: 38px;
  }
}

@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;
  }
}
