/* ==========================================================================
   AETHERIA // NEXT-GEN UI & FRONTEND DESIGN SYSTEM
   ========================================================================== */

:root,
[data-theme="aurora"] {
  --bg-deep: #05060b;
  --bg-elevated: rgba(16, 19, 34, 0.65);
  --bg-card: rgba(20, 24, 42, 0.52);
  --text-main: #f4f6ff;
  --text-muted: #939bb8;
  --text-dim: #5d6584;

  --accent-primary: #7c5cff;
  --accent-secondary: #00e5ff;
  --accent-tertiary: #ff3b9a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.22);

  --spotlight-color: rgba(124, 92, 255, 0.16);
  --spotlight-border: rgba(0, 229, 255, 0.5);

  /* Live UI Alchemy Default Variables */
  --ui-hue: 255;
  --ui-accent: hsl(255, 92%, 66%);
  --ui-accent-glow: hsla(255, 95%, 65%, 0.42);
  --ui-radius: 24px;
  --ui-blur: 28px;
  --ui-alpha: 0.12;
  --ui-border-alpha: 0.22;
  --ui-glow-size: 45px;
}

[data-theme="obsidian"] {
  --bg-deep: #080706;
  --bg-elevated: rgba(26, 22, 18, 0.72);
  --bg-card: rgba(28, 24, 19, 0.58);
  --text-main: #fcf8f2;
  --text-muted: #b5a895;
  --text-dim: #756b5d;

  --accent-primary: #f5b942;
  --accent-secondary: #ff7b29;
  --accent-tertiary: #ffe08a;
  --border-subtle: rgba(245, 185, 66, 0.12);
  --border-highlight: rgba(245, 185, 66, 0.35);

  --spotlight-color: rgba(245, 185, 66, 0.15);
  --spotlight-border: rgba(245, 185, 66, 0.65);
}

[data-theme="swiss"] {
  --bg-deep: #0b0c0e;
  --bg-elevated: rgba(22, 24, 29, 0.82);
  --bg-card: rgba(24, 27, 32, 0.7);
  --text-main: #ffffff;
  --text-muted: #a0a8b4;
  --text-dim: #626b78;

  --accent-primary: #ccff00;
  --accent-secondary: #00ffa3;
  --accent-tertiary: #38bdf8;
  --border-subtle: rgba(204, 255, 0, 0.16);
  --border-highlight: rgba(204, 255, 0, 0.45);

  --spotlight-color: rgba(204, 255, 0, 0.14);
  --spotlight-border: rgba(204, 255, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
  selection-background-color: var(--accent-primary);
}

::selection {
  background: var(--accent-primary);
  color: #05060b;
}

body {
  background-color: var(--bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   GLOBAL SHADER CANVAS & FILM GRAIN
   ========================================================================== */
#shader-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   CUSTOM FLUID MAGNETIC CURSOR
   ========================================================================== */
@media (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }

  .cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 14px var(--accent-secondary);
    transition: width 0.2s, height 0.2s, background 0.2s;
  }

  .cursor-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.25s,
                border-color 0.25s;
  }

  .cursor-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
  }

  body.cursor-active .cursor-ring {
    width: 76px;
    height: 76px;
    background: rgba(124, 92, 255, 0.22);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
  }

  body.cursor-active .cursor-label {
    opacity: 1;
    transform: scale(1);
  }

  body.cursor-active .cursor-dot {
    opacity: 0;
  }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none;
  }
}

/* ==========================================================================
   FLOATING DYNAMIC ISLAND NAVIGATION
   ========================================================================== */
.floating-nav-wrapper {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 18px 10px 22px;
  border-radius: 999px;
  background: rgba(12, 15, 28, 0.68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
  box-shadow: 0 0 16px var(--accent-primary);
  animation: spinSlow 4s linear infinite;
}

.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-secondary);
  margin-left: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 99px;
  transition: color 0.25s, background 0.25s;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

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

.cmd-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.25s;
}

.cmd-btn:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
  background: rgba(255, 255, 255, 0.1);
}

.cmd-btn kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text-main);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.theme-dot[data-set-theme="aurora"] {
  background: linear-gradient(135deg, #7c5cff, #00e5ff);
}
.theme-dot[data-set-theme="obsidian"] {
  background: linear-gradient(135deg, #f5b942, #ff6b00);
}
.theme-dot[data-set-theme="swiss"] {
  background: linear-gradient(135deg, #ccff00, #00ffa3);
}

.theme-dot.active {
  transform: scale(1.22);
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   LAYOUT & HERO SECTION
   ========================================================================== */
main {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--accent-secondary);
  margin-bottom: 26px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-secondary);
  animation: pulseGlow 2s infinite;
}

.hero-title {
  font-family: 'Syne', "PingFang SC", sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.gradient-display {
  background: linear-gradient(120deg, #ffffff 0%, var(--accent-secondary) 45%, var(--accent-primary) 75%, var(--accent-tertiary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 6s linear infinite;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-desc strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #05060b;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 35px -8px var(--accent-primary),
              inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
  box-shadow: 0 16px 45px -4px var(--accent-secondary);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.25s, border-color 0.25s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-secondary);
}

.sound-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.sound-wave i {
  width: 2.5px;
  height: 5px;
  background: var(--accent-secondary);
  border-radius: 2px;
  transition: height 0.2s;
}

.sound-wave.playing i:nth-child(1) { animation: eqBar 0.6s infinite ease-in-out 0.1s; }
.sound-wave.playing i:nth-child(2) { animation: eqBar 0.6s infinite ease-in-out 0.25s; }
.sound-wave.playing i:nth-child(3) { animation: eqBar 0.6s infinite ease-in-out 0.05s; }
.sound-wave.playing i:nth-child(4) { animation: eqBar 0.6s infinite ease-in-out 0.35s; }

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

.metric-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-secondary);
  margin-left: 3px;
}

.metric-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* ==========================================================================
   HERO RIGHT: 3D HOLOGRAPHIC STAGE
   ========================================================================== */
.holo-stage {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  padding: 24px;
}

.holo-card {
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease-out;
}

.main-holo {
  padding: 22px;
  position: relative;
  z-index: 2;
}

.holo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.live-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(0, 229, 255, 0.14);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.orb-viewport {
  position: relative;
  height: 250px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.22), rgba(5, 6, 11, 0.92));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
}

.chromatic-orb {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    from 0deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary),
    var(--accent-primary)
  );
  filter: blur(0.5px) contrast(135%);
  box-shadow:
    0 0 50px var(--accent-primary),
    inset 0 0 28px rgba(255, 255, 255, 0.75);
  animation: orbRotate 5s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-inner-ring {
  width: 84%;
  height: 84%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.65);
  animation: orbRotate 8s linear infinite reverse;
}

.orb-core {
  position: absolute;
  width: 54%;
  height: 54%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, rgba(5, 6, 11, 0.9));
  box-shadow: 0 0 25px #fff;
}

.orb-telemetry {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  background: rgba(5, 6, 11, 0.65);
  backdrop-filter: blur(8px);
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.orb-telemetry span {
  color: var(--text-dim);
  margin-right: 6px;
}

.orb-telemetry strong {
  color: var(--accent-secondary);
}

.holo-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.mini-slider-row input[type="range"] {
  width: 52%;
}

/* Floating satellite chips */
.floating-chip {
  position: absolute;
  padding: 12px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  pointer-events: none;
}

.chip-top {
  top: -12px;
  right: -14px;
  animation: floatBob 4.5s ease-in-out infinite;
}

.chip-bottom {
  bottom: -16px;
  left: -16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  animation: floatBob 5.2s ease-in-out infinite reverse;
}

.chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #05060b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.chip-title {
  font-size: 13px;
  font-weight: 700;
}

.chip-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}

.swatch-row {
  display: flex;
  gap: 6px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.swatch.s1 { background: #7c5cff; }
.swatch.s2 { background: #00e5ff; }
.swatch.s3 { background: #ff3b9a; }
.swatch.s4 { background: #ccff00; }

/* ==========================================================================
   INFINITE MARQUEE BANNER
   ========================================================================== */
.marquee-banner {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  animation: marqueeMove 28s linear infinite;
}

.marquee-track .sep {
  color: var(--accent-secondary);
}

/* ==========================================================================
   SECTIONS & BENTO GRID
   ========================================================================== */
.section {
  padding: 110px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-secondary);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Syne', "PingFang SC", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
}

.section-sub {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.68;
}

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

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.bento-card {
  position: relative;
  border-radius: 26px;
  background: var(--bg-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s;
}

/* Mouse-tracking Spotlight Effect */
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    var(--spotlight-color),
    transparent 45%
  );
  pointer-events: none;
  z-index: 0;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    320px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    var(--spotlight-border),
    transparent 50%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bento-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.mono-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-dim);
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Bento 1: Tactile Keycap Matrix */
.keycap-matrix {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}

.keycap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(45, 52, 82, 0.9), rgba(20, 24, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 7px 0 rgba(8, 10, 20, 0.95),
    0 12px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.09s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.09s,
              border-color 0.2s;
}

.keycap span {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.keycap small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
}

.keycap:active,
.keycap.pressed,
.keycap.active {
  transform: translateY(5px);
  border-color: var(--accent-secondary);
  box-shadow:
    0 2px 0 rgba(8, 10, 20, 0.95),
    0 0 24px rgba(0, 229, 255, 0.4),
    inset 0 0 12px rgba(0, 229, 255, 0.25);
}

.keycap-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

/* Bento 2: Hardware Rotary Knob & Spectrum */
.tactile-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(5, 6, 11, 0.55);
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
}

.knob-wrapper {
  position: relative;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  user-select: none;
}

.knob-ticks {
  position: absolute;
  inset: 0;
  transform: rotate(135deg);
}

.tick-bg,
.tick-progress {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 245 330;
}

.tick-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.tick-progress {
  stroke: var(--accent-secondary);
  stroke-dashoffset: 68;
  filter: drop-shadow(0 0 8px var(--accent-secondary));
  transition: stroke-dashoffset 0.08s;
}

.knob-dial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #343b5c, #101322 75%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.65),
              inset 0 2px 3px rgba(255, 255, 255, 0.3);
  position: relative;
  transform: rotate(42deg);
}

.knob-indicator {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-secondary);
}

#spectrum-canvas {
  flex: 1;
  height: 92px;
  border-radius: 10px;
}

/* Bento 3: Layer Stack FLIP */
.mini-action-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.mini-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-secondary);
}

.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s,
              border-color 0.25s;
}

.layer-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.layer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.c-cyan { background: #00e5ff; box-shadow: 0 0 10px #00e5ff; }
.c-violet { background: #7c5cff; box-shadow: 0 0 10px #7c5cff; }
.c-rose { background: #ff3b9a; box-shadow: 0 0 10px #ff3b9a; }

.layer-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}

.layer-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Bento 4: Morphing Segmented Control & Liquid Toggles */
.micro-controls-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.segmented-morph {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(5, 6, 11, 0.65);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.seg-glider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.45);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seg-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s;
}

.seg-btn.active {
  color: #05060b;
}

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.liquid-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
}

.liquid-toggle input {
  display: none;
}

.liquid-toggle .slider {
  width: 46px;
  height: 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: background 0.3s;
}

.liquid-toggle .slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.2s;
}

.liquid-toggle:active .slider::after {
  width: 24px;
}

.liquid-toggle input:checked + .slider {
  background: var(--accent-primary);
  border-color: var(--accent-secondary);
}

.liquid-toggle input:checked + .slider::after {
  transform: translateX(20px);
}

/* Bento 5: Vector Field Canvas */
#vector-canvas {
  width: 100%;
  height: 136px;
  border-radius: 14px;
  background: rgba(5, 6, 11, 0.55);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   LIVE UI ALCHEMY WORKBENCH
   ========================================================================== */
.alchemy-workbench {
  display: grid;
  grid-template-columns: 420px 1fr;
  border-radius: 30px;
  background: rgba(14, 17, 30, 0.72);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.alchemy-controls {
  padding: 32px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-group-title {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.preset-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preset-btn {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.preset-btn:hover,
.preset-btn.active {
  color: var(--text-main);
  border-color: var(--accent-secondary);
  background: rgba(0, 229, 255, 0.1);
}

.control-sliders {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.control-label code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-secondary);
  font-size: 12px;
}

/* Custom Range Inputs */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

input[type="range"].hue-slider {
  background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.code-export-box {
  background: rgba(5, 6, 11, 0.8);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 14px;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover {
  background: var(--accent-primary);
  color: #05060b;
}

#generated-css {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: #a5b4fc;
  overflow-x: auto;
}

/* Right Sandbox Stage */
.alchemy-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: radial-gradient(circle at 50% 50%, rgba(25, 30, 58, 0.5), rgba(5, 6, 11, 0.95));
  overflow: hidden;
}

.stage-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.65;
  transition: background 0.3s;
}

.orb-a {
  width: 260px;
  height: 260px;
  background: var(--ui-accent);
  top: 12%;
  left: 18%;
  animation: floatBob 6s ease-in-out infinite;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: var(--accent-secondary);
  bottom: 12%;
  right: 16%;
  animation: floatBob 7s ease-in-out infinite reverse;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
}

/* Dynamic Preview Widget controlled by CSS Custom Properties */
.preview-widget {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 470px;
  padding: 28px;
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, var(--ui-alpha));
  backdrop-filter: blur(var(--ui-blur)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--ui-blur)) saturate(190%);
  border: 1px solid rgba(255, 255, 255, var(--ui-border-alpha));
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 var(--ui-glow-size) var(--ui-accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, calc(var(--ui-border-alpha) * 1.5));
  transition: box-shadow 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-widget.pulse-anim {
  transform: scale(1.035);
}

.pw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.pw-avatar-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pw-avatar {
  width: 42px;
  height: 42px;
  border-radius: calc(var(--ui-radius) * 0.45);
  background: var(--ui-accent);
  color: #05060b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 0 20px var(--ui-accent-glow);
}

.pw-title {
  font-weight: 700;
  font-size: 16px;
}

.pw-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.pw-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ui-accent);
  color: var(--ui-accent);
}

.pw-visualizer {
  position: relative;
  height: 118px;
  border-radius: calc(var(--ui-radius) * 0.6);
  background: rgba(5, 6, 11, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  overflow: hidden;
}

.pw-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: 68%;
  height: 100%;
}

.pw-wave-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 99px;
  background: linear-gradient(to top, var(--ui-accent), #ffffff);
  box-shadow: 0 0 12px var(--ui-accent-glow);
  transition: height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pw-floating-stat {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}

.pw-floating-stat span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.pw-floating-stat strong {
  font-size: 18px;
  color: #fff;
}

.pw-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pw-mini-card {
  background: rgba(5, 6, 11, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--ui-radius) * 0.45);
  padding: 10px 12px;
}

.pw-mini-card span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pw-mini-card strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.pw-footer {
  display: flex;
  gap: 12px;
}

.pw-btn-ghost,
.pw-btn-primary {
  flex: 1;
  padding: 12px;
  border-radius: calc(var(--ui-radius) * 0.5);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pw-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.pw-btn-primary {
  background: var(--ui-accent);
  border: none;
  color: #05060b;
  box-shadow: 0 8px 25px var(--ui-accent-glow);
}

.pw-btn-ghost:hover,
.pw-btn-primary:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   SHOWCASE ACCORDION GALLERY
   ========================================================================== */
.showcase-accordion {
  display: flex;
  gap: 18px;
  height: 440px;
}

.showcase-panel {
  position: relative;
  flex: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: flex 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.showcase-panel.active {
  flex: 2.6;
  border-color: var(--border-highlight);
}

.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.7s ease;
}

.showcase-panel:hover .panel-bg {
  transform: scale(1.05);
}

.bg-nebula {
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.32), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(124, 92, 255, 0.42), transparent 55%),
    linear-gradient(160deg, #0b0e1d, #05060b);
}

.bg-solaris {
  background:
    radial-gradient(circle at 75% 25%, rgba(245, 185, 66, 0.32), transparent 50%),
    radial-gradient(circle at 20% 75%, rgba(255, 94, 0, 0.28), transparent 55%),
    linear-gradient(160deg, #17120b, #070605);
}

.bg-kinetix {
  background:
    radial-gradient(circle at 75% 25%, rgba(204, 255, 0, 0.28), transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(0, 255, 163, 0.28), transparent 55%),
    linear-gradient(160deg, #0b1612, #050807);
}

.panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.panel-index {
  position: absolute;
  top: -150px;
  left: 0;
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.16);
}

.panel-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.panel-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.panel-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.panel-info p {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.65;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s, max-height 0.4s;
}

.showcase-panel.active .panel-info p {
  opacity: 1;
  max-height: 120px;
}

.panel-mockup {
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.showcase-panel.active .panel-mockup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mock-win {
  width: 230px;
  height: 150px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}
.mock-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.mock-bar span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 6px;
}

.mock-body {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 90px;
}

.mock-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid var(--accent-secondary);
  box-shadow: 0 0 18px var(--accent-secondary);
}

.mock-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-lines span {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}
.mock-lines span:nth-child(2) { width: 75%; }
.mock-lines span:nth-child(3) { width: 50%; }

.mock-chart {
  width: 100%;
  height: 100%;
  color: #f5b942;
  filter: drop-shadow(0 0 8px rgba(245, 185, 66, 0.6));
}

.synth-pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.synth-pads b {
  height: 36px;
  border-radius: 7px;
  background: rgba(204, 255, 0, 0.22);
  border: 1px solid rgba(204, 255, 0, 0.5);
}

/* ==========================================================================
   ARCHITECTURAL PRINCIPLES
   ========================================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.principle-card {
  padding: 32px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.p-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent-secondary);
  margin-bottom: 14px;
}

.principle-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.principle-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER & COMMAND PALETTE MODAL
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

.footer-hint kbd {
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* Command Palette */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 4, 9, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}

.cmd-backdrop[hidden] {
  display: none;
}

.cmd-modal {
  width: 100%;
  max-width: 580px;
  border-radius: 22px;
  background: rgba(16, 20, 36, 0.92);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
}

.cmd-search-bar kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
}

.cmd-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s;
}

.cmd-item:hover {
  background: rgba(124, 92, 255, 0.22);
}

.cmd-text {
  flex: 1;
}

.cmd-shortcut {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 3000;
  padding: 12px 20px;
  border-radius: 99px;
  background: rgba(16, 20, 36, 0.92);
  border: 1px solid var(--accent-secondary);
  color: var(--text-main);
  font-size: 13.5px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   KEYFRAMES & RESPONSIVE
   ========================================================================== */
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes orbRotate {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.3); }
}

@keyframes shimmerText {
  to { background-position: 200% center; }
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes marqueeMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes eqBar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

@media (max-width: 1024px) {
  .hero-container,
  .alchemy-workbench {
    grid-template-columns: 1fr;
  }
  .span-7, .span-5, .span-4 {
    grid-column: span 12;
  }
  .showcase-accordion {
    flex-direction: column;
    height: auto;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
