/* ==========================================================================
   Cyluma - Design System
   Aesthetic Architecture matched to https://niteeshyadav.com/
   Palette preserved from Cyluma dark theme
   ========================================================================== */

/* ---------- 1 · TOKENS & CANONICAL VARIABLES ---------- */
:root {
  /* Typography from niteeshyadav.com */
  --sans: 'Gothic A1', 'A1 Gothic', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --font-sans: var(--sans);
  --font-display: var(--sans);
  --font-mono: var(--mono);

  /* Canonical Palette (Preserving Cyluma's Dark Identity) */
  --bg-page: #07090e;
  --bg-surface: #0d121c;
  --bg-panel: #131926;
  --bg-panel-elevated: #182030;

  /* Lines & Blueprint Borders */
  --border-light: #1e2638;
  --border-strong: #2e3a54;
  --border-default: #475569;
  --border-highlight: rgba(255, 255, 255, 0.16);

  /* Text Tones */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-placeholder: #526079;
  --text-disabled: #334155;
  --text-inverse: #07090e;

  /* Controls & Buttons */
  --button-bg: #f8fafc;
  --button-text: #07090e;
  --button-secondary-bg: #131926;
  --button-secondary-text: #f8fafc;
  --button-hover-bg: #e2e8f0;

  /* Accents & Biome States */
  --accent-emerald: #10b981;
  --accent-teal: #14b8a6;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-coral: #f43f5e;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent: #10b981;

  /* Signature niteeshyadav.com Yellow */
  --style-yellow: #ffff00;
  --style-yellow-text: #07090e;

  /* Grid Dot Atmosphere */
  --dot: rgba(255, 255, 255, 0.08);

  /* Window Chrome & Elevation */
  --window-close: #ff5f56;
  --window-min: #ffbd2e;
  --window-max: #27c93f;
  --shadow-window: 0 28px 70px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-light);
  --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.5);

  /* Layout */
  --max-width: 1140px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2 · GLOBAL RESETS & SELECTION ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Signature Yellow Selection from niteeshyadav.com */
::selection {
  background: var(--style-yellow);
  color: var(--style-yellow-text);
}

::-moz-selection {
  background: var(--style-yellow);
  color: var(--style-yellow-text);
}

html {
  font-family: var(--sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

body {
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-page);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 16px 16px;
  font-size: 15px;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

/* Auto-hiding / Minimal Scrollbar from niteeshyadav.com */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Ambient Canvas Glow (preserved from Cyluma, overlaid with dot grid) */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  will-change: transform;
}

.orb-1 {
  top: -10%;
  left: 15%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #10b981 0%, #06b6d4 100%);
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-2 {
  top: 35%;
  right: -5%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #3b82f6 0%, #8b5cf6 100%);
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  bottom: 5%;
  left: 10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #059669 0%, #0284c7 100%);
  animation: floatOrb 25s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.05); }
  100% { transform: translate(-25px, 35px) scale(0.96); }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* ---------- 3 · THE FIGMA CARD SYSTEM (.card-h + .card-b) ---------- */
/* Canonical structure from niteeshyadav.com: header strip and body share an edge */
.card {
  box-sizing: border-box;
  width: 100%;
}

.card-h {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-bottom: 0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-placeholder);
  box-sizing: border-box;
}

.card-h .card-h-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.card-h .card-h-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
}

.card-b {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 24px;
  box-sizing: border-box;
}

.card + .card {
  margin-top: 2px;
}

/* Square indicator dot / box */
.sq-box {
  width: 8px;
  height: 8px;
  border: 1px solid var(--border-strong);
  display: inline-block;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sq-box.active,
.sq-box.green {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.sq-box.yellow {
  background: var(--style-yellow);
  border-color: var(--style-yellow);
}

.sq-box.blue {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.sq-box.coral {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
}

/* Repeating dashed line dividers */
.rule-dashed {
  height: 1px;
  width: 100%;
  background: repeating-linear-gradient(to right, var(--border-light) 0 2px, transparent 2px 6px);
  margin: 18px 0;
  border: 0;
}

/* ---------- 4 · TOPBAR / NAVIGATION ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: border-color var(--transition-fast);
}

.nav-brand:hover .logo-box {
  border-color: var(--border-strong);
}

.nav-brand-img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: block;
}

.nav-brand-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Beta / Version Badge */
.beta-badge {
  background: var(--style-yellow);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--style-yellow-text);
  padding: 1px 6px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 6px 12px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-panel);
}

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

/* Primary and Secondary Technical Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 16px;
  height: 32px;
  border: 1px solid var(--button-bg);
  border-radius: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 16px;
  height: 32px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-panel);
  border-color: var(--border-strong);
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  font-size: 12px;
}

/* ---------- 5 · HERO SECTION ---------- */
.hero {
  padding: 64px 0 50px;
  position: relative;
  text-align: center;
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-meta-badge .dot-live {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseLive 2.4s ease-in-out infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

/* Display Title with Gothic A1 */
.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero-title .title-accent {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #5eead4;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

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

.hero-system-compat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-top: 14px;
  flex-wrap: wrap;
}

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

.compat-sep {
  color: var(--border-strong);
}

/* ---------- 6 · THE INTERACTIVE SIMULATOR FRAME ---------- */
.showcase-wrapper {
  margin: 50px auto 0;
  max-width: 1060px;
  position: relative;
}

.mac-desktop-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-window);
  position: relative;
  text-align: left;
}

/* macOS Window Header / Menubar matching niteeshyadav.com copak window header */
.mac-menubar {
  height: 38px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  user-select: none;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 12px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.window-dot.close { background: var(--window-close); }
.window-dot.min { background: var(--window-min); }
.window-dot.max { background: var(--window-max); }

.apple-logo {
  font-size: 13px;
  line-height: 1;
  color: var(--text-primary);
  margin-right: 6px;
}

.menubar-item {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 10px;
}

.menubar-item.active {
  color: var(--text-primary);
  font-weight: 700;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  text-transform: uppercase;
}

.menubar-active-app {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.menu-battery-icon {
  width: 16px;
  height: 12px;
}

/* Showcase Stage Layout */
.showcase-stage {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--bg-page);
  border-top: 1px solid transparent;
}

@media (max-width: 880px) {
  .showcase-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mac-menubar {
    padding: 0 8px;
    overflow: hidden;
  }

  .menubar-left .apple-logo,
  .menubar-item {
    display: none;
  }

  .window-dots {
    margin-right: 0;
  }

  .menubar-right {
    gap: 6px;
    font-size: 9px;
  }
}

/* Left: The Cyluma Popover Column */
.popover-stage-col {
  padding: 24px;
  background: var(--bg-page);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 880px) {
  .popover-stage-col {
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }
}

.cyluma-popover-clone {
  width: 100%;
  max-width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  position: relative;
}

.popover-artwork-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.popover-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.popover-artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.1) 0%, rgba(7, 9, 14, 0.85) 100%);
  pointer-events: none;
}

.popover-floating-stats {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.status-dot.low { background: var(--accent-amber); }
.status-dot.crit { background: var(--accent-coral); }
.status-dot.charging { background: var(--accent-cyan); animation: pulseLive 1.8s infinite; }

.popover-charge-readout {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.charge-big-number {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.charge-big-number span:last-child {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 2px;
}

.time-readout {
  text-align: right;
}

.time-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.time-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* Action Card formatted with .card-h & .card-b */
.popover-action-card {
  padding: 12px 14px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}

.action-card-body {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.action-card-button {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--button-bg);
  color: var(--button-text);
  border: 1px solid var(--button-bg);
  border-radius: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.action-card-button:hover {
  opacity: 0.88;
}

/* Popover Bottom Metrics Strip (Modular 3-column cell) */
.popover-bottom-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 32px;
  gap: 1px;
  background: var(--border-light);
  border-top: 0;
}

.metric-cell {
  background: var(--bg-surface);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-cell-label {
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.metric-cell-value {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.menu-trigger-button {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.menu-trigger-button:hover {
  color: var(--text-primary);
  background: var(--bg-panel);
}

/* Right: The Hardware Simulator Control Panel */
.demo-control-panel {
  padding: 24px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.control-panel-heading h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.badge-interactive {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  background: var(--accent-emerald);
  color: #07090e;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.control-value-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 1px 7px;
}

/* Technical Range Slider */
.cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  outline: none;
  border-radius: 0;
}

.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 18px;
  background: var(--button-bg);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.cyber-slider::-webkit-slider-thumb:hover {
  background: #ffffff;
}

/* Preset Buttons Grid */
.phase-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (max-width: 600px) {
  .phase-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.phase-btn {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 6px;
  background: var(--bg-panel);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phase-btn:hover {
  background: var(--bg-panel-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.phase-btn.active {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
  font-weight: 700;
}

/* Power Adapter Toggle Row */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  transition: 0.2s;
  border-radius: 0;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-tertiary);
  transition: 0.2s;
  border-radius: 0;
}

input:checked + .slider-switch {
  background-color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

input:checked + .slider-switch:before {
  transform: translateX(18px);
  background-color: #07090e;
}

/* ---------- 7 · SECTIONS COMMON STYLING ---------- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
  position: relative;
}

.section-header {
  margin-bottom: 40px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 14px;
  max-width: 820px;
}

.section-description {
  font-family: var(--sans);
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 680px;
}

/* Editorial Quotes with Gothic A1 */
.editorial-quote {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent-emerald);
  padding-left: 18px;
  margin-top: 24px;
  max-width: 720px;
}

/* ---------- 8 · SECTION 01: THE LIVING BIOME ---------- */
.biome-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .biome-split {
    grid-template-columns: 1fr;
  }
}

.biome-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.biome-visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.biome-visual-footer {
  padding: 10px 14px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* Biome Feature Item List */
.biome-features-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

.biome-feature-item {
  background: var(--bg-surface);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background-color var(--transition-fast);
}

.biome-feature-item:hover {
  background: var(--bg-panel);
}

.biome-item-bullet {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.biome-item-content h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.biome-item-content p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- 9 · SECTION 02 & 03: MODULAR GRID SYSTEM ---------- */
/* Canonical four pillars / modular grid matching niteeshyadav.com copak & shifts */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-cell {
  background: var(--bg-surface);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color var(--transition-fast);
}

.pillar-cell:hover {
  background: var(--bg-panel);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-icon-box {
  width: 32px;
  height: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  margin-bottom: 16px;
}

.pillar-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.pillar-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.pillar-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  color: var(--text-tertiary);
}

/* Diagnostics 6-Cell Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

@media (max-width: 900px) {
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10 · SECTION 04: THEMES SHOWCASE ---------- */
.theme-switcher-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-light);
  border-bottom: 0;
  width: max-content;
  max-width: 100%;
  background: var(--bg-surface);
}

.theme-tab-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-tab-btn:last-child {
  border-right: 0;
}

.theme-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-panel);
}

.theme-tab-btn.active {
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 700;
}

.theme-display-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}

@media (max-width: 800px) {
  .theme-display-card {
    grid-template-columns: 1fr;
  }
}

.theme-preview-img-box {
  background: #000;
  border-right: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

@media (max-width: 800px) {
  .theme-preview-img-box {
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }
}

.theme-preview-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.theme-info-box {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-emerald);
  margin-bottom: 10px;
}

.theme-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.theme-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.theme-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* ---------- 11 · ENGINEERING BANNER ---------- */
.engineering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

@media (max-width: 800px) {
  .engineering-grid {
    grid-template-columns: 1fr;
  }
}

.engineering-cell {
  background: var(--bg-surface);
  padding: 24px;
}

.engineering-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.engineering-cell h4 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.engineering-cell p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- 12 · FAQ ACCORDION ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

.faq-item {
  background: var(--bg-surface);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-panel);
}

.faq-question-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-index {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform var(--transition-smooth);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px 48px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- 13 · DOWNLOAD CALL TO ACTION ---------- */
.download-cta-section {
  padding: 90px 0;
  position: relative;
}

.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-icon-wrapper {
  margin: 0 auto 20px;
  display: inline-block;
}

.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.cta-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.cta-subtitle {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-meta-specs {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-top: 20px;
}

/* ---------- 14 · FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-page);
  padding: 40px 0 60px;
  position: relative;
  z-index: 2;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

@media (max-width: 880px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .nav-brand {
    order: 1;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    flex: 0 0 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-link {
    white-space: nowrap;
  }
}

.footer-bottom a:hover {
  color: var(--accent-emerald);
}
