/* ============================================================================
   EMBER UNIVERSAL LAUNCHER — OFFICIAL WEBSITE DESIGN SYSTEM ("Liquid Glass")
   Synchronized with renderer/styles.css & renderer/overlay.css
   Palette: Molten Amber (#ffb454) -> Ember Orange (#ff8a2b) -> Crimson (#e8401f)
   on Deep Charcoal Obsidian (#0d0e11).
   Typography: Unbounded (Brand/Display) + Inter (Interface/Body).
   ============================================================================ */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Typography */
  --f-brand: "Unbounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Cascadia Code", "JetBrains Mono", "Consolas", monospace;

  /* Official Ember Color Tokens */
  --bg: #0d0e11;
  --bg-elevated: #121318;
  --panel: #17181d;
  --panel2: #202127;
  --tx: #f5efe8;
  --mu: #a59f98;
  --mu-dim: #7a746e;
  --a1: #ff8a2b;
  --a2: #e8401f;
  --a3: #ffb454;
  --on-a: #2a0c03;
  --ok: #52d69a;
  --danger-tx: #ffa597;

  /* Gradients & Liquid Glass Surfaces */
  --grad: linear-gradient(135deg, #ffb454 0%, #ff7a1a 48%, #f0491f 100%);
  --grad-subtle: linear-gradient(135deg, rgba(255, 180, 84, 0.16) 0%, rgba(255, 122, 26, 0.09) 52%, rgba(232, 64, 31, 0.14) 100%);
  --ring: #ff8a2b55;
  --glass: rgba(255, 255, 255, 0.045);
  --glass2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.075);
  --line-amber: rgba(255, 180, 84, 0.32);
  --surf: linear-gradient(150deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025) 55%, rgba(255, 255, 255, 0.05));
  --scatter: radial-gradient(120% 70% at 18% -12%, rgba(255, 180, 84, 0.15), transparent 62%);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 70px -16px rgba(0, 0, 0, 0.78), 0 0 1px 1px rgba(255, 255, 255, 0.07);
  --shadow-md: 0 16px 40px -12px rgba(0, 0, 0, 0.65);

  /* Radii & Motion */
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container-w: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg);
  color: var(--tx);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--tx);
  font-feature-settings: "cv11", "ss01";
  position: relative;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  z-index: 2;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.14em 0.45em;
  border-radius: 6px;
  color: var(--a3);
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--grad);
  color: var(--on-a);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

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

.section-spacer {
  padding: 112px 0;
  position: relative;
}

/* Ambient Lighting Stage */
.ambient-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
}

.orb-amber {
  width: 780px;
  height: 520px;
  top: -210px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.34), transparent 70%);
}

.orb-crimson {
  width: 720px;
  height: 540px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(232, 64, 31, 0.26), transparent 70%);
}

.orb-hearth {
  width: 640px;
  height: 420px;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 180, 84, 0.1), transparent 72%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 20%, transparent 100%);
}

/* Typography Utilities */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-brand);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a3);
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px var(--a1);
}

.section-headline {
  font-family: var(--f-brand);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--tx);
  margin-bottom: 18px;
}

.section-lead {
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  color: var(--mu);
  max-width: 680px;
  line-height: 1.68;
}

.section-title-block {
  margin-bottom: 64px;
}

/* Status Dots & Badges */
.dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.dot-amber {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a3);
  box-shadow: 0 0 10px var(--a1);
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tx);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 12px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--grad);
  color: var(--on-a);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 28px -6px rgba(255, 122, 26, 0.48);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 16px 34px -6px rgba(255, 122, 26, 0.65);
}

.btn-glass {
  background: var(--surf), rgba(255, 255, 255, 0.05);
  color: var(--tx);
  border-color: var(--line);
  box-shadow: var(--specular);
  backdrop-filter: blur(14px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 180, 84, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--mu);
  border-color: var(--line-soft);
}

.btn-ghost:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.btn-xs {
  padding: 7px 13px;
  font-size: 0.8rem;
  border-radius: var(--r-sm);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
  border-radius: var(--r-sm);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
  border-radius: var(--r-md);
}

.btn-xl {
  padding: 17px 34px;
  font-size: 1.06rem;
  border-radius: 16px;
}

.btn-block {
  width: 100%;
}

/* ============================================================================
   NAVIGATION BAR
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.28s var(--ease), padding 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(13, 14, 17, 0.82);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.45));
  transition: transform 0.3s var(--ease);
}

.brand-mark:hover .brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-wordmark {
  font-family: var(--f-brand);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tx);
}

.brand-version-pill {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--a3);
  background: rgba(255, 138, 43, 0.14);
  border: 1px solid rgba(255, 180, 84, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  padding: 5px;
  border-radius: 999px;
  box-shadow: var(--specular);
}

.nav-link {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--mu);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--tx);
}

.nav-link.active {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.nav-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--mu);
  padding: 8px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.nav-github-btn:hover {
  color: var(--tx);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background: var(--tx);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.mobile-nav-drawer {
  margin-top: 12px;
  padding: 0 20px;
}

.mobile-nav-inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.mobile-nav-links .nav-link {
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 0.96rem;
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* ============================================================================
   SECTION 1 — HERO
   ============================================================================ */
.hero-section {
  padding: 54px 0 84px;
  position: relative;
}

.hero-copy {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 56px;
}

.hero-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 180, 84, 0.14), rgba(232, 64, 31, 0.1));
  border: 1px solid rgba(255, 180, 84, 0.34);
  font-size: 0.84rem;
  color: var(--tx);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.release-pill:hover {
  border-color: var(--a3);
  transform: translateY(-1px);
}

.release-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a3);
  box-shadow: 0 0 8px var(--a1);
}

.release-pill-cta {
  color: var(--a3);
  font-weight: 650;
}

.hero-identity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 16px rgba(255, 122, 26, 0.55));
}

.hero-eyebrow {
  font-family: var(--f-brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mu);
}

.hero-headline {
  font-family: var(--f-brand);
  font-size: clamp(2.5rem, 5.4vw, 4.45rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subheadline {
  font-family: var(--f-brand);
  font-size: clamp(1.18rem, 2.1vw, 1.56rem);
  font-weight: 600;
  color: var(--tx);
  opacity: 0.92;
  margin-bottom: 14px;
}

.hero-description {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--mu);
  max-width: 650px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--mu);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item strong {
  color: var(--tx);
}

.meta-dot {
  opacity: 0.45;
}

.meta-link {
  color: var(--a3);
  font-weight: 600;
}

.meta-link:hover {
  text-decoration: underline;
}

/* ============================================================================
   HERO VISUAL CENTERPIECE — ACTUAL EMBER DESKTOP WINDOW REPLICA
   ============================================================================ */
.hero-stage-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 8px 12px;
  font-size: 0.8rem;
  color: var(--mu);
}

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--tx);
}

.ember-app-window {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(680px 380px at 90% -10%, rgba(255, 122, 26, 0.2), transparent),
    radial-gradient(560px 380px at -10% 110%, rgba(232, 64, 31, 0.16), transparent),
    #0d0e11;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 36px 90px -20px rgba(0, 0, 0, 0.88),
    0 0 60px -15px rgba(255, 122, 26, 0.18);
  overflow: hidden;
}

.app-win-bar {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-upd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--tx);
  background: rgba(255, 138, 43, 0.14);
  border: 1px solid rgba(255, 180, 84, 0.34);
  padding: 4px 11px;
  border-radius: 999px;
}

.app-win-ctrls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 21, 26, 0.72);
  border: 1px solid var(--line-soft);
  padding: 3px;
  border-radius: 999px;
}

.app-wbtn {
  width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--mu);
}

.app-wbtn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.app-shell-grid {
  display: grid;
  grid-template-columns: 212px 1fr;
  min-height: 540px;
  position: relative;
}

.app-sidebar {
  background: rgba(20, 21, 26, 0.72);
  border-right: 1px solid var(--line-soft);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.app-brand b {
  font-family: var(--f-brand);
  font-size: 1.08rem;
  font-weight: 800;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-nav-btn,
.app-side-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mu);
  font-size: 0.86rem;
  font-weight: 560;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s var(--ease);
}

.app-nav-btn svg,
.app-side-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-nav-btn:hover,
.app-side-action:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.05);
}

.app-nav-btn.on {
  color: var(--tx);
  background: linear-gradient(135deg, rgba(255, 180, 84, 0.18), rgba(232, 64, 31, 0.12));
  border-color: rgba(255, 180, 84, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.app-nav-btn.on svg {
  stroke: var(--a3);
}

.app-sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.app-side-foot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 8px;
  font-size: 0.72rem;
  color: var(--mu-dim);
}

.app-ver {
  color: var(--a3);
  font-weight: 700;
}

/* App Viewport inside Hero */
.app-viewport {
  padding: 26px 28px 92px;
  position: relative;
}

.app-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-right: 220px;
}

.app-view-header h2 {
  font-family: var(--f-brand);
  font-size: 1.45rem;
  font-weight: 750;
}

.app-local-tag {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--mu);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.app-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.app-stat-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  padding: 16px 18px;
  box-shadow: var(--specular);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-stat-card b {
  font-family: var(--f-brand);
  font-size: 1.55rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.app-stat-card span {
  font-size: 0.8rem;
  color: var(--mu);
}

.app-stat-card.now {
  background: radial-gradient(120% 90% at 15% 0%, rgba(255, 180, 84, 0.18), transparent 65%), var(--panel);
  border-color: rgba(255, 180, 84, 0.35);
}

.now-label {
  color: var(--ok) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem !important;
}

.app-subhead {
  font-family: var(--f-brand);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--mu);
  margin-bottom: 14px;
}

.app-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.app-game-card {
  position: relative;
  height: 205px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.app-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--a3);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.app-game-card.run {
  border-color: var(--ok);
  box-shadow: 0 0 0 1px rgba(82, 214, 154, 0.35), 0 14px 28px rgba(0, 0, 0, 0.55);
}

.app-card-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-brand);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
}

.art-elden { background: linear-gradient(145deg, #5d4318 0%, #241a0a 65%, #120d06 100%); }
.art-cyber { background: linear-gradient(145deg, #6b5310 0%, #1d2c3a 70%, #0d131a 100%); }
.art-hades { background: linear-gradient(145deg, #5a1c18 0%, #1d2a22 70%, #0e1411 100%); }
.art-bg3   { background: linear-gradient(145deg, #4a2518 0%, #24162b 70%, #110b15 100%); }
.art-zelda { background: linear-gradient(145deg, #1f4d3d 0%, #142834 70%, #0b141a 100%); }
.art-alan  { background: linear-gradient(145deg, #2d323b 0%, #15181f 70%, #0b0d11 100%); }

.app-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 14, 0.95) 12%, rgba(10, 11, 14, 0.35) 60%, transparent 100%);
}

.app-badge-live {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(16, 40, 30, 0.88);
  color: var(--ok);
  border: 1px solid rgba(82, 214, 154, 0.45);
  padding: 3px 9px;
  border-radius: 999px;
}

.app-card-meta {
  position: relative;
  z-index: 3;
  margin-bottom: 10px;
}

.app-card-meta h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.app-ptime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tx);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.app-ptime i {
  font-style: normal;
  color: var(--mu);
  font-size: 0.68rem;
}

.app-card-acts {
  position: relative;
  z-index: 3;
}

.app-play-btn {
  width: 100%;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 180, 84, 0.35);
  background: rgba(255, 138, 43, 0.16);
  color: var(--tx);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.app-play-btn:hover {
  background: var(--grad);
  color: var(--on-a);
}

/* Floating Overlay HUD inside Hero */
.app-floating-overlay {
  position: absolute;
  top: 52px;
  right: 22px;
  z-index: 15;
  width: 186px;
  background:
    radial-gradient(120% 70% at 18% -12%, rgba(255, 180, 84, 0.2), transparent 62%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 55%),
    rgba(14, 15, 19, 0.93);
  border: 1px solid rgba(255, 180, 84, 0.38);
  border-radius: 15px;
  padding: 10px 0 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.78), 0 0 22px rgba(255, 138, 43, 0.16);
  backdrop-filter: blur(16px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.app-floating-overlay.hidden-ovl {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
}

.ovl-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ovl-title {
  font-family: var(--f-brand);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: 1;
}

.ovl-grip {
  font-size: 0.72rem;
  color: var(--mu);
}

.ovl-metrics {
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ovl-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
}

.ovl-ico {
  width: 14px;
  text-align: center;
  color: var(--a3);
}

.ovl-lbl {
  color: var(--mu);
  flex: 1;
}

.ovl-sub {
  font-size: 0.66rem;
  color: var(--mu-dim);
  font-variant-numeric: tabular-nums;
}

.ovl-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.ovl-val.good { color: var(--ok); }
.ovl-val.warn { color: var(--a3); }

.ovl-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2px;
}

.ovl-fill {
  height: 100%;
  background: var(--ok);
}

.ovl-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ok);
}

/* Bottom Active Session Bar (#bar replica) */
.app-session-bar {
  position: absolute;
  bottom: 16px;
  left: 236px;
  right: 24px;
  z-index: 12;
  background: rgba(24, 25, 31, 0.92);
  border: 1px solid rgba(255, 180, 84, 0.32);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
}

.session-art {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}

.session-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.session-info b {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-info span {
  font-size: 0.74rem;
  color: var(--ok);
}

.session-clock {
  font-family: var(--f-brand);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tx);
  font-variant-numeric: tabular-nums;
}

.session-ovl-toggle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mu);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.session-ovl-toggle.on {
  color: var(--a3);
  border-color: var(--a3);
  background: rgba(255, 138, 43, 0.16);
}

/* ============================================================================
   SECTION 2 — INTRODUCTION PILLARS
   ============================================================================ */
.intro-header {
  max-width: 760px;
  margin-bottom: 52px;
}

.intro-pillars {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 22px;
}

.pillar-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--specular), var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.pillar-card:hover {
  border-color: rgba(255, 180, 84, 0.35);
  transform: translateY(-3px);
}

.pillar-featured {
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 180, 84, 0.15), transparent 65%),
    var(--surf),
    var(--panel);
  border-color: rgba(255, 180, 84, 0.28);
}

.pillar-num {
  font-family: var(--f-brand);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--a3);
  letter-spacing: 0.1em;
}

.pillar-card h3 {
  font-family: var(--f-brand);
  font-size: 1.24rem;
  font-weight: 750;
  line-height: 1.3;
}

.pillar-card p {
  color: var(--mu);
  font-size: 0.96rem;
  line-height: 1.65;
}

.pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.pillar-chips span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--tx);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ============================================================================
   SECTION 3 — FEATURE SHOWCASE (VARIED COMPOSITIONS)
   ============================================================================ */

/* Composition A & C: Split Feature Blocks */
.feature-split-block {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 88px;
}

.feature-split-block.reverse {
  grid-template-columns: 1.12fr 1fr;
}

.feature-split-block.reverse .feature-split-copy {
  order: 2;
}

.feature-split-block.reverse .feature-split-visual {
  order: 1;
}

.feature-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.feature-index {
  display: inline-block;
  font-family: var(--f-brand);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a3);
  background: rgba(255, 138, 43, 0.12);
  border: 1px solid rgba(255, 180, 84, 0.26);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.feature-tag-row .feature-index {
  margin-bottom: 0;
}

.feature-split-copy h3,
.studio-header h3 {
  font-family: var(--f-brand);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.feature-desc {
  color: var(--mu);
  font-size: 1.02rem;
  line-height: 1.68;
  margin-bottom: 24px;
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--mu);
  line-height: 1.58;
}

.feature-check-list li strong {
  color: var(--tx);
}

.feature-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--a3);
  font-weight: 800;
}

/* Discovery & Library Interactive Demo Window */
.discovery-demo-window {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--specular), var(--shadow-lg);
}

.demo-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.demo-tab {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mu);
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.demo-tab.on {
  color: var(--on-a);
  background: var(--grad);
  border-color: transparent;
}

.demo-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.demo-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mu);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-chip.on {
  color: var(--a3);
  border-color: var(--a3);
  background: rgba(255, 138, 43, 0.15);
}

.demo-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.demo-mini-card {
  background: var(--panel2);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}

.demo-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
}

.dm-art {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--f-brand);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.28);
}

.dm-gone {
  position: absolute;
  top: 7px;
  right: 7px;
  font-family: var(--f-ui);
  font-style: normal;
  font-size: 0.64rem;
  background: rgba(0, 0, 0, 0.75);
  color: var(--a3);
  padding: 2px 7px;
  border-radius: 999px;
}

.dm-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-info b {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-info span {
  font-size: 0.72rem;
  color: var(--mu);
}

/* Scanner Pane inside Discovery Demo */
.scanner-lead {
  font-size: 0.86rem;
  color: var(--mu);
  margin-bottom: 14px;
}

.scanner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.scanner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  cursor: pointer;
}

.scanner-row.done {
  opacity: 0.55;
}

.scanner-row input {
  accent-color: var(--a1);
  width: 16px;
  height: 16px;
}

.scanner-row div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scanner-row b {
  font-size: 0.86rem;
}

.scanner-row span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--mu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scanner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--mu);
}

/* Composition B: Full-Width Performance Overlay Studio */
.feature-studio-block {
  background:
    radial-gradient(90% 80% at 85% 0%, rgba(255, 122, 26, 0.14), transparent 65%),
    var(--surf),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 42px;
  margin-bottom: 88px;
  box-shadow: var(--specular), var(--shadow-lg);
}

.studio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.studio-header .feature-desc {
  max-width: 680px;
  margin-bottom: 0;
}

.studio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overlay-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  align-items: stretch;
}

.studio-controls {
  background: rgba(13, 14, 17, 0.65);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.studio-label {
  display: block;
  font-family: var(--f-brand);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mu);
  margin-bottom: 10px;
}

.studio-btn-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 8px;
}

.studio-opt {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mu);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.studio-opt:hover {
  color: var(--tx);
  border-color: var(--line);
}

.studio-opt.on {
  color: var(--tx);
  background: rgba(255, 138, 43, 0.18);
  border-color: var(--a3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.studio-metric-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--mu);
  cursor: pointer;
  user-select: none;
}

.metric-chip input {
  accent-color: var(--a1);
}

.metric-chip.on {
  color: var(--tx);
  border-color: rgba(255, 180, 84, 0.36);
  background: rgba(255, 138, 43, 0.12);
}

.studio-viewport {
  display: flex;
}

.studio-game-backdrop {
  flex: 1;
  min-height: 340px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 138, 43, 0.18), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(82, 214, 154, 0.12), transparent 50%),
    linear-gradient(135deg, #12151e 0%, #0b0d12 100%);
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.studio-corner-label {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 0.74rem;
  color: var(--mu);
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

/* Live Overlay Preview Layouts (matching renderer/overlay.css) */
.live-ovl {
  background:
    radial-gradient(120% 70% at 18% -12%, rgba(255, 180, 84, 0.2), transparent 62%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03) 55%),
    rgba(14, 15, 19, 0.94);
  border: 1px solid rgba(255, 180, 84, 0.42);
  border-radius: 16px;
  padding: 12px 0 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 138, 43, 0.18);
  transition: all 0.22s var(--ease);
  width: 215px;
}

.live-ovl.size-small { transform: scale(0.88); }
.live-ovl.size-medium { transform: scale(1); }
.live-ovl.size-large { transform: scale(1.12); }

.live-ovl.layout-horizontal {
  width: 100%;
  max-width: 520px;
  padding: 10px 14px;
}

.live-ovl.layout-horizontal .live-ovl-metrics {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
}

.live-ovl.layout-horizontal .lm-bar {
  display: none;
}

.live-ovl.layout-compact {
  width: 170px;
}

.live-ovl.layout-compact .lm-bar,
.live-ovl.layout-compact .lm-sub {
  display: none;
}

.live-ovl.layout-expanded {
  width: 260px;
}

.live-ovl-metrics {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.live-metric.hidden-metric {
  display: none;
}

.lm-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.lm-ico { color: var(--a3); width: 14px; }
.lm-lbl { color: var(--mu); flex: 1; }
.lm-sub { font-size: 0.68rem; color: var(--mu-dim); }
.lm-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.lm-val.good { color: var(--ok); }
.lm-val.warn { color: var(--a3); }

.lm-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}

.lm-fill.good { height: 100%; background: var(--ok); }
.lm-fill.warn { height: 100%; background: var(--a3); }

/* Playtime Tracking Specs & Showcase Card */
.tracking-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ts-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px 18px;
}

.ts-item strong {
  display: block;
  font-family: var(--f-brand);
  font-size: 0.92rem;
  color: var(--a3);
  margin-bottom: 4px;
}

.ts-item span {
  font-size: 0.9rem;
  color: var(--mu);
}

.stats-showcase-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--specular), var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sc-top-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sc-stat {
  background: var(--panel2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.sc-stat b {
  font-family: var(--f-brand);
  font-size: 1.15rem;
}

.sc-stat span {
  font-size: 0.74rem;
  color: var(--mu);
}

.sc-chart-box {
  background: rgba(13, 14, 17, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px;
}

.sc-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.84rem;
}

.sc-pill {
  font-size: 0.72rem;
  background: rgba(255, 138, 43, 0.16);
  color: var(--a3);
  padding: 2px 10px;
  border-radius: 999px;
}

.sc-bars {
  height: 110px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
}

.sc-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.sc-b {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  background: rgba(255, 138, 43, 0.38);
}

.sc-col.now .sc-b {
  background: var(--grad);
  box-shadow: 0 0 14px rgba(255, 122, 26, 0.45);
}

.sc-col span {
  font-size: 0.7rem;
  color: var(--mu);
}

.sc-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 11px;
}

.rk-num {
  font-family: var(--f-brand);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--a3);
  width: 20px;
}

.rk-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rk-body b { font-size: 0.86rem; }
.rk-body span { font-size: 0.74rem; color: var(--mu); }
.rk-body u {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  text-decoration: none;
}

/* Composition D: Editorial Bento Grid (Features 5, 6, 7, 8) */
.feature-editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.editorial-card {
  grid-column: span 6;
  background: var(--surf), var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--specular), var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.editorial-card h3 {
  font-family: var(--f-brand);
  font-size: 1.32rem;
  font-weight: 750;
  margin-bottom: 10px;
}

.editorial-card p {
  color: var(--mu);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Theme Preview Widget */
.theme-preview-widget {
  background: #111217;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  transition: all 0.25s var(--ease);
}

.theme-preview-widget[data-preview-mode="light"] {
  background: #f4f0ec;
  color: #2a1d15;
  border-color: rgba(0, 0, 0, 0.15);
}

.theme-preview-widget[data-preview-mode="light"] .tp-sample-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

.theme-preview-widget[data-preview-mode="light"] .tp-sample-card span {
  color: #6d625a;
}

.tp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tp-switch-group {
  display: flex;
  gap: 6px;
}

.tp-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(128, 128, 128, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.tp-btn.on {
  background: var(--grad);
  color: var(--on-a);
  border-color: transparent;
}

.tp-sample-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
}

.tp-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  flex-shrink: 0;
}

.tp-sample-card b {
  display: block;
  font-size: 0.86rem;
}

.tp-sample-card span {
  font-size: 0.76rem;
  color: var(--mu);
}

/* Welcome Quote Replica (from renderer/welcome.html) */
.welcome-quote-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.welcome-toast-replica {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 15px;
  background:
    radial-gradient(120% 90% at 12% -20%, rgba(255, 180, 84, 0.22), transparent 60%),
    rgba(23, 24, 29, 0.95);
  border: 1px solid rgba(255, 180, 84, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.wt-brand {
  display: block;
  font-family: var(--f-brand);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--a3);
  margin-bottom: 2px;
}

.wt-msg {
  font-size: 0.9rem !important;
  color: var(--tx) !important;
  font-weight: 550;
}

/* Updater & Tray Replicas */
.updater-mini-replica,
.tray-settings-replica {
  background: rgba(13, 14, 17, 0.65);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px;
}

.umr-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.umr-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.umr-text b { font-size: 0.86rem; }
.umr-text span { font-size: 0.75rem; color: var(--mu); }
.umr-link { font-size: 0.8rem; font-weight: 700; color: var(--a3); }

.tray-settings-replica {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tray-toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.fake-toggle {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--grad);
  position: relative;
  display: inline-block;
}

.fake-toggle i {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--on-a);
}

/* ============================================================================
   SECTION 4 — THE EMBER EXPERIENCE (INTERACTIVE JOURNEY)
   ============================================================================ */
.journey-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: stretch;
}

.journey-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.journey-step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.journey-step.active {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 180, 84, 0.16), transparent 65%),
    var(--panel);
  border-color: rgba(255, 180, 84, 0.42);
  box-shadow: var(--specular), var(--shadow-md);
}

.step-num {
  font-family: var(--f-brand);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--a3);
  background: rgba(255, 138, 43, 0.14);
  border: 1px solid rgba(255, 180, 84, 0.28);
  padding: 5px 10px;
  border-radius: 8px;
}

.step-body h3 {
  font-family: var(--f-brand);
  font-size: 1.04rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.88rem;
  color: var(--mu);
  line-height: 1.55;
}

.journey-stage {
  display: flex;
}

.js-card {
  flex: 1;
  background:
    radial-gradient(100% 80% at 90% 10%, rgba(255, 122, 26, 0.15), transparent 65%),
    var(--surf),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--specular), var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.js-step-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--f-brand);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--a3);
  background: rgba(255, 138, 43, 0.14);
  border: 1px solid rgba(255, 180, 84, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.js-title {
  font-family: var(--f-brand);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.24;
  margin-bottom: 14px;
}

.js-desc {
  color: var(--mu);
  font-size: 1rem;
  line-height: 1.68;
  margin-bottom: 28px;
}

.js-mock-box {
  background: rgba(13, 14, 17, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.js-mock-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
}

.js-mock-quote {
  font-size: 0.95rem;
  color: var(--a3);
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

/* ============================================================================
   SECTION 5 — PERFORMANCE AND SIMPLICITY
   ============================================================================ */
.simplicity-shell {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 56px;
  box-shadow: var(--specular), var(--shadow-lg);
}

.simplicity-intro {
  max-width: 720px;
  margin-bottom: 44px;
}

.simplicity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.simp-card {
  background: rgba(13, 14, 17, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.simp-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 138, 43, 0.14);
  border: 1px solid rgba(255, 180, 84, 0.3);
  color: var(--a3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.simp-card h3 {
  font-family: var(--f-brand);
  font-size: 1.02rem;
  font-weight: 750;
}

.simp-card p {
  font-size: 0.9rem;
  color: var(--mu);
  line-height: 1.62;
}

/* ============================================================================
   SECTION 6 — FINAL DOWNLOAD CTA
   ============================================================================ */
.final-cta-card {
  position: relative;
  text-align: center;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(255, 138, 43, 0.22), transparent 70%),
    var(--surf),
    var(--panel);
  border: 1px solid rgba(255, 180, 84, 0.36);
  border-radius: var(--r-xl);
  padding: 72px 36px;
  box-shadow: var(--specular), var(--shadow-lg);
  overflow: hidden;
}

.final-cta-logo {
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 20px rgba(255, 122, 26, 0.55));
}

.final-cta-headline {
  font-family: var(--f-brand);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 850;
  margin-bottom: 12px;
}

.final-cta-desc {
  font-size: 1.18rem;
  color: var(--mu);
  margin-bottom: 32px;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.final-cta-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--mu);
}

.final-cta-meta a {
  color: var(--a3);
  font-weight: 600;
}

/* ============================================================================
   INNER PAGES: DOWNLOAD, WHAT'S NEW, ABOUT, FAQ, PRIVACY
   ============================================================================ */
.page-hero {
  padding: 56px 0 88px;
}

.page-hero-header {
  max-width: 780px;
  margin-bottom: 48px;
}

.page-headline {
  font-family: var(--f-brand);
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.page-lead {
  font-size: 1.12rem;
  color: var(--mu);
  line-height: 1.65;
}

/* Download Page Hub */
.download-hub-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: start;
}

.download-primary-card,
.download-specs-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--specular), var(--shadow-lg);
}

.dpc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}

.dpc-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dpc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dpc-brand h2 {
  font-family: var(--f-brand);
  font-size: 1.4rem;
  font-weight: 800;
}

.dpc-sub {
  font-size: 0.88rem;
  color: var(--mu);
}

.dpc-version-box {
  text-align: right;
  background: rgba(255, 138, 43, 0.1);
  border: 1px solid rgba(255, 180, 84, 0.3);
  padding: 10px 16px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
}

.dpc-v-label { font-size: 0.7rem; color: var(--mu); text-transform: uppercase; }
.dpc-v-num { font-family: var(--f-brand); font-size: 1.25rem; color: var(--a3); }
.dpc-v-date { font-size: 0.75rem; color: var(--mu); }

.dpc-installer-panel {
  background: rgba(13, 14, 17, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dpc-file-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dpc-file-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mu);
}

.dpc-filename {
  font-size: 1rem;
  padding: 8px 12px;
  align-self: flex-start;
}

.dpc-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--mu);
}

.dpc-status-note {
  font-size: 0.8rem;
  color: var(--mu);
  margin-top: 10px;
  text-align: center;
}

.dpc-secondary-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dpc-alt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
}

.dpc-alt-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.dpc-alt-item span {
  font-size: 0.8rem;
  color: var(--mu);
}

.download-specs-card h3 {
  font-family: var(--f-brand);
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.spec-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.spec-row dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mu);
  margin-bottom: 3px;
}

.spec-row dd {
  font-size: 0.92rem;
  font-weight: 600;
}

.specs-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-link {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--a3);
}

.text-link:hover {
  text-decoration: underline;
}

.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.install-step-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 30px;
}

.is-num {
  display: inline-block;
  font-family: var(--f-brand);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--a3);
  margin-bottom: 12px;
}

.install-step-card h3 {
  font-family: var(--f-brand);
  font-size: 1.14rem;
  margin-bottom: 10px;
}

.install-step-card p {
  font-size: 0.92rem;
  color: var(--mu);
}

.troubleshooting-box {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 44px;
}

.tb-header {
  margin-bottom: 30px;
}

.tb-header h2 {
  font-family: var(--f-brand);
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.tb-header p {
  color: var(--mu);
}

.tb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tb-item {
  background: rgba(13, 14, 17, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 22px;
}

.tb-item h3 {
  font-family: var(--f-brand);
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.tb-item p {
  font-size: 0.88rem;
  color: var(--mu);
  line-height: 1.62;
}

/* ============================================================================
   WHAT'S NEW / RELEASE HISTORY TIMELINE
   ============================================================================ */
.changelog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  margin-bottom: 28px;
}

.ct-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--mu);
}

.ct-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ct-filter-group {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

.ct-filter-btn {
  padding: 5px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--mu);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.ct-filter-btn.on {
  background: rgba(255, 138, 43, 0.2);
  color: var(--a3);
}

.latest-spotlight-wrap {
  margin-bottom: 44px;
}

.spotlight-banner {
  background:
    radial-gradient(90% 100% at 10% 0%, rgba(255, 180, 84, 0.2), transparent 65%),
    var(--surf),
    var(--panel);
  border: 1px solid rgba(255, 180, 84, 0.4);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--specular), var(--shadow-lg);
}

.sb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ok);
  margin-bottom: 6px;
}

.sb-version {
  font-family: var(--f-brand);
  font-size: 2rem;
  font-weight: 850;
  margin-bottom: 4px;
}

.sb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--mu);
}

.sb-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.changelog-timeline {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: start;
}

.ce-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 18px;
  position: sticky;
  top: 108px;
}

.ce-version {
  font-family: var(--f-brand);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tx);
}

.ce-channel {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-stable {
  background: rgba(82, 214, 154, 0.14);
  color: var(--ok);
  border: 1px solid rgba(82, 214, 154, 0.35);
}

.badge-prerelease {
  background: rgba(255, 180, 84, 0.14);
  color: var(--a3);
  border: 1px solid rgba(255, 180, 84, 0.35);
}

.ce-date {
  font-size: 0.82rem;
  color: var(--mu);
}

.ce-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--specular), var(--shadow-md);
}

.changelog-entry.is-latest .ce-card {
  border-color: rgba(255, 180, 84, 0.38);
}

.ce-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.ce-title {
  font-family: var(--f-brand);
  font-size: 1.3rem;
  font-weight: 750;
}

.ce-subtitle {
  font-size: 0.84rem;
  color: var(--mu);
}

.ce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ce-body .md-heading {
  font-family: var(--f-brand);
  font-size: 1rem;
  color: var(--tx);
  margin: 14px 0 8px;
}

.ce-body .md-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ce-body .md-list li {
  position: relative;
  padding-left: 20px;
  color: var(--mu);
  font-size: 0.96rem;
  line-height: 1.65;
}

.ce-body .md-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.ce-body .md-para {
  color: var(--mu);
  margin-bottom: 10px;
}

.ce-body .md-link {
  color: var(--a3);
  text-decoration: underline;
}

/* ============================================================================
   ABOUT, FAQ, & PRIVACY PAGES
   ============================================================================ */
.manifesto-card {
  background:
    radial-gradient(90% 80% at 10% 0%, rgba(255, 180, 84, 0.16), transparent 65%),
    var(--surf),
    var(--panel);
  border: 1px solid rgba(255, 180, 84, 0.34);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--specular), var(--shadow-lg);
}

.manifesto-logo {
  margin-bottom: 24px;
}

.manifesto-quote {
  font-family: var(--f-brand);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--tx);
  margin-bottom: 24px;
}

.manifesto-body {
  font-size: 1.04rem;
  color: var(--mu);
  line-height: 1.72;
  margin-bottom: 16px;
  max-width: 820px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.principle-item {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 30px;
}

.pi-tag {
  display: inline-block;
  font-family: var(--f-brand);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--a3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.principle-item h3 {
  font-family: var(--f-brand);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.principle-item p {
  color: var(--mu);
  font-size: 0.95rem;
}

.architecture-summary-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 44px;
}

.asc-copy h2 {
  font-family: var(--f-brand);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.asc-copy p {
  color: var(--mu);
  max-width: 780px;
  margin-bottom: 24px;
}

.asc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* FAQ Controls & Accordion */
.faq-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.faq-search-wrap {
  position: relative;
}

.faq-search-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mu);
}

.faq-search-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.96rem;
}

.faq-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-cat-btn {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  color: var(--mu);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-cat-btn.on {
  background: var(--grad);
  color: var(--on-a);
  border-color: transparent;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}

.faq-item {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item[open] {
  border-color: rgba(255, 180, 84, 0.38);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--f-brand);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
}

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

.faq-chevron {
  color: var(--a3);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--mu);
  font-size: 0.96rem;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.faq-answer a {
  color: var(--a3);
  text-decoration: underline;
}

.faq-empty-state {
  padding: 32px;
  text-align: center;
  background: var(--panel);
  border-radius: var(--r-md);
  color: var(--mu);
  margin-bottom: 32px;
}

.faq-support-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.faq-support-card h2 {
  font-family: var(--f-brand);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.faq-support-card p {
  color: var(--mu);
}

.faq-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Privacy Policy & Legal Layout */
.legal-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}

.legal-side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-doc-card {
  background: var(--surf), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--specular), var(--shadow-md);
}

.ldc-header {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.ldc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--a3);
  margin-bottom: 8px;
}

.ldc-header h2 {
  font-family: var(--f-brand);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.ldc-date {
  font-size: 0.84rem;
  color: var(--mu);
}

.ldc-section {
  margin-bottom: 22px;
}

.ldc-section:last-child {
  margin-bottom: 0;
}

.ldc-section h3 {
  font-family: var(--f-brand);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--tx);
}

.ldc-section p {
  font-size: 0.94rem;
  color: var(--mu);
  line-height: 1.68;
}

.ldc-section a {
  color: var(--a3);
  text-decoration: underline;
}

.verification-notice-card {
  background: rgba(255, 138, 43, 0.08);
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: var(--r-lg);
  padding: 26px;
}

.verification-notice-card h3 {
  font-family: var(--f-brand);
  font-size: 1rem;
  color: var(--a3);
  margin-bottom: 8px;
}

.verification-notice-card p {
  font-size: 0.88rem;
  color: var(--mu);
  margin-bottom: 12px;
}

.verification-notice-card ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mu);
}

/* ============================================================================
   DOWNLOAD FEEDBACK DRAWER / TOAST
   ============================================================================ */
.download-feedback-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  max-width: 420px;
  width: calc(100vw - 32px);
}

.download-feedback-card {
  background:
    radial-gradient(120% 90% at 10% -10%, rgba(255, 180, 84, 0.22), transparent 60%),
    rgba(23, 24, 29, 0.96);
  border: 1px solid rgba(255, 180, 84, 0.45);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(18px);
}

.df-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.df-title {
  font-family: var(--f-brand);
  font-size: 0.92rem;
  flex: 1;
}

.df-close {
  background: transparent;
  border: none;
  color: var(--mu);
  cursor: pointer;
  padding: 4px;
}

.df-body {
  font-size: 0.86rem;
  color: var(--mu);
  line-height: 1.55;
  margin-bottom: 12px;
}

.df-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 11, 14, 0.85);
  padding: 72px 0 36px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--mu);
  line-height: 1.65;
  max-width: 400px;
  margin-bottom: 18px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-heading {
  font-family: var(--f-brand);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tx);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--mu);
}

.footer-links a:hover {
  color: var(--a3);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--mu-dim);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-links a:hover {
  color: var(--tx);
}

/* ============================================================================
   SCROLL REVEAL ANIMATIONS & REDUCED MOTION
   ============================================================================ */
.reveal-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-anim-ready .reveal-up:not(.in-view) {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-anim-ready .reveal-up:not(.in-view) {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS (LAPTOP, TABLET, MOBILE)
   ============================================================================ */
@media (max-width: 1080px) {
  .intro-pillars {
    grid-template-columns: 1fr;
  }
  .feature-split-block,
  .feature-split-block.reverse,
  .overlay-studio-grid,
  .journey-layout,
  .download-hub-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .feature-split-block.reverse .feature-split-copy {
    order: 1;
  }
  .feature-split-block.reverse .feature-split-visual {
    order: 2;
  }
  .simplicity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-floating-overlay {
    position: static;
    width: 100%;
    margin-top: 16px;
  }
  .app-view-header {
    padding-right: 0;
  }
}

@media (max-width: 860px) {
  .primary-nav,
  .nav-github-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .app-shell-grid {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 14px;
  }
  .app-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .app-nav-btn {
    width: auto;
    white-space: nowrap;
  }
  .app-sidebar-bottom {
    display: none;
  }
  .app-win-bar {
    position: static;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
  }
  .app-session-bar {
    position: static;
    margin: 0 16px 16px;
  }
  .app-viewport {
    padding: 20px 16px;
  }
  .editorial-card {
    grid-column: span 12;
  }
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ce-meta {
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 0;
  }
  .install-steps-grid,
  .tb-grid,
  .principles-grid,
  .footer-top,
  .footer-nav-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }
  .section-spacer {
    padding: 72px 0;
  }
  .hero-section {
    padding: 32px 0 56px;
  }
  .app-stats-row,
  .sc-top-metrics,
  .demo-mini-grid,
  .simplicity-grid {
    grid-template-columns: 1fr;
  }
  .feature-studio-block,
  .simplicity-shell,
  .final-cta-card,
  .manifesto-card,
  .troubleshooting-box,
  .download-primary-card,
  .download-specs-card,
  .legal-doc-card {
    padding: 24px 20px;
  }
  .hero-actions .btn,
  .final-cta-actions .btn {
    width: 100%;
  }
}

