/* ==========================================================================
   XPTV Official Website — Warm Cream / Parchment Retro-Skeuomorphic Flat UI
   Color tokens faithfully derived from XPTV Desktop App (App.css & VideoPlayer.css)
   ========================================================================== */

:root {
  /* Paper & Parchment Surfaces */
  --bg-parchment: #f5eae2;
  --bg-linen: #efe3d7;
  --bg-card: #f8f4ee;
  --bg-card-elevated: #fbf8f3;
  --bg-well-top: #dfd3c3;
  --bg-well-bottom: #ebe0d3;
  --bg-btn-raised: #ede4d6;
  --bg-btn-hover: #e4d8c7;

  /* Ink & Typography */
  --ink-primary: #1e1b18;
  --ink-heading: #26211a;
  --ink-secondary: #5c5349;
  --ink-muted: #85776a;
  --ink-faint: #9e9183;

  /* Borders & Hairlines */
  --border-hairline: rgba(110, 100, 90, 0.34);
  --border-card: rgba(110, 100, 90, 0.48);
  --border-card-hover: rgba(60, 50, 40, 0.8);
  --border-well: #d4c6b5;
  --border-btn: #d6cab9;
  --divider-line: #8c8479;
  --fleuron-color: #7d756b;

  /* Terracotta / Wax Seal Red Accent */
  --accent-crimson: #8a1c20;
  --accent-ink: #6e1f11;
  --accent-terracotta: #a94e3d;
  --accent-border: #b0624c;
  --accent-border-strong: #9e523d;
  --accent-fill-top: #cfa090;
  --accent-fill-bottom: #dfc0b3;
  --accent-tint: rgba(176, 98, 76, 0.12);

  /* Retro Hi-Fi LED Status Colors */
  --led-red: #8a1c20;
  --led-green: #26533c;
  --led-amber: #e29731;
  --led-off: #d6cab9;

  /* Dark Espresso Showcase Accent */
  --espresso-bg: #1e1b18;
  --espresso-surface: #25211d;
  --espresso-border: rgba(235, 170, 75, 0.35);
  --espresso-amber: #f6c46f;

  /* Tactile Retro-Skeuomorphic Shadows */
  --shadow-card: 0 1px 2px rgba(60, 50, 40, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --shadow-card-hover: 0 10px 26px -6px rgba(60, 50, 40, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-btn-raised: 0 1px 2px rgba(38, 33, 26, 0.09), 0 3px 6px rgba(38, 33, 26, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --shadow-btn-pressed: inset 0 1.5px 3px rgba(95, 28, 16, 0.24), 0 1px 0 rgba(255, 255, 255, 0.85);
  --shadow-well: inset 0 2px 4px rgba(38, 33, 26, 0.11), inset 0 1px 1px rgba(38, 33, 26, 0.07), 0 1px 0 rgba(255, 255, 255, 0.85);

  /* Radii & Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --max-width: 1180px;

  /* Fonts */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "Cormorant Garamond", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-parchment);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-parchment);
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(255, 250, 244, 0.85), transparent 72%),
    radial-gradient(circle at 12% 38%, rgba(176, 98, 76, 0.045), transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(226, 151, 49, 0.045), transparent 46%);
  color: var(--ink-primary);
  overflow-x: hidden;
  position: relative;
}

/* Tactile Parchment Grain Layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Signature XPTV Fleuron Divider (── ❦ ──) */
.fleuron-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 28px;
  user-select: none;
}

.fleuron-divider__line {
  flex: 1;
  height: 1px;
  background-color: var(--divider-line);
  opacity: 0.48;
}

.fleuron-divider__ornament {
  margin: 0 18px;
  color: var(--fleuron-color);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, color 0.35s ease;
}

.fleuron-divider:hover .fleuron-divider__ornament {
  color: var(--accent-crimson);
  transform: scale(1.12);
}

/* ==========================================================================
   Sticky Top Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 234, 226, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-heading);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-btn-raised);
  border: 1px solid var(--border-btn);
  box-shadow: var(--shadow-btn-raised);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__mark svg {
  width: 24px;
  height: 24px;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand__ver {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #e7d1c6 0%, #f0dfd5 100%);
  border: 1px solid rgba(176, 98, 76, 0.45);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink-primary);
  background-color: rgba(60, 50, 40, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tactile Retro-Skeuomorphic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-btn);
  transition: all 0.16s ease;
  user-select: none;
  white-space: nowrap;
}

.btn--sm {
  font-size: 13px;
  padding: 8px 15px;
}

.btn--parchment {
  background: linear-gradient(180deg, #f3ebe0 0%, #e7dccb 100%);
  color: var(--ink-heading);
  border-color: #cfc2b0;
  box-shadow: var(--shadow-btn-raised);
}

.btn--parchment:hover {
  background: linear-gradient(180deg, #eee4d7 0%, #dfd2bf 100%);
  border-color: #bcaea0;
  transform: translateY(-1px);
}

.btn--parchment:active {
  transform: translateY(0) scale(0.98);
  box-shadow: inset 0 1.5px 3px rgba(38, 33, 26, 0.15);
}

.btn--terracotta {
  background: linear-gradient(180deg, #a63d2f 0%, #8a1c20 100%);
  color: #fdf7f2;
  border-color: #72171a;
  box-shadow:
    0 2px 6px rgba(138, 28, 32, 0.25),
    0 1px 2px rgba(60, 20, 14, 0.18),
    inset 0 1px 0 rgba(255, 224, 212, 0.35);
}

.btn--terracotta:hover {
  background: linear-gradient(180deg, #b54535 0%, #982125 100%);
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(138, 28, 32, 0.28),
    inset 0 1px 0 rgba(255, 224, 212, 0.42);
}

.btn--terracotta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: inset 0 2px 4px rgba(55, 10, 8, 0.38);
}

/* Segmented Recessed Well Switch */
.recessed-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--bg-well-top) 0%, var(--bg-well-bottom) 100%);
  border: 1px solid var(--border-well);
  box-shadow: var(--shadow-well);
  gap: 2px;
}

.recessed-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  transition: all 0.16s ease;
  line-height: 1.2;
}

.recessed-switch__btn:hover {
  color: var(--ink-primary);
}

.recessed-switch__btn.is-active {
  background: linear-gradient(180deg, #faf6f0 0%, #eee4d7 100%);
  color: var(--ink-heading);
  border-color: #cfc2b0;
  box-shadow: 0 1px 2px rgba(38, 33, 26, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.recessed-switch__btn.is-active--terracotta {
  background: linear-gradient(180deg, var(--accent-fill-top) 0%, var(--accent-fill-bottom) 100%);
  color: var(--accent-ink);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-btn-pressed);
}

.lang-switch .recessed-switch__btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 68px 0 46px;
  text-align: center;
  position: relative;
}

.eyebrow-stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #f3e6db 0%, #eadad0 100%);
  border: 1px solid rgba(176, 98, 76, 0.42);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(60, 50, 40, 0.05);
  margin-bottom: 24px;
}

.eyebrow-stamp__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--led-red);
  box-shadow: 0 0 0 2px rgba(138, 28, 32, 0.15);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink-heading);
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-crimson);
  position: relative;
  display: inline-block;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(138, 28, 32, 0.45), transparent);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--ink-secondary);
  max-width: 670px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__platforms {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 38px;
}

.hero__platforms span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__platforms .sep {
  opacity: 0.45;
}

/* Hero Showcase Stage */
.hero-stage {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
  margin: 0 auto 14px;
  max-width: 960px;
  padding: 0 12px;
}

.stage-toolbar .recessed-switch {
  flex-shrink: 0;
}

.stage-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-secondary);
  background: linear-gradient(180deg, var(--bg-well-top) 0%, var(--bg-well-bottom) 100%);
  border: 1px solid var(--border-well);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  box-shadow: var(--shadow-well);
}

.stage-telemetry > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-telemetry__badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #d4384e;
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.04em;
}

.stage-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 1179;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.stage-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.stage-viewport img.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
}

.stage-viewport img.is-visible {
  opacity: 1;
  transform: scale(1);
}

.stage-zoom-hint {
  position: absolute;
  right: 36px;
  bottom: 30px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-heading);
  background: rgba(248, 244, 238, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  box-shadow: var(--shadow-btn-raised);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.stage-viewport:hover .stage-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Signature Braun/XPTV Dotted LED Strip */
.led-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0 12px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led-off);
  flex-shrink: 0;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.led-dot.is-red {
  background: var(--led-red);
}

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

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

/* ==========================================================================
   Section Common Headers
   ========================================================================== */
.section {
  padding: 72px 0;
}

.section__header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__header--left {
  margin: 0 0 32px;
  text-align: left;
}

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink-heading);
  margin: 0 0 14px;
}

.section__desc {
  font-size: 15.5px;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.75;
}

/* ==========================================================================
   Warm Parchment Editorial Cards
   ========================================================================== */
.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.paper-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.paper-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-btn-raised);
  border: 1px solid var(--border-btn);
  box-shadow: var(--shadow-btn-raised);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  margin-bottom: 16px;
}

.paper-card__title {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink-heading);
  margin: 0 0 8px;
}

.paper-card__text {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Section 2: Channel Gallery & Dual-Theme Craft
   ========================================================================== */
.split-showcase {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 44px;
  align-items: center;
}

.split-showcase--reverse {
  grid-template-columns: 0.78fr 1.22fr;
}

.screenshot-plate {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #efe4d9 0%, #e9dcd0 100%);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-well);
  padding: 18px 18px 14px;
}

.screenshot-plate--dark-mat {
  background: linear-gradient(180deg, #27221d 0%, #1d1916 100%);
  border-color: rgba(235, 170, 75, 0.25);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.screenshot-plate__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.screenshot-plate__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.screenshot-plate--dark-mat .screenshot-plate__label {
  color: rgba(245, 236, 227, 0.65);
}

.screenshot-plate__stage {
  position: relative;
  aspect-ratio: 2272 / 1376;
  cursor: zoom-in;
}

.screenshot-plate__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.screenshot-plate__stage img.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.feature-checklist__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-fill-top) 0%, var(--accent-fill-bottom) 100%);
  border: 1px solid var(--accent-border);
  box-shadow: inset 0 1px 2px rgba(95, 28, 16, 0.16), 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-checklist strong {
  color: var(--ink-heading);
  font-weight: 600;
}

/* ==========================================================================
   Section 3: Interactive Tactile Retro-Skeuomorphic Console Demo
   ========================================================================== */
.console-demo-card {
  background: linear-gradient(180deg, #f5ebdf 0%, #ece1d3 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 26px 22px;
  box-shadow:
    0 12px 32px -12px rgba(60, 50, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
}

.console-demo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(140, 132, 121, 0.38);
}

.console-demo-card__hint {
  font-size: 12.5px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.console-bar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.console-controls-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.tactile-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ede4d6;
  border: 1px solid #d4c6b5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #26211a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
  padding: 0;
}

.tactile-circle-btn:hover {
  background: #e4d8c7;
  border-color: #c5b6a3;
}

.tactile-circle-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.14);
}

/* Exact Terracotta Wax Seal Active State from VideoPlayer.css */
.tactile-circle-btn.is-active {
  background-color: #d8ada0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(165, 52, 32, 0.22) 0%, rgba(150, 48, 28, 0.1) 65%, rgba(218, 178, 164, 0.96) 100%),
    linear-gradient(180deg, #cfa090 0%, #dfc0b3 100%);
  border-color: #b0624c;
  color: #6e1f11;
  box-shadow: inset 0 1.5px 3px rgba(95, 28, 16, 0.24), 0 1px 0 rgba(255, 255, 255, 0.85);
}

.console-epg-center {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.console-epg-pill {
  width: 100%;
  background: linear-gradient(180deg, #dfd3c3 0%, #ebe0d3 100%);
  border: 1px solid #d4c6b5;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-well);
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-heading);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 4px;
}

.console-dots .led-dot {
  width: 5.5px;
  height: 5.5px;
}

.console-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  padding: 0 4px;
}

.console-controls-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.tactile-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
  padding: 0;
}

.tactile-icon-btn:hover {
  background: rgba(38, 33, 26, 0.06);
}

.tactile-icon-btn.is-ring-active {
  border-radius: 50%;
  border-color: var(--accent-border);
  background: rgba(176, 98, 76, 0.12);
  color: var(--accent-ink);
}

.quality-tag {
  position: absolute;
  top: 1px;
  right: 0;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  background: #f43f5e;
  border-radius: 3px;
  padding: 1px 3px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.quality-tag[data-q="2K"] { background: #8b5cf6; }
.quality-tag[data-q="FHD"] { background: #10b981; }
.quality-tag[data-q="HD"] { background: #3b82f6; }

/* Quick Channel Strip inside Console Demo */
.console-channel-strip {
  margin-top: 16px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #dfd3c3 0%, #e9ded0 100%);
  border: 1px solid #d4c6b5;
  box-shadow: var(--shadow-well);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.console-channel-strip::-webkit-scrollbar {
  display: none;
}

.channel-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 9px;
  background: #f7f3ed;
  border: 1px solid rgba(110, 100, 90, 0.35);
  box-shadow: 0 1px 2px rgba(38, 33, 26, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--ink-heading);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.14s ease;
}

.channel-chip:hover {
  border-color: var(--border-card-hover);
}

.channel-chip.is-active {
  background: linear-gradient(180deg, #d7b1a3 0%, #e5c9be 100%);
  border-color: var(--accent-border);
  color: var(--accent-ink);
  box-shadow: inset 0 1.5px 3px rgba(95, 28, 16, 0.18), 0 1px 0 rgba(255, 255, 255, 0.82);
}

.channel-chip__badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: #231f1b;
  color: #f5ece3;
}

/* 4-Column Spec Cards */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ==========================================================================
   Section 4: EPG 3-Pane Showcase
   ========================================================================== */
.epg-dual-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.epg-step-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-crimson);
  line-height: 1;
  margin-bottom: 10px;
}

/* ==========================================================================
   Section 5: Real-Time AI Bilingual Subtitles
   ========================================================================== */
.ai-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.subtitle-studio {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.subtitle-studio__canvas {
  border-radius: 10px;
  background:
    radial-gradient(circle at 24% 30%, rgba(226, 151, 49, 0.25), transparent 50%),
    linear-gradient(135deg, #27323f 0%, #1c222a 52%, #3a2e28 100%);
  padding: 24px 20px;
  text-align: center;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.38);
}

.subtitle-studio__main {
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72), 0 1px 2px rgba(0, 0, 0, 0.9);
  transition: font-size 0.15s ease, color 0.15s ease;
}

.subtitle-studio__sub {
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.78);
  transition: font-size 0.15s ease, opacity 0.15s ease;
}

.subtitle-studio__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.studio-control-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(38, 33, 26, 0.2);
  padding: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.swatch-btn.is-active {
  transform: scale(1.16);
  border-color: var(--ink-primary);
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 3.5px var(--accent-border);
}

.range-slider {
  accent-color: var(--accent-crimson);
  width: 110px;
  cursor: pointer;
}

.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.provider-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-heading);
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.provider-pill--accent {
  color: var(--accent-ink);
  border-color: rgba(176, 98, 76, 0.45);
  background: #f2e1d8;
}

/* ==========================================================================
   Section 6: MCP AI Native Control
   ========================================================================== */
.mcp-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: stretch;
}

.mcp-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mcp-terminal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #efe4d7 0%, #e7dacb 100%);
  border-bottom: 1px solid var(--border-hairline);
}

.mcp-terminal__dots {
  display: inline-flex;
  gap: 6px;
}

.mcp-terminal__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(38, 33, 26, 0.16);
}

.mcp-terminal__tabs {
  display: flex;
  gap: 6px;
  padding: 12px 18px 0;
  border-bottom: 1px solid var(--border-hairline);
  background: #f3eae0;
  overflow-x: auto;
}

.mcp-tab {
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px 9px 0 0;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.mcp-tab.is-active {
  background: var(--bg-card);
  color: var(--accent-ink);
  border-color: var(--border-hairline);
  margin-bottom: -1px;
}

.mcp-terminal__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mcp-bubble {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.65;
}

.mcp-bubble--user {
  background: linear-gradient(180deg, #efe4d7 0%, #e9ddd0 100%);
  border: 1px solid var(--border-well);
  color: var(--ink-heading);
  font-weight: 500;
}

.mcp-bubble--tool {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #231f1b;
  color: #f3e5d5;
  border: 1px solid #3a332c;
  overflow-x: auto;
}

.mcp-bubble--tool .tok-fn { color: #f6c46f; }
.mcp-bubble--tool .tok-str { color: #9fd8b4; }
.mcp-bubble--tool .tok-dim { color: #9c9184; }

.mcp-bubble--reply {
  background: var(--bg-card-elevated);
  border: 1px solid rgba(176, 98, 76, 0.35);
  color: var(--ink-primary);
}

.endpoint-box {
  margin-top: 20px;
  background: linear-gradient(180deg, var(--bg-well-top) 0%, var(--bg-well-bottom) 100%);
  border: 1px solid var(--border-well);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-well);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.endpoint-box code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-heading);
  word-break: break-all;
}

/* ==========================================================================
   Section 7: Downloads & Editions
   ========================================================================== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 42px;
}

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.download-card.is-recommended {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #fbf6f0 0%, #f5eae0 100%);
  box-shadow: 0 10px 26px -8px rgba(138, 28, 32, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.recommend-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-fill-top) 0%, var(--accent-fill-bottom) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  box-shadow: var(--shadow-btn-pressed);
}

.download-card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Editions Comparison */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.edition-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edition-card--member {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #fcf7f1 0%, #f4e6db 100%);
}

.edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
  border: 1px solid var(--border-card);
  background: var(--bg-btn-raised);
  color: var(--ink-heading);
}

.edition-card--member .edition-badge {
  background: linear-gradient(180deg, var(--accent-fill-top) 0%, var(--accent-fill-bottom) 100%);
  border-color: var(--accent-border);
  color: var(--accent-ink);
}

/* ==========================================================================
   Section 8: FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.faq-item[open] {
  border-color: var(--accent-border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-btn-raised);
  border: 1px solid var(--border-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-secondary);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: linear-gradient(180deg, var(--accent-fill-top) 0%, var(--accent-fill-bottom) 100%);
  border-color: var(--accent-border);
  color: var(--accent-ink);
}

.faq-item__body {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.75;
  border-top: 1px dashed rgba(140, 132, 121, 0.28);
  padding-top: 14px;
}

/* ==========================================================================
   Footer Colophon
   ========================================================================== */
.site-footer {
  margin-top: 32px;
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #efe3d7 0%, #e9dbcd 100%);
  border-top: 1px solid var(--border-hairline);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin: 12px 0 0;
  line-height: 1.7;
}

.footer-cols {
  display: flex;
  gap: 54px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-heading);
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.footer-col a:hover {
  color: var(--accent-crimson);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(140, 132, 121, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Gallery Lightbox Modal
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 22, 18, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

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

.lightbox__stage {
  position: relative;
  width: min(1140px, 94vw);
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.lightbox__bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(860px, 94vw);
  background: rgba(245, 234, 226, 0.94);
  color: var(--ink-heading);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.lightbox__caption {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox__nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lightbox__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 6px;
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .split-showcase,
  .split-showcase--reverse,
  .ai-grid,
  .mcp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .download-grid,
  .epg-dual-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 46px 0 32px;
  }

  .section {
    padding: 52px 0;
  }

  .specs-grid,
  .editions-grid {
    grid-template-columns: 1fr;
  }

  .stage-toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stage-telemetry {
    max-width: 100%;
  }

  .console-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .console-controls-left,
  .console-controls-right {
    justify-content: center;
  }

  .lightbox__bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px 16px;
    text-align: center;
  }
}
