/* ==========================================================================
   MKA MÜZİK — STUDIO DESIGN SYSTEM
   Palette: Crimson Red (#E11D48), Titanium Grays (#17191E, #242833), Titanium White (#FFFFFF)
   Typography: Syne (Display), Space Grotesk (Tech/Metrics), Inter (Interface)
   ========================================================================== */

:root {
  --bg-core: #090A0D;
  --bg-surface-1: #111317;
  --bg-surface-2: #16181F;
  --bg-surface-3: #1D212A;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.20);
  
  --crimson-primary: #E11D48;
  --crimson-hover: #F43F5E;
  --crimson-dark: #9F1239;
  --crimson-glow: rgba(225, 29, 72, 0.35);
  --crimson-tint: rgba(225, 29, 72, 0.08);

  --text-white: #FFFFFF;
  --text-primary: #EDEFEF;
  --text-secondary: #9DA3AF;
  --text-muted: #646A78;

  --font-display: 'Urbanist', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-body: 'Inter', sans-serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 40px -10px var(--crimson-glow);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-core);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

/* Studio Ambient Mesh Background */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(225, 29, 72, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(63, 67, 79, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(225, 29, 72, 0.05) 0%, transparent 60%),
    #090A0D;
}

.bg-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.grid-overlay {
  display: none;
}

/* ==========================================================================
   FLOATING ASYMMETRICAL CAPSULE NAVIGATION
   ========================================================================== */

.studio-nav-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}

.studio-capsule-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 14px 8px 18px;
  background: rgba(18, 20, 25, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.studio-capsule-nav:hover {
  border-color: rgba(225, 29, 72, 0.4);
}

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

.brand-disc {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-disc:hover {
  transform: scale(1.05);
  border-color: var(--crimson-primary);
}

.disc-glow {
  display: none;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-white);
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--crimson-primary);
  font-weight: 600;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 4px;
}

.link-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover .link-dot {
  background: var(--crimson-primary);
  transform: scale(1.4);
}

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

.live-telemetry-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: beacon-pulse 2s infinite ease-in-out;
}

@keyframes beacon-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.telemetry-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.btn-capsule-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--crimson-primary);
  color: var(--text-white);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px var(--crimson-glow);
}

.btn-capsule-cta:hover {
  background: var(--crimson-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--crimson-glow);
}

/* ==========================================================================
   HERO SECTION & 3D ACOUSTIC REACTOR
   ========================================================================== */

.section-hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 32px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  gap: 32px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--crimson-tint);
  border: 1px solid rgba(225, 29, 72, 0.28);
  border-radius: var(--radius-full);
  width: fit-content;
}

.tag-accent {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson-primary);
  box-shadow: 0 0 8px var(--crimson-primary);
}

.tag-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--crimson-hover);
}

.hero-heading {
  font-family: 'Unbounded', 'Clash Display', sans-serif;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-white);
  text-wrap: balance;
  min-height: 2.38em;
}

.typing-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background-color: var(--crimson-primary);
  margin-left: 6px;
  vertical-align: -0.04em;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--crimson-primary);
  animation: cursorBlink 0.75s infinite ease-in-out;
}

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

.text-crimson {
  color: var(--crimson-primary);
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.65;
  font-weight: 400;
}

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

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: fit-content;
}

.stat-pill {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-medium);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-primary-hero, .btn-secondary-hero, .btn-tertiary-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-hero {
  background: var(--crimson-primary);
  color: var(--text-white);
  box-shadow: 0 10px 24px -6px var(--crimson-glow);
}

.btn-primary-hero:hover {
  background: var(--crimson-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px var(--crimson-glow);
}

.btn-secondary-hero {
  background: var(--bg-surface-2);
  color: var(--text-white);
  border: 1px solid var(--border-medium);
}

.btn-secondary-hero:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-tertiary-hero {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-medium);
}

.btn-tertiary-hero:hover {
  color: var(--text-white);
  border-color: var(--crimson-primary);
}

/* Hero visual styles cleaned up */

/* ==========================================================================
   FEATURE DEEP-DIVE: CANLI KLİP İZLEME SAHNESİ
   ========================================================================== */

.section-feature-stage {
  position: relative;
  z-index: 10;
  padding: 100px 32px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(22, 24, 31, 0.4) 0%, transparent 100%);
}

.content-container {
  max-width: 1360px;
  margin: 0 auto;
}

.section-header-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sub-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--crimson-primary);
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--crimson-tint);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stage-showcase-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: start;
}

/* Interactive Player Viewport */
.player-stage-viewport {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.viewport-chrome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #15171D;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.dot-r { background: #FF5F56; }
.dot-g { background: #FFBD2E; }
.dot-b { background: #27C93F; }

.chrome-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.chrome-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--crimson-primary);
}

.beacon-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson-primary);
  animation: beacon-pulse 1.4s infinite ease-in-out;
}

.stage-mock-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

#mock-stage-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.stage-dock-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
  gap: 16px;
}

.dock-track-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dock-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--crimson-primary);
  letter-spacing: 0.08em;
}

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

.btn-open-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-open-stage:hover {
  background: var(--crimson-primary);
  border-color: var(--crimson-primary);
  transform: translateY(-1px);
}

/* Pillar Column */
.stage-pillars-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-card {
  display: flex;
  gap: 20px;
  padding: 26px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pillar-card:hover {
  border-color: rgba(225, 29, 72, 0.45);
  transform: translateX(4px);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--crimson-tint);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: var(--crimson-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.pillar-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   LIVE METRIC TELEMETRY GRID
   ========================================================================== */

.section-stats {
  position: relative;
  z-index: 10;
  padding: 80px 32px;
}

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

.section-title-sm {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}

.live-indicator-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

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

.metric-card {
  padding: 24px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-3px);
}

.metric-card:hover::before {
  opacity: 1;
}

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

.metric-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.metric-icon {
  color: var(--text-secondary);
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 10px;
}

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

/* ==========================================================================
   RECENT 30 TRACKS FEED
   ========================================================================== */

.section-recent-tracks {
  position: relative;
  z-index: 10;
  padding: 80px 32px;
  border-top: 1px solid var(--border-subtle);
}

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

.section-desc-sm {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.recent-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
}

.search-box-pill input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 13px;
  width: 200px;
}

.search-box-pill input::placeholder {
  color: var(--text-muted);
}

.btn-refresh-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-pill:hover {
  background: var(--bg-surface-3);
  color: var(--text-white);
  border-color: var(--crimson-primary);
}

.recent-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.track-feed-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.track-feed-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-2px);
  background: var(--bg-surface-2);
}

.track-index-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.track-thumb-frame {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #000;
  border: 1px solid var(--border-subtle);
}

.track-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-source-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  padding: 1px 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.85);
  color: var(--text-white);
  border-radius: 2px;
  text-transform: uppercase;
}

.track-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.track-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.track-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.track-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.track-guild {
  color: var(--crimson-primary);
  font-weight: 600;
}

/* ==========================================================================
   COMMAND HUB (KOMUT MERKEZİ)
   ========================================================================== */

.section-commands {
  position: relative;
  z-index: 10;
  padding: 100px 32px;
  border-top: 1px solid var(--border-subtle);
}

.command-filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  background: var(--bg-surface-2);
  color: var(--text-white);
  border-color: var(--border-strong);
}

.cat-pill.active {
  background: var(--crimson-primary);
  color: var(--text-white);
  border-color: var(--crimson-primary);
  box-shadow: 0 4px 16px var(--crimson-glow);
}

.cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-full);
}

.command-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.command-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 15px;
}

.command-search-bar input::placeholder {
  color: var(--text-muted);
}

.search-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.cmd-card {
  padding: 18px 20px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cmd-card:hover {
  border-color: rgba(225, 29, 72, 0.45);
  transform: translateY(-2px);
  background: var(--bg-surface-2);
}

.cmd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cmd-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.cmd-name-badge .cmd-dot {
  color: var(--crimson-primary);
}

.cmd-cat-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cmd-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.cmd-copy-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.cmd-card:hover .cmd-copy-hint {
  color: var(--crimson-primary);
}

/* ==========================================================================
   MINIMALIST STUDIO FOOTER
   ========================================================================== */

.studio-footer {
  position: relative;
  z-index: 10;
  padding: 60px 32px 30px;
  background: #0A0B0E;
  border-top: 1px solid var(--border-medium);
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-white);
  letter-spacing: 0.05em;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-white);
  margin-bottom: 6px;
}

.footer-links-col a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-bottom-row {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-engine-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ==========================================================================
   COPY TOAST NOTIFICATION
   ========================================================================== */

.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-surface-3);
  border: 1px solid var(--crimson-primary);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--crimson-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-stats-row {
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .stage-showcase-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .studio-capsule-nav {
    padding: 8px 12px;
  }

  .nav-links {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .recent-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-box-pill input {
    width: 100%;
  }
}

/* ==========================================================================
   CINEMATIC PORTAL LOADING SCREEN & HORSE ARCHER RUNNER
   ========================================================================== */

body.loading-active {
  overflow: hidden !important;
}

.loading-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #06070a;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  perspective: 1200px;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.22) 0%, rgba(15, 23, 42, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Portal Target Logo */
.loader-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 1.25s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.9s cubic-bezier(0.7, 0, 0.2, 1), filter 1.1s ease;
  will-change: transform, opacity, filter;
}

.loader-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 35px rgba(225, 29, 72, 0.55));
}

.loader-logo-aura {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: loaderLogoPulse 2.2s infinite ease-in-out;
}

@keyframes loaderLogoPulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

/* Dramatic Cinematic Portal Zoom Through Logo */
.loader-logo-wrap.zoom-in-screen {
  transform: scale(45);
  opacity: 0;
  filter: blur(16px);
}

/* Loading Track & Rider Container */
.loader-track-wrap {
  position: relative;
  width: 380px;
  max-width: 88vw;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.loader-track-wrap.hide-track {
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  pointer-events: none;
}

/* Realistic Horse Archer Runner (articulated legs animated via SVG) */
.rider-runner {
  position: absolute;
  bottom: 10px;
  left: 0%;
  transform: translateX(-50%);
  width: 100px;
  height: 95px;
  pointer-events: none;
  z-index: 10;
  will-change: left;
}

.rider-img {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 4px 14px rgba(225, 29, 72, 0.8)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.35));
  animation: horseGallopCycle 0.5s infinite linear;
  transform-origin: 50% 70%;
}

/* Body bob synced to the 0.5s gallop: rises during suspension, dips on landing */
@keyframes horseGallopCycle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(1px) rotate(1deg);
  }
  55% {
    transform: translateY(-5px) rotate(-1.2deg);
  }
  80% {
    transform: translateY(-3px) rotate(-0.4deg);
  }
}

/* The Loading Bar Track & Glowing Fill */
.loader-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #be123c, #e11d48, #ff385c);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.95);
}

/* Status Label & Percentage */
.loader-status-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.loader-status-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  text-transform: uppercase;
}

.loader-status-percent {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #ff385c;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   DYNAMIC CYBERNETIC SCROLL LASER LINE
   ========================================================================== */
.cyber-scroll-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.laser-path-glow {
  stroke: #e11d48;
  stroke-width: 8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  filter: drop-shadow(0 0 12px #e11d48) drop-shadow(0 0 25px rgba(244, 63, 94, 0.7));
  transition: opacity 0.3s ease;
}

.laser-path-core {
  stroke: url(#cyberLaserGradient);
  stroke-width: 2.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 10px #ff385c);
}

.laser-node-dot {
  fill: #ff385c;
  stroke: #ffffff;
  stroke-width: 1.5px;
  filter: drop-shadow(0 0 8px #ff385c);
  transition: all 0.4s ease;
}

.laser-spark-group {
  pointer-events: none;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 12px #ff385c) drop-shadow(0 0 22px rgba(225, 29, 72, 0.85));
}

.spark-outer-ring {
  fill: rgba(225, 29, 72, 0.25);
  stroke: #ff385c;
  stroke-width: 1.5px;
  animation: sparkPulse 1.2s infinite ease-in-out;
}

.spark-mid-aura {
  fill: rgba(255, 56, 92, 0.55);
  filter: blur(2px);
}

.spark-core-dot {
  fill: #ffffff;
}

@keyframes sparkPulse {
  0%, 100% {
    r: 13px;
    opacity: 0.6;
  }
  50% {
    r: 22px;
    opacity: 1;
    stroke-width: 2.5px;
  }
}

/* ==========================================================================
   SCROLL REVEAL SUITE (PROPORTIONALLY TRIGGERED BY LASER / SCROLL)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition: transform 0.62s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease,
              filter 0.5s ease;
}

/* 1. Zoom Variant */
.reveal-zoom {
  transform: scale(0.82) translateY(35px);
  filter: blur(8px);
}

/* 2. 3D Left Perspective Tilt */
.reveal-3d-left {
  perspective: 1200px;
  transform: rotateY(-18deg) translateX(-45px) scale(0.94);
  filter: blur(7px);
}

/* 3. Slide Right with subtle tilt */
.reveal-slide-right {
  transform: translateX(60px) translateY(18px) rotate(1.2deg);
  filter: blur(6px);
}

/* 4. Slide Left with subtle tilt */
.reveal-slide-left {
  transform: translateX(-60px) translateY(18px) rotate(-1.2deg);
  filter: blur(6px);
}

/* 5. Card Pop / Elastic Rise */
.reveal-card-pop {
  transform: translateY(45px) scale(0.88);
  filter: blur(6px);
}

/* 6. Cascade Wave for Grids / Lists */
.reveal-cascade-wave > * {
  opacity: 0;
  transform: translateY(35px) scale(0.92);
  filter: blur(5px);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.42s ease,
              filter 0.42s ease;
}

/* 7. Classic Smooth Fade Up */
.reveal-fade-up {
  transform: translateY(38px);
  filter: blur(5px);
}

/* ACTIVE REVEALED STATE */
.scroll-reveal.revealed {
  opacity: 1 !important;
  transform: none !important;
  filter: blur(0) !important;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s ease !important;
}

/* Cascading children delays when parent is revealed */
.reveal-cascade-wave.revealed > * {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s ease;
}
.reveal-cascade-wave.revealed > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-cascade-wave.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-cascade-wave.revealed > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-cascade-wave.revealed > *:nth-child(4) { transition-delay: 0.16s; }
.reveal-cascade-wave.revealed > *:nth-child(5) { transition-delay: 0.20s; }
.reveal-cascade-wave.revealed > *:nth-child(6) { transition-delay: 0.24s; }
.reveal-cascade-wave.revealed > *:nth-child(n+7) { transition-delay: 0.28s; }


