/* ==========================================================================
   FORMULA CAST — Official Website Design System
   Modern Motorsport & Broadcast Aesthetic
   ========================================================================== */

/* --- Local Font Fallbacks --- */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-900.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  /* Color Palette */
  --bg-main: #090A0E;
  --bg-card: #12151D;
  --bg-card-hover: #171B26;
  --bg-card-alt: #161A24;
  --bg-header: rgba(9, 10, 14, 0.88);
  
  --red: #E10600;
  --red-hover: #FF1E18;
  --red-glow: rgba(225, 6, 0, 0.35);
  --red-subtle: rgba(225, 6, 0, 0.08);
  
  --text-white: #FFFFFF;
  --text-titanium: #F4F5F8;
  --text-muted: #8E95A5;
  --text-dim: #5E6475;
  
  --line: rgba(255, 255, 255, 0.08);
  --line-light: rgba(255, 255, 255, 0.14);
  --line-accent: rgba(225, 6, 0, 0.4);
  
  --yellow: #FFD400;
  --green: #00E676;
  --blue: #00B0FF;
  
  /* Dimensions & Spacing */
  --max-width: 1260px;
  --header-h: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Plus Jakarta Sans", Impact, sans-serif;
  
  /* Shadows & Glassmorphism */
  --glass-blur: blur(16px);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(225, 6, 0, 0.18);
  --shadow-pop: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background-color: var(--bg-main);
}

body {
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-titanium);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: var(--red);
  color: var(--text-white);
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--red);
  color: var(--text-white);
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header-inner {
  width: min(calc(100% - 48px), 1360px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 220px;
  max-width: 55vw;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
  transform: translateX(-50%);
  transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav a:hover {
  color: var(--text-white);
}

.main-nav a:hover::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.language-switcher button {
  min-width: 36px;
  padding: 6px 10px;
  color: var(--text-muted);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.language-switcher button b {
  display: none;
}

.language-switcher button:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.language-switcher button[aria-pressed="true"] {
  color: var(--text-white);
  background: var(--red);
  box-shadow: 0 2px 10px var(--red-glow);
}

.menu-toggle {
  display: none;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  background: radial-gradient(circle at 75% 20%, rgba(225, 6, 0, 0.12) 0%, rgba(9, 10, 14, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
              var(--bg-main);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--header-h) - 40px);
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.05fr);
  align-items: center;
  gap: 60px;
  padding-block: 64px 80px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 100px;
  width: fit-content;
}

.hero h1,
.section-heading h2,
.obs-heading h2,
.download-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.8vw, 84px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--text-white);
}

.hero h1 em,
.hero h1 span,
.section-heading h2 em,
.section-heading h2 span,
.obs-heading h2 em,
.obs-heading h2 span {
  color: var(--red);
  font-style: italic;
  text-shadow: 0 0 30px var(--red-glow);
}

.hero-lead {
  max-width: 580px;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.button-primary {
  background: linear-gradient(135deg, var(--red) 0%, #B80500 100%);
  color: var(--text-white);
  box-shadow: 0 8px 24px var(--red-glow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(225, 6, 0, 0.5);
  background: linear-gradient(135deg, var(--red-hover) 0%, var(--red) 100%);
}

.button-primary:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.button-ghost {
  color: var(--text-white);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass-blur);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.download-link {
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
}

.download-link small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.82;
  text-transform: none;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

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

.hero-facts dt {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--text-titanium);
  font-size: 13px;
  font-weight: 600;
}

/* --- Hero Broadcast Stage / 3D Frame --- */
.hero-product {
  position: relative;
  min-width: 0;
  perspective: 1200px;
}

.broadcast-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-pop), 0 0 50px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.broadcast-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(225, 6, 0, 0.2);
}

.frame-topbar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #191D26;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frame-topbar div {
  display: flex;
  gap: 8px;
}

.frame-topbar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #363C4A;
  display: block;
}

.frame-topbar i:first-child {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

.broadcast-frame .image-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #000;
  cursor: zoom-in;
}

.broadcast-frame .image-open img {
  width: 100%;
  display: block;
}

.frame-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 16px;
  background: #141720;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.frame-status b {
  margin-left: auto;
  font-family: "JetBrains Mono", Consolas, monospace;
  color: var(--text-titanium);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.status-connected {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

.hero-rail {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  display: grid;
  grid-template-columns: 20% 12% 1fr;
}

.hero-rail span:nth-child(1) { background: var(--red); box-shadow: 0 0 10px var(--red); }
.hero-rail span:nth-child(2) { background: var(--yellow); }
.hero-rail span:nth-child(3) { background: rgba(255, 255, 255, 0.2); }

/* ==========================================================================
   Proof Strip (Metrics)
   ========================================================================== */
.proof-strip {
  background: #0E1017;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid div {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 32px;
  border-left: 1px solid var(--line);
  transition: background 0.25s ease;
}

.proof-grid div:hover {
  background: rgba(255, 255, 255, 0.02);
}

.proof-grid div:last-child {
  border-right: 1px solid var(--line);
}

.proof-grid strong {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--text-white);
  background: linear-gradient(180deg, #FFFFFF 0%, #C0C5D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proof-grid span {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  padding-block: 110px;
  position: relative;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  column-gap: 80px;
  align-items: end;
  margin-bottom: 60px;
}

.section-heading .kicker {
  grid-column: 1 / -1;
}

.section-heading h2,
.obs-heading h2 {
  font-size: clamp(40px, 4.8vw, 68px);
}

.section-heading > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.section-heading.compact {
  grid-template-columns: 1fr;
}

/* ==========================================================================
   Mode Cards (In-Game vs OBS)
   ========================================================================== */
.mode-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mode-card {
  position: relative;
  min-height: 440px;
  padding: 48px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-card), 0 0 25px rgba(225, 6, 0, 0.1);
}

.mode-index {
  position: absolute;
  right: 28px;
  top: 16px;
  color: rgba(255, 255, 255, 0.04);
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  pointer-events: none;
}

.mode-label {
  margin: 0 0 40px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mode-card h3 {
  max-width: 440px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-white);
}

.mode-card > p:not(.mode-label) {
  max-width: 480px;
  margin: 20px 0 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.mode-card ul {
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.mode-card li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-titanium);
}

.mode-card li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
}

.mode-obs {
  background: var(--bg-card-alt);
}

/* ========================================================================== 
   Overlay regions
   ========================================================================== */
.section-dark {
  background: #0C0E14;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark::before {
  content: "FORMULACAST";
  position: absolute;
  top: 30px;
  right: 0;
  overflow: hidden;
  width: 60%;
  color: rgba(255, 255, 255, 0.018);
  font-family: var(--font-display);
  font-size: 160px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.overlay-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.overlay-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.overlay-list article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.overlay-list article > span {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
}

.overlay-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-white);
}

.overlay-list p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.overlay-list .overlay-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.12) 0%, rgba(20, 24, 34, 0.9) 100%);
  border: 1px solid rgba(225, 6, 0, 0.35);
  box-shadow: 0 8px 30px rgba(225, 6, 0, 0.12);
}

/* ==========================================================================
   Editorial production (Director Cut & Highlights)
   ========================================================================== */
.production-grid {
  display: grid;
  gap: 28px;
}

.production-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.production-highlights {
  grid-template-columns: minmax(340px, 0.75fr) minmax(0, 1.45fr);
}

.production-highlights .production-image {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.production-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0;
  background: #090a0f;
  cursor: zoom-in;
}

.production-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.production-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.production-image:hover img {
  transform: scale(1.015);
}

.production-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 42px;
}

.production-label {
  margin: 0 0 24px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.production-copy h3 {
  margin: 0;
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.production-copy > p:not(.production-label) {
  margin: 22px 0 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.production-copy ul {
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.production-copy li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--text-titanium);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.production-copy li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 9px;
  height: 2px;
  background: var(--red);
}

/* ==========================================================================
   Screen Explorer (Interactive Tabs & Preview)
   ========================================================================== */
.screen-explorer {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.screen-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: #0E1017;
  border-bottom: 1px solid var(--line);
  padding: 6px;
  gap: 6px;
}

.screen-tabs::-webkit-scrollbar {
  display: none;
}

.screen-tabs button {
  flex: 1 0 auto;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.screen-tabs button:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.screen-tabs button[aria-selected="true"] {
  background: var(--red);
  color: var(--text-white);
  box-shadow: 0 4px 16px var(--red-glow);
}

.screen-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  min-height: 580px;
  background: var(--bg-card);
}

.screen-image {
  position: relative;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0;
  background: #000;
  cursor: zoom-in;
}

.screen-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top left;
  display: block;
}

.screen-image > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 14px;
  background: rgba(9, 10, 14, 0.88);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.screen-image:hover > span {
  background: var(--red);
}

.screen-copy {
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
}

.screen-counter {
  margin: 0 0 32px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.screen-counter span {
  color: var(--red);
  font-size: 28px;
  font-style: italic;
}

.screen-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-white);
}

.screen-copy > p:not(.screen-counter) {
  margin: 18px 0 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.screen-copy dl {
  margin: auto 0 0;
}

.screen-copy dl div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.screen-copy dt {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-copy dd {
  margin: 4px 0 0;
  color: var(--text-titanium);
  font-size: 13px;
  font-weight: 600;
}

.screen-thumbnails {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.screen-thumbnails button {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.screen-thumbnails button.active {
  border-color: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

.screen-thumbnails img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
  object-position: top left;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.screen-thumbnails button:hover img,
.screen-thumbnails button.active img {
  opacity: 1;
}

.screen-thumbnails span {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 6px 6px;
  color: var(--text-white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Guide Section (Step-by-step Setup)
   ========================================================================== */
.guide-section {
  background: #0B0D13;
  border-top: 1px solid var(--line);
}

.steps {
  position: relative;
  display: grid;
  gap: 16px;
}

.steps article {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  padding: 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.steps article:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.3);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
}

.steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-white);
}

.steps article > div:last-child {
  max-width: 820px;
}

.steps p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.steps .step-note {
  margin-top: 14px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-titanium);
  font-size: 13px;
}

/* ==========================================================================
   OBS Section
   ========================================================================== */
.obs-section {
  background: #090A0E;
  border-top: 1px solid var(--line);
}

.obs-heading {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
}

.obs-heading > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.obs-workflow {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
}

.obs-workflow ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.obs-workflow li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.obs-workflow li:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--bg-card-hover);
}

.obs-workflow li > span {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
}

.obs-workflow h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-white);
}

.obs-workflow li p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- OBS Reference Console Panel --- */
.obs-panel {
  align-self: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.obs-panel-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--red) 0%, #B80500 100%);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.obs-panel-head b {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

.source-table {
  display: grid;
}

.source-table [role="row"] {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  transition: background 0.2s ease;
}

.source-table [role="row"]:hover {
  background: rgba(255, 255, 255, 0.03);
}

.source-table [role="row"]:last-child {
  border-bottom: 0;
}

.source-table span {
  font-weight: 700;
  color: var(--text-white);
}

.source-table code {
  font-family: "JetBrains Mono", Consolas, monospace;
  color: var(--yellow);
  font-size: 12px;
}

.source-table small {
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
}

.obs-tip {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
}

.obs-tip strong {
  display: block;
  color: var(--text-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.obs-tip p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

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

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   Download Banner Section
   ========================================================================== */
.download-section {
  padding-block: 100px;
  background: radial-gradient(circle at 50% 50%, rgba(225, 6, 0, 0.14) 0%, rgba(9, 10, 14, 0) 70%),
              #08090C;
  border-top: 1px solid var(--line);
}

.download-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.download-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop), 0 0 50px rgba(225, 6, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.download-card img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-card strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  display: block;
}

.download-card span {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.download-card .download-link {
  width: 100%;
  align-items: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #06070A;
  border-top: 1px solid var(--line);
  padding-block: 80px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-grid img {
  margin-bottom: 16px;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  max-width: 320px;
}

.footer-grid strong {
  display: block;
  color: var(--text-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--red);
}

.legal {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

.legal p {
  margin: 0;
  max-width: 700px;
}

/* ==========================================================================
   Lightbox (Image Zoom)
   ========================================================================== */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
  outline: none;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox figure {
  margin: 0;
  position: relative;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--line-light);
}

.lightbox figcaption {
  margin-top: 14px;
  color: var(--text-titanium);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lightbox-close:hover {
  background: var(--red);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-block: 40px 60px;
  }
  
  .section-heading,
  .obs-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .mode-split,
  .overlay-list,
  .production-card,
  .production-highlights,
  .obs-workflow,
  .download-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .production-image,
  .production-highlights .production-image {
    order: 0;
    min-height: 480px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  
  .screen-stage {
    grid-template-columns: 1fr;
  }
  
  .screen-image {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .screen-thumbnails {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  
  body.nav-open .main-nav {
    display: flex;
  }
  
  .hero-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-facts div + div {
    padding-left: 0;
    border-left: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  
  .proof-grid {
    grid-template-columns: 1fr;
  }
  
  .steps article {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .screen-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
  
}
