/* ============================================
   brandcraftstudios - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
  --primary: #8B5CF6;
  --primary-dark: #6D28D9;
  --secondary: #F97316;
  --accent: #FACC15;
  --accent2: #FFE566;
  --dark: #120B1F;
  --dark2: #211337;
  --dark3: #3B1D5A;
  --text: #E8E8F0;
  --text-muted: #A0A0B8;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(139,92,246,0.3);
  --success: #00E676;
  --gradient-main: linear-gradient(135deg, #8B5CF6 0%, #F97316 58%, #FACC15 100%);
  --gradient-dark: linear-gradient(180deg, #120B1F 0%, #211337 50%, #3B1D5A 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gradient-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13,13,26,0.98);
  box-shadow: 0 4px 30px rgba(108,99,255,0.2);
}

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

.navbar-logo {
  width: 42px;
  height: 42px;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  box-shadow: 0 4px 15px rgba(108,99,255,0.5);
}

.navbar-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-title span {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* ============================================
   COURSES & CONTACT
   ============================================ */
.contact-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.course-section {
  padding: 20px 2rem 70px;
}

.course-card {
  max-width: 1050px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(108,99,255,0.16), rgba(0,210,255,0.08));
  box-shadow: 0 20px 55px rgba(0,0,0,0.2);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
}

.course-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: var(--gradient-main);
  box-shadow: 0 10px 25px rgba(108,99,255,0.35);
}

.course-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.course-card h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.course-card p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
}

.course-catalog {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.course-mini-card {
  padding: 1.35rem;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.course-mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: rgba(108,99,255,0.11);
}

.course-mini-icon {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.course-mini-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.course-mini-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  min-height: 4.1em;
  margin-bottom: 0.9rem;
}

.course-mini-card a {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.course-mini-card a:hover {
  color: white;
}

.course-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
  list-style: none;
}

.course-features li {
  color: var(--text);
  font-size: 0.86rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(13,13,26,0.35);
}

.contact-section {
  max-width: 900px;
  margin-top: 1.5rem;
}

.contact-intro {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: rgba(13,13,26,0.35);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(160,160,184,0.35);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  font: inherit;
}

.form-field select option {
  color: #0D0D1A;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(108,99,255,0.28);
  border-color: var(--primary);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  color: var(--success);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .course-card {
    grid-template-columns: 1fr;
  }

  .course-catalog {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: white;
  background: rgba(108,99,255,0.2);
}

.nav-cta {
  background: var(--gradient-main) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(108,99,255,0.4);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,99,255,0.6) !important;
  background: rgba(255,255,255,0.1) !important;
}

.lang-toggle {
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.4);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: rgba(108,99,255,0.3);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,107,53,0.1) 0%, transparent 40%),
              radial-gradient(ellipse at 20% 80%, rgba(0,210,255,0.1) 0%, transparent 40%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: rgba(108,99,255,0.2);
  border: 1px solid var(--primary);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .accent-text {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 6px 25px rgba(108,99,255,0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(108,99,255,0.7);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--card-border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(108,99,255,0.1);
  transform: translateY(-3px);
}

.btn-secondary {
  background: linear-gradient(135deg, #FF6B35, #FFD700);
  color: white;
  box-shadow: 0 6px 25px rgba(255,107,53,0.5);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(255,107,53,0.7);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: rgba(108,99,255,0.1);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem 2rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 80px 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  background: rgba(108,99,255,0.2);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   NICHES GRID
   ============================================ */
.niches-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.niche-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.niche-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-gradient, var(--gradient-main));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.niche-card:hover::before {
  transform: scaleX(1);
}

.niche-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(108,99,255,0.2);
}

.niche-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: var(--card-gradient, var(--gradient-main));
  box-shadow: 0 8px 25px rgba(108,99,255,0.4);
}

.niche-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.niche-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.niche-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.niche-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.niche-card:hover .niche-link {
  gap: 12px;
}

/* ============================================
   METRO FEATURED CARD
   ============================================ */
.metro-featured {
  max-width: 1300px;
  margin: 0 auto 3rem;
  background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(108,99,255,0.15));
  border: 2px solid var(--secondary);
  border-radius: 24px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.metro-featured::before {
  content: '⭐ RECOMENDADO';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.metro-featured h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.metro-featured p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.commission-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B35, #FFD700);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================
   CONTENT PAGE STYLES
   ============================================ */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.2) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-icon {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  background: var(--gradient-main);
  box-shadow: 0 15px 40px rgba(108,99,255,0.5);
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Content layout */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

.content-body {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
}

.content-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: var(--accent);
}

.content-body h2:first-child { margin-top: 0; }

.content-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-body ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.content-body ul li {
  padding: 8px 0;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.content-body ul li::before {
  content: '✦';
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--accent);
}

.official-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.official-link:hover {
  background: rgba(108,99,255,0.2);
  border-color: var(--primary);
  transform: translateX(5px);
}

.official-link .link-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.official-link .link-text {
  flex: 1;
}

.official-link .link-text span {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.official-link .link-text small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.commission-card {
  background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(255,215,0,0.1));
  border: 2px solid var(--secondary);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
}

.commission-amount {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FF6B35, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.commission-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================
   INFO BOXES
   ============================================ */
.info-box {
  background: rgba(108,99,255,0.1);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box.warning {
  background: rgba(255,107,53,0.1);
  border-color: var(--secondary);
}

.info-box.success {
  background: rgba(0,230,118,0.1);
  border-color: var(--success);
}

.info-box p {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 0.9rem;
}

.info-box strong {
  color: var(--primary);
}

.info-box.warning strong {
  color: var(--secondary);
}

.info-box.success strong {
  color: var(--success);
}

/* ============================================
   STEPS
   ============================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(108,99,255,0.4);
}

.step-content h4 {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 !important;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(255,107,53,0.1));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem auto;
  max-width: 1200px;
}

.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--card-border);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.87rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-disclaimer {
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 1.5rem auto 0;
}

.footer-disclaimer p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.footer-disclaimer strong {
  color: var(--secondary);
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 30px rgba(108,99,255,0.6);
  z-index: 2000;
  transition: all 0.3s ease;
  animation: chatPulse 3s ease-in-out infinite;
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(108,99,255,0.6); }
  50% { box-shadow: 0 8px 40px rgba(108,99,255,0.9), 0 0 0 8px rgba(108,99,255,0.1); }
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-notification {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark);
}

.chat-window {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 370px;
  max-height: 520px;
  background: var(--dark2);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  z-index: 1999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0) translateY(20px);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  pointer-events: none;
}

.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--gradient-main);
  padding: 1.2rem 1.5rem;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-header-info h4 {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-header-info p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-status {
  width: 8px;
  height: 8px;
  background: #00E676;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: statusBlink 2s infinite;
}

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

.chat-close {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.chat-close:hover { background: rgba(255,255,255,0.35); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 280px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: msgAppear 0.3s ease;
}

@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-bot {
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--text);
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
}

.msg-user {
  background: var(--gradient-main);
  color: white;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
}

.chat-options {
  padding: 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-option-btn {
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.chat-option-btn:hover {
  background: rgba(108,99,255,0.3);
  border-color: var(--primary);
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--card-border);
  border-radius: 25px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input:focus { border-color: var(--primary); }
.chat-input::placeholder { color: var(--text-muted); }

.chat-send {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.chat-send:hover { transform: scale(1.1); }

/* ============================================
   TYPING INDICATOR
   ============================================ */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 4px 16px 16px 16px;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
}

/* ============================================
   TERMS PAGE
   ============================================ */
.terms-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.terms-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.terms-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--primary);
}

.terms-section p, .terms-section li {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.terms-section ul {
  list-style: none;
  padding-left: 1rem;
}

.terms-section ul li::before {
  content: '▸ ';
  color: var(--primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(13,13,26,0.98);
    padding: 1rem;
    flex-direction: column;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-menu.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .metro-featured {
    grid-template-columns: 1fr;
  }

  .chat-window {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

@media (max-width: 480px) {
  section { padding: 60px 1rem; }
  .navbar { padding: 0 1rem; }
  .content-body { padding: 1.5rem; }
}

/* Metro By Exclusive — music track catalogue */
.library-site {
  --library-ink: #f8f4ee;
  --library-muted: #b9b3ad;
  --library-line: rgba(255,255,255,0.13);
  --library-gold: #facc15;
  --library-blue: #c4b5fd;
  --library-purple: #8b5cf6;
  --library-orange: #f97316;
  background: #120b1f;
  color: var(--library-ink);
}

.library-site .navbar {
  height: 76px;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
  background: rgba(15,14,19,0.95);
  border-bottom-color: var(--library-line);
}

.library-site .navbar-logo {
  background: linear-gradient(135deg, var(--library-purple), var(--library-orange), var(--library-gold));
  box-shadow: 0 6px 20px rgba(139,92,246,0.3);
}

.library-site .navbar-title {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--library-ink);
  font-size: 1rem;
}

.library-site .nav-menu { gap: 0.15rem; }
.library-site .nav-menu a { color: var(--library-muted); font-size: 0.78rem; }
.library-site .nav-menu a:hover,
.library-site .nav-menu a.active { color: var(--library-ink); background: rgba(139,92,246,0.18); }
.library-site .nav-cta { background: var(--library-gold) !important; color: #241b13 !important; box-shadow: none; }
.library-site .contact-link { color: var(--library-ink); border-color: rgba(249,115,22,0.5); background: rgba(139,92,246,0.14); }

.library-site .library-hero {
  min-height: 690px;
  display: grid;
  place-items: center;
  padding: 150px 1.5rem 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 74% 30%, rgba(249,115,22,0.16), transparent 25%), radial-gradient(circle at 20% 70%, rgba(139,92,246,0.15), transparent 30%), #120b1f;
}

.library-site .hero-audio-orb {
  --orb-size: min(40vw, 480px);
  --audio-glow: 30px;
  width: var(--orb-size);
  height: var(--orb-size);
  position: absolute;
  right: calc(8% + 25px);
  top: calc(18% + 25px);
  z-index: 0;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 34%, rgba(12,22,38,0.92), #000 74%);
  box-shadow: 0 0 70px rgba(56,189,248,0.16), inset 0 0 50px rgba(0,0,0,0.65);
  pointer-events: none;
}

.library-site .library-hero-content,
.library-site .library-section-inner,
.library-site .library-page-hero-inner,
.library-site .library-footer-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.library-site .library-hero-content { position: relative; z-index: 1; }
.library-site .eyebrow,
.library-site .section-kicker {
  color: var(--library-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.library-site .library-hero h1,
.library-site .section-title,
.library-site .library-page-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.library-site .library-hero h1 {
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  margin-bottom: 1.6rem;
}

.library-site .library-hero h1 em,
.library-site .library-page-hero h1 em { color: var(--library-gold); }
.library-site .library-hero p { max-width: 540px; color: var(--library-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; }
.library-site .library-actions,
.library-site .book-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.85rem; }

.library-site .library-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--library-line);
  border-radius: 4px;
  color: var(--library-ink);
  background: transparent;
  font: 600 0.82rem 'Poppins', sans-serif;
  text-decoration: none;
  transition: 0.25s ease;
}

.library-site .library-btn:hover { border-color: var(--library-gold); transform: translateY(-2px); }
.library-site .library-btn.primary { border-color: var(--library-gold); background: var(--library-gold); color: #241b13; }
.library-site .library-btn.secondary { border-color: rgba(139,92,246,0.55); background: rgba(139,92,246,0.12); }
.library-site .hero-note { margin-top: 1.25rem; color: #837c75; font-size: 0.75rem; }

.library-site .library-section { padding: 95px clamp(1.25rem, 5vw, 5rem); }
.library-site .library-section.alt { background: #15131a; }
.library-site .section-title { max-width: 700px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; margin-bottom: 0.9rem; }
.library-site .section-copy { max-width: 650px; color: var(--library-muted); line-height: 1.75; }

.library-site .category-grid,
.library-site .book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
}

.library-site .category-card,
.library-site .book-card {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--library-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.065);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.library-site .category-card:hover,
.library-site .book-card:hover { transform: translateY(-5px); border-color: rgba(250,204,21,0.65); background: rgba(250,204,21,0.08); }
.library-site .category-icon,
.library-site .book-cover { display: grid; place-items: center; width: 100%; aspect-ratio: 1.55 / 1; margin-bottom: 1.25rem; border-radius: 5px; color: white; font-size: 2.6rem; background: linear-gradient(135deg, #4b3d2c, #bd8059); }
.library-site .category-card:nth-child(2) .category-icon,
.library-site .book-card:nth-child(2) .book-cover { background: linear-gradient(135deg, #273845, #7998a6); }
.library-site .category-card:nth-child(3) .category-icon,
.library-site .book-card:nth-child(3) .book-cover { background: linear-gradient(135deg, #233f35, #74966f); }
.library-site .category-card:nth-child(4) .category-icon,
.library-site .book-card:nth-child(4) .book-cover { background: linear-gradient(135deg, #3c2d50, #a47abb); }
.library-site .category-card:nth-child(5) .category-icon,
.library-site .book-card:nth-child(5) .book-cover { background: linear-gradient(135deg, #522f35, #d27771); }
.library-site .category-card:nth-child(6) .category-icon,
.library-site .book-card:nth-child(6) .book-cover { background: linear-gradient(135deg, #2e3f47, #668b9b); }
.library-site .category-card h3,
.library-site .book-card h3 { font: 400 1.4rem/1.15 Georgia, 'Times New Roman', serif; margin-bottom: 0.55rem; }
.library-site .category-card p,
.library-site .book-card p { min-height: 3.2em; color: var(--library-muted); font-size: 0.82rem; line-height: 1.6; margin-bottom: 1rem; }
.library-site .card-link { color: var(--library-gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.library-site .book-card { display: flex; flex-direction: column; }
.library-site .book-card .book-cover { position: relative; min-height: 180px; overflow: hidden; text-align: center; }
.library-site .book-cover strong { max-width: 75%; font: 1.4rem/1.05 Georgia, 'Times New Roman', serif; }
.library-site .book-cover small { position: absolute; right: 10px; bottom: 9px; left: 10px; color: rgba(255,255,255,0.75); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; }
.library-site .book-card .book-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; }
.library-site .book-card .book-meta span { color: var(--library-blue); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.library-site .book-price { color: var(--library-gold); font-size: 1.15rem; font-weight: 700; }
.library-site .book-actions { margin-top: auto; }
.library-site .book-actions .library-btn { width: 100%; font-size: 0.72rem; }

.library-site .preview-layout,
.library-site .subscription-layout,
.library-site .contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.library-site .download-preview { padding: 1rem; border: 1px solid var(--library-line); border-radius: 8px; background: #09090c; box-shadow: 0 25px 70px rgba(0,0,0,0.35); }
.library-site .preview-device { padding: 1rem 1rem 1.25rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 7px; background: #19171d; }
.library-site .preview-topbar { display: flex; justify-content: space-between; margin-bottom: 1rem; color: #837c75; font-size: 0.62rem; }
.library-site .preview-art { display: grid; place-items: center; min-height: 180px; border-radius: 4px; color: white; text-align: center; background: linear-gradient(135deg, #4b3d2c, #bd8059); }
.library-site .preview-art strong { max-width: 75%; font: 1.6rem/1.05 Georgia, 'Times New Roman', serif; }
.library-site .category-icon,
.library-site .book-cover,
.library-site .preview-art { overflow: hidden; }
.library-site .real-book-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.library-site .category-icon > img,
.library-site .track-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.library-site .track-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.1rem;
  align-content: end;
  justify-items: start;
  background: linear-gradient(135deg, #3b1d5a, #f97316);
}
.library-site .track-cover::before {
  content: '';
  position: absolute;
  inset: 11% -7% auto auto;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255,255,255,0.06), 0 0 0 32px rgba(255,255,255,0.035);
  z-index: -1;
}
.library-site .track-cover strong { max-width: 88%; font: 400 clamp(1.45rem, 2.5vw, 2.1rem)/0.96 Georgia, 'Times New Roman', serif; text-align: left; }
.library-site .track-cover small { margin-top: 0.5rem; color: rgba(255,255,255,0.78); font: 700 0.6rem 'Poppins', sans-serif; letter-spacing: 0.13em; }
.library-site .trap-cover { background: linear-gradient(135deg, #251638, #7e52bd 58%, #dfc0ff); }
.library-site .soul-cover { background: linear-gradient(135deg, #3b1720, #b4506b 57%, #f0bd8d); }
.library-site .house-cover { background: linear-gradient(135deg, #0d2a38, #2c91b5 56%, #d2fbff); }
.library-site .afro-cover { background: linear-gradient(135deg, #3b2710, #d77a22 57%, #ffe077); }
.library-site .score-cover { background: linear-gradient(135deg, #172236, #506aab 57%, #dce4ff); }
.library-site .chill-cover { background: linear-gradient(135deg, #16382f, #529778 57%, #d4efd7); }
.library-site .night-cover { background: linear-gradient(135deg, #1c1c22, #536279 57%, #d7e0eb); }
.library-site .slate-cover { background: linear-gradient(135deg, #182c3c, #50819a 57%, #d8edf8); }
.library-site .rose-cover { background: linear-gradient(135deg, #421d2e, #b95a83 57%, #f7c2d7); }
.library-site .dusk-cover { background: linear-gradient(135deg, #251b31, #785b9b 57%, #e0cbef); }
.library-site .aqua-cover { background: linear-gradient(135deg, #16383c, #54aeb1 57%, #d6ffff); }
.library-site .chrome-cover { background: linear-gradient(135deg, #242a32, #74879a 57%, #eaf2fb); }
.library-site .coral-cover { background: linear-gradient(135deg, #412120, #cf674d 57%, #ffd6bd); }
.library-site .lime-cover { background: linear-gradient(135deg, #263c1f, #79a14a 57%, #e0f7b3); }
.library-site .violet-cover { background: linear-gradient(135deg, #211b43, #6d60ae 57%, #e2ddff); }
.library-site .silver-cover { background: linear-gradient(135deg, #25313d, #7a9ab2 57%, #e7f2f8); }
.library-site .moss-cover { background: linear-gradient(135deg, #29372d, #718c63 57%, #e3efd7); }
.library-site .blue-cover { background: linear-gradient(135deg, #1b3044, #527da7 57%, #d8ecff); }
.library-site .track-audio { width: 100%; height: 38px; margin: 0.1rem 0 1rem; accent-color: var(--library-gold); }
.library-site .track-audio-large { margin: 1rem 0 0; }
.library-site .audio-note { margin: 0.65rem 0 0; color: #918981; font-size: 0.68rem; line-height: 1.5; }
.library-site .player-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.library-site .play-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #241b13; background: var(--library-gold); }
.library-site .progress-line { height: 4px; border-radius: 5px; background: linear-gradient(90deg, var(--library-gold) 35%, #4a454a 35%); }
.library-site .time-label { color: #837c75; font-size: 0.65rem; }

.library-site .feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.75rem; list-style: none; }
.library-site .feature-list li { padding-top: 0.8rem; border-top: 1px solid var(--library-line); color: var(--library-muted); font-size: 0.8rem; line-height: 1.5; }
.library-site .feature-list strong { display: block; color: var(--library-ink); font-size: 0.88rem; margin-bottom: 0.25rem; }
.library-site .subscription-card { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(139,92,246,0.4); border-radius: 8px; background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(249,115,22,0.1), rgba(250,204,21,0.08)); }
.library-site .subscription-form,
.library-site .library-contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.library-site .subscription-form { grid-template-columns: 1fr auto; }
.library-site .library-field { display: grid; gap: 0.45rem; }
.library-site .library-field label { color: var(--library-ink); font-size: 0.78rem; font-weight: 600; }
.library-site .library-field input,
.library-site .library-field select,
.library-site .library-field textarea { width: 100%; min-height: 50px; padding: 0.85rem 0.95rem; border: 1px solid var(--library-line); border-radius: 4px; color: var(--library-ink); background: rgba(0,0,0,0.25); font: 0.9rem 'Poppins', sans-serif; }
.library-site .library-field textarea { min-height: 170px; resize: vertical; }
.library-site .library-field input:focus,
.library-site .library-field select:focus,
.library-site .library-field textarea:focus { outline: 2px solid rgba(139,92,246,0.4); border-color: var(--library-gold); }
.library-site .library-contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.library-site .library-contact-form .full-width { grid-column: 1 / -1; }
.library-site .form-note,
.library-site .payment-note { color: #918981; font-size: 0.72rem; line-height: 1.6; }
.library-site .payment-note { padding: 0.8rem; border-left: 2px solid var(--library-gold); background: rgba(250,204,21,0.08); }

.library-site .library-page-hero { padding: 150px clamp(1.25rem, 5vw, 5rem) 75px; background: linear-gradient(180deg, #17151a, #0f0e13); }
.library-site .library-contact-hero { padding-bottom: 32px; }
.library-site .library-contact-start { padding-top: 42px; }
.library-site .library-page-hero h1 { max-width: 800px; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1; margin-bottom: 1rem; }
.library-site .library-page-hero p { max-width: 630px; color: var(--library-muted); line-height: 1.8; }
.library-site .category-summary { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.library-site .category-summary span { padding: 0.5rem 0.75rem; border: 1px solid var(--library-line); border-radius: 999px; color: var(--library-muted); font-size: 0.7rem; }
.library-site .library-footer { padding: 2.5rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--library-line); color: #837c75; font-size: 0.75rem; }
.library-site .library-footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.library-site .library-footer a { color: var(--library-gold); text-decoration: none; }
.library-site [hidden] { display: none !important; }
.library-site .cart-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--library-gold);
  border-radius: 999px;
  color: #241b13;
  background: var(--library-gold);
  box-shadow: 0 14px 35px rgba(0,0,0,0.35);
  font: 700 0.78rem 'Poppins', sans-serif;
  cursor: pointer;
}
.library-site .cart-toggle:hover { transform: translateY(-2px); }
.library-site .cart-badge {
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  color: var(--library-gold);
  background: #241b13;
  font-size: 0.68rem;
}
.library-site .cart-drawer {
  position: fixed;
  right: 1.5rem;
  bottom: 5.9rem;
  z-index: 1099;
  width: min(410px, calc(100vw - 3rem));
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding: 1.35rem;
  border: 1px solid rgba(249,115,22,0.5);
  border-radius: 10px;
  color: var(--library-ink);
  background: #19171d;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.library-site .cart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.library-site .cart-header .section-kicker { margin-bottom: 0.45rem; }
.library-site .cart-header h2 { font: 400 1.8rem/1.05 Georgia, 'Times New Roman', serif; }
.library-site .cart-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--library-line);
  border-radius: 50%;
  color: var(--library-ink);
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.library-site .cart-close:hover { border-color: var(--library-gold); color: var(--library-gold); }
.library-site .cart-intro,
.library-site .cart-empty { margin: 1rem 0; color: var(--library-muted); font-size: 0.76rem; line-height: 1.6; }
.library-site .cart-items { display: grid; gap: 0.7rem; margin: 1rem 0; padding: 0; list-style: none; }
.library-site .cart-item { display: grid; gap: 0.75rem; padding: 0.85rem; border: 1px solid var(--library-line); border-radius: 5px; background: rgba(0,0,0,0.18); }
.library-site .cart-item-info { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.library-site .cart-item-info strong { font: 400 1rem/1.2 Georgia, 'Times New Roman', serif; }
.library-site .cart-item-info span { color: var(--library-muted); font-size: 0.7rem; white-space: nowrap; }
.library-site .cart-item-controls { display: flex; align-items: center; gap: 0.5rem; color: var(--library-muted); font-size: 0.75rem; }
.library-site .cart-quantity-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--library-line);
  border-radius: 3px;
  color: var(--library-ink);
  background: transparent;
  cursor: pointer;
}
.library-site .cart-quantity-btn:hover { border-color: var(--library-gold); color: var(--library-gold); }
.library-site .cart-remove { margin-left: auto; border: 0; color: #c98e85; background: transparent; font: 0.7rem 'Poppins', sans-serif; cursor: pointer; }
.library-site .cart-remove:hover { color: #f2b1a6; }
.library-site .cart-summary { display: flex; justify-content: space-between; margin: 1rem 0; padding-top: 1rem; border-top: 1px solid var(--library-line); color: var(--library-muted); font-size: 0.8rem; }
.library-site .cart-summary strong { color: var(--library-ink); font-size: 1rem; }
.library-site .cart-checkout-form { display: grid; gap: 0.8rem; padding-top: 0.35rem; }
.library-site .cart-checkout-form .library-btn { width: 100%; }
.library-site .cart-checkout-form .library-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

@media (max-width: 900px) {
  .library-site .category-grid,
  .library-site .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-site .preview-layout,
  .library-site .subscription-layout,
  .library-site .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .library-site .library-hero { min-height: 620px; padding-top: 125px; }
  .library-site .hero-audio-orb {
    --orb-size: min(74vw, 380px);
    left: 0;
    right: 0;
    margin-inline: auto;
    top: auto;
    bottom: 6%;
    opacity: 0.85;
  }
  .library-site .category-grid,
  .library-site .book-grid,
  .library-site .library-contact-form { grid-template-columns: 1fr; }
  .library-site .library-contact-form .full-width { grid-column: auto; }
  .library-site .subscription-form,
  .library-site .feature-list { grid-template-columns: 1fr; }
  .library-site .library-footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .library-site .library-hero h1 { font-size: 3rem; }
  .library-site .hero-audio-orb {
    --orb-size: min(82vw, 340px);
    bottom: 5%;
  }
  .library-site .library-section { padding-top: 70px; padding-bottom: 70px; }
  .library-site .cart-toggle { right: 1rem; bottom: 1rem; }
  .library-site .cart-drawer { right: 1rem; bottom: 5.25rem; width: calc(100vw - 2rem); max-height: calc(100vh - 6.5rem); }
}

/* ============================================
   HOMEPAGE HERO / RESONANCE EDITION
   Editorial composition: an image-led sound field,
   rather than a contained product illustration.
   ============================================ */
.library-site .library-hero {
  --hero-grid-shift: 0px;
  min-height: min(940px, 100svh);
  display: block;
  padding: clamp(9rem, 16vh, 11rem) max(1.5rem, 7vw) 7rem;
  isolation: isolate;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at 77% 43%, rgba(117, 95, 255, 0.16), transparent 27%),
    radial-gradient(ellipse at 17% 82%, rgba(231, 164, 93, 0.07), transparent 34%),
    #080a12;
}

.library-site .library-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 84px 84px;
  background-position: 0 var(--hero-grid-shift), var(--hero-grid-shift) 0;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.library-site .hero-audio-orb {
  --orb-size: min(62vw, 880px);
  width: var(--orb-size);
  height: var(--orb-size);
  right: 2vw;
  top: 2%;
  border-radius: 50%;
  overflow: visible;
  background: radial-gradient(circle closest-side, rgba(86, 69, 157, 0.16) 0%, rgba(12, 15, 28, 0.04) 55%, transparent 96%);
  box-shadow: none;
  z-index: -1;
  /* Anchored on the android's open hand so the scroll zoom pushes toward it
     as one continuous move instead of cutting to a different shot. */
  transform-origin: 66% 66%;
  will-change: transform;
}

.library-site .hero-audio-orb::before {
  content: '';
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(205, 190, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(137, 112, 255, 0.14), inset 0 0 80px rgba(141, 123, 255, 0.09);
}

.library-site .android-portrait {
  position: absolute;
  z-index: 3;
  width: 76%;
  height: 96%;
  left: 12%;
  bottom: -5%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.86) contrast(1.08) drop-shadow(0 25px 32px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 var(--audio-glow) rgba(176, 159, 255, 0.38));
  animation: portraitFloat 8s ease-in-out infinite;
}

.library-site .android-interior {
  position: absolute;
  z-index: 4;
  width: 76%;
  height: 96%;
  left: 12%;
  bottom: -5%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  opacity: 0;
  animation: portraitFloat 8s ease-in-out infinite;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(circle var(--spot-r, 1px) at var(--spot-x, -999px) var(--spot-y, -999px), #000 0%, #000 62%, rgba(0,0,0,0.5) 80%, transparent 100%);
  mask-image: radial-gradient(circle var(--spot-r, 1px) at var(--spot-x, -999px) var(--spot-y, -999px), #000 0%, #000 62%, rgba(0,0,0,0.5) 80%, transparent 100%);
}

.library-site .android-touch-zone {
  position: absolute;
  z-index: 6;
  width: 76%;
  height: 96%;
  left: 12%;
  bottom: -5%;
  pointer-events: auto;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.library-site .wave-cluster {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: transform;
}

.library-site .audio-orb-wave {
  position: absolute;
  display: block;
  left: 50%;
  top: 51%;
  width: 78%;
  height: 78%;
  border: 1px solid rgba(191, 177, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.45;
  box-shadow: 0 0 18px rgba(156, 137, 255, 0.13);
  animation: resonanceWave 5.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.library-site .audio-orb-wave.wave-two { width: 61%; height: 61%; animation-delay: -1.4s; }
.library-site .audio-orb-wave.wave-three { width: 44%; height: 44%; animation-delay: -2.8s; }
.library-site .audio-orb-wave.wave-four {
  width: 92%;
  height: 92%;
  border-color: rgba(231, 182, 114, 0.27);
  animation-delay: -4.2s;
}

.library-site .hero-audio-orb.is-listening .audio-orb-wave {
  border-color: rgba(234, 221, 255, 0.76);
  animation-duration: 3.1s;
}

.library-site .audio-orb-wave::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(191, 177, 255, 0.6) 28deg, transparent 80deg, transparent 360deg);
  mix-blend-mode: screen;
  animation: ringOrbit 14s linear infinite;
}

.library-site .audio-orb-wave.wave-two::after { animation-duration: 19s; animation-direction: reverse; }
.library-site .audio-orb-wave.wave-three::after {
  animation-duration: 23s;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(217, 184, 121, 0.55) 28deg, transparent 80deg, transparent 360deg);
}
.library-site .audio-orb-wave.wave-four::after { animation-duration: 30s; animation-direction: reverse; }

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

.library-site .library-hero-content {
  max-width: 1180px;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  z-index: 4;
}

.library-site .library-hero .eyebrow {
  margin-bottom: 1.7rem;
  color: #d9b879;
  letter-spacing: 0.3em;
}

.library-site .library-hero h1 {
  max-width: 690px;
  font-size: clamp(3.4rem, 6.4vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.library-site .library-hero h1 em {
  display: inline-block;
  color: #dbc1ff;
  padding-left: 0.12em;
}

.library-site .library-hero-content > p:not(.eyebrow):not(.hero-note) {
  max-width: 430px;
  margin-top: 2.2rem;
  color: rgba(235, 229, 224, 0.66);
  font-size: 0.92rem;
  line-height: 1.85;
}

.library-site .library-actions { margin-top: 0.4rem; }
.library-site .library-btn.primary {
  box-shadow: 0 10px 30px rgba(221, 190, 120, 0.12);
}
.library-site .hero-note {
  margin-top: 1.45rem;
  color: rgba(220, 211, 201, 0.4);
  letter-spacing: 0.04em;
}

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

@keyframes resonanceWave {
  0%, 100% { opacity: 0.18; transform: translate(-50%, -50%) scale(0.94); }
  50% { opacity: 0.65; transform: translate(-50%, -50%) scale(1.06); }
}

@media (min-width: 769px) {
  /* Keep every line of copy in the left column so the larger android is never covered. */
  .library-site .library-hero-content { max-width: none; margin: 0; justify-self: start; width: min(46vw, 640px); }
  .library-site .library-hero-content > p:not(.eyebrow):not(.hero-note) { max-width: 100%; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .library-site .hero-audio-orb { --orb-size: 60vw; right: 2vw; }
  .library-site .library-hero-content { width: 44vw; }
}

@media (max-width: 768px) {
  /* Mobile stacks title, android, then the descriptive paragraph in normal flow. */
  .library-site .library-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 7.5rem 1.35rem 3.5rem;
    overflow-x: clip;
  }
  .library-site .library-hero-content { display: contents; }
  .library-site .library-hero .eyebrow { order: 0; }
  .library-site .library-hero h1 {
    order: 1;
    max-width: 610px;
    font-size: clamp(2.5rem, 11vw, 4rem);
  }
  .library-site .hero-audio-orb {
    order: 2;
    --orb-size: min(132vw, calc((100svh - 330px) * 1.3));
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    align-self: center;
    flex: none;
    margin: calc(var(--orb-size) * -0.36) 0 calc(var(--orb-size) * 0.06);
    opacity: 0.9;
    z-index: 0;
  }
  .library-site .library-hero-content > p:not(.eyebrow):not(.hero-note) {
    order: 3;
    position: relative;
    z-index: 5;
    max-width: 360px;
    margin-top: 1.55rem;
    font-size: 0.9rem;
  }
  .library-site .library-actions { order: 4; }
  .library-site .hero-note { order: 5; }
  .library-site .library-actions,
  .library-site .hero-note { position: relative; z-index: 5; }
  .library-site .audio-orb-wave { box-shadow: none; }
  .library-site .audio-orb-wave::after { display: none; }
  .library-site .android-portrait {
    filter: saturate(0.86) contrast(1.08) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.32));
  }
}

@media (max-width: 480px) {
  .library-site .library-hero h1 { font-size: clamp(2.4rem, 10.5vw, 3.3rem); }
  .library-site .library-hero-content > p:not(.eyebrow):not(.hero-note) { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 769px) {
  .library-site .android-portrait,
  .library-site .android-interior,
  .library-site .audio-orb-wave,
  .library-site .audio-orb-wave::after { animation: none; }
  .library-site .audio-orb-wave { opacity: 0.3; }
}

/* While the hero is pinned and animating out (see js/hero-scroll.js), pull
   "Browse by sound" up so it rises into place and crossfades over the
   receding figure instead of leaving a blank scroll gap. Scoped to a class
   the script only adds when GSAP/ScrollTrigger actually run the effect. */
html.js-hero-crossfade .library-site #genres {
  position: relative;
  z-index: 2;
  margin-top: -46vh;
  padding-top: 48px;
  background: #120b1f;
}

@media (max-width: 768px) {
  html.js-hero-crossfade .library-site #genres {
    margin-top: 0;
    padding-top: 70px;
  }
}

/* Small cues for the interactive android; kept outside its image area. */
.library-site .library-hero .android-instruction {
  position: absolute;
  z-index: 5;
  top: calc(2% + min(62vw, 880px) * 0.24);
  right: calc(2vw + min(62vw, 880px) * 0.18);
  left: auto;
  max-width: min(22vw, 270px);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(230, 222, 239, 0.8);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 0;
}

.library-site .android-instruction::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, rgba(219, 193, 255, 0.7), transparent);
  clip-path: polygon(0 35%, 80% 35%, 80% 0, 100% 50%, 80% 100%, 80% 65%, 0 65%);
  height: 7px;
  transform: rotate(135deg);
}

.library-site .android-instruction-mobile { display: none; }

.library-site .hero-scroll-cue {
  position: absolute;
  z-index: 6;
  right: max(1.4rem, 3.2vw);
  top: min(calc(100svh - 7rem), calc(100% - 4rem));
  width: 2rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  color: rgba(219, 193, 255, 0.62);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.library-site .hero-scroll-cue span {
  position: relative;
  display: block;
  width: 1px;
  height: 1.15rem;
  background: currentColor;
}

.library-site .hero-scroll-cue span::after {
  content: '';
  position: absolute;
  left: -0.22rem;
  bottom: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.library-site .hero-scroll-cue:hover,
.library-site .hero-scroll-cue:focus-visible {
  color: #dbc1ff;
  transform: translateY(3px);
}

.library-site .hero-scroll-cue:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .library-site .library-hero .android-instruction {
    position: relative;
    inset: auto;
    order: 2;
    align-self: center;
    justify-content: center;
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: 0.62rem;
    max-width: none;
    color: rgba(230, 222, 239, 0.58);
  }

  .library-site .android-instruction::after {
    width: 1.15rem;
    background: linear-gradient(90deg, transparent, rgba(219, 193, 255, 0.7));
    transform: none;
  }

  .library-site .android-instruction-desktop { display: none; }
  .library-site .android-instruction-mobile { display: inline; }

  .library-site .hero-scroll-cue {
    right: 1rem;
    top: min(calc(100svh - 9rem), calc(100% - 4rem));
    width: 1.8rem;
    height: 2rem;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .library-site .library-hero {
    padding-top: 5.5rem;
  }

  .library-site .library-hero .eyebrow {
    margin-bottom: 0.9rem;
  }
}
