:root {
  --bg: #0a0a0b;
  --raise: #141416;
  --text: #f4f4f5;
  --muted: #b7b7c2;
  --line: rgba(255, 255, 255, 0.1);
  --red: #e31e24;
  --red-deep: #b11318;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(880px 380px at 70% -8%, rgba(227, 30, 36, 0.22), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--red);
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  z-index: 5;
}

.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.word { color: #fff; }

.live { font-weight: 760; }

.product-nav {
  display: flex;
  gap: 0.35rem;
}

.product-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.product-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.hero { padding: 1.4rem 0 0.4rem; max-width: 40rem; }

.kicker {
  margin: 0 0 0.35rem;
  color: #ffb4b6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lede { margin: 0.85rem 0 0; color: var(--muted); font-size: 1.05rem; }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.product {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 1.05rem;
  min-height: 100%;
}

.product.is-active { border-color: rgba(227, 30, 36, 0.85); box-shadow: inset 0 0 0 1px rgba(227, 30, 36, 0.35); }

.index {
  margin: 0;
  color: #ffb4b6;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h2 { margin: 0.2rem 0 0.4rem; font-size: 1.45rem; letter-spacing: -0.03em; }

.product p { margin: 0; color: var(--muted); }

.who { margin-top: 0.55rem !important; color: #fff !important; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

button {
  appearance: none;
  font: inherit;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

button.primary { background: var(--red); border-color: var(--red); font-weight: 650; }

button.primary:hover { background: var(--red-deep); }

button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #fff; }

button:hover { border-color: rgba(255, 255, 255, 0.28); }

.stage { margin-top: 1rem; }

.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.9rem;
  margin-bottom: 0.55rem;
}

.stage-bar h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

#stage-label { margin: 0; font-weight: 700; }

#stage-url {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

#app-frame {
  display: block;
  width: 100%;
  height: min(78dvh, 820px);
  min-height: 560px;
  border: 1px solid rgba(227, 30, 36, 0.45);
  border-radius: 16px;
  background: #000;
}

.noscript {
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.foot {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.2rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot p { margin: 0.15rem 0; }

@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
  .top { align-items: flex-start; }
  #app-frame { min-height: 70dvh; height: 78dvh; }
}

@media (max-width: 640px) {
  .product-nav { gap: 0; }
  .product-nav a { padding-inline: 0.55rem; }
  h1 { font-size: 2.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
