:root {
  --obsidian: #080808;
  --onyx: #121212;
  --charcoal: #222222;
  --silver: #d4d4d8;
  --crimson: #a62238;
  --online: #3d9a5f;
  --muted: #7a7a82;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Syne", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(18px, 3vw, 32px);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.paper {
  display: none;
}

.shell {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* —— Logo —— */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.06em;
}

.logo b {
  font-weight: 700;
  color: var(--silver);
}

.logo b span {
  color: var(--crimson);
}

.logo-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.logo-bars i {
  display: block;
  width: 3px;
  background: var(--silver);
}

.logo-bars i:nth-child(1) { height: 16px; }
.logo-bars i:nth-child(2) { height: 12px; opacity: 0.78; }
.logo-bars i:nth-child(3) { height: 8px; opacity: 0.52; }
.logo-bars i:nth-child(4) { height: 4px; opacity: 0.28; }

/* —— Nav / Tabs —— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  border-bottom: 1px solid var(--charcoal);
}

.tabs {
  display: flex;
  gap: 8px;
}

.tabs button {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tabs button:hover {
  color: var(--silver);
}

.tabs button[aria-selected="true"] {
  color: var(--silver);
  border-color: var(--charcoal);
  background: var(--onyx);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--charcoal);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--silver);
}

.mobile-nav {
  display: none;
}

.kicker,
.card-row,
.text-link,
footer,
.status-item span,
.list li > span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link {
  color: var(--muted);
}

.text-link:hover {
  color: var(--silver);
}

/* —— Stage —— */
.stage {
  min-height: 0;
  display: grid;
}

.panel {
  min-height: 0;
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0;
}

.panel.is-active {
  display: grid;
}

.panel-main.is-active {
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 28px 36px;
}

.panel-main .panel-copy {
  grid-column: 1;
  grid-row: 1;
}

.panel-main .showcase {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
}

.panel-main .list {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  border-top: 1px solid var(--charcoal);
}

.showcase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.showcase-frame {
  position: relative;
  flex: 1;
  min-height: 180px;
  background: var(--onyx);
  border: 1px solid var(--charcoal);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease;
}

.showcase:hover .showcase-frame {
  border-color: #333;
}

.showcase-play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--silver);
  opacity: 0.7;
  margin-left: 3px;
  transition: opacity 0.15s ease;
}

.showcase:hover .showcase-play {
  opacity: 1;
}

.showcase-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-copy .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--muted);
}

.panel-copy .sub {
  margin: 14px 0 0;
  max-width: 18em;
  color: var(--muted);
  font-size: 0.98rem;
}

.mark {
  width: 6px;
  height: 6px;
  background: var(--crimson);
  flex-shrink: 0;
}

.panel-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.panel-copy h1 em {
  font-style: italic;
  color: var(--crimson);
}

.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  background: var(--crimson);
  color: var(--silver);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--crimson);
  transition: background 0.15s ease;
}

.btn:hover {
  background: #c02842;
}

/* —— Cards —— */
.card {
  background: var(--onyx);
  border: 1px solid var(--charcoal);
  padding: 20px 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.card-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.card-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin: 34px 0 0;
}

.card-bars i {
  display: block;
  width: 4px;
  background: var(--silver);
}

.card-bars i:nth-child(1) { height: 36px; }
.card-bars i:nth-child(2) { height: 27px; opacity: 0.78; }
.card-bars i:nth-child(3) { height: 18px; opacity: 0.52; }
.card-bars i:nth-child(4) { height: 9px; opacity: 0.28; }

.card strong {
  margin-top: auto;
  margin-bottom: 22px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.live {
  color: var(--crimson);
}

.support-note {
  margin: 36px 0 auto;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--muted);
}

/* —— Features list —— */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--charcoal);
}

.list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--charcoal);
}

.panel-main .list li:nth-child(1),
.panel-main .list li:nth-child(2) {
  border-top: 0;
}

.list li > span {
  color: var(--crimson);
  padding-top: 3px;
}

.list h2 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* —— Status —— */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-item {
  background: var(--onyx);
  border: 1px solid var(--charcoal);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-item span {
  color: var(--muted);
}

.status-item strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.dot-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  flex-shrink: 0;
}

/* —— Footer —— */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  border-top: 1px solid var(--charcoal);
  color: var(--muted);
}

footer .text-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* —— Mobile: allow scroll —— */
@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .shell {
    height: auto;
    min-height: 100%;
  }

  .tabs {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--charcoal);
  }

  .mobile-nav button {
    padding: 14px 0;
    text-align: left;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-top: 1px solid var(--charcoal);
  }

  .panel,
  .panel-main.is-active {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }

  .panel-main .panel-copy,
  .panel-main .showcase,
  .panel-main .list {
    grid-column: 1;
    grid-row: auto;
  }

  .panel-main .list {
    grid-template-columns: 1fr;
  }

  .showcase-frame {
    min-height: 160px;
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .card {
    min-height: 180px;
    order: -1;
  }

  .status-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .panel-copy h1 {
    font-size: 1.55rem;
  }
}
