@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-obsidian: #0d1117;
  --color-obsidian-deep: #090c10;
  --color-obsidian-dark: #05080c;
  --color-sidebar: #10141b;
  --color-sidebar-alt: #12161f;
  --color-surface: #161b22;
  --color-surface-elevated: #1c2432;
  --color-surface-hover: #1f2631;
  --color-panel-header: #121720;
  --color-border: #242c38;
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-strong: #283242;

  --color-cyan-accent: #00e5ff;
  --color-cyan-bright: #67e8f9;
  --color-cyan-mid: #00b4d8;
  --color-sky-accent: #38bdf8;
  --color-sky-light: #7dd3fc;
  --color-blue-sub: #2979ff;
  --color-emerald-accent: #10b981;
  --color-emerald-bright: #00e676;
  --color-amber-accent: #ffab00;
  --color-red-record: #ff1744;

  --color-text-primary: #ffffff;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  --sidebar-width-expanded: 235px;
  --sidebar-width-collapsed: 68px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--color-obsidian);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body::selection,
*::selection {
  background-color: var(--color-cyan-accent);
  color: #000000;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-obsidian);
}

::-webkit-scrollbar-thumb {
  background: #262f3d;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #364357;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Typography Utilities */
.font-sans {
  font-family: var(--font-sans);
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Brand Cyan Gradients & Active States */
.brand-gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #00e5ff 0%, #38bdf8 55%, #7dd3fc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand-gradient-bg {
  background: linear-gradient(135deg, #00b4d8 0%, #00e5ff 100%);
  color: #05080c !important;
  font-weight: 700;
  border: 1px solid rgba(103, 232, 249, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.brand-gradient-bg:hover {
  background: linear-gradient(135deg, #00e5ff 0%, #48cae4 100%);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}

.brand-gradient-bg:active {
  transform: translateY(0);
}

.brand-gradient-bg:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.des-btn-playing {
  background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 100%) !important;
  color: #05080c !important;
  border-color: #67e8f9 !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55) !important;
  font-weight: 800 !important;
}

/* Hero Radial Atmosphere & Prompt Glassmorphism */
.hero-radial-glow {
  background:
    radial-gradient(ellipse 52% 60% at 24% 26%, rgba(0, 229, 255, 0.25) 0%, rgba(14, 116, 144, 0.12) 48%, transparent 78%),
    radial-gradient(ellipse 50% 60% at 76% 28%, rgba(56, 189, 248, 0.24) 0%, rgba(3, 105, 161, 0.12) 50%, transparent 78%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.92) 0%, #0d1117 92%);
}

.prompt-container {
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-container:focus-within {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 229, 255, 0.14);
}

/* Floating Hero Cassettes */
@keyframes floatSlowLeft {
  0%, 100% {
    transform: rotate(-10deg) translateY(0px);
  }
  50% {
    transform: rotate(-8deg) translateY(-8px);
  }
}

@keyframes floatSlowRight {
  0%, 100% {
    transform: rotate(10deg) translateY(0px);
  }
  50% {
    transform: rotate(8deg) translateY(-8px);
  }
}

@keyframes spinReel {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cassette-left {
  position: absolute;
  left: 3%;
  top: 8%;
  max-width: 220px;
  z-index: 1;
  transform: rotate(-10deg);
  animation: floatSlowLeft 6s ease-in-out infinite;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.75));
}

.cassette-right {
  position: absolute;
  right: 3%;
  top: 8%;
  max-width: 220px;
  z-index: 1;
  transform: rotate(10deg);
  animation: floatSlowRight 6s ease-in-out infinite;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.75));
}

.hero-center-stack {
  max-width: 620px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.reel-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spinReel 9s linear infinite;
}

/* App Shell & Sidebar Layout */
#sidebar,
aside.app-sidebar {
  width: var(--sidebar-width-expanded);
  height: 100%;
  background-color: var(--color-sidebar);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 40;
  user-select: none;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

aside.collapsed {
  width: var(--sidebar-width-collapsed) !important;
}

aside.collapsed .sidebar-label,
aside.collapsed .sidebar-badge {
  display: none !important;
}

aside.studio-hidden {
  width: 0px !important;
  border-right-width: 0px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Always-Visible Top-Left Sidebar Toggle Button */
.top-left-sidebar-toggle,
.studio-sidebar-toggle-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: #1a2230;
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--color-cyan-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 50;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.top-left-sidebar-toggle:hover,
.studio-sidebar-toggle-btn:hover {
  background-color: rgba(0, 229, 255, 0.2);
  border-color: var(--color-cyan-accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

/* Navigation Items & Badges */
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  font-size: 13px;
  font-weight: 500;
  color: #a1a1aa;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
}

.nav-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active,
.nav-item.bg-white\/\[0\.08\] {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.22);
}

.sidebar-badge {
  padding: 0.125rem 0.375rem;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.25rem;
  background-color: rgba(0, 229, 255, 0.16);
  color: var(--color-cyan-accent);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* DAW Grids, Dropzones & Hardware Rack Surfaces */
.piano-grid-bg {
  background-size: 48px 24px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.daw-playlist-grid {
  background-size: 6.25% 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

.cyan-dashed-dropzone {
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.14) 0%, rgba(16, 22, 30, 0.85) 100%);
  border: 1px dashed rgba(0, 229, 255, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cyan-dashed-dropzone:hover {
  border-color: var(--color-cyan-accent);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.16);
}

.open-studio-knob {
  background: radial-gradient(circle at 30% 30%, #374151, #1f2937 65%, #111827 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.85);
}

.gunmetal-panel {
  background: linear-gradient(180deg, #1b222c 0%, #141921 100%);
  border: 1px solid #2a3441;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.gunmetal-rack-unit {
  background: linear-gradient(180deg, #1e2530 0%, #131820 100%);
  border: 1px solid #2c3646;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.vintage-vu-faceplate {
  background: radial-gradient(ellipse 90% 80% at 50% 85%, #ffdfa0 0%, #f5be62 55%, #c78830 100%);
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, 0.55),
    inset 0 -4px 12px rgba(255, 196, 92, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Sound Library Vertical Scrolling Panel */
.sound-library-panel {
  width: 235px;
  height: 100%;
  max-height: 100%;
  background-color: var(--color-panel-header);
  border-right: 1px solid #242d3c;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sound-library-scroll-area {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

/* Cards, Modals & Workspace Containers */
.studio-card,
.workspace-card {
  background-color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.studio-card:hover,
.workspace-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-dialog {
  background-color: var(--color-surface);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 1.5rem;
  max-width: 28rem;
  width: 100%;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 28px rgba(0, 229, 255, 0.12);
}

/* Responsive 4-Column Pricing Page Grid & Cards */
.pricing-page-wrapper {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  overflow-y: auto;
}

.pricing-grid-4col {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 640px) {
  .pricing-grid-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .pricing-grid-4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pricing-tier-card {
  background: linear-gradient(180deg, #161b22 0%, #10141b 100%);
  border: 1px solid #242d3c;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-tier-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}

.pricing-tier-card.featured-tier {
  background: linear-gradient(180deg, #16222f 0%, #101722 100%);
  border: 1.5px solid var(--color-cyan-accent);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.75);
}

.pricing-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: rgba(0, 229, 255, 0.18);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: var(--color-cyan-accent);
}

.pricing-price-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.pricing-feature-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.pricing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.pricing-feature-check {
  color: var(--color-cyan-accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* Range Input Sliders */
input[type="range"] {
  accent-color: var(--color-cyan-accent);
  cursor: pointer;
}