/* ==========================================================================
   CursorSwarm by labbrow — Official Website Styles
   Theme: Obsidian Swarm (Google Stitch Design System)
   Domain: cursorswarm.labbrow.com
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Palette: Obsidian Swarm */
  --bg-void: #050507;
  --bg-surface-lowest: #0a0a0d;
  --bg-surface-low: #101015;
  --bg-surface: #15151b;
  --bg-surface-high: #1c1c24;

  /* Borders & Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(0, 229, 153, 0.4);

  /* Multiplayer Cursor Accents */
  --accent-emerald: #00E599;
  --accent-cyan: #00B4D8;
  --accent-amber: #FF7300;
  --accent-magenta: #F72585;

  /* Typography Colors */
  --text-white: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  /* Fonts */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing & Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-void);
  display: flex;
  flex-direction: column;
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.35;
}

.glow-primary {
  width: 650px;
  height: 650px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 229, 153, 0.22) 0%, rgba(0, 229, 153, 0) 70%);
}

.glow-cyan {
  width: 500px;
  height: 500px;
  top: 38%;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.16) 0%, rgba(0, 180, 216, 0) 70%);
}

.glow-magenta {
  width: 550px;
  height: 550px;
  bottom: 8%;
  left: -120px;
  background: radial-gradient(circle, rgba(247, 37, 133, 0.14) 0%, rgba(247, 37, 133, 0) 70%);
}

/* Background Boids Canvas */
.bg-swarm-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* Focus Styling */
:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
  transition: opacity 0.2s;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-logo-img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.25);
}

.hud-logo-img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-by {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

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

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

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

/* Generic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--accent-emerald);
  color: #050507;
  font-weight: 600;
  box-shadow: 0 0 20px -3px rgba(0, 229, 153, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 25px rgba(0, 229, 153, 0.5);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: var(--bg-surface-low);
  border-color: var(--border-subtle);
  color: var(--text-white);
}

.btn-ghost:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

.btn-large {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

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

.hero-section {
  max-width: 900px;
  margin: 72px auto 44px;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-white);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 60%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 32px;
}

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

.accent-emerald {
  color: var(--accent-emerald);
}

/* ==========================================================================
   CENTERPIECE SHOWCASE FRAME
   ========================================================================== */
.demo-showcase-wrapper {
  max-width: 1080px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.browser-frame {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-surface-lowest);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(0, 229, 153, 0.12);
  transition: border-color 0.3s;
}

.browser-frame:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.browser-titlebar {
  height: 44px;
  background: var(--bg-surface-low);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 70px;
}

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

.dot-close { background: #FF5F56; }
.dot-min { background: #FFBD2E; }
.dot-zoom { background: #27C93F; }

.address-pill {
  flex: 1;
  max-width: 480px;
  height: 28px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
}

.address-content {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-white);
  overflow: hidden;
}

.lock-icon {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swarm-status-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-emerald);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.status-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulseEmerald 1.4s infinite;
}

.telemetry-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.chip-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

/* Sandbox Viewport */
.sandbox-viewport {
  position: relative;
  height: 520px;
  background: #08080c;
  overflow: hidden;
  user-select: none;
}

.viewport-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.15;
  pointer-events: none;
}

.sandbox-mock-page {
  position: absolute;
  inset: 0;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-emerald);
  opacity: 0.8;
}

.mock-links {
  display: flex;
  gap: 16px;
}

.mock-links span {
  width: 48px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.mock-hero {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s;
}

.mock-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  transition: opacity 0.3s;
}

.mock-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
  transition: opacity 0.3s;
}

.mock-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 480px;
  transition: opacity 0.3s;
}

.mock-btn-row {
  display: flex;
  gap: 10px;
  transition: opacity 0.3s;
}

.mock-btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-weight: 500;
}

.mock-btn.pri {
  background: var(--accent-emerald);
  color: #050507;
  font-weight: 600;
}

.mock-btn.sec {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mock-card {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s, transform 0.2s;
}

.mock-card-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.icon-amber { background: rgba(255, 115, 0, 0.2); border: 1px solid var(--accent-amber); }
.icon-emerald { background: rgba(0, 229, 153, 0.2); border: 1px solid var(--accent-emerald); }
.icon-cyan { background: rgba(0, 180, 216, 0.2); border: 1px solid var(--accent-cyan); }

.mock-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}

.mock-card-body {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Overlay SVG & Cursors */
.sandbox-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.sandbox-cursor-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}

/* Floating HUD */
.demo-floating-hud {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(16, 16, 21, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  z-index: 40;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
}

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

.hud-btn {
  background: var(--bg-surface-high);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.hud-btn:hover {
  color: var(--text-white);
  border-color: var(--border-medium);
}

.hud-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-emerald);
}

/* ==========================================================================
   STATS RIBBON
   ========================================================================== */
.stats-ribbon {
  max-width: 1080px;
  margin: 0 auto 72px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.text-emerald { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }

/* ==========================================================================
   BENTO FEATURE CARDS
   ========================================================================== */
.features-section {
  max-width: 1080px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.section-heading {
  margin-bottom: 36px;
  text-align: left;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
}

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

.bento-card {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.bento-card:hover {
  border-color: rgba(0, 229, 153, 0.35);
  box-shadow: 0 0 24px -5px rgba(0, 229, 153, 0.12);
}

.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-amber { background: rgba(255, 115, 0, 0.12); color: var(--accent-amber); }
.tag-cyan { background: rgba(0, 180, 216, 0.12); color: var(--accent-cyan); }
.tag-magenta { background: rgba(247, 37, 133, 0.12); color: var(--accent-magenta); }

.bento-icon {
  color: var(--text-muted);
}

.bento-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.bento-copy {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Diagrams inside Bento Cards */
.diagram-box {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  height: 140px;
  position: relative;
  overflow: hidden;
}

/* Split Diagram */
.split-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
  align-items: center;
  position: relative;
}

.split-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.messy-side {
  opacity: 0.45;
}

.mock-dom-bar {
  height: 8px;
  border-radius: 2px;
}

.bar-red { background: rgba(244, 63, 94, 0.6); }
.bar-yellow { background: rgba(251, 191, 36, 0.5); }
.bar-blue { background: rgba(59, 130, 246, 0.6); }
.bar-purple { background: rgba(168, 85, 247, 0.5); }
.bar-green { background: rgba(34, 197, 94, 0.5); }

.w-full { width: 100%; }
.w-3-4 { width: 75%; }
.w-5-6 { width: 85%; }
.w-1-2 { width: 50%; }

.split-laser-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.rebuilt-side {
  border-left: 1px solid rgba(0, 229, 153, 0.3);
  padding-left: 10px;
}

.token-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 3px;
  width: fit-content;
}

.token-emerald { background: rgba(0, 229, 153, 0.15); color: var(--accent-emerald); border: 1px solid rgba(0, 229, 153, 0.3); }
.token-cyan { background: rgba(0, 180, 216, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 180, 216, 0.3); }
.token-amber { background: rgba(255, 115, 0, 0.15); color: var(--accent-amber); border: 1px solid rgba(255, 115, 0, 0.3); }

/* Synth Diagram */
.synth-diagram-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.synth-spec-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.wave-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 50px;
  padding: 0 4px;
}

.eq-bar {
  width: 5px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: barWave 1.4s ease-in-out infinite alternate;
}

.h-1 { height: 18%; animation-delay: 0.1s; }
.h-2 { height: 40%; animation-delay: 0.3s; }
.h-3 { height: 65%; animation-delay: 0.5s; }
.h-4 { height: 85%; animation-delay: 0.2s; background: var(--accent-emerald); }
.h-5 { height: 50%; animation-delay: 0.6s; }
.h-6 { height: 75%; animation-delay: 0.4s; background: var(--accent-emerald); }
.h-7 { height: 95%; animation-delay: 0.15s; background: #FFFFFF; }

@keyframes barWave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.1); }
}

/* Timeline Diagram */
.timeline-diagram-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-header, .timeline-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.rec-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-white);
}

.rec-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulseEmerald 1s infinite;
}

.prores-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-white);
}

.timeline-tracks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-row {
  height: 10px;
  background: var(--bg-surface-high);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.track-fill {
  height: 100%;
  border-radius: 3px;
}

.fill-emerald { background: rgba(0, 229, 153, 0.35); border-left: 2px solid var(--accent-emerald); }
.fill-cyan { background: rgba(0, 180, 216, 0.35); border-left: 2px solid var(--accent-cyan); }
.fill-magenta { background: rgba(247, 37, 133, 0.35); border-left: 2px solid var(--accent-magenta); }

.scrubber-head {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
}

/* ==========================================================================
   AUDIO LAB SECTION
   ========================================================================== */
.audio-lab-section {
  max-width: 1080px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.audio-lab-card {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.lab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.mode-toggles {
  display: flex;
  gap: 8px;
}

.mode-btn {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.mode-btn:hover {
  color: var(--text-white);
}

.mode-btn.active {
  background: var(--bg-surface-high);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.lab-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Piano Keyboard */
.piano-keyboard {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.key-tile {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.key-tile:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.06);
  transform: translateY(-2px);
}

.key-tile:active, .key-tile.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(1px);
}

.key-tile:active .key-note, .key-tile.active .key-note,
.key-tile:active .key-shortcut, .key-tile.active .key-shortcut {
  color: #050507;
}

.key-note {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
}

.key-shortcut {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Visualizer Canvas */
.visualizer-canvas {
  width: 100%;
  height: 70px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: block;
}

/* ==========================================================================
   HOW IT WORKS (3 SIMPLE STEPS)
   ========================================================================== */
.steps-section {
  max-width: 1080px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

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

.step-card {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   CALL TO ACTION
   ========================================================================== */
.cta-section {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}

.cta-box {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface-low) 0%, var(--bg-void) 100%);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  overflow: hidden;
  box-shadow: 0 0 50px -15px rgba(0, 229, 153, 0.15);
}

.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 229, 153, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
}

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

.cta-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-lowest);
  padding: 48px 0 32px;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.footer-nav-col a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-emerald);
}

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

.footer-host {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-domain {
  font-family: var(--font-mono);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .bento-grid, .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-ribbon {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .sandbox-viewport {
    height: 440px;
  }

  .mock-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-headline {
    font-size: 32px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .piano-keyboard {
    grid-template-columns: repeat(4, 1fr);
  }
}
