:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #f4f4f0;
  --ink: #262626;
  --muted: #686868;
  --subtle: #9a9a9a;
  --line: rgba(26, 26, 26, 0.12);
  --line-strong: rgba(26, 26, 26, 0.18);
  --accent: #54f05f;
  --accent-dark: #24b833;
  --blue: #72c8ff;
  --amber: #d59b36;
  --purple: #9b5cff;
  --shadow-soft: 0 24px 80px rgba(20, 20, 20, 0.08);
  --shadow-card: 0 18px 48px rgba(20, 20, 20, 0.1);
  --glass: rgba(255, 255, 255, 0.58);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --sans: "Albert Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "Songti SC", serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(84, 240, 95, 0.18), transparent 24rem),
    radial-gradient(circle at 16% 32%, rgba(114, 200, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 88% 42%, rgba(155, 92, 255, 0.08), transparent 20rem),
    linear-gradient(180deg, #fafafa 0%, #f6f6f2 100%);
  color: var(--ink);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at center top, black, transparent 70%);
}

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

button,
input {
  font: inherit;
}

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

.site-shell {
  width: min(1190px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100vw - 32px));
  margin: 14px 0 52px;
  margin-left: calc((100% - min(1280px, calc(100vw - 32px))) / 2);
  padding: 9px 28px;
  overflow: visible;
  border: 1px solid rgba(21, 20, 15, 0.08);
  border-radius: 999px;
  background: #ffffff6b;
  color: var(--ink);
  box-shadow:
    inset 0 0 2px 1px rgba(255, 255, 255, 0.55),
    inset 0 0 10px 4px rgba(255, 255, 255, 0.22),
    0 6px 24px rgba(17, 17, 26, 0.06),
    0 12px 40px rgba(17, 17, 26, 0.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: url(#nav-liquid-glass) blur(7px) saturate(1.4);
}

.nav-glass-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.language-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.language-trigger {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease;
}

.language-trigger:hover,
.language-switch.is-open .language-trigger {
  background: rgba(255, 255, 255, 0.48);
}

.language-icon {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.language-current {
  display: none;
}

.language-caret {
  color: var(--subtle);
  font-size: 13px;
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.language-switch.is-open .language-caret {
  transform: translateY(-1px) rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 170px;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 14px;
  background: rgba(250, 250, 250, 0.86);
  box-shadow: 0 16px 44px rgba(26, 26, 26, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.language-switch.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.language-menu button:hover,
.language-menu button[aria-checked="true"] {
  background: rgba(84, 240, 95, 0.14);
}

.language-menu button[aria-checked="true"]::after {
  color: var(--accent-dark);
  content: "✓";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  padding: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #1f1f1f;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 38px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  padding: 0;
  color: var(--ink);
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--accent-dark);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta {
  min-height: 33px;
  padding: 7px 15px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.18);
}

.button.ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  gap: 46px;
  align-items: start;
  min-height: calc(100vh - 120px);
  padding: 56px 0 96px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 74px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.034em;
}

.hero-subtitle {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 800px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-prop {
  position: absolute;
  z-index: 0;
  opacity: 0.72;
  pointer-events: none;
}

.prop-left {
  top: 120px;
  left: max(-70px, -7vw);
  width: 290px;
  height: 390px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background:
    linear-gradient(rgba(26, 26, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.55);
  background-size: 38px 38px;
  transform: rotate(8deg);
}

.prop-ruler {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 340px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: repeating-linear-gradient(to bottom, transparent 0 14px, rgba(26, 26, 26, 0.12) 14px 15px);
}

.prop-type {
  position: absolute;
  right: 82px;
  bottom: 82px;
  color: rgba(26, 26, 26, 0.48);
  font-family: Georgia, serif;
  font-size: 76px;
  font-weight: 900;
  text-shadow: 0 8px 18px rgba(20, 20, 20, 0.18);
}

.prop-right {
  top: 172px;
  right: max(-80px, -8vw);
  width: 310px;
  height: 360px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.prop-curve {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 73% 28%, transparent 0 86px, rgba(26, 26, 26, 0.09) 87px, transparent 88px),
    radial-gradient(circle at 74% 63%, transparent 0 138px, rgba(26, 26, 26, 0.09) 139px, transparent 140px);
}

.prop-chip {
  position: absolute;
  right: 26px;
  bottom: 72px;
  width: 92px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, #4dbdff, #9de8ff);
  box-shadow: 0 16px 22px rgba(77, 189, 255, 0.28);
  transform: rotate(-13deg);
}

.product-showcase {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.showcase-head > div:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #00a980;
  box-shadow: 0 0 0 5px rgba(0, 169, 128, 0.1);
}

.theme-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.9);
}

.theme-tab {
  min-width: 74px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.theme-tab.is-active {
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.16);
}

.screenshot-stage {
  position: relative;
  aspect-ratio: 1966 / 1026;
  margin: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(84, 240, 95, 0.11), transparent 28rem),
    #f8f8f5;
}

.screenshot-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.018);
  transition: opacity 420ms ease, transform 520ms ease, filter 520ms ease;
}

.screenshot-shot.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.screenshot-stage.is-dark {
  background: #101010;
}

.screenshot-stage.is-light {
  background: #f7f7f6;
}

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}

.showcase-strip div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.showcase-strip strong,
.showcase-strip span {
  display: block;
}

.showcase-strip strong {
  color: var(--ink);
  font-size: 14px;
}

.showcase-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  scroll-margin-top: 116px;
  padding: 92px 0;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel-card,
.decoder-panel,
.stream-card,
.session-card,
.platform-card,
.device-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 0%, rgba(84, 240, 95, 0.1), transparent 12rem),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 36px rgba(20, 20, 20, 0.05);
}

.panel-card p,
.stream-copy p,
.session-card p,
.platform-card p,
.device-card p {
  color: var(--muted);
  line-height: 1.72;
}

.panel-section {
  position: relative;
}

.panel-section::before {
  position: absolute;
  top: 130px;
  right: calc(50% - 620px);
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 240, 95, 0.22), transparent 68%);
  content: "";
  filter: blur(8px);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.panel-card {
  display: flex;
  min-height: 520px;
  overflow: hidden;
  flex-direction: column;
}

.panel-card-large {
  display: grid;
  grid-column: span 3;
  grid-template-columns: 0.76fr 1.24fr;
  min-height: 560px;
}

.panel-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.panel-card-large .panel-copy {
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.panel-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 46px;
  padding: 8px 12px;
  border: 1px solid rgba(36, 184, 51, 0.25);
  border-radius: 999px;
  background: rgba(84, 240, 95, 0.12);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-card:not(.panel-card-large) .panel-kicker {
  margin-bottom: 20px;
}

.panel-card h3 {
  max-width: 520px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.panel-card:not(.panel-card-large) h3 {
  font-size: 25px;
}

.panel-card p {
  margin-bottom: 0;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.panel-tags span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.panel-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(84, 240, 95, 0.12), transparent 40%),
    #f4f4f0;
}

.mcp-showcase {
  display: grid;
  min-width: 0;
  padding: 14px;
  border-left: 1px solid var(--line);
  gap: 12px;
}

.mcp-showcase .panel-shot {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(20, 20, 20, 0.08);
}

.mcp-shot-desktop {
  min-height: 296px;
}

.mcp-shot-console {
  min-height: 216px;
}

.panel-card-large .panel-shot {
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.panel-shot::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.panel-shot img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: right top;
  transform: scale(1.01);
  transition: transform 500ms ease, filter 500ms ease;
}

.panel-card-large .panel-shot img {
  min-height: 0;
}

.mcp-shot-desktop img {
  height: 296px;
}

.mcp-shot-console img {
  height: 216px;
}

.mcp-shot-console img {
  object-position: center top;
}

.panel-card:hover .panel-shot img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.035);
}

.screenshot-shot.is-lightboxable,
.panel-shot img.is-lightboxable {
  cursor: zoom-in;
}

.panel-shot:has(img.is-lightboxable)::before,
.screenshot-stage:has(img.is-lightboxable)::before {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  content: "Click to preview";
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.panel-shot:hover::before,
.screenshot-stage:hover::before {
  opacity: 1;
  transform: translateY(0);
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background:
    radial-gradient(circle at 50% 0%, rgba(84, 240, 95, 0.16), transparent 32rem),
    rgba(250, 250, 250, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  backdrop-filter: blur(24px) saturate(1.18);
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  position: relative;
  width: min(1460px, 100%);
  max-height: min(86vh, 920px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 34px 120px rgba(20, 20, 20, 0.22);
  transform: scale(0.985) translateY(10px);
  transition: transform 220ms ease;
}

.image-lightbox.is-open .lightbox-frame {
  transform: scale(1) translateY(0);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(86vh - 54px);
  object-fit: contain;
  background: #111;
}

.lightbox-caption {
  min-height: 54px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.lightbox-close {
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 101;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(20, 20, 20, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

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

.decoder-count {
  font-family: var(--mono);
  color: var(--accent-dark);
}

.decoder-panel {
  padding: 20px;
}

.decoder-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.decoder-toolbar label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.decoder-toolbar input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: none;
  padding: 0 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.decoder-toolbar input:focus {
  border-color: rgba(36, 184, 51, 0.55);
  box-shadow: 0 0 0 5px rgba(84, 240, 95, 0.13);
}

#decoder-result-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.decoder-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.decoder-feature-row span,
.decoder-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.decoder-feature-row span {
  padding: 8px 11px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.decoder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding: 2px 4px 8px 2px;
}

.decoder-chip {
  padding: 8px 11px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.decoder-chip.is-hidden {
  display: none;
}

.stream-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

.stream-copy {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 0%, rgba(84, 240, 95, 0.2), transparent 18rem),
    #1f1f1f;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.stream-copy .eyebrow {
  color: var(--accent);
}

.stream-copy h2,
.stream-copy p {
  color: #fff;
}

.stream-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.stream-metrics {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.stream-metrics span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.stream-metrics strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 32px);
}

.stream-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stream-card {
  min-height: 190px;
  padding: 24px;
}

.stream-card-highlight {
  background:
    radial-gradient(circle at 90% 0%, rgba(84, 240, 95, 0.18), transparent 13rem),
    rgba(255, 255, 255, 0.86);
}

.stream-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stream-card span {
  color: var(--muted);
  line-height: 1.6;
}

.sessions-section,
.platform-section {
  position: relative;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.session-card {
  min-height: 280px;
  padding: 24px;
}

.session-card-wide {
  grid-column: span 3;
  min-height: 300px;
}

.session-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  margin-bottom: 54px;
  border: 1px solid rgba(36, 184, 51, 0.25);
  border-radius: 999px;
  background: rgba(84, 240, 95, 0.12);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
}

.session-card-wide .session-index {
  margin-bottom: 28px;
}

.session-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.session-tabs span {
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-tabs span.is-active {
  border-color: rgba(36, 184, 51, 0.28);
  background: rgba(84, 240, 95, 0.15);
  color: var(--accent-dark);
}

.platform-card {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 22px;
  padding: clamp(28px, 5vw, 54px);
  align-items: center;
}

.platform-card > div:first-child {
  max-width: 560px;
}

.repo-button {
  margin-top: 26px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.platform-grid article {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(84, 240, 95, 0.12), transparent 9rem),
    rgba(255, 255, 255, 0.76);
}

.platform-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 7px 10px;
  border: 1px solid rgba(36, 184, 51, 0.24);
  border-radius: 999px;
  background: rgba(84, 240, 95, 0.12);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.platform-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.platform-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
}

.platform-grid .source-card {
  background:
    radial-gradient(circle at 86% 0%, rgba(84, 240, 95, 0.24), transparent 12rem),
    #1f1f1f;
}

.platform-grid .source-card strong,
.platform-grid .source-card p {
  color: #fff;
}

.platform-grid .source-card p {
  color: rgba(255, 255, 255, 0.72);
}

.devices-section {
  position: relative;
}

.devices-showcase {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  align-items: stretch;
}

.device-photo {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.device-photo img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}

.device-list {
  display: grid;
  gap: 16px;
}

.device-card {
  display: flex;
  min-height: 196px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.device-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 30px;
  padding: 8px 11px;
  border: 1px solid rgba(36, 184, 51, 0.25);
  border-radius: 999px;
  background: rgba(84, 240, 95, 0.12);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.device-card h3 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.device-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.device-specs span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer {
  padding: 28px 0 10px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-columns h4 {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-columns a {
  display: block;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-columns a:hover {
  color: var(--accent-dark);
  transform: translateX(2px);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer-wordmark {
  margin: 62px 0 0;
  color: #242424;
  font-size: clamp(84px, 15vw, 188px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.1em;
  text-align: center;
  text-shadow: 0 22px 24px rgba(20, 20, 20, 0.14);
}

.footer-wordmark span {
  color: var(--accent);
  text-shadow: 0 24px 34px rgba(84, 240, 95, 0.42);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 28px, 1190px);
  }

  .topbar {
    width: 100%;
    margin-left: 0;
  }

  .panel-section::before {
    display: none;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-prop {
    display: none;
  }

  .showcase-strip,
  .panel-grid,
  .stream-grid,
  .session-grid,
  .platform-card,
  .devices-showcase {
    grid-template-columns: 1fr;
  }

  .panel-card-large,
  .session-card-wide {
    grid-column: span 1;
  }

  .panel-card-large {
    grid-template-columns: 1fr;
  }

  .mcp-showcase {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .panel-card-large .panel-shot img {
    height: auto;
    min-height: 0;
  }

  .stream-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-card > div:first-child {
    max-width: none;
  }

  .device-photo,
  .device-photo img {
    min-height: 460px;
  }

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

  .footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1190px);
  }

  .topbar {
    top: 10px;
    margin-bottom: 18px;
  }

  .brand {
    max-width: calc(100% - 132px);
    font-size: 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 16px;
  }

  .language-trigger {
    min-height: 38px;
    padding: 0 8px;
  }

  .hero {
    gap: 32px;
    padding: 34px 0 58px;
  }

  .eyebrow {
    margin-bottom: 48px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 52px);
    letter-spacing: -0.026em;
  }

  .hero-subtitle {
    margin-top: 12px;
    font-size: clamp(26px, 8vw, 31px);
    text-wrap: balance;
  }

  .lede {
    margin-top: 26px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .showcase-head,
  .decoder-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .showcase-head {
    display: grid;
  }

  .theme-switch {
    justify-content: stretch;
  }

  .theme-tab {
    flex: 1;
  }

  .screenshot-stage {
    margin: 10px;
    border-radius: 18px;
  }

  .showcase-strip {
    padding: 0 10px 10px;
  }

  .stream-cards {
    grid-template-columns: 1fr;
  }

  .stream-metrics span {
    display: grid;
  }

  .session-tabs,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .device-photo,
  .device-photo img {
    min-height: 420px;
  }

  .device-specs span {
    width: 100%;
  }

  .session-card,
  .platform-grid article,
  .device-card {
    min-height: 0;
  }

  .session-index,
  .platform-grid span {
    margin-bottom: 28px;
  }

  .panel-card {
    min-height: 0;
  }

  .panel-copy {
    padding: 20px;
  }

  .panel-shot img {
    height: auto;
  }

  .decoder-feature-row span {
    width: 100%;
  }

  .decoder-list {
    max-height: 360px;
  }

  .section {
    padding: 58px 0;
  }

  .panel-shot:has(img.is-lightboxable)::before,
  .screenshot-stage:has(img.is-lightboxable)::before {
    display: none;
  }

  .image-lightbox {
    padding: 12px;
  }

  .lightbox-frame {
    border-radius: 20px;
  }

  .lightbox-image {
    max-height: calc(82vh - 50px);
  }

  .lightbox-caption {
    min-height: 50px;
    padding: 14px;
    font-size: 12px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 34px 0;
  }

  .footer-columns h4 {
    margin-top: 12px;
  }

  .footer-wordmark {
    margin-top: 42px;
    font-size: clamp(62px, 18vw, 96px);
  }
}
