/**
 * 8Bit Audio - Octave Sampler | Universal Responsive & Legal Styling
 * Breakpoints: 480px, 768px, 1024px, 1280px
 * Features:
 *  - Mobile Hamburger Button & Off-Canvas Navigation Drawer
 *  - Universal Studio Footer Layout
 *  - Cookie Consent Banner & Granular Preferences Modal
 *  - Multi-Column Grid Stacking & Auto-Fit Rules
 *  - 44px+ Minimum Touch Targets
 *  - Zero Horizontal Scrolling / Viewport Containment
 */

/* ==========================================================================
   1. GLOBAL VIEWPORT & TOUCH CONTAINMENT
   ========================================================================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Guard against unconstrained SVGs scaling up to 100vw */
svg:not([width]):not([height]) {
  width: 20px;
  height: 20px;
  max-width: 100%;
}

.octave-feature-list li svg,
.workspace-feature-bullets li svg,
.pricing-features li svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
}

/* Touch targets >= 44px on mobile interactive elements */
button, input, select, textarea, .btn-aurora, .btn-glass, .btn-text, .dock-item, .orbital-mood-chip {
  touch-action: manipulation;
}

/* ==========================================================================
   2. MOBILE HAMBURGER BUTTON & OFF-CANVAS DRAWER
   ========================================================================== */
.mobile-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  z-index: 102;
}

.mobile-hamburger-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-hamburger-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-hamburger-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Off-Canvas Drawer Panel */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: #0b0e14;
  border-left: 1.5px solid var(--border-te-mid);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 20px 40px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.7);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-te-mid);
  margin-bottom: 20px;
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--te-bone);
  border: 1px solid var(--border-te-mid);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: var(--te-white);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 46px;
  transition: all var(--transition-fast);
}

.mobile-drawer-link:hover, .mobile-drawer-link:active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-drawer-divider {
  height: 1px;
  background: var(--border-te-mid);
  margin: 16px 0 12px;
}

.mobile-drawer-section-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 4px 14px 8px;
}

.mobile-drawer-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-te-mid);
}

/* ==========================================================================
   3. UNIVERSAL STUDIO GLOBAL FOOTER
   ========================================================================== */
.studio-global-footer {
  background: #07090d;
  border-top: 1.5px solid var(--border-te-mid);
  padding: 64px 24px 120px; /* 120px bottom padding leaves space for bottom dock */
  color: var(--text-secondary);
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   OFFICIAL CERTIFIED DAWS SHOWCASE (FOOTER)
   Featuring Steinberg Cubase, Fender Studio, FL Studio, Logic Pro, Pro Tools
   ========================================================================== */
.footer-daws-showcase {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-daws-header {
  margin-bottom: 24px;
}

.footer-daws-title {
  font-family: var(--font-gotham);
  font-size: 1.45rem;
  font-weight: 850;
  color: #ffffff;
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}

.footer-daws-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 760px;
  line-height: 1.6;
  margin: 0;
}

.footer-daws-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.footer-daw-card {
  background: rgba(18, 23, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-daw-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.6);
  background: rgba(24, 30, 42, 0.9);
}

.footer-daw-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 12px;
  background: #0f131a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.footer-daw-icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.footer-daw-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.footer-daw-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-daw-name {
  font-family: var(--font-gotham);
  font-size: 0.95rem;
  font-weight: 850;
  color: #ffffff;
}

.footer-daw-format {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 850;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.footer-daw-desc {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* Support Hotline Link */
.footer-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24 !important;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  padding: 4px 0;
  transition: all var(--transition-fast);
}

.footer-phone-link:hover {
  color: #ffffff !important;
  text-decoration: underline;
  transform: translateX(2px);
}

/* DAW Logo in Main Compatibility Chassis */
.daw-logo-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Main 5-Column Navigation Grid (Universal Audio Design) */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.6fr;
  gap: 44px;
  margin-bottom: 56px;
  align-items: start;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 12px;
}

.footer-brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 14px;
  transition: opacity var(--transition-fast);
}

.footer-brand-link:hover {
  opacity: 0.85;
}

.footer-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.footer-brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-brand-text {
  font-family: var(--font-gotham);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1.1;
}

.footer-brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #838a95;
  margin: 0;
  max-width: 240px;
}

.footer-column-heading {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list li a,
.footer-links-list li .footer-text-btn {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: #8c939e;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links-list li a:hover,
.footer-links-list li .footer-text-btn:hover {
  color: #ffffff;
}

.footer-hotline-link {
  color: #cbd5e1 !important;
}

.footer-newsletter-column {
  display: flex;
  flex-direction: column;
}

.footer-subscribe-capsule {
  display: flex;
  align-items: center;
  background: #15171c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 4px 5px 4px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 360px;
}

.footer-subscribe-capsule:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.footer-subscribe-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 9px 0;
}

.footer-subscribe-input::placeholder {
  color: #636b78;
}

.btn-footer-subscribe {
  background: #e2e4e8;
  color: #0c0d10;
  border: none;
  border-radius: 9999px;
  padding: 9px 24px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.btn-footer-subscribe:hover {
  background: #ffffff;
  transform: scale(1.02);
}

.btn-footer-subscribe:active {
  transform: scale(0.98);
}

.footer-subscribe-note {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #636b78;
  margin: 0;
  max-width: 340px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-social-icon {
  color: #8c939e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-legal-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-badges-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-payment-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
}

.footer-copyright-text {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: #71717a;
  line-height: 1.5;
}

.footer-copyright-text a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   4. COOKIE CONSENT BANNER & SETTINGS MODAL
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 84px;
  left: 20px;
  right: 20px;
  max-width: 1140px;
  margin: 0 auto;
  z-index: 9998;
  background: rgba(13, 17, 23, 0.95);
  border: 1.5px solid var(--te-black);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 4px 0 var(--te-black);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 24px;
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.cookie-consent-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-content {
  flex: 1;
}

.cookie-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.cookie-banner-text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
}

.cookie-banner-text a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: #ffffff;
  color: #000000;
  border: 1.2px solid #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.btn-cookie-accept:hover {
  transform: translateY(-1px);
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #000000;
}

.btn-cookie-reject {
  background: var(--te-bone);
  color: var(--text-primary);
  border: 1.2px solid var(--te-black);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--te-black);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.btn-cookie-reject:hover {
  background: var(--te-white);
  transform: translateY(-1px);
}

.btn-cookie-link {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-te-mid);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.btn-cookie-link:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-backdrop.active {
  display: flex;
  animation: modalFadeIn 0.25s ease forwards;
}

.cookie-modal-panel {
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #0f131a;
  border: 1.5px solid var(--border-te-mid);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  padding: 28px;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-te-mid);
}

.cookie-modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-modal-title-group h3 {
  font-family: var(--font-gotham);
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 0;
}

.cookie-modal-close {
  background: var(--te-bone);
  border: 1px solid var(--border-te-mid);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cookie-cat-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--te-bone);
  border: 1px solid var(--border-te-mid);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.cookie-cat-info {
  flex: 1;
}

.cookie-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-gotham);
  font-size: 0.95rem;
  font-weight: 800;
  color: #f3f4f6;
  margin-bottom: 4px;
}

.cookie-badge-req {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 850;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.cookie-cat-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Custom Toggle Switches */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.3s;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #22c55e;
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(22px);
  background-color: #ffffff;
}

.cookie-slider.disabled {
  background-color: var(--secondary);
  opacity: 0.75;
  cursor: not-allowed;
}

.cookie-slider.disabled::before {
  transform: translateX(22px);
  background-color: #a1a1aa;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-te-mid);
  flex-wrap: wrap;
}

.btn-cookie-sec {
  background: var(--te-bone);
  border: 1px solid var(--border-te-mid);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
}

.btn-cookie-pri {
  background: #ffffff;
  border: 1.2px solid #ffffff;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.btn-cookie-pri:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINT: <= 1024px (Laptops & Tablets)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px;
  }
  
  .footer-brand-column {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-newsletter-column {
    grid-column: 1 / -1;
    max-width: 480px;
  }

  .daw-compat-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .download-os-grid {
    grid-template-columns: 1fr !important;
  }

  .library-download-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .octave-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .octave-arch-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-daws-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .header-nav-dock {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
  }
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINT: <= 768px (Tablets Portrait & Mobile Screens)
   ========================================================================== */
@media (max-width: 768px) {
  /* Show hamburger button and hide cluttered desktop actions */
  .mobile-hamburger-btn {
    display: flex !important;
  }

  .header-actions .btn-top-claim-octave {
    display: none !important;
  }

  .header-actions .btn-header-demo {
    display: none !important;
  }

  .header-actions .btn-aurora {
    display: none !important;
  }

  .hero-daw-list {
    gap: 20px !important;
  }

  .hero-daw-circle {
    width: 58px !important;
    height: 58px !important;
  }

  .hero-daw-img {
    width: 28px !important;
    height: 28px !important;
  }

  .hero-daw-circle svg {
    width: 26px !important;
    height: 26px !important;
  }

  .hero-daw-label {
    font-size: 0.72rem !important;
  }

  .brand-meta .brand-tagline {
    display: none !important;
  }

  /* Typography & Text Overlap Protection */
  h1, h2, h3, h4, .hero-title, .section-header h2, .footer-daws-title {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 6.5vw, 2.6rem) !important;
    line-height: 1.15 !important;
  }

  .hero-description {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
  }

  /* Touch-friendly buttons that wrap text on narrow viewports instead of clipping */
  .btn-aurora, .btn-glass, .btn-primary, .btn-secondary, .btn-text {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
    min-height: 44px;
  }

  /* Countdown & Announcement Banner */
  .octave-banner-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .octave-countdown-rack {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .octave-banner-btns {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }
  .specs-matrix-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }

  .octave-banner-actions {
    width: 100% !important;
    justify-content: stretch !important;
  }

  .octave-banner-actions a {
    width: 100% !important;
    text-align: center !important;
  }

  /* DAW Compatibility Grid */
  .daw-compat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .daw-compat-badge {
    padding: 10px 8px !important;
  }

  .daw-compat-badge span {
    font-size: 0.65rem !important;
  }

  /* Multi-Column Layouts Stack to 1 Column on Mobile */
  .workspace-content-grid,
  .plugin-showcase-card,
  .pricing-grid,
  .docs-layout,
  .about-hero-grid,
  .about-team-grid,
  .team-grid,
  .octave-arch-grid,
  .octave-duo-grid,
  .library-download-grid,
  .download-os-grid,
  .octave-claim-form-grid,
  .cart-layout,
  .order-grid,
  .mastering-suite,
  .gear-showcase-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
  }

  .hero-specs-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Floating Overlay Elements: Flow Naturally on Mobile (No Absolute Overlap) */
  .schematic-floating-hud {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    gap: 12px !important;
  }

  .daw-interactive-overlay {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  /* Preserve Official DAW Logos in Original Full Brand Colors (No Grayscale, No Multiply) */
  .footer-daw-icon-wrap img,
  .daw-logo-icon img,
  .daw-brand-pill img,
  img[src*="daws/"],
  img[src*="cubase"],
  img[src*="fender"],
  img[src*="fl-studio"],
  img[src*="logic"],
  img[src*="pro-tools"],
  img[src*="reaper"] {
    filter: none !important;
    mix-blend-mode: normal !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Global bottom clearance so fixed bottom dock never covers content or footer links */
  body {
    padding-bottom: calc(60px + max(10px, env(safe-area-inset-bottom, 10px)) + 28px) !important;
  }
  .page-view, .view-container, main .studio-container, .main-content .studio-container {
    padding-bottom: calc(60px + max(10px, env(safe-area-inset-bottom, 10px)) + 24px) !important;
  }
  .studio-header, .studio-header .header-inner, .studio-header .studio-container {
    padding-bottom: 0 !important;
  }
  .studio-global-footer {
    padding-bottom: calc(60px + max(10px, env(safe-area-inset-bottom, 10px)) + 50px) !important;
  }

  /* ==========================================================================
     SYNTH RACK HARDWARE MODULES (MOBILE <= 768px)
     ========================================================================== */
  .synth-rack-card {
    padding: 16px 12px 20px !important;
    border-radius: 18px !important;
    margin-bottom: 24px !important;
  }

  .synth-presets-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .synth-presets-bar::-webkit-scrollbar {
    display: none;
  }

  .synth-presets-label {
    flex-shrink: 0 !important;
    font-size: 0.68rem !important;
  }

  .synth-preset-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
  }

  .synth-rack-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }

  .synth-module {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    overflow: hidden !important;
  }

  .synth-knobs-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .synth-knob-unit {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .synth-knob-wheel {
    width: 38px !important;
    height: 38px !important;
    margin: 0 auto !important;
  }

  .synth-knob-label {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .synth-knob-val {
    font-size: 0.64rem !important;
  }

  /* Piano Keybed Container */
  .piano-section-wrapper {
    padding: 12px 10px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .piano-controls-bar {
    flex-direction: row !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
  }

  .keyboard-helper-text {
    display: none !important;
  }

  .piano-keybed-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    scrollbar-width: thin !important;
  }

  /* ==========================================================================
     8-CHANNEL VIRTUAL ANALOG MIXING CONSOLE (MOBILE <= 768px)
     Horizontal hardware fader board with touch momentum scrolling
     ========================================================================== */
  .console-container {
    padding: 18px 12px 22px !important;
    margin: 24px 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .console-transport-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .btn-console-play {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 18px !important;
  }

  .console-status-pill,
  .console-tempo-pill,
  .console-drag-hint {
    justify-content: center !important;
    text-align: center !important;
  }

  .btn-console-reset {
    width: 100% !important;
  }

  .console-channels-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding: 6px 4px 16px 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
  }

  .console-channels-grid::-webkit-scrollbar {
    height: 6px;
  }
  .console-channels-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
  }
  .console-channels-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
  }

  .channel-strip {
    flex: 0 0 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    width: 88px !important;
    padding: 14px 6px 12px !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-radius: 16px !important;
  }

  .channel-name {
    font-size: 0.62rem !important;
    text-align: center !important;
  }

  .channel-knob {
    width: 32px !important;
    height: 32px !important;
  }

  .channel-fader-area {
    height: 140px !important;
    gap: 6px !important;
  }

  /* ==========================================================================
     MOBILE HORIZONTAL SLIDING ORBIT CAROUSEL (<= 768px)
     - Smooth horizontal swipe carousel with scroll-snap and next/prev controls
     - Desktop (>= 769px) retains full 3D spatial cylinder rotation
     ========================================================================== */
  .orbital-stage-wrapper {
    margin-bottom: 32px !important;
    overflow: hidden !important;
  }

  .orbital-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .orbital-header > div:last-child {
    text-align: left !important;
  }

  .orbital-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .orbital-toolbar::-webkit-scrollbar {
    display: none;
  }

  .orbital-toolbar-group {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .orbital-stage-viewport {
    perspective: none !important;
    transform-style: flat !important;
    height: auto !important;
    min-height: 410px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: block !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 14px 22px !important;
    scrollbar-width: thin !important;
    cursor: grab !important;
  }

  .orbital-stage-viewport::-webkit-scrollbar {
    height: 6px;
  }
  .orbital-stage-viewport::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
  .orbital-stage-viewport::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
  }

  .orbital-carousel-cylinder {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    transform: none !important;
    transform-style: flat !important;
    width: max-content !important;
    height: auto !important;
    min-height: 380px !important;
    gap: 14px !important;
    pointer-events: auto !important;
    position: static !important;
  }

  .orbital-lib-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 380px !important;
    scroll-snap-align: center !important;
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  }

  .orbital-lib-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .spatial-core-telemetry {
    font-size: 0.58rem !important;
    padding: 3px 8px !important;
  }

  /* Cookie Banner Stacking */
  .cookie-consent-banner {
    bottom: calc(60px + max(10px, env(safe-area-inset-bottom, 10px)) + 12px) !important;
    left: 10px !important;
    right: 10px !important;
    padding: 14px 16px !important;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .cookie-banner-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Universal Footer Stacking */
  .footer-main-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-legal-right {
    align-items: flex-start;
  }

  /* Touch-friendly inputs & buttons */
  .studio-input, select.studio-input, textarea.studio-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    min-height: 46px;
    padding: 12px 14px;
  }

  .btn-aurora, .btn-glass, .btn-text {
    min-height: 44px;
    padding: 10px 16px;
  }

  /* Footer DAWs Showcase on Mobile */
  .footer-daws-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .footer-daw-card {
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px !important;
  }
  .footer-daw-icon-wrap {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  .footer-daws-title {
    font-size: 1.25rem !important;
  }

  /* Bottom Dock removed per user instruction */
  .studio-bottom-dock {
    display: none !important;
  }
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINT: <= 480px & 375px (Compact Mobile Screens)
   ========================================================================== */
@media (max-width: 480px) {
  .section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  }

  .hero-specs-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .daw-compat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .piano-controls-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .octave-claim-form-card {
    padding: 18px 14px !important;
  }

  .schematic-floating-hud {
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  .channel-strip {
    flex: 0 0 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    width: 82px !important;
  }

  .orbital-lib-card {
    flex: 0 0 240px !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: 370px !important;
  }

  .orbital-lib-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .footer-daw-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 14px 12px !important;
  }

  .cookie-modal-panel {
    padding: 20px 16px;
  }

  .cookie-cat-item {
    flex-direction: column;
    gap: 12px;
  }

  .cookie-switch {
    align-self: flex-end;
  }

}

/* ==========================================================================
   Hero Studio Slider Responsive Enhancements (768px, 480px, 375px)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-studio-slider-wrapper,
  .plugins-hero-wrapper {
    height: clamp(260px, 56vw, 420px) !important;
  }
  .hero-slider-nav-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .hero-slider-nav-prev {
    left: 10px !important;
  }
  .hero-slider-nav-next {
    right: 10px !important;
  }
  .hero-slider-dots {
    bottom: 14px !important;
    padding: 5px 10px !important;
    gap: 8px !important;
  }
  .hero-slider-dot {
    width: 8px !important;
    height: 8px !important;
  }
  .hero-slider-dot.active {
    width: 24px !important;
  }
}

@media (max-width: 480px) {
  .hero-studio-slider-wrapper,
  .plugins-hero-wrapper {
    height: clamp(220px, 58vw, 300px) !important;
  }
  .hero-slider-nav-btn {
    width: 34px !important;
    height: 34px !important;
  }
  .hero-slider-nav-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  .hero-slider-nav-prev {
    left: 6px !important;
  }
  .hero-slider-nav-next {
    right: 6px !important;
  }
}

/* ==========================================================================
   Responsive Adaptations for Studio Redesign (Mockups)
   ========================================================================== */
@media (max-width: 991px) {
  .hero-studio-desk {
    min-height: 560px;
    padding-top: 86px;
  }
  .orbit-cards-stage {
    gap: 10px;
  }
  .sound-pack-card {
    width: 190px;
    height: 360px;
    padding: 18px 14px;
  }
  .sound-pack-card.pos-2 {
    width: 240px;
    height: 420px;
  }
}

@media (max-width: 768px) {
  .hero-studio-desk {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 24px;
    background-image: 
      linear-gradient(to bottom, rgba(8, 10, 14, 0.94) 0%, rgba(8, 10, 14, 0.85) 60%, rgba(8, 10, 14, 0.95) 100%),
      url('../assets/images/octave_studio_hero_new.jpg');
    background-position: center;
  }

  .hero-studio-desk-content {
    max-width: 100%;
    padding: 20px 0 30px;
  }

  .hero-studio-title {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .hero-studio-btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-hero-get-octave {
    justify-content: center;
    text-align: center;
  }

  .btn-hero-audition, .btn-hero-manual {
    justify-content: center;
  }

  .hero-studio-meta-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Universal Control Toolbar Mobile Horizontal Scroll */
  .studio-control-toolbar {
    padding: 8px 0;
  }

  .toolbar-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    justify-content: flex-start;
    gap: 12px;
  }

  .toolbar-inner::-webkit-scrollbar {
    display: none;
  }

  .toolbar-group-mood {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .toolbar-group-speed,
  .toolbar-group-view,
  .toolbar-group-search {
    flex-shrink: 0;
  }

  /* Discover Sounds Section on Mobile */
  .discover-sounds-section {
    padding: 85px 0 50px;
    scroll-margin-top: 75px;
  }

  /* 3D Orbit Stage on Mobile */
  .orbit-stage-container {
    overflow-x: hidden;
    min-height: 440px;
    padding: 0 10px;
  }

  .orbit-cards-stage {
    gap: 8px;
  }

  .sound-pack-card.pos-0,
  .sound-pack-card.pos-4 {
    display: none; /* Keep 3 cards focused on mobile */
  }

  .sound-pack-card.pos-1 {
    transform: rotateY(14deg) scale(0.88);
    width: 160px;
    height: 340px;
  }

  .sound-pack-card.pos-2 {
    width: 215px;
    height: 410px;
    transform: scale(1.02);
  }

  .sound-pack-card.pos-3 {
    transform: rotateY(-14deg) scale(0.88);
    width: 160px;
    height: 340px;
  }

  .orbit-nav-arrow {
    width: 36px;
    height: 36px;
    top: 50%;
    z-index: 25;
  }
  .orbit-nav-arrow.arrow-prev {
    left: 2px;
  }
  .orbit-nav-arrow.arrow-next {
    right: 2px;
  }

  .corner-annot {
    display: none;
  }
}



/* ==========================================================================
   Plugin Alliance Style Hero Text Overlay Responsive Rules
   ========================================================================== */
@media (max-width: 768px) {
  .hero-slide-pa-overlay {
    left: 58px !important;
    max-width: 380px !important;
  }
  .hero-slide-pa-scrim {
    width: 70% !important;
  }
  .hero-slide-pa-title {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
  }
  .hero-slide-pa-desc {
    font-size: 0.95rem !important;
    margin-bottom: 16px !important;
  }
  .btn-pa-primary, .btn-pa-secondary {
    padding: 9px 18px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .hero-slide-pa-overlay {
    left: 50px !important;
    right: 14px !important;
    max-width: calc(100% - 64px) !important;
  }
  .hero-slide-pa-scrim {
    width: 100% !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 65%, rgba(0, 0, 0, 0.35) 100%) !important;
  }
  .hero-slide-pa-title {
    font-size: 1.35rem !important;
    margin-bottom: 4px !important;
  }
  .hero-slide-pa-desc {
    font-size: 0.80rem !important;
    margin-bottom: 12px !important;
  }
  .btn-pa-primary, .btn-pa-secondary {
    padding: 7px 14px !important;
    font-size: 0.74rem !important;
  }
}
