/* ==========================================================================
   WidgetExamples Living Canvas — Master Design System v6.0
   Full Site-Wide Environment Reactive Theming + Side Selection Rail
   ========================================================================== */

/* Default Tokens & Typography (Self-hosted Plus Jakarta Sans & JetBrains Mono) */
:root {
  --we-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --we-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --we-font-mono: 'JetBrains Mono', monospace;

  --we-max-w: 1520px;
  --we-radius-sm: 8px;
  --we-radius-md: 14px;
  --we-radius-lg: 20px;
  --we-radius-xl: 28px;
  --we-radius-full: 9999px;
  --we-trans-speed: 0.55s;
}

/* ==========================================================================
   8 Full-Site Environment Themes (Directly derived from the reference sky palettes)
   ========================================================================== */

/* 1. MORNING — Pastel Dawn Sunrise (Top-Right in Reference) */
body[data-environment="morning"] {
  --c1: #9cbcf7; --c2: #c6bfe5; --c3: #f5c6db; --c4: #f8aeb7; --c5: #fde2be; --c6: #fef4c0;
  --we-bg: radial-gradient(circle at 30% 0%, #fff0f3 0%, #f6f0fd 40%, #eef5ff 100%);
  --we-surface: #ffffff;
  --we-surface-trans: rgba(255, 255, 255, 0.88);
  --we-surface-card: rgba(255, 255, 255, 0.94);
  --we-surface-hover: #fcf6fc;
  --we-ink: #2b2238;
  --we-ink-secondary: #4a3d5e;
  --we-ink-muted: #5e4f73;
  --we-line: #ebdfee;
  --we-line-focus: #e59faf;
  --we-primary: #b03563;
  --we-primary-hover: #91234c;
  --we-primary-light: #fbeaf0;
  --we-primary-glow: rgba(176, 53, 99, 0.28);
  --we-accent-gradient: linear-gradient(135deg, #b03563 0%, #769de6 60%, #fde2be 100%);
  --we-theme-accent: #b03563;
  --we-card-shadow: 0 16px 45px rgba(156, 188, 247, 0.16);
  --we-dock-bg: rgba(255, 255, 255, 0.92);
}

/* 2. AFTERNOON — Vibrant Azure Sky (Row 2 Left in Reference) */
body[data-environment="afternoon"] {
  --c1: #1e6fe3; --c2: #499cf2; --c3: #86c4fa; --c4: #c4e5ff; --c5: #eaf5ff; --c6: #ffffff;
  --we-bg: radial-gradient(circle at 50% 0%, #e0f2ff 0%, #ebf5fe 45%, #f4f9fd 100%);
  --we-surface: #ffffff;
  --we-surface-trans: rgba(255, 255, 255, 0.9);
  --we-surface-card: rgba(255, 255, 255, 0.95);
  --we-surface-hover: #f0f7fe;
  --we-ink: #13243f;
  --we-ink-secondary: #2f4360;
  --we-ink-muted: #4a6182;
  --we-line: #dbe9f7;
  --we-line-focus: #7abaf4;
  --we-primary: #155bc2;
  --we-primary-hover: #0e4596;
  --we-primary-light: #e3f1ff;
  --we-primary-glow: rgba(21, 91, 194, 0.28);
  --we-accent-gradient: linear-gradient(135deg, #155bc2 0%, #499cf2 50%, #86c4fa 100%);
  --we-theme-accent: #155bc2;
  --we-card-shadow: 0 16px 45px rgba(21, 91, 194, 0.14);
  --we-dock-bg: rgba(255, 255, 255, 0.92);
}

/* 3. SUNSET — Fiery Golden Hour (Row 3 Left in Reference) */
body[data-environment="sunset"] {
  --c1: #b93b2a; --c2: #e75b28; --c3: #f3893e; --c4: #f8b36e; --c5: #fde0a3; --c6: #fef4cb;
  --we-bg: radial-gradient(circle at 60% 0%, #fdece3 0%, #fcf3eb 45%, #faf0ea 100%);
  --we-surface: #ffffff;
  --we-surface-trans: rgba(255, 255, 255, 0.9);
  --we-surface-card: rgba(255, 255, 255, 0.95);
  --we-surface-hover: #fdf5f0;
  --we-ink: #3b1e16;
  --we-ink-secondary: #573228;
  --we-ink-muted: #6e473b;
  --we-line: #f1ded5;
  --we-line-focus: #f3893e;
  --we-primary: #af3a14;
  --we-primary-hover: #8f2a08;
  --we-primary-light: #feebe3;
  --we-primary-glow: rgba(175, 58, 20, 0.28);
  --we-accent-gradient: linear-gradient(135deg, #b93b2a 0%, #af3a14 50%, #f8b36e 100%);
  --we-theme-accent: #af3a14;
  --we-card-shadow: 0 16px 45px rgba(175, 58, 20, 0.14);
  --we-dock-bg: rgba(255, 255, 255, 0.92);
}

/* 4. NIGHT — Deep Cosmic Starlight (Top-Left in Reference) */
body[data-environment="night"] {
  --c1: #070b19; --c2: #151b36; --c3: #263768; --c4: #425c9b; --c5: #7a96cb; --c6: #e1ebfa;
  --we-bg: radial-gradient(circle at 50% 0%, #151b36 0%, #0c1020 50%, #070a14 100%);
  --we-surface: #10162a;
  --we-surface-trans: rgba(16, 22, 42, 0.88);
  --we-surface-card: rgba(19, 27, 52, 0.95);
  --we-surface-hover: #1b264a;
  --we-ink: #f0f4fd;
  --we-ink-secondary: #b2c2e4;
  --we-ink-muted: #6f82aa;
  --we-line: #222f54;
  --we-line-focus: #5274bd;
  --we-primary: #5d84dc;
  --we-primary-hover: #7b9fed;
  --we-primary-light: #1b274c;
  --we-primary-glow: rgba(93, 132, 220, 0.35);
  --we-accent-gradient: linear-gradient(135deg, #5d84dc 0%, #7a96cb 60%, #e1ebfa 100%);
  --we-theme-accent: #5d84dc;
  --we-card-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  --we-dock-bg: rgba(16, 22, 42, 0.94);
}

/* 5. RAIN — Moody Storm & Slate Mist (Row 3 Right in Reference) */
body[data-environment="rain"] {
  --c1: #172336; --c2: #35476a; --c3: #5c6d86; --c4: #8c9aa7; --c5: #d0d7db; --c6: #f2efe7;
  --we-bg: radial-gradient(circle at 40% 0%, #d8e3ed 0%, #e7eff5 50%, #f0f4f7 100%);
  --we-surface: #ffffff;
  --we-surface-trans: rgba(255, 255, 255, 0.9);
  --we-surface-card: rgba(255, 255, 255, 0.95);
  --we-surface-hover: #f1f6fa;
  --we-ink: #192639;
  --we-ink-secondary: #485c76;
  --we-ink-muted: #7b8e9f;
  --we-line: #dbe4eb;
  --we-line-focus: #6e8fa8;
  --we-primary: #466989;
  --we-primary-hover: #32506c;
  --we-primary-light: #e4edf4;
  --we-primary-glow: rgba(70, 105, 137, 0.28);
  --we-accent-gradient: linear-gradient(135deg, #35476a 0%, #5c6d86 50%, #8c9aa7 100%);
  --we-theme-accent: #466989;
  --we-card-shadow: 0 16px 45px rgba(53, 71, 106, 0.14);
  --we-dock-bg: rgba(255, 255, 255, 0.92);
}

/* 6. WINTER — Frost Alpine Snowscape (Row 4 Right in Reference) */
body[data-environment="winter"] {
  --c1: #3093e4; --c2: #72bdf2; --c3: #ace0f0; --c4: #daf0f0; --c5: #f9f6e1; --c6: #ffffff;
  --we-bg: radial-gradient(circle at 60% 0%, #ddf2fd 0%, #edf7fd 50%, #f5fafe 100%);
  --we-surface: #ffffff;
  --we-surface-trans: rgba(255, 255, 255, 0.9);
  --we-surface-card: rgba(255, 255, 255, 0.95);
  --we-surface-hover: #f2f9fd;
  --we-ink: #15324d;
  --we-ink-secondary: #416281;
  --we-ink-muted: #779ab9;
  --we-line: #d8ecf8;
  --we-line-focus: #60b2eb;
  --we-primary: #258ad6;
  --we-primary-hover: #166fb3;
  --we-primary-light: #e2f4fd;
  --we-primary-glow: rgba(37, 138, 214, 0.28);
  --we-accent-gradient: linear-gradient(135deg, #258ad6 0%, #72bdf2 50%, #ace0f0 100%);
  --we-theme-accent: #258ad6;
  --we-card-shadow: 0 16px 45px rgba(37, 138, 214, 0.14);
  --we-dock-bg: rgba(255, 255, 255, 0.92);
}

/* 7. AUTUMN — Magenta Dusk Twilight (Row 2 Right in Reference) */
body[data-environment="autumn"] {
  --c1: #1b122e; --c2: #4f2b6e; --c3: #9b387e; --c4: #df4c72; --c5: #f88f6c; --c6: #5e2343;
  --we-bg: radial-gradient(circle at 50% 0%, #fae6ec 0%, #fbf0f4 45%, #faf3f7 100%);
  --we-surface: #ffffff;
  --we-surface-trans: rgba(255, 255, 255, 0.9);
  --we-surface-card: rgba(255, 255, 255, 0.95);
  --we-surface-hover: #fdf2f6;
  --we-ink: #32162a;
  --we-ink-secondary: #6e405e;
  --we-ink-muted: #9e718f;
  --we-line: #f1dbe4;
  --we-line-focus: #df4c72;
  --we-primary: #cf3a66;
  --we-primary-hover: #b0244e;
  --we-primary-light: #fde8ee;
  --we-primary-glow: rgba(207, 58, 102, 0.28);
  --we-accent-gradient: linear-gradient(135deg, #4f2b6e 0%, #cf3a66 50%, #f88f6c 100%);
  --we-theme-accent: #cf3a66;
  --we-card-shadow: 0 16px 45px rgba(207, 58, 102, 0.14);
  --we-dock-bg: rgba(255, 255, 255, 0.92);
}

/* 8. SPRING — Dreamy Lilac & Pastel Moon (Row 4 Left in Reference) */
body[data-environment="spring"] {
  --c1: #2a1f4c; --c2: #5f4789; --c3: #9d76b1; --c4: #d5aed5; --c5: #f7d3df; --c6: #fbf0dd;
  --we-bg: radial-gradient(circle at 50% 0%, #f5e9f9 0%, #fbf3fc 50%, #fcf7fd 100%);
  --we-surface: #ffffff;
  --we-surface-trans: rgba(255, 255, 255, 0.9);
  --we-surface-card: rgba(255, 255, 255, 0.95);
  --we-surface-hover: #faf0fc;
  --we-ink: #2b1c3e;
  --we-ink-secondary: #644a82;
  --we-ink-muted: #9579b4;
  --we-line: #ecdcf0;
  --we-line-focus: #9d76b1;
  --we-primary: #8a5aa8;
  --we-primary-hover: #71418e;
  --we-primary-light: #f5e8fa;
  --we-primary-glow: rgba(138, 90, 168, 0.28);
  --we-accent-gradient: linear-gradient(135deg, #5f4789 0%, #9d76b1 50%, #f7d3df 100%);
  --we-theme-accent: #8a5aa8;
  --we-card-shadow: 0 16px 45px rgba(138, 90, 168, 0.14);
  --we-dock-bg: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   Global Dark Mode Variable Harmonization
   When dark mode is active on html or body, ensure surfaces and text remain dark-adapted
   ========================================================================== */
html.dark,
:root[data-theme="dark"],
[data-theme="dark"] {
  color-scheme: dark;
}

html.dark body:not([data-environment="night"]):not([data-environment="autumn"]):not([data-environment="spring"]),
body.dark:not([data-environment="night"]):not([data-environment="autumn"]):not([data-environment="spring"]),
[data-theme="dark"] body:not([data-environment="night"]):not([data-environment="autumn"]):not([data-environment="spring"]) {
  --we-bg: radial-gradient(circle at 50% 0%, #151b36 0%, #0c1020 50%, #070a14 100%);
  --we-surface: #10162a;
  --we-surface-trans: rgba(16, 22, 42, 0.88);
  --we-surface-card: rgba(19, 27, 52, 0.95);
  --we-surface-hover: #1b264a;
  --we-ink: #f0f4fd;
  --we-ink-secondary: #b2c2e4;
  --we-ink-muted: #6f82aa;
  --we-line: #222f54;
  --we-line-focus: #5274bd;
  --we-dock-bg: rgba(16, 22, 42, 0.94);
  --we-card-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
}

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


html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--we-font-sans);
  background: var(--we-bg);
  color: var(--we-ink);
  min-height: 100vh;
  line-height: 1.6;
  transition: background var(--we-trans-speed) cubic-bezier(0.16, 1, 0.3, 1),
              color var(--we-trans-speed) cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; border: none; background: transparent; }

.container {
  max-width: var(--we-max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--we-accent-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background var(--we-trans-speed) ease;
}
.announcement-bar .badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: var(--we-radius-full);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.announcement-bar a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Main Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--we-surface-trans);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--we-line);
  transition: background var(--we-trans-speed) ease, border-color var(--we-trans-speed) ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--we-max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--we-accent-gradient);
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--we-font-heading);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 14px var(--we-primary-glow);
  transition: background var(--we-trans-speed) ease;
}
.brand-text { display: flex; flex-direction: column; }
.brand-title {
  font-family: var(--we-font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.6px;
  color: var(--we-ink);
  transition: color var(--we-trans-speed) ease;
}
.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--we-ink-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--we-ink-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--we-primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--we-primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--we-radius-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-ghost {
  color: var(--we-ink-secondary);
  background: transparent;
  border: 1px solid var(--we-line);
}
.btn-ghost:hover {
  background: var(--we-surface);
  color: var(--we-ink);
  border-color: var(--we-line-focus);
}
.btn-primary {
  background: var(--we-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--we-primary-glow);
}
.btn-primary:hover {
  background: var(--we-primary-hover);
  transform: translateY(-1px);
}
.btn-gradient {
  background: var(--we-accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--we-primary-glow);
  font-weight: 700;
}
.btn-gradient:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   HOMEPAGE FIRST PAGE HERO: Two-Column Studio Layout (Side Rail + Living Canvas)
   ========================================================================== */

.hero-section {
  padding: 36px 0 24px;
}
.hero-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}
.hero-lead { max-width: 860px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--we-primary);
  background: var(--we-primary-light);
  padding: 5px 12px;
  border-radius: var(--we-radius-full);
  margin-bottom: 12px;
  transition: all var(--we-trans-speed) ease;
}
.hero-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}
.hero-title {
  font-family: var(--we-font-heading);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--we-ink);
  margin-bottom: 10px;
  transition: color var(--we-trans-speed) ease;
}
.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--we-ink-secondary);
  max-width: 720px;
  transition: color var(--we-trans-speed) ease;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--we-ink-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.time-pill .live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* The Core Two-Column Workbench */
.workbench-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: stretch;
}

/* SIDEBAR: Environment Station */
.env-side-rail {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--we-card-shadow);
  backdrop-filter: blur(16px);
  transition: all var(--we-trans-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.side-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--we-line);
}
.side-rail-title {
  font-family: var(--we-font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--we-ink);
}
.auto-toggle-box {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--we-ink-secondary);
  cursor: pointer;
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  padding: 4px 10px;
  border-radius: var(--we-radius-full);
}
.auto-toggle-box input {
  accent-color: var(--we-primary);
  width: 13px;
  height: 13px;
  cursor: pointer;
}

/* Environment List in Side Rail */
.env-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 570px;
  overflow-y: auto;
  padding-right: 4px;
}
.env-list::-webkit-scrollbar { width: 5px; }
.env-list::-webkit-scrollbar-thumb { background: var(--we-line); border-radius: 4px; }

.env-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--we-radius-md);
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  color: var(--we-ink-secondary);
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.env-card:hover {
  background: var(--we-surface-hover);
  border-color: var(--we-line-focus);
  color: var(--we-ink);
  transform: translateX(2px);
}
.env-card.active {
  background: var(--we-surface);
  border-color: var(--we-primary);
  color: var(--we-ink);
  box-shadow: 0 4px 18px var(--we-primary-glow);
}
.env-card.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--we-primary);
}

.env-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.env-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.env-icon-badge.morning { background: #fff0f5; color: #d4638a; }
.env-icon-badge.afternoon { background: #e0f2ff; color: #1e6fe3; }
.env-icon-badge.sunset { background: #feebe3; color: #e75b28; }
.env-icon-badge.night { background: #1b274c; color: #7a96cb; }
.env-icon-badge.rain { background: #e4edf4; color: #466989; }
.env-icon-badge.winter { background: #e2f4fd; color: #258ad6; }
.env-icon-badge.autumn { background: #fde8ee; color: #cf3a66; }
.env-icon-badge.spring { background: #f5e8fa; color: #8a5aa8; }

.env-card-info {
  display: flex;
  flex-direction: column;
}
.env-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.env-card-sub {
  font-size: 10px;
  color: var(--we-ink-muted);
  margin-top: 2px;
}

/* Palette 6-dot Mini Preview (Direct match with reference image) */
.env-mini-palette {
  display: flex;
  gap: 3px;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 6px;
  border-radius: var(--we-radius-full);
}
.palette-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* MAIN STAGE (Canvas + Dock + Swatches) */
.main-stage-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Canvas Artwork Frame */
.canvas-frame {
  border-radius: var(--we-radius-xl);
  overflow: hidden;
  box-shadow: var(--we-card-shadow);
  background: #000000;
  position: relative;
  transition: box-shadow var(--we-trans-speed) ease;
}
.scene {
  position: relative;
  aspect-ratio: 1672 / 941;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #000000;
}

/* Background Layers */
.bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.environment-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.environment-bg.visible { opacity: 1; }

/* Sun Lighting Orb */
.sun-orb {
  position: absolute;
  left: 30%;
  top: 5%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 249, 199, 0.45) 0%, rgba(255, 231, 166, 0.2) 30%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  transition: background 800ms ease, left 800ms ease, top 800ms ease, opacity 800ms ease;
}
body[data-environment="sunset"] .sun-orb {
  left: 36%;
  top: 28%;
  background: radial-gradient(circle, rgba(255, 181, 120, 0.45) 0%, rgba(255, 140, 90, 0.18) 35%, transparent 68%);
}
body[data-environment="night"] .sun-orb {
  left: 28%;
  top: 10%;
  background: radial-gradient(circle, rgba(186, 205, 255, 0.32) 0%, rgba(140, 170, 255, 0.12) 40%, transparent 68%);
}

/* Clouds */
.cloud-layer {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
  transition: filter 800ms ease, opacity 800ms ease;
}
.cloud-layer.near {
  width: 108%;
  left: -4%;
  bottom: 18%;
  opacity: 0.18;
  filter: blur(1px);
  mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent);
}
.cloud-layer.far {
  width: 76%;
  right: -25%;
  top: 36%;
  opacity: 0.09;
  filter: blur(2px);
  mask-image: linear-gradient(transparent, #000 30%, #000 65%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 65%, transparent);
}
body[data-environment="night"] .cloud-layer {
  filter: brightness(0.4) sepia(0.2) hue-rotate(180deg) saturate(1.4);
  opacity: 0.07;
}

/* Swing Rig SVG */
.swing-rig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  transition: filter 800ms ease;
}
body[data-environment="night"] .swing-rig { filter: brightness(0.78) saturate(0.7); }
body[data-environment="sunset"] .swing-rig { filter: sepia(0.12) saturate(1.04); }
body[data-environment="rain"] .swing-rig { filter: saturate(0.68) brightness(0.92); }

/* Particle Canvas */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* HUD Overlay */
.scene-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(15, 17, 26, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: var(--we-radius-full);
}
.hud-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--we-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(15, 17, 26, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: var(--we-radius-full);
}
.hud-telemetry .fps-val { color: #55f3a0; }
.hud-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Canvas Fullscreen */
.canvas-frame:fullscreen {
  display: grid;
  place-items: center;
  background: #000000;
  border-radius: 0;
}
.canvas-frame:fullscreen .scene {
  width: min(100vw, 177.68vh);
  aspect-ratio: 1672 / 941;
}

/* Motion Controls Dock */
.control-dock {
  padding: 16px 22px;
  background: var(--we-dock-bg);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
  transition: all var(--we-trans-speed) ease;
}
.dock-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--we-primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px var(--we-primary-glow);
}
.play-btn:hover {
  background: var(--we-primary-hover);
  transform: scale(1.05);
}
.play-info { display: flex; flex-direction: column; }
.play-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--we-ink);
}
.play-info small {
  font-size: 11px;
  color: var(--we-ink-muted);
}
.slider-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--we-ink-secondary);
}
.slider-control input[type="range"] {
  width: 100px;
  accent-color: var(--we-primary);
  cursor: pointer;
  height: 4px;
}
.slider-control output {
  font-family: var(--we-font-mono);
  font-size: 11px;
  color: var(--we-ink);
  min-width: 28px;
}
.toggle-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill-toggle { cursor: pointer; }
.pill-toggle input { display: none; }
.pill-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--we-radius-md);
  border: 1px solid var(--we-line);
  font-size: 11px;
  font-weight: 600;
  color: var(--we-ink-secondary);
  background: var(--we-surface);
  transition: all 0.2s ease;
}
.pill-toggle:hover span { border-color: var(--we-line-focus); }
.pill-toggle input:checked + span {
  background: var(--we-primary-light);
  color: var(--we-primary);
  border-color: var(--we-line-focus);
}

/* ==========================================================================
   DYNAMIC COLOR PALETTE SWATCH BAR (Directly showcasing the 6 sky tones!)
   ========================================================================== */
.palette-swatches-strip {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all var(--we-trans-speed) ease;
}
.swatches-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.swatches-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--we-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.swatches-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  padding: 5px 10px;
  border-radius: var(--we-radius-md);
  font-family: var(--we-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--we-ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.color-pill:hover {
  transform: translateY(-2px);
  border-color: var(--we-line-focus);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.color-blob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Quick Action Strip */
.quick-action-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.action-card {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  padding: 18px 22px;
  border-radius: var(--we-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--we-line-focus);
  box-shadow: var(--we-card-shadow);
}
.action-card-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--we-ink);
  margin-bottom: 2px;
}
.action-card-info p {
  font-size: 12px;
  color: var(--we-ink-muted);
}
.action-card-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--we-radius-sm);
}

/* Pro Banner */
.pro-banner-section { margin: 56px 0 24px; }
.pro-card {
  background: var(--we-surface-card);
  color: var(--we-ink);
  border-radius: var(--we-radius-xl);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--we-card-shadow);
  border: 1px solid var(--we-line);
  transition: all var(--we-trans-speed) ease;
}
.pro-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--we-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.pro-card-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--we-primary-light);
  border: 1px solid var(--we-line);
  color: var(--we-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--we-radius-full);
  margin-bottom: 14px;
}
.pro-title {
  font-family: var(--we-font-heading);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--we-ink);
}
.pro-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--we-ink-secondary);
  margin-bottom: 24px;
}
.pro-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pro-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--we-ink-secondary);
}
.pro-perk svg { color: var(--we-primary); flex-shrink: 0; }
.pro-cta-box {
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  padding: 32px;
  border-radius: var(--we-radius-lg);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.pro-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.price-currency { font-size: 24px; font-weight: 700; color: var(--we-ink); }
.price-value { font-size: 44px; font-weight: 800; font-family: var(--we-font-heading); color: var(--we-ink); }
.price-period { font-size: 13px; color: var(--we-ink-muted); }
.price-sub { font-size: 12px; color: var(--we-ink-muted); margin-bottom: 20px; }
.btn-buy-pro {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--we-radius-md);
  background: var(--we-accent-gradient);
  color: #ffffff;
  box-shadow: 0 8px 24px var(--we-primary-glow);
  margin-bottom: 12px;
}
.btn-buy-pro:hover {
  transform: translateY(-2px);
}
.guarantee-note { font-size: 11px; color: var(--we-ink-muted); }

/* Sponsor Strip */
.sponsor-strip {
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--we-surface-card);
  border: 1px dashed var(--we-line);
  border-radius: var(--we-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sponsor-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--we-ink-muted);
}
.sponsor-content { display: flex; align-items: center; gap: 12px; }
.sponsor-logo { font-weight: 800; color: var(--we-ink); font-size: 14px; }
.sponsor-desc { font-size: 13px; color: var(--we-ink-secondary); }

/* Code & Inspector Section */
.code-section { margin: 56px 0; }
.section-header { margin-bottom: 24px; }
.section-title {
  font-family: var(--we-font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--we-ink);
  margin-bottom: 8px;
}
.section-subtitle { font-size: 15px; color: var(--we-ink-secondary); }
.tab-container {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  overflow: hidden;
  box-shadow: var(--we-card-shadow);
}
.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--we-line);
  background: var(--we-surface);
  flex-wrap: wrap;
  gap: 12px;
}
.tab-nav { display: flex; gap: 8px; }
.tab-btn {
  padding: 8px 16px;
  border-radius: var(--we-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--we-ink-secondary);
  background: transparent;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--we-ink); background: var(--we-surface-hover); }
.tab-btn.active {
  color: var(--we-primary);
  background: var(--we-primary-light);
  font-weight: 700;
}
.code-actions { display: flex; align-items: center; gap: 8px; }
.code-block {
  padding: 24px;
  background: #0f1322;
  color: #e5e9f8;
  font-family: var(--we-font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  max-height: 540px;
}
.code-pane { display: none; }
.code-pane.active { display: block; }

/* Generative Engine Optimization & Feature Cards */
.geo-deep-dive { margin: 64px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.feature-card {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  padding: 28px;
  border-radius: var(--we-radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--we-card-shadow);
  border-color: var(--we-line-focus);
}
.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--we-primary-light);
  color: var(--we-primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: var(--we-font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--we-ink);
}
.feature-card p {
  font-size: 14px;
  color: var(--we-ink-secondary);
  line-height: 1.6;
}

/* Benchmark Table */
.benchmark-table-box {
  margin-top: 40px;
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.benchmark-table th {
  background: var(--we-surface);
  padding: 16px 20px;
  font-weight: 700;
  color: var(--we-ink);
  border-bottom: 1px solid var(--we-line);
  font-family: var(--we-font-heading);
}
.benchmark-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--we-line);
  color: var(--we-ink-secondary);
}
.benchmark-table tr:last-child td { border-bottom: none; }
.benchmark-table tr:hover td { background: var(--we-surface-hover); }
.benchmark-table .badge-best {
  display: inline-block;
  background: var(--we-primary-light);
  color: var(--we-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--we-radius-sm);
}

/* FAQ Accordion */
.faq-section { margin: 64px 0; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.faq-item {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--we-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
}
.faq-question svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--we-ink-muted);
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--we-primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--we-ink-secondary);
}
.faq-item.open .faq-answer {
  max-height: 280px;
  padding: 0 24px 22px;
}

/* Lead Magnet */
.newsletter-card {
  margin: 56px 0;
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--we-card-shadow);
  transition: all var(--we-trans-speed) ease;
}
.newsletter-card h3 {
  font-family: var(--we-font-heading);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--we-ink);
}
.newsletter-card p {
  font-size: 15px;
  color: var(--we-ink-secondary);
  max-width: 580px;
  margin: 0 auto 24px;
}
.newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--we-radius-md);
  border: 1px solid var(--we-line);
  background: var(--we-surface);
  color: var(--we-ink);
  font-size: 14px;
  outline: none;
}
.newsletter-input:focus {
  border-color: var(--we-primary);
  box-shadow: 0 0 0 3px var(--we-primary-glow);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--we-line);
  background: var(--we-surface-trans);
  padding: 56px 0 36px;
  font-size: 13px;
  color: var(--we-ink-muted);
  transition: all var(--we-trans-speed) ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--we-ink);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a:hover { color: var(--we-primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--we-line);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--we-surface-card);
  color: var(--we-ink);
  border: 1px solid var(--we-line);
  padding: 12px 20px;
  border-radius: var(--we-radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  padding: 32px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-close { font-size: 20px; color: var(--we-ink-muted); }
.modal-close:hover { color: var(--we-ink); }

/* ==========================================================================
   DEVELOPER SETUP HUB & PC PREFLIGHT MATRIX (THEME-REACTIVE STATION ENGINE)
   ========================================================================== */

.setup-hub-section {
  padding: 50px 0 30px;
  position: relative;
}

.setup-hub-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 36px;
}

.setup-hub-header .section-subtitle {
  margin: 0 auto;
}

/* Hub Navigation Tabs */
.hub-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 28px;
  padding: 8px;
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-full);
  box-shadow: var(--we-card-shadow);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.hub-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--we-radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--we-ink-secondary);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.hub-nav-tab:hover {
  color: var(--we-ink);
  background: var(--we-surface-hover);
}

.hub-nav-tab.active {
  background: var(--we-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--we-primary-glow);
}

/* Station Content Panes */
.hub-pane {
  display: none;
  animation: hubFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-pane.active {
  display: block;
}

@keyframes hubFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   STATION 1: INTERACTIVE SETUP WIZARD
   -------------------------------------------------------------------------- */
.wizard-container {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  box-shadow: var(--we-card-shadow);
  padding: 36px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wizard-progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
  gap: 8px;
}

.wizard-progress-track::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--we-line);
  z-index: 1;
}

.wizard-progress-fill {
  position: absolute;
  top: 18px;
  left: 30px;
  height: 3px;
  background: var(--we-accent-gradient);
  z-index: 2;
  transition: width 0.4s ease;
}

.wizard-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
}

.wizard-step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--we-surface);
  border: 2px solid var(--we-line);
  color: var(--we-ink-muted);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.wizard-step-node.completed .wizard-step-badge {
  background: var(--we-primary);
  border-color: var(--we-primary);
  color: #ffffff;
}

.wizard-step-node.active .wizard-step-badge {
  background: var(--we-surface);
  border-color: var(--we-primary);
  color: var(--we-primary);
  box-shadow: 0 0 0 4px var(--we-primary-glow);
}

.wizard-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--we-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.wizard-step-node.active .wizard-step-label,
.wizard-step-node.completed .wizard-step-label {
  color: var(--we-ink);
}

.wizard-step-content {
  margin-bottom: 32px;
}

.wizard-step-header {
  margin-bottom: 24px;
}

.wizard-step-header h3 {
  font-family: var(--we-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--we-ink);
  margin-bottom: 6px;
}

.wizard-step-header p {
  color: var(--we-ink-secondary);
  font-size: 14px;
}

/* Recalculation Alert Banner */
.recalculation-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--we-radius-md);
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

body[data-environment="night"] .recalculation-alert {
  color: #fde047;
  background: rgba(234, 179, 8, 0.2);
}

/* Wizard Option Cards Grid */
.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.wizard-opt-card {
  padding: 20px;
  border-radius: var(--we-radius-lg);
  background: var(--we-surface);
  border: 2px solid var(--we-line);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-opt-card:hover {
  border-color: var(--we-line-focus);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.wizard-opt-card.selected {
  border-color: var(--we-primary);
  background: var(--we-primary-light);
  box-shadow: 0 8px 24px var(--we-primary-glow);
}

.wizard-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-opt-icon {
  font-size: 26px;
}

.wizard-opt-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--we-radius-full);
  background: var(--we-line);
  color: var(--we-ink-secondary);
}

.wizard-opt-card.selected .wizard-opt-badge {
  background: var(--we-primary);
  color: #ffffff;
}

.wizard-opt-title {
  font-family: var(--we-font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--we-ink);
}

.wizard-opt-desc {
  font-size: 12px;
  color: var(--we-ink-secondary);
  line-height: 1.5;
}

/* Wizard Bottom Controls */
.wizard-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--we-line);
}

/* Plan Final Output in Wizard */
.plan-summary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.plan-metric-card {
  padding: 16px;
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-md);
}

.plan-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--we-ink-muted);
  margin-bottom: 4px;
}

.plan-metric-val {
  font-family: var(--we-font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--we-ink);
}

.shareable-link-container {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: var(--we-radius-md);
  background: var(--we-surface);
  border: 1px solid var(--we-line);
}

.shareable-link-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--we-font-mono);
  font-size: 12px;
  color: var(--we-ink);
  outline: none;
}

.step-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.checklist-item {
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-lg);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.checklist-item:hover {
  border-color: var(--we-line-focus);
}

.checklist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checklist-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--we-primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.checklist-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--we-ink);
}

.checklist-level-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--we-radius-full);
  background: var(--we-line);
  color: var(--we-ink-secondary);
}

.checklist-cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #38bdf8;
  padding: 10px 14px;
  border-radius: var(--we-radius-sm);
  font-family: var(--we-font-mono);
  font-size: 12px;
  overflow-x: auto;
}

.checklist-cmd-box code {
  white-space: pre;
}

.checklist-copy-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.checklist-copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.checklist-desc {
  font-size: 13px;
  color: var(--we-ink-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   STATION 2: PC HARDWARE PREFLIGHT & HARDWARE EVALUATOR
   -------------------------------------------------------------------------- */
.preflight-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
}

.preflight-controls-card,
.preflight-verdict-card {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  box-shadow: var(--we-card-shadow);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.preflight-card-title {
  font-family: var(--we-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--we-ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-field {
  margin-bottom: 22px;
}

.control-field-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--we-ink);
  margin-bottom: 8px;
}

.control-field-val {
  color: var(--we-primary);
  font-family: var(--we-font-mono);
  font-weight: 800;
}

.preflight-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--we-radius-md);
  border: 1px solid var(--we-line);
  background: var(--we-surface);
  color: var(--we-ink);
  font-family: var(--we-font-sans);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.preflight-select:focus {
  border-color: var(--we-primary);
}

.preflight-range {
  width: 100%;
  accent-color: var(--we-primary);
}

.vt-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--we-radius-md);
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--we-ink);
  cursor: pointer;
}

.vt-checkbox-label input {
  accent-color: var(--we-primary);
  width: 18px;
  height: 18px;
}

/* Verdict Status Header */
.verdict-status-banner {
  padding: 20px;
  border-radius: var(--we-radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.verdict-status-banner.pass {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #15803d;
}

.verdict-status-banner.bottleneck {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #a16207;
}

.verdict-status-banner.fail {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

body[data-environment="night"] .verdict-status-banner.pass { color: #4ade80; }
body[data-environment="night"] .verdict-status-banner.bottleneck { color: #fde047; }
body[data-environment="night"] .verdict-status-banner.fail { color: #f87171; }

.verdict-status-icon {
  font-size: 32px;
}

.verdict-status-title {
  font-family: var(--we-font-heading);
  font-size: 18px;
  font-weight: 800;
}

.verdict-status-sub {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}

/* Storage Visual Breakdown */
.storage-bar-wrapper {
  margin: 20px 0 24px;
}

.storage-bar-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--we-ink-secondary);
  margin-bottom: 6px;
}

.storage-multi-bar {
  display: flex;
  height: 14px;
  border-radius: var(--we-radius-full);
  overflow: hidden;
  background: var(--we-line);
}

.storage-segment {
  height: 100%;
  transition: width 0.4s ease;
}

.storage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--we-ink-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Tier Matrix Comparison Table */
.tier-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 24px;
}

.tier-matrix-table th {
  background: var(--we-surface);
  color: var(--we-ink);
  font-weight: 800;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--we-line);
}

.tier-matrix-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--we-line);
  color: var(--we-ink-secondary);
}

.tier-matrix-table tr:hover td {
  background: var(--we-surface-hover);
}

/* --------------------------------------------------------------------------
   STATION 3: TECHNOLOGY CATALOG & RECIPE EXPLORER
   -------------------------------------------------------------------------- */
.catalog-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.catalog-filter-btn {
  padding: 7px 16px;
  border-radius: var(--we-radius-full);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--we-line);
  color: var(--we-ink-secondary);
  background: var(--we-surface);
  transition: all 0.2s ease;
}

.catalog-filter-btn:hover {
  border-color: var(--we-line-focus);
  color: var(--we-ink);
}

.catalog-filter-btn.active {
  background: var(--we-primary);
  border-color: var(--we-primary);
  color: #ffffff;
}

.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.tech-catalog-card {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  box-shadow: var(--we-card-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-catalog-card:hover {
  transform: translateY(-3px);
  border-color: var(--we-line-focus);
}

.tech-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tech-card-icon {
  font-size: 32px;
}

.tech-card-status-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--we-radius-full);
  text-transform: uppercase;
}

.tech-card-status-badge.tested {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.tech-card-status-badge.reviewed {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.tech-card-status-badge.planned {
  background: var(--we-line);
  color: var(--we-ink-muted);
}

body[data-environment="night"] .tech-card-status-badge.tested { color: #4ade80; }
body[data-environment="night"] .tech-card-status-badge.reviewed { color: #60a5fa; }

.tech-card-title {
  font-family: var(--we-font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--we-ink);
  margin-bottom: 4px;
}

.tech-card-ver {
  font-size: 12px;
  font-family: var(--we-font-mono);
  color: var(--we-ink-muted);
}

.tech-card-desc {
  font-size: 13px;
  color: var(--we-ink-secondary);
  line-height: 1.5;
}

.tech-card-os-matrix {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.os-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  color: var(--we-ink-secondary);
}

/* Recipe Viewer Drawer / Section */
.recipe-details-card {
  margin-top: 28px;
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  padding: 32px;
  box-shadow: var(--we-card-shadow);
}

.recipe-disclosure-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 6px;
  background: var(--we-surface-hover);
  border-radius: var(--we-radius-full);
}

.disclosure-level-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--we-radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--we-ink-secondary);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.disclosure-level-btn.active {
  background: var(--we-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   STATION 4: SAFE DIAGNOSTIC SCRIPTS
   -------------------------------------------------------------------------- */
.scripts-container {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  box-shadow: var(--we-card-shadow);
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.safety-guarantee-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--we-radius-lg);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-bottom: 28px;
}

.safety-badge-icon {
  font-size: 28px;
}

.safety-badge-text h4 {
  font-family: var(--we-font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 3px;
}

body[data-environment="night"] .safety-badge-text h4 { color: #4ade80; }

.safety-badge-text p {
  font-size: 13px;
  color: var(--we-ink-secondary);
  margin: 0;
}

.script-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   STATION 5: ERROR DIAGNOSTICS & REDACTION TOOL
   -------------------------------------------------------------------------- */
.error-diagnostics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.error-catalog-col,
.error-redactor-col {
  background: var(--we-surface-card);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-xl);
  box-shadow: var(--we-card-shadow);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.error-search-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--we-radius-md);
  border: 1px solid var(--we-line);
  background: var(--we-surface);
  color: var(--we-ink);
  font-family: var(--we-font-sans);
  font-size: 13px;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.error-search-input:focus {
  border-color: var(--we-primary);
}

.error-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.error-item-card {
  padding: 14px 18px;
  border-radius: var(--we-radius-md);
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.error-item-card:hover {
  border-color: var(--we-line-focus);
}

.error-item-card.active {
  border-color: var(--we-primary);
  background: var(--we-primary-light);
}

.error-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--we-ink);
  margin-bottom: 4px;
}

.error-item-tag {
  font-size: 11px;
  font-family: var(--we-font-mono);
  color: var(--we-ink-muted);
}

.log-paste-textarea {
  width: 100%;
  height: 140px;
  padding: 12px;
  border-radius: var(--we-radius-md);
  border: 1px solid var(--we-line);
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--we-font-mono);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 12px;
  outline: none;
}

.log-paste-textarea:focus {
  border-color: var(--we-primary);
}

.sample-logs-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.sample-log-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--we-radius-full);
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  color: var(--we-ink-secondary);
  cursor: pointer;
}

.sample-log-btn:hover {
  color: var(--we-ink);
  border-color: var(--we-primary);
}

.redacted-results-box {
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  border-radius: var(--we-radius-lg);
  padding: 18px;
  margin-top: 18px;
}

.redaction-stats-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.redaction-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--we-radius-full);
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

body[data-environment="night"] .redaction-badge { color: #4ade80; }

.ordered-fix-card {
  padding: 14px 16px;
  border-radius: var(--we-radius-md);
  background: var(--we-surface);
  border: 1px solid var(--we-line);
  margin-bottom: 10px;
}

.ordered-fix-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ordered-fix-rank {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--we-line);
  color: var(--we-ink-secondary);
}

.ordered-fix-rank.least-disruptive {
  background: rgba(34, 197, 94, 0.2);
  color: #15803d;
}

body[data-environment="night"] .ordered-fix-rank.least-disruptive { color: #4ade80; }

.ordered-fix-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--we-ink);
}

.ordered-fix-desc {
  font-size: 12px;
  color: var(--we-ink-secondary);
  line-height: 1.4;
}

/* Responsive Queries */
@media (max-width: 1100px) {
  .workbench-layout {
    grid-template-columns: 1fr;
  }
  .env-side-rail {
    order: 2;
  }
  .env-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    max-height: none;
  }
}

@media (max-width: 850px) {
  .header-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-header { flex-direction: column; align-items: flex-start; }
  .hero-meta { align-items: flex-start; text-align: left; }
  .pro-card-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input, .newsletter-form .btn { width: 100%; }
}
