/* ==========================================================================
   Lucent 2D Product Showcase — Haute Liquid-Glass & Kinetic Motion System
   1. Pure Frost (凝霜留白): Pearlescent Alabaster, Iridescent Daylight Ribbons,
      Double-Specular Bevels & Multi-Stop Studio Elevation
   2. Prism Pulse (霓彩流光): Deep Obsidian Glass, Volumetric Aurora Caustics,
      Cursor-Tracked Specular Edge Refraction & Tactile Spring Choreography
   ========================================================================== */

:root,
[data-theme="pure-frost"] {
  color-scheme: light;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.42, 0.64, 1);

  /* Layered Pearlescent Surfaces */
  --bg-canvas: #f4f7fc;
  --bg-section-alt: rgba(232, 239, 250, 0.62);
  --bg-elevated: rgba(255, 255, 255, 0.84);
  --bg-panel: rgba(255, 255, 255, 0.88);
  --bg-panel-solid: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-well: rgba(236, 242, 251, 0.82);
  --bg-well-strong: rgba(224, 233, 246, 0.88);
  --bg-input: rgba(240, 245, 252, 0.92);
  --bg-pill: rgba(15, 23, 42, 0.048);
  --bg-pill-hover: rgba(0, 102, 220, 0.09);
  --bg-row-selected: rgba(0, 102, 220, 0.095);

  /* High-Contrast Ink & Slate Typography */
  --text-primary: #0a1120;
  --text-secondary: #334155;
  --text-tertiary: #5b6b84;
  --text-on-accent: #ffffff;

  /* Architectural Cobalt, Iris & Cyan Accents */
  --accent-primary: #0066dc;
  --accent-secondary: #4f46e5;
  --accent-badge-text: #0052b5;
  --accent-badge-bg: rgba(0, 102, 220, 0.085);
  --accent-badge-border: rgba(0, 102, 220, 0.22);
  --accent-gradient: linear-gradient(135deg, #006be6 0%, #4338ca 54%, #0284c7 100%);
  --headline-gradient: linear-gradient(125deg, #0055c4 0%, #4f46e5 44%, #0891b2 78%, #0055c4 100%);

  /* Double-Specular Hairline Borders */
  --rim-outer: rgba(15, 23, 42, 0.088);
  --rim-strong: rgba(15, 23, 42, 0.15);
  --rim-subtle: rgba(15, 23, 42, 0.062);
  --rim-selected: rgba(0, 102, 220, 0.42);
  --bevel-top: #ffffff;

  /* Multi-Layer Studio Diffusion Shadows + Double Specular Inner Rim */
  --shadow-nav:
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 18px 38px -10px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(15, 23, 42, 0.072),
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(15, 23, 42, 0.03);
  --shadow-panel:
    0 4px 10px rgba(15, 23, 42, 0.035),
    0 24px 52px -12px rgba(15, 35, 75, 0.11),
    0 52px 104px -24px rgba(0, 72, 168, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.085),
    inset 0 1.5px 0 #ffffff,
    inset 0 -1px 0 rgba(15, 23, 42, 0.04);
  --shadow-card:
    0 1px 3px rgba(15, 23, 42, 0.03),
    0 12px 30px -10px rgba(15, 23, 42, 0.072),
    0 0 0 1px rgba(15, 23, 42, 0.074),
    inset 0 1px 0 #ffffff;
  --shadow-card-hover:
    0 6px 14px rgba(15, 23, 42, 0.045),
    0 24px 48px -12px rgba(0, 88, 199, 0.15),
    0 0 0 1px rgba(0, 102, 220, 0.28),
    inset 0 1.5px 0 #ffffff;
  --shadow-cta:
    0 10px 26px -6px rgba(0, 102, 220, 0.38),
    0 2px 6px rgba(67, 56, 202, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);

  /* Sculpted 3D Keycaps */
  --keycap-bg: linear-gradient(180deg, #ffffff 0%, #eef3fa 100%);
  --keycap-border: rgba(15, 23, 42, 0.15);
  --keycap-shadow: 0 2px 0 rgba(15, 23, 42, 0.11), 0 2px 4px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
  --keycap-text: #1e293b;

  /* Adaptive Code Studio */
  --studio-bg: #f8fafd;
  --studio-head: #edf2fa;
  --studio-border: rgba(15, 23, 42, 0.10);
  --studio-text: #0f172a;
  --studio-muted: #5b6b82;
  --studio-kw: #005cc5;
  --studio-str: #047857;
  --studio-key: #4338ca;
  --studio-prompt: #0284c7;

  /* Atmosphere & Spotlight Tokens (Visible Iridescence in Pure Frost too!) */
  --aurora-opacity: 0.55;
  --orb-1-bg: radial-gradient(circle, rgba(56, 189, 248, 0.26) 0%, rgba(99, 102, 241, 0.12) 52%, transparent 74%);
  --orb-2-bg: radial-gradient(circle, rgba(168, 85, 247, 0.20) 0%, rgba(236, 72, 153, 0.10) 50%, transparent 74%);
  --orb-3-bg: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(14, 165, 233, 0.10) 52%, transparent 75%);
  --studio-light-opacity: 1;
  --grid-color: rgba(15, 23, 42, 0.036);
  --glare-color: rgba(0, 102, 220, 0.068);
  --border-glow: rgba(0, 102, 220, 0.52);
  --conduit-track: rgba(15, 23, 42, 0.11);
  --conduit-beam: #0066dc;

  /* Continuous Radii Synced with docs/DESIGN_SYSTEM.md */
  --radius-panel: 28px;
  --radius-bento: 22px;
  --radius-card: 18px;
  --radius-row: 14px;
  --radius-control: 12px;

  --status-ok: #047857;
  --status-ok-bg: rgba(5, 150, 105, 0.11);
  --status-warn: #b45309;
  --status-danger: #be123c;
  --status-danger-bg: rgba(225, 29, 72, 0.095);
}

[data-theme="prism-pulse"] {
  color-scheme: dark;

  --bg-canvas: #070714;
  --bg-section-alt: rgba(15, 14, 34, 0.68);
  --bg-elevated: rgba(20, 19, 44, 0.74);
  --bg-panel: rgba(17, 16, 38, 0.76);
  --bg-panel-solid: rgba(19, 18, 42, 0.88);
  --bg-card: rgba(26, 24, 54, 0.62);
  --bg-card-hover: rgba(35, 32, 72, 0.78);
  --bg-well: rgba(10, 10, 25, 0.66);
  --bg-well-strong: rgba(7, 7, 18, 0.84);
  --bg-input: rgba(11, 10, 27, 0.80);
  --bg-pill: rgba(255, 255, 255, 0.078);
  --bg-pill-hover: rgba(255, 255, 255, 0.14);
  --bg-row-selected: rgba(112, 84, 246, 0.32);

  --text-primary: #f8faff;
  --text-secondary: rgba(216, 222, 248, 0.86);
  --text-tertiary: rgba(160, 170, 212, 0.72);
  --text-on-accent: #ffffff;

  --accent-primary: #7c5cfc;
  --accent-secondary: #22d3ee;
  --accent-badge-text: #67e8f9;
  --accent-badge-bg: rgba(34, 211, 238, 0.12);
  --accent-badge-border: rgba(103, 232, 249, 0.28);
  --accent-gradient: linear-gradient(135deg, #14ccfa 0%, #7c5cfc 52%, #f45ca2 100%);
  --headline-gradient: linear-gradient(125deg, #38bdf8 0%, #a78bfa 42%, #f472b6 78%, #38bdf8 100%);

  --rim-outer: rgba(255, 255, 255, 0.13);
  --rim-strong: rgba(255, 255, 255, 0.24);
  --rim-subtle: rgba(255, 255, 255, 0.085);
  --rim-selected: rgba(103, 232, 249, 0.54);
  --bevel-top: rgba(255, 255, 255, 0.24);

  --shadow-nav:
    0 18px 42px -12px rgba(2, 2, 10, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --shadow-panel:
    0 40px 96px -18px rgba(2, 2, 12, 0.86),
    0 0 64px -18px rgba(124, 92, 252, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  --shadow-card:
    0 20px 46px -16px rgba(3, 2, 14, 0.64),
    0 0 0 1px rgba(255, 255, 255, 0.105),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --shadow-card-hover:
    0 28px 58px -14px rgba(124, 92, 252, 0.30),
    0 0 0 1px rgba(103, 232, 249, 0.40),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.26);
  --shadow-cta:
    0 14px 34px -8px rgba(124, 92, 252, 0.58),
    0 2px 10px rgba(20, 204, 250, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);

  --keycap-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.06) 100%);
  --keycap-border: rgba(255, 255, 255, 0.22);
  --keycap-shadow: 0 2px 0 rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --keycap-text: #f8fafc;

  --studio-bg: #0b0a1d;
  --studio-head: rgba(255, 255, 255, 0.048);
  --studio-border: rgba(255, 255, 255, 0.13);
  --studio-text: #e6edf8;
  --studio-muted: #8b98b8;
  --studio-kw: #67e8f9;
  --studio-str: #6ee7b7;
  --studio-key: #c4b5fd;
  --studio-prompt: #38bdf8;

  --aurora-opacity: 1;
  --orb-1-bg: radial-gradient(circle, rgba(20, 204, 250, 0.24) 0%, rgba(124, 92, 252, 0.10) 54%, transparent 76%);
  --orb-2-bg: radial-gradient(circle, rgba(244, 92, 162, 0.20) 0%, rgba(124, 92, 252, 0.13) 52%, transparent 76%);
  --orb-3-bg: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, rgba(56, 189, 248, 0.09) 54%, transparent 76%);
  --studio-light-opacity: 0;
  --grid-color: rgba(255, 255, 255, 0.042);
  --glare-color: rgba(103, 232, 249, 0.11);
  --border-glow: rgba(103, 232, 249, 0.72);
  --conduit-track: rgba(255, 255, 255, 0.12);
  --conduit-beam: #38bdf8;

  --status-ok: #34d399;
  --status-ok-bg: rgba(52, 211, 153, 0.15);
  --status-warn: #fbbf24;
  --status-danger: #fb7185;
  --status-danger-bg: rgba(251, 113, 133, 0.15);
}

/* View Transition Circular Iris Support */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.64;
  overflow-x: clip;
  transition: background-color 0.45s var(--ease-snappy), color 0.3s ease;
}

code,
kbd,
pre,
.mono {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

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

button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* ==========================================================================
   1. Volumetric Liquid-Glass Atmosphere & Breathing Aurora Ribbons
   ========================================================================== */
.scroll-beam {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--accent-gradient);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
  z-index: 240;
  pointer-events: none;
}

.studio-daylight {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: var(--studio-light-opacity);
  transition: opacity 0.5s ease;
  background:
    radial-gradient(ellipse 90% 52% at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0.80) 46%, transparent 80%),
    radial-gradient(circle 720px at 86% 14%, rgba(0, 102, 220, 0.065), transparent 72%),
    radial-gradient(circle 660px at 14% 30%, rgba(79, 70, 229, 0.058), transparent 72%);
}

.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--aurora-opacity);
  transition: opacity 0.55s ease;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  will-change: transform;
}

.orb-1 {
  width: 56vw;
  height: 56vw;
  max-width: 780px;
  max-height: 780px;
  top: -15%;
  left: -9%;
  background: var(--orb-1-bg);
  animation: auroraFloatA 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  top: 12%;
  right: -11%;
  background: var(--orb-2-bg);
  animation: auroraFloatB 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  bottom: -14%;
  left: 24%;
  background: var(--orb-3-bg);
  animation: auroraFloatA 25s ease-in-out infinite alternate-reverse;
}

@keyframes auroraFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(38px, 28px, 0) scale(1.08); }
}

@keyframes auroraFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1.04); }
  100% { transform: translate3d(-42px, 34px, 0) scale(0.95); }
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 88% 64% at 50% 20%, #000 18%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 88% 64% at 50% 20%, #000 18%, transparent 82%);
}

.optical-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.024;
  background-image: radial-gradient(rgba(128, 128, 160, 0.7) 0.75px, transparent 0.75px);
  background-size: 18px 18px;
}

.section-band {
  background-color: var(--bg-section-alt);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--rim-subtle);
  border-bottom: 1px solid var(--rim-subtle);
  position: relative;
}

.section-band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rim-selected), transparent);
  opacity: 0.55;
  pointer-events: none;
}

/* ==========================================================================
   2. Cursor-Tracked Specular Border Glow & Surface Caustics (.spotlight-surface)
   ========================================================================== */
.spotlight-surface {
  position: relative;
  backdrop-filter: blur(26px) saturate(175%);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
}

.spotlight-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.25px;
  background: radial-gradient(
    360px circle at var(--mx, -999px) var(--my, -999px),
    var(--border-glow),
    transparent 62%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: var(--spot-alpha, 0);
  transition: opacity 0.32s ease;
  pointer-events: none;
  z-index: 3;
}

.spotlight-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mx, -999px) var(--my, -999px),
    var(--glare-color),
    transparent 68%
  );
  opacity: var(--spot-alpha, 0);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-surface > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   3. Floating Liquid-Glass Navbar with Zero-Artifact Spring Glider Pill
   ========================================================================== */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 160;
  padding: 0 20px;
  pointer-events: none;
}

.nav-capsule {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 11px 7px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  box-shadow: var(--shadow-nav);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-spring);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  font-size: 15px;
  letter-spacing: -0.016em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(36, 148, 252, 0.42);
  transition: transform 0.35s var(--ease-bounce);
}

.brand-link:hover .brand-icon {
  transform: rotate(-6deg) scale(1.08);
}

.brand-tag {
  font-size: 11px;
  font-weight: 650;
  padding: 2.5px 8.5px;
  border-radius: 999px;
  background: var(--bg-pill);
  border: 1px solid var(--rim-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(128, 138, 168, 0.06);
  border: 1px solid var(--rim-subtle);
}

/* Strictly hidden (opacity: 0 & transparent border) when unmeasured so width: 0 NEVER draws a vertical line! */
.nav-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  opacity: 0;
  border-radius: 999px;
  background: var(--accent-badge-bg);
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 102, 220, 0.08), inset 0 1px 0 var(--bevel-top);
  transition: transform 0.38s var(--ease-spring), width 0.38s var(--ease-spring), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.nav-links.glider-ready .nav-glider {
  opacity: 1;
  border-color: var(--accent-badge-border);
}

.nav-links a {
  position: relative;
  z-index: 1;
  padding: 5.5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 620;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.22s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--accent-badge-text);
  font-weight: 700;
}

.nav-links:not(.glider-ready) a.active {
  background: var(--accent-badge-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rim-outer);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 var(--bevel-top);
  transition: transform 0.22s var(--ease-bounce), background 0.2s ease, border-color 0.2s ease;
}

.pill-btn:hover {
  background: var(--bg-pill-hover);
  border-color: var(--rim-selected);
  transform: translateY(-1.5px);
}

.pill-btn:active {
  transform: scale(0.95);
}

.theme-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 680;
  white-space: nowrap;
  box-shadow: var(--shadow-cta);
  transition: transform 0.22s var(--ease-spring), filter 0.2s ease;
}

.btn-primary-sm:hover {
  filter: brightness(1.06);
}

/* ==========================================================================
   4. Shared Typography, Animated Gradient Shimmer & Tactile Keycaps
   ========================================================================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  box-shadow: inset 0 1px 0 var(--bevel-top);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--accent-badge-text);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.82rem, 3.05vw, 2.55rem);
  font-weight: 820;
  letter-spacing: -0.028em;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--text-primary);
  text-wrap: balance;
}

.title-clause {
  display: inline-block;
  max-width: 100%;
}

.section-desc {
  font-size: clamp(1rem, 1.28vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0;
  line-height: 1.7;
  text-wrap: pretty;
}

.gradient-text {
  background: var(--headline-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shimmer-text {
  animation: textPrismFlow 8s linear infinite;
}

@keyframes textPrismFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

kbd.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  min-width: 24px;
  height: 22px;
  border-radius: 6.5px;
  font-size: 11px;
  font-weight: 660;
  background: var(--keycap-bg);
  border: 1px solid var(--keycap-border);
  box-shadow: var(--keycap-shadow);
  color: var(--keycap-text);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.14s var(--ease-bounce), box-shadow 0.14s ease, border-color 0.18s ease;
}

kbd.keycap.pressed {
  transform: translateY(2px) scale(0.94);
  border-color: var(--rim-selected);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), inset 0 1px 2px rgba(0, 102, 220, 0.25);
}

.accent-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9.5px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  color: var(--accent-badge-text);
}

.ok-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9.5px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--status-ok-bg);
  color: var(--status-ok);
}

.subtle-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10.5px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--bg-well);
  border: 1px solid var(--rim-subtle);
  color: var(--text-secondary);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-spring);
}

.subtle-chip:hover {
  border-color: var(--rim-selected);
  transform: translateY(-1px);
}

/* ==========================================================================
   5. ACT I · Hero Entrance Choreography & 3D Interactive 880×544 Stage
   ========================================================================== */
.hero-section {
  padding: 124px 0 72px;
  position: relative;
}

.hero-stagger {
  opacity: 0;
  transform: translateY(22px) scale(0.988);
  filter: blur(6px);
  animation: heroCurtainIn 0.85s var(--ease-spring) forwards;
  animation-delay: var(--stagger, 0ms);
}

@keyframes heroCurtainIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-copy {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 34px;
  will-change: transform, opacity;
}

.hero-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5.5px 13.5px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 620;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rim-outer);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), inset 0 1px 0 var(--bevel-top);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: transform 0.24s var(--ease-bounce), border-color 0.22s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  border-color: var(--rim-selected);
}

.hero-badge-btn {
  cursor: pointer;
}

.hero-badge-btn:active {
  transform: translateY(0) scale(0.975);
}

.hero-badge-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.pulse-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: var(--status-ok);
  box-shadow: 0 0 0 0 var(--status-ok);
  animation: statusPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes statusPing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.16rem, 4.25vw, 3.65rem);
  font-weight: 860;
  letter-spacing: -0.035em;
  line-height: 1.16;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero-title > span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.32vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 28px;
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.magnetic-btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn-hero-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 42%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: rotate(24deg);
  animation: ctaSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaSweep {
  0%, 68% { left: -60%; }
  100% { left: 140%; }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-cta);
  transition: transform 0.24s var(--ease-spring), box-shadow 0.24s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--rim-strong);
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 660;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s var(--ease-spring), border-color 0.2s ease, box-shadow 0.24s ease;
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--rim-selected);
  box-shadow: var(--shadow-card-hover);
}

.launcher-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.preset-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-tertiary);
  margin-right: 4px;
}

.preset-chip {
  padding: 6.5px 13.5px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  border: 1px solid var(--rim-outer);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), inset 0 1px 0 var(--bevel-top);
  transition: transform 0.22s var(--ease-bounce), color 0.18s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.preset-chip:hover {
  color: var(--text-primary);
  border-color: var(--rim-strong);
  transform: translateY(-2px);
}

.preset-chip:active {
  transform: scale(0.96);
}

.preset-chip.active {
  color: var(--accent-badge-text);
  border-color: var(--rim-selected);
  background: var(--accent-badge-bg);
  box-shadow: 0 6px 16px -6px rgba(0, 102, 220, 0.24), inset 0 1px 0 var(--bevel-top);
}

.launcher-perspective {
  perspective: 1800px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.launcher-halo {
  position: absolute;
  inset: -22px -16px -26px;
  border-radius: 42px;
  background: radial-gradient(ellipse 72% 58% at 50% 48%, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.12) 48%, transparent 76%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
  animation: haloBreathe 6s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
  0% { opacity: 0.65; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

.luma-panel {
  width: 100%;
  max-width: 880px;
  min-height: 544px;
  margin: 0 auto;
  border-radius: var(--radius-panel);
  background: var(--bg-panel);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.panel-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--px, 50%) var(--py, 0%),
    rgba(255, 255, 255, 0.22),
    transparent 62%
  );
  opacity: var(--psheen, 0.35);
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: overlay;
  transition: opacity 0.35s ease;
}

.panel-grabber {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.panel-grabber-pill {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--rim-strong);
  transition: width 0.25s var(--ease-spring), background 0.25s ease;
}

.luma-panel:hover .panel-grabber-pill {
  width: 52px;
  background: var(--rim-selected);
}

.panel-dimension-tag {
  position: absolute;
  right: 18px;
  top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.panel-action-toast {
  position: absolute;
  left: 16px;
  top: 3px;
  font-size: 10.5px;
  font-weight: 660;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  color: var(--accent-badge-text);
  white-space: nowrap;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-action-toast:empty {
  display: none;
}

.panel-search-bar {
  margin: 2px 16px 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--bg-input);
  border: 1px solid var(--rim-outer);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 0 var(--bevel-top);
  display: flex;
  align-items: center;
  gap: 11px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-search-bar:focus-within,
.panel-search-bar.pulse-ring {
  border-color: var(--rim-selected);
  box-shadow: 0 0 0 3.5px var(--accent-badge-bg), inset 0 1px 0 var(--bevel-top);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-bounce);
}

.panel-brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(56, 189, 248, 0.36);
}

.panel-search-bar:focus-within .search-icon {
  transform: scale(1.12) rotate(-6deg);
}

.launcher-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  min-width: 0;
}

.launcher-input::placeholder {
  color: var(--text-tertiary);
}

/* Segmented Scope Capsules with Zero-Artifact Sliding Glider */
.scope-capsules {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-well-strong);
  border: 1px solid var(--rim-subtle);
}

.scope-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  opacity: 0;
  border-radius: 999px;
  background: var(--accent-gradient);
  box-shadow: 0 2px 8px rgba(0, 102, 220, 0.28);
  transition: transform 0.34s var(--ease-spring), width 0.34s var(--ease-spring), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.scope-capsules.glider-ready .scope-glider {
  opacity: 1;
}

.scope-pill {
  position: relative;
  z-index: 1;
  padding: 4.5px 10.5px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 660;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.scope-pill.active {
  color: #ffffff;
}

.scope-capsules:not(.glider-ready) .scope-pill.active {
  background: var(--accent-gradient);
}

.panel-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  border-top: 1px solid var(--rim-subtle);
  min-height: 404px;
}

.panel-left-pane {
  padding: 14px 16px;
  border-right: 1px solid var(--rim-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.panel-right-lens {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-well);
  min-width: 0;
}

@keyframes simItemPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lensGlideIn {
  from {
    opacity: 0;
    transform: translateX(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.sim-stagger {
  opacity: 0;
  animation: simItemPop 0.42s var(--ease-spring) forwards;
  animation-delay: calc(var(--i, 0) * 32ms);
}

.lens-animate {
  animation: lensGlideIn 0.38s var(--ease-spring) forwards;
}

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

.bento-mini-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bento-mini-grid.cols-4 .bento-tile {
  padding: 9px 10px;
  gap: 5px;
}

.bento-mini-grid.cols-4 .squircle-badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 12px;
}

.bento-mini-grid.cols-4 .bento-tile-title {
  font-size: 11.5px;
}

.shelf-group-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.home-profile-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 11px;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  font-size: 11px;
  font-weight: 660;
  color: var(--accent-badge-text);
}

.bento-tile {
  padding: 11px 12px;
  border-radius: 15px;
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03), inset 0 1px 0 var(--bevel-top);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.22s var(--ease-bounce), border-color 0.2s ease, box-shadow 0.22s ease;
}

.bento-tile:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: var(--rim-selected);
  box-shadow: var(--shadow-card-hover);
}

.bento-tile:active {
  transform: scale(0.975);
}

.squircle-badge {
  width: 33px;
  height: 33px;
  border-radius: 9.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 720;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1.2px 0 rgba(255, 255, 255, 0.48), 0 5px 12px -3px rgba(15, 23, 42, 0.26);
}

.squircle-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, transparent 56%);
  pointer-events: none;
}

.bento-tile-title {
  font-size: 12.5px;
  font-weight: 720;
  color: var(--text-primary);
}

.bento-tile-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.quick-btn-bar-mock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7.5px 10.5px;
  border-radius: 13px;
  background: var(--bg-well);
  border: 1px solid var(--rim-subtle);
}

.quick-btn-label {
  font-size: 10.5px;
  font-weight: 720;
  color: var(--text-tertiary);
  margin-right: 2px;
}

.quick-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9.5px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  box-shadow: inset 0 1px 0 var(--bevel-top);
  font-size: 11px;
  font-weight: 660;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.2s var(--ease-bounce), box-shadow 0.2s ease;
}

.quick-btn-pill:hover {
  border-color: var(--rim-selected);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(0, 102, 220, 0.10);
}

.dock-strip-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
}

.dock-mini-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dock-app-pill {
  padding: 7.5px 10px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  box-shadow: inset 0 1px 0 var(--bevel-top);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 660;
  color: var(--text-primary);
  transition: transform 0.2s var(--ease-bounce), border-color 0.2s ease;
}

.dock-app-pill:hover {
  transform: translateY(-2px);
  border-color: var(--rim-selected);
}

.dock-app-dot {
  width: 18px;
  height: 18px;
  border-radius: 5.5px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-row);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-spring);
}

.result-row:hover {
  background: var(--bg-pill);
  transform: translateX(2px);
}

.result-row.selected {
  background: var(--bg-row-selected);
  border-color: var(--rim-selected);
  box-shadow: inset 0 1px 0 var(--bevel-top);
}

.result-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.result-text {
  min-width: 0;
}

.result-title {
  font-size: 13.5px;
  font-weight: 660;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-sub {
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lens-card {
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  box-shadow: var(--shadow-card);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.lens-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lens-big-value {
  font-size: 24px;
  font-weight: 840;
  letter-spacing: -0.024em;
  margin: 6px 0 4px;
}

.lens-desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.58;
}

.lens-kv-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--rim-subtle);
  padding-top: 10px;
}

.lens-kv {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.lens-kv span:first-child {
  color: var(--text-tertiary);
}

.lens-kv span:last-child {
  font-weight: 660;
  color: var(--text-primary);
  text-align: right;
}

.panel-footer {
  padding: 8.5px 16px;
  border-top: 1px solid var(--rim-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: var(--bg-well);
}

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

.footer-hints span,
.footer-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-secondary);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-bounce);
}

.footer-hint-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.footer-hint-btn:active {
  transform: scale(0.96);
}

.hint-label {
  font-style: normal;
}

.status-heartbeat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-heartbeat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-ok);
  box-shadow: 0 0 6px var(--status-ok);
}

.scroll-cue {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--text-tertiary);
  font-size: 12.5px;
  font-weight: 520;
}

.scroll-mouse {
  width: 22px;
  height: 35px;
  border-radius: 999px;
  border: 1.5px solid var(--rim-strong);
  background: var(--bg-card);
  position: relative;
  box-shadow: inset 0 1px 0 var(--bevel-top);
}

.scroll-wheel-dot {
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-primary);
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: wheelGlide 1.9s infinite var(--ease-snappy);
}

@keyframes wheelGlide {
  0% { transform: translate(-50%, 0); opacity: 1; }
  75% { transform: translate(-50%, 12px); opacity: 0.2; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ==========================================================================
   6. ACT II · Deep Customization Workbench with Spring Pill & Switch Physics
   ========================================================================== */
.builder-section {
  padding: 100px 0 96px;
}

.builder-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.builder-profile-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.builder-profile-btn {
  padding: 7.5px 15px;
  border-radius: 999px;
  border: 1px solid var(--rim-outer);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 660;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), inset 0 1px 0 var(--bevel-top);
  transition: transform 0.22s var(--ease-bounce), color 0.18s ease, border-color 0.18s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.builder-profile-btn:hover {
  color: var(--text-primary);
  border-color: var(--rim-strong);
  transform: translateY(-2px);
}

.builder-profile-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}

.builder-layout {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 26px;
  margin-top: 22px;
  align-items: stretch;
}

.builder-catalog-card {
  padding: 22px;
  border-radius: var(--radius-panel);
  background: var(--bg-panel-solid);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.builder-catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rim-subtle);
}

.builder-catalog-title {
  font-size: 14.5px;
  font-weight: 760;
  color: var(--text-primary);
}

.plugin-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plugin-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 15px;
  background: var(--bg-well);
  border: 1px solid var(--rim-subtle);
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plugin-toggle-item:hover {
  border-color: var(--rim-strong);
  transform: translateX(3px);
}

.plugin-toggle-item.focused {
  background: var(--bg-card);
  border-color: var(--rim-selected);
  box-shadow: var(--shadow-card);
}

.plugin-toggle-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.plugin-toggle-meta {
  min-width: 0;
}

.plugin-toggle-name {
  font-size: 13.5px;
  font-weight: 720;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.plugin-tag-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  color: var(--accent-badge-text);
}

.plugin-toggle-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-switch {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: var(--rim-strong);
  position: relative;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: background 0.26s ease, box-shadow 0.26s ease;
}

.mac-switch::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
  transition: transform 0.28s var(--ease-bounce), width 0.16s ease;
}

.mac-switch:active::after {
  width: 21px;
}

.mac-switch.on {
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(0, 102, 220, 0.30);
}

.mac-switch.on::after {
  transform: translateX(17px);
}

.builder-preview-card {
  padding: 24px;
  border-radius: var(--radius-panel);
  background: var(--bg-panel-solid);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.preview-head-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rim-subtle);
}

.assembled-zone {
  padding: 13px 15px;
  border-radius: var(--radius-card);
  background: var(--bg-well);
  border: 1px solid var(--rim-subtle);
}

.assembled-zone-title {
  font-size: 11px;
  font-weight: 720;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mounted-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mounted-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11.5px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  font-size: 12px;
  font-weight: 660;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), inset 0 1px 0 var(--bevel-top);
  animation: pillPopIn 0.34s var(--ease-bounce) backwards;
  animation-delay: calc(var(--pi, 0) * 24ms);
}

@keyframes pillPopIn {
  from { opacity: 0; transform: scale(0.84) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.empty-mount-note {
  font-size: 12px;
  color: var(--text-tertiary);
}

.plugin-spotlight-box {
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  box-shadow: var(--shadow-card);
}

.spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.spotlight-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotlight-title {
  font-size: 14.5px;
  font-weight: 760;
  color: var(--text-primary);
}

.spotlight-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.58;
  margin: 0;
}

.cmd-sub-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.cmd-sub-chip {
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--bg-well);
  border: 1px solid var(--rim-subtle);
  font-size: 11.5px;
  color: var(--text-primary);
  font-weight: 620;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.18s ease, transform 0.18s var(--ease-spring);
}

.cmd-sub-chip:hover {
  border-color: var(--rim-selected);
  transform: translateY(-1px);
}

.audit-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--rim-subtle);
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. ACT III · Sticky Scroll-Scrubbed AI Co-Creation & Levitating Glass HUD
   ========================================================================== */
.theatre-section {
  position: relative;
  height: 440vh;
  padding: 36px 0;
}

.theatre-sticky {
  position: sticky;
  top: 82px;
  min-height: calc(100vh - 98px);
  display: flex;
  align-items: center;
}

.theatre-head {
  margin-bottom: 24px;
}

.theatre-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: center;
  width: 100%;
}

.theatre-steps-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-width: 0;
}

.theatre-progress-track {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--rim-outer);
  overflow: hidden;
}

.theatre-progress-fill {
  width: 100%;
  height: 100%;
  transform-origin: 50% 0%;
  transform: scaleY(0.25);
  background: var(--accent-gradient);
}

.step-card {
  margin-left: 18px;
  padding: 15px 18px;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.54;
  transition: all 0.32s var(--ease-spring);
}

.step-card:hover {
  opacity: 0.88;
  background: var(--bg-well);
}

.step-card.active {
  opacity: 1;
  background: var(--bg-card);
  border-color: var(--rim-outer);
  box-shadow: var(--shadow-card);
  transform: translateX(7px);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.step-index {
  font-size: 11.5px;
  font-weight: 760;
  color: var(--accent-badge-text);
}

.step-title {
  font-size: 16.5px;
  font-weight: 760;
  margin: 0 0 5px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  display: none;
  line-height: 1.58;
}

.step-card.active .step-desc {
  display: block;
}

.theatre-stage-box {
  position: relative;
  border-radius: var(--radius-panel);
  background: var(--bg-panel-solid);
  box-shadow: var(--shadow-panel);
  overflow: visible;
  padding: 24px;
  min-width: 0;
}

.theatre-scenes-stack {
  display: grid;
  width: 100%;
  align-items: stretch;
}

.theatre-mobile-tabs {
  display: none;
}

.theatre-mobile-tab {
  flex: 1 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--rim-outer);
  background: var(--bg-well);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.theatre-mobile-tab.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}

.stage-scene {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.982);
  filter: blur(5px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.42s var(--ease-spring), transform 0.42s var(--ease-spring), filter 0.36s ease, visibility 0.42s;
}

.stage-scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  visibility: visible;
  z-index: 2;
}

.scene-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rim-subtle);
}

.scene-tech-label {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcp-replay-btn {
  border: 1px solid rgba(16, 185, 129, 0.28);
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce);
}

.mcp-replay-btn:hover {
  transform: scale(1.05);
}

.window-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.window-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }

.scene-visual-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 10px 0;
}

.mcp-seq-item {
  opacity: 0.25;
  transform: translateY(6px);
  transition: opacity 0.42s var(--ease-spring), transform 0.42s var(--ease-spring), border-color 0.35s ease, box-shadow 0.35s ease;
}

.mcp-seq-item.seq-lit {
  opacity: 1;
  transform: translateY(0);
}

.mcp-step-row.seq-current {
  border-color: var(--rim-selected);
  box-shadow: 0 0 0 3px var(--accent-badge-bg);
}

.mock-card {
  padding: 13px 15px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035), inset 0 1px 0 var(--bevel-top);
}

.mock-card.selected-mock {
  border-color: var(--rim-selected);
  background: var(--bg-row-selected);
}

.hud-levitate-card {
  position: relative;
  overflow: hidden;
}

.mini-hud-preview {
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-well-strong);
  border: 1px solid var(--rim-selected);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 660;
  color: var(--text-primary);
  box-shadow: 0 8px 18px -6px rgba(0, 102, 220, 0.22);
  animation: hudFloat 3.6s ease-in-out infinite alternate;
}

.mini-hud-preview i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 6px #ec4899;
  margin-right: 3px;
}

@keyframes hudFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3.5px); }
}

.mock-row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.mock-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.mock-card-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 740;
  color: var(--text-primary);
}

.interactive-mock-card {
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, box-shadow 0.2s ease;
}

.interactive-mock-card:hover {
  transform: translateY(-2px);
  border-color: var(--rim-selected);
  box-shadow: 0 8px 20px -10px rgba(0, 102, 220, 0.22), inset 0 1px 0 var(--bevel-top);
}

.interactive-mock-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.slider-live-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--bg-well);
  border: 1px solid var(--rim-subtle);
}

.slider-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9.5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  color: var(--accent-badge-text);
}

.slider-sample-text {
  flex: 1;
  min-width: 180px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.48;
}

.interactive-form-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.mini-form-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5.5px 12.5px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 620;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rim-outer);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), inset 0 1px 0 var(--bevel-top);
  color: var(--text-secondary);
  transition: transform 0.18s var(--ease-bounce), border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mini-form-ctrl strong {
  color: var(--text-primary);
  font-weight: 720;
}

.mini-form-ctrl:hover {
  transform: translateY(-1px);
  border-color: var(--rim-selected);
  background: var(--bg-well-strong);
  color: var(--text-primary);
  box-shadow: 0 6px 14px -6px rgba(0, 102, 220, 0.22), inset 0 1px 0 var(--bevel-top);
}

.mini-form-ctrl:active {
  transform: scale(0.975);
}

.mini-form-ctrl:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.mini-status-note {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9.5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
  background: var(--status-ok-bg);
  color: var(--status-ok);
}

.mock-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.54;
}

.ai-prompt-bubble {
  padding: 11px 14px;
  border-radius: 15px 15px 15px 4px;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 620;
  line-height: 1.52;
}

.mcp-pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcp-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8.5px 12px;
  border-radius: 12px;
  background: var(--bg-well);
  border: 1px solid var(--rim-subtle);
  font-size: 12px;
  color: var(--text-primary);
}

.form-slider-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-well-strong);
  position: relative;
  margin-top: 10px;
  cursor: pointer;
  touch-action: none;
}

.form-slider-fill {
  width: 35%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent-gradient);
}

.form-slider-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--accent-primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.26);
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  transition: transform 0.16s var(--ease-bounce);
}

.form-slider-track:hover .form-slider-knob {
  transform: translate(-50%, -50%) scale(1.15);
}

.sniffer-demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sniffer-demo-btn {
  padding: 4.5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rim-outer);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 660;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.sniffer-demo-btn.active {
  background: var(--accent-badge-bg);
  border-color: var(--rim-selected);
  color: var(--accent-badge-text);
}

.sniffer-input-mock {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--rim-selected);
  font-size: 12px;
  color: var(--text-primary);
}

.sniffer-scan-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-badge-bg), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}

.sniffer-input-mock.scanning .sniffer-scan-beam {
  animation: snifferSweep 0.65s var(--ease-snappy);
}

@keyframes snifferSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

#snifferUrlText {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.scene-footer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rim-subtle);
}

.sec-row {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s var(--ease-spring), box-shadow 0.2s ease;
}

.sec-row:hover {
  border-color: var(--rim-strong);
  transform: translateX(2px);
}

.sec-row.sec-active {
  border-color: var(--rim-selected);
  background: var(--bg-row-selected);
  box-shadow: 0 4px 14px -8px rgba(0, 102, 220, 0.25), inset 0 1px 0 var(--bevel-top);
}

.mini-hud-preview.compact {
  justify-content: center;
  gap: 10px;
  padding: 5px 10px;
  border-style: dashed;
  opacity: 0.92;
}

.mini-hud-preview.compact span:nth-child(n+2) {
  display: none;
}

.dock-app-pill {
  cursor: pointer;
}

.ms-pill,
.mc-loupe {
  cursor: pointer;
  transition: transform 0.18s var(--ease-bounce), border-color 0.18s ease, background 0.18s ease;
}

.ms-pill:hover,
.mc-loupe:hover {
  border-color: var(--rim-selected);
  transform: translateY(-1px);
}

.mc-loupe.copied {
  border-color: rgba(16, 185, 129, 0.45);
  background: var(--status-ok-bg);
  color: var(--status-ok);
}

/* ==========================================================================
   8. ACT IV · Bento Grid + Live Animated Micro-Visual Stages
   ========================================================================== */
.bento-section {
  padding: 100px 0 92px;
}

.hotkey-chord-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 30px;
}

.hotkey-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.035), inset 0 1px 0 var(--bevel-top);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 660;
  transition: all 0.22s var(--ease-bounce);
}

.hotkey-pill:hover,
.hotkey-pill.active {
  transform: translateY(-2px);
  border-color: var(--rim-selected);
  background: var(--accent-badge-bg);
  color: var(--accent-badge-text);
}

.feature-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.f-card {
  grid-column: span 4;
  padding: 26px;
  border-radius: var(--radius-bento);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, opacity 0.28s ease;
}

.f-card.span-6 { grid-column: span 6; }
.f-card.span-12 { grid-column: span 12; }

.f-card:hover,
.f-card.highlighted {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.f-card h3 {
  font-size: 18.5px;
  font-weight: 770;
  margin: 12px 0 8px;
  letter-spacing: -0.016em;
  color: var(--text-primary);
}

.f-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.f-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.f-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-micro-stage {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--bg-well);
  border: 1px solid var(--rim-subtle);
  overflow: hidden;
  position: relative;
}

.ms-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  font-size: 11.5px;
  margin-bottom: 8px;
}

.ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.ms-typing {
  flex: 1;
  color: var(--text-primary);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-typing::after {
  content: "|";
  color: var(--accent-primary);
  margin-left: 2px;
  animation: caretBlink 1s steps(2) infinite;
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ms-speed {
  font-size: 10.5px;
  color: var(--status-ok);
  font-weight: 700;
}

.ms-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ms-pill {
  font-size: 10.5px;
  font-weight: 660;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rim-subtle);
  color: var(--text-secondary);
}

.ms-pill.active {
  background: var(--accent-badge-bg);
  border-color: var(--accent-badge-border);
  color: var(--accent-badge-text);
}

.micro-capture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
}

.mc-crop-box {
  flex: 1;
  height: 48px;
  border: 1.5px dashed var(--rim-selected);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  overflow: hidden;
}

.mc-ocr-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, #ec4899, transparent);
  animation: ocrScanY 2.8s ease-in-out infinite alternate;
}

@keyframes ocrScanY {
  0% { top: 6px; opacity: 0.5; }
  100% { top: 40px; opacity: 1; }
}

.mc-ocr-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-badge-text);
  z-index: 1;
}

.mc-hud-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mc-island,
.mc-loupe {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rim-outer);
  font-size: 10px;
  font-weight: 660;
  color: var(--text-primary);
  white-space: nowrap;
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: caretBlink 1.1s infinite;
}

.swatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #38bdf8;
}

.mp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mp-watt {
  color: var(--status-ok);
  font-size: 12px;
}

.mp-sparkline {
  width: 100%;
  height: 36px;
  display: block;
}

.mp-line {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: sparkDraw 3.4s ease-in-out infinite alternate;
}

@keyframes sparkDraw {
  0% { stroke-dashoffset: 140; }
  100% { stroke-dashoffset: 0; }
}

.micro-net {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10.5px;
  color: var(--text-secondary);
}

.mn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mn-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-well-strong);
  overflow: hidden;
}

.mn-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.mn-bar.down {
  width: 78%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  animation: bwPulseDown 2.6s ease-in-out infinite alternate;
}

.mn-bar.up {
  width: 34%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  animation: bwPulseUp 2.1s ease-in-out infinite alternate;
}

@keyframes bwPulseDown {
  0% { width: 58%; }
  100% { width: 86%; }
}

@keyframes bwPulseUp {
  0% { width: 22%; }
  100% { width: 46%; }
}

.micro-wheel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mw-curve {
  width: 100%;
  height: 34px;
  display: block;
}

.mw-smooth-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: sparkDraw 3.0s var(--ease-spring) infinite alternate;
}

.mw-badge {
  font-size: 10px;
  color: var(--text-tertiary);
  text-align: right;
}

/* ==========================================================================
   9. ACT V · Core Philosophy, Dual-Theme Banner & Product Boundaries
   ========================================================================== */
.philosophy-section {
  padding: 96px 0 96px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 36px 0 36px;
}

.pillar-card {
  padding: 28px 30px;
  border-radius: var(--radius-bento);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pillar-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.085em;
  color: var(--accent-badge-text);
  margin-bottom: 8px;
  display: block;
}

.pillar-card h3 {
  font-size: 20px;
  font-weight: 810;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pillar-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.68;
}

.theme-duality-banner {
  padding: 28px 32px;
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 32px;
  overflow: hidden;
}

.duality-copy {
  max-width: 590px;
}

.duality-heading {
  font-size: 22px;
  font-weight: 810;
  margin: 4px 0 8px;
  color: var(--text-primary);
  text-wrap: balance;
}

.duality-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}

.theme-switch-group {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-well-strong);
  border: 1px solid var(--rim-subtle);
  gap: 5px;
  flex-shrink: 0;
}

.theme-choice-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.theme-choice-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}

.boundary-panel {
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  padding: 30px 32px;
  overflow: hidden;
}

.boundary-heading {
  font-size: 21px;
  font-weight: 810;
  margin: 0 0 6px;
  color: var(--text-primary);
  text-wrap: balance;
}

.boundary-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.boundary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.boundary-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.58;
}

.boundary-list li strong {
  color: var(--text-primary);
}

.badge-yes,
.badge-no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge-yes {
  background: var(--status-ok-bg);
  color: var(--status-ok);
}

.badge-no {
  background: var(--status-danger-bg);
  color: var(--status-danger);
}

/* ==========================================================================
   10. ACT VI · Clean Code DAG Blueprint with Animated SVG Optical Conduits
   ========================================================================== */
.arch-section {
  padding: 92px 0 96px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 28px;
}

.metric-box {
  padding: 24px 20px;
  border-radius: var(--radius-bento);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease;
}

.metric-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.metric-number {
  font-size: clamp(1.95rem, 3.2vw, 2.68rem);
  font-weight: 860;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.metric-caption {
  font-size: 13px;
  color: var(--text-secondary);
}

.dag-board {
  padding: 34px 32px;
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dag-tiers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dag-tier {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.dag-node {
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--bg-well);
  border: 1px solid var(--rim-outer);
  box-shadow: inset 0 1px 0 var(--bevel-top);
  min-width: 215px;
  text-align: center;
  transition: transform 0.28s var(--ease-spring), background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.dag-node-wide {
  min-width: 360px;
}

.dag-tier.tier-lit .dag-node,
.dag-node:hover {
  background: var(--accent-badge-bg);
  border-color: var(--rim-selected);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.dag-node-name {
  font-size: 14px;
  font-weight: 760;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.node-orb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.node-orb.cyan { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.node-orb.violet { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.node-orb.indigo { background: #6366f1; box-shadow: 0 0 8px #6366f1; }
.node-orb.sky { background: #0ea5e9; box-shadow: 0 0 8px #0ea5e9; }
.node-orb.rose { background: #ec4899; box-shadow: 0 0 8px #ec4899; }
.node-orb.emerald { background: #10b981; box-shadow: 0 0 8px #10b981; }
.node-orb.amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.dag-node-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.dag-conduit {
  position: relative;
  height: 42px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dag-conduit svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.conduit-track {
  fill: none;
  stroke: var(--conduit-track);
  stroke-width: 1.6;
}

.conduit-beam {
  fill: none;
  stroke: var(--conduit-beam);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 26 140;
  animation: conduitPulse 2.4s linear infinite;
}

@keyframes conduitPulse {
  from { stroke-dashoffset: 166; }
  to { stroke-dashoffset: 0; }
}

.conduit-tag {
  position: relative;
  z-index: 1;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rim-subtle);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-badge-text);
}

/* ==========================================================================
   11. ACT VII · Download & Adaptive Code Studio with Zero-Artifact Glider
   ========================================================================== */
.download-section {
  padding: 64px 0 108px;
}

.download-card {
  padding: 40px 38px;
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  box-shadow: var(--shadow-panel);
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 34px;
  align-items: center;
  overflow: hidden;
}

.download-title {
  font-size: clamp(1.85rem, 3.3vw, 2.55rem);
}

.download-desc {
  margin-bottom: 24px;
}

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

.download-card > * {
  min-width: 0;
}

.code-studio {
  border-radius: 18px;
  background: var(--studio-bg);
  color: var(--studio-text);
  border: 1px solid var(--studio-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: background 0.35s ease, border-color 0.35s ease;
  min-width: 0;
  max-width: 100%;
}

.studio-head {
  padding: 10px 14px;
  background: var(--studio-head);
  border-bottom: 1px solid var(--studio-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.studio-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 2px;
  border-radius: 10px;
}

.studio-tab-glider {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 0;
  opacity: 0;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 0.34s var(--ease-spring), width 0.34s var(--ease-spring), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.studio-tabs.glider-ready .studio-tab-glider {
  opacity: 1;
  border-color: var(--studio-border);
}

.term-tab {
  position: relative;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 660;
  cursor: pointer;
  transition: color 0.2s ease;
}

.term-tab.active {
  color: var(--studio-text);
}

.studio-tabs:not(.glider-ready) .term-tab.active {
  background: var(--bg-card);
  border-color: var(--studio-border);
}

.copy-cmd-btn {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--studio-border);
  background: var(--bg-card);
  color: var(--studio-text);
  font-size: 11.5px;
  font-weight: 660;
  cursor: pointer;
  transition: transform 0.18s var(--ease-bounce), border-color 0.18s ease;
}

.copy-cmd-btn:hover {
  border-color: var(--rim-selected);
  transform: translateY(-1px);
}

.studio-pre {
  margin: 0;
  padding: 18px 20px;
  font-size: 12.5px;
  line-height: 1.72;
  overflow-x: auto;
  color: var(--studio-text);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-spring);
}

.studio-pre.code-swap {
  animation: simItemPop 0.3s var(--ease-spring);
}

.studio-pre .cmd-comment { color: var(--studio-muted); }
.studio-pre .cmd-prompt { color: var(--studio-prompt); user-select: none; font-weight: 700; }
.studio-pre .cmd-kw { color: var(--studio-kw); font-weight: 650; }
.studio-pre .cmd-str { color: var(--studio-str); }
.studio-pre .cmd-key { color: var(--studio-key); font-weight: 650; }

.site-footer {
  padding: 32px 0 52px;
  border-top: 1px solid var(--rim-outer);
  color: var(--text-tertiary);
  font-size: 13px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  border-radius: 5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 520;
}

.footer-links a {
  transition: color 0.18s ease;
}

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

/* ==========================================================================
   12. Optical Blur-to-Crisp Scroll Reveal & 3D Return Pills
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px) scale(0.986);
  filter: blur(7px);
  transition:
    opacity 0.76s var(--ease-spring),
    transform 0.76s var(--ease-spring),
    filter 0.68s var(--ease-snappy);
  transition-delay: var(--delay, 0ms);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.nav-3d-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-badge-bg);
  border: 1px solid var(--rim-selected);
  color: var(--accent-badge-text);
  font-size: 12.5px;
  font-weight: 720;
  white-space: nowrap;
  transition: transform 0.22s var(--ease-bounce), box-shadow 0.2s ease, background 0.2s ease;
}

.nav-3d-pill:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-card);
}

.nav-3d-spark {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
}

.btn-hero-3d {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent-badge-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--rim-selected);
  color: var(--accent-badge-text);
  font-size: 14.5px;
  font-weight: 740;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s var(--ease-spring), box-shadow 0.24s ease;
}

.btn-hero-3d:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.section-3d-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rim-selected);
  color: var(--accent-badge-text);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}

.section-3d-jump:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.theatre-head-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================================================================
   13. Responsive & Reduced-Motion Guardrails
   ========================================================================== */
@media (hover: none) {
  .spotlight-surface::before,
  .spotlight-surface::after { display: none; }
  .f-card:hover,
  .pillar-card:hover,
  .bento-tile:hover,
  .pill-btn:hover,
  .btn-hero-primary:hover,
  .btn-hero-secondary:hover,
  .dag-node:hover { transform: none; }
}

@media (max-width: 1150px) {
  .brand-tag { display: none; }
}

@media (max-width: 1060px) {
  .nav-links { display: none; }
}

@media (max-width: 980px) {
  .site-header { top: 10px; padding: 0 14px; }
  .luma-panel { min-height: auto; }
  .panel-body { min-height: auto; }
  .panel-body,
  .builder-layout,
  .theatre-grid,
  .pillars-grid,
  .boundary-columns,
  .download-card { grid-template-columns: 1fr; }
  .panel-left-pane { border-right: none; }
  .panel-right-lens { border-top: 1px solid var(--rim-subtle); }
  .theatre-section { height: auto; padding: 64px 0; }
  .theatre-sticky { position: static; min-height: auto; }
  .theatre-progress-track { display: none; }
  .step-card { margin-left: 0; padding: 14px 16px; opacity: 0.74; }
  .step-card.active { transform: none; opacity: 1; }
  .step-desc { display: block; }
  .theatre-stage-box { min-height: auto; height: auto; padding: 18px; overflow: visible; }
  .theatre-mobile-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--rim-subtle);
  }
  .theatre-mobile-tabs::-webkit-scrollbar { display: none; }
  .stage-scene {
    display: none;
    position: static;
    inset: auto;
    transform: none;
    filter: none;
    opacity: 1;
    pointer-events: auto;
    gap: 14px;
  }
  .stage-scene.active { display: flex; }
  .form-slider-knob { width: 20px; height: 20px; }
  .f-card, .f-card.span-6 { grid-column: span 12; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .dag-node, .dag-node-wide { min-width: 0; flex: 1 1 200px; }
  .dag-conduit svg { display: none; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .brand-tag { display: none; }
  .nav-capsule { padding: 6px 8px 6px 12px; gap: 8px; }
  .nav-actions { gap: 6px; }
  .pill-btn { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
  .nav-actions .btn-primary-sm { display: none; }
  .nav-3d-pill { padding: 6px 10px; font-size: 11.5px; }

  .hero-section { padding: 86px 0 44px; }
  .hero-copy { margin-bottom: 24px; }
  .hero-badges { gap: 6px; margin-bottom: 14px; }
  .hero-badge { font-size: 11.5px; padding: 4px 10px; }
  .hero-title { font-size: clamp(1.82rem, 8vw, 2.45rem); margin-bottom: 14px; }
  .hero-subtitle { font-size: 0.95rem; line-height: 1.62; margin-bottom: 20px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .btn-hero-primary,
  .btn-hero-3d,
  .btn-hero-secondary { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14.5px; }
  .scroll-cue { display: none; }

  .launcher-presets {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 6px;
    margin-bottom: 10px;
  }
  .launcher-presets::-webkit-scrollbar { display: none; }
  .preset-label { display: none; }
  .preset-chip { flex-shrink: 0; font-size: 12px; padding: 6px 12px; }

  .panel-dimension-tag { display: none; }
  .panel-search-bar { margin: 2px 12px 10px; padding: 9px 11px; flex-wrap: wrap; gap: 8px; border-radius: 14px; }
  .launcher-input { flex: 1 1 calc(100% - 34px); font-size: 16px; }
  .scope-capsules { width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .scope-capsules::-webkit-scrollbar { display: none; }
  .scope-pill { flex: 1 0 auto; text-align: center; padding: 5px 10px; font-size: 12px; }
  .panel-left-pane,
  .panel-right-lens { padding: 12px; }
  .bento-mini-grid,
  .bento-mini-grid.cols-4,
  .dock-mini-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .panel-footer { justify-content: center; padding: 8px 12px; }
  .footer-hints { display: none; }
  .lens-card { padding: 14px; }
  .lens-header { flex-wrap: wrap; }
  .lens-big-value { font-size: 20px; }
  .lens-kv { flex-wrap: wrap; gap: 4px; }

  .builder-section,
  .bento-section,
  .philosophy-section,
  .arch-section { padding: 56px 0; }
  .theatre-section { padding: 52px 0; }

  .builder-profile-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .builder-profile-bar::-webkit-scrollbar { display: none; }
  .builder-profile-btn { flex-shrink: 0; font-size: 12px; padding: 7px 12px; }
  .builder-catalog-card,
  .builder-preview-card { padding: 16px 14px; border-radius: 20px; }
  .plugin-toggle-item { padding: 10px; gap: 10px; }
  .plugin-toggle-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.42;
  }
  .assembled-zone-title,
  .spotlight-head,
  .mock-card-head,
  .scene-top-bar { flex-wrap: wrap; }
  .cmd-sub-list,
  .mock-row-grid { grid-template-columns: 1fr; }
  .micro-capture { flex-direction: column; align-items: stretch; }

  .theatre-stage-box { padding: 14px; border-radius: 20px; }
  .scene-top-bar .window-dots { display: none; }
  .scene-tech-label { white-space: normal; font-size: 11px; overflow-wrap: anywhere; }
  .mcp-step-row,
  .sniffer-input-mock { flex-direction: column; align-items: flex-start; gap: 6px; }

  .hotkey-chord-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 20px 0;
  }
  .hotkey-chord-bar::-webkit-scrollbar { display: none; }
  .hotkey-pill { flex-shrink: 0; padding: 8px 12px; font-size: 12px; }
  .f-card { padding: 20px 18px; }

  .pillars-grid { gap: 14px; margin: 24px 0; }
  .pillar-card { padding: 20px 18px; }
  .theme-duality-banner { padding: 20px 16px; gap: 16px; border-radius: 20px; }
  .theme-switch-group { display: flex; flex-wrap: wrap; width: 100%; border-radius: 16px; }
  .theme-choice-btn { flex: 1 1 140px; text-align: center; padding: 9px 12px; font-size: 12.5px; }
  .boundary-panel { padding: 20px 16px; border-radius: 20px; }

  .metrics-strip { gap: 10px; margin: 22px 0 18px; }
  .metric-box { padding: 16px 12px; }
  .dag-board { padding: 16px 12px; border-radius: 20px; }
  .dag-node,
  .dag-node-wide { min-width: 0; width: 100%; padding: 12px 14px; }

  .download-section { padding: 48px 0 72px; }
  .download-card { padding: 22px 16px; gap: 22px; border-radius: 20px; }
  .download-actions { flex-direction: column; }
  .studio-head .window-dots { display: none; }
  .studio-tab-glider { display: none; }
  .studio-tabs .term-tab.active { background: var(--bg-card); border: 1px solid var(--studio-border); }
  .studio-pre { padding: 14px; font-size: 11.5px; line-height: 1.6; }

  .site-footer { padding: 26px 0 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { gap: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stagger,
  .reveal-up,
  .sim-stagger,
  .lens-animate {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  .aurora-orb,
  .shimmer-text,
  .btn-hero-primary::after,
  .scroll-wheel-dot,
  .conduit-beam,
  .mp-line,
  .mw-smooth-path,
  .mc-ocr-scan,
  .mini-hud-preview {
    animation: none !important;
  }
  .mcp-seq-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
