/* ============================================================
   LISTENING SUITES — ListeningSuites.com
   Cinematic Dark Theme
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --black:        #080808;
  --deep:         #0e0e0e;
  --surface:      #141414;
  --surface-2:    #1c1c1c;
  --border:       rgba(255,255,255,0.07);
  --gold:         #c9a84c;
  --gold-light:   #e2c97e;
  --gold-dim:     rgba(201,168,76,0.25);
  --text-primary: #f0ead8;
  --text-muted:   rgba(240,234,216,0.45);
  --text-faint:   rgba(240,234,216,0.2);
  --white:        #ffffff;
  --radius:       4px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Typography --- */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, transparent 100%);
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img,
.site-logo svg {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav a:hover { color: var(--gold); transition: color var(--transition); }

/* --- Gold Divider --- */
.gold-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-solid {
  background: var(--gold);
  color: var(--black);
}

.btn-solid:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ============================================================
   HOME PAGE
   ============================================================ */

.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(0,0,0,0.8) 0%, transparent 100%);
  pointer-events: none;
}

.home-hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.home-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.home-hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.home-hero-sub {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 48px;
  max-width: 460px;
  line-height: 1.8;
}

/* Suite Grid */
.suite-grid-section {
  padding: 80px 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.suite-grid-section .section-title {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.suite-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--surface);
}

.suite-card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: brightness(0.55) saturate(0.7);
}

.suite-card:hover .suite-card-art {
  transform: scale(1.04);
  filter: brightness(0.7) saturate(0.9);
}

.suite-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  transition: background var(--transition);
}

.suite-card:hover .suite-card-overlay {
  background: linear-gradient(to top, rgba(8,8,8,0.96) 0%, rgba(8,8,8,0.5) 60%, rgba(8,8,8,0.1) 100%);
}

.suite-card-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.suite-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}

.suite-card-author {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.suite-card-price {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.suite-card-enter {
  margin-top: 16px;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}

.suite-card-enter::after {
  content: '→';
  color: var(--gold);
}

.suite-card:hover .suite-card-enter {
  opacity: 1;
  transform: translateY(0);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

.site-footer .footer-logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   SUITE PAGE — LISTENING SUITE
   ============================================================ */

.suite-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr;
  position: relative;
}

/* Ambient Background */
.suite-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.suite-bg-art {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(80px) brightness(0.15) saturate(0.6);
  transition: filter 2s ease;
}

.suite-bg-art.playing {
  filter: blur(60px) brightness(0.22) saturate(0.8);
}

.suite-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(8,8,8,0.3) 0%, var(--black) 80%);
}

/* Suite Layout */
.suite-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

/* Cover Art */
.suite-cover {
  position: relative;
  width: min(280px, 65vw);
  aspect-ratio: 1;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.suite-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.15),
    0 32px 80px rgba(0,0,0,0.8),
    0 0 60px rgba(201,168,76,0.06);
  transition: box-shadow 1s ease;
}

.suite-cover-img.playing {
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.3),
    0 32px 80px rgba(0,0,0,0.8),
    0 0 80px rgba(201,168,76,0.15);
}

.suite-cover-vinyl {
  position: absolute;
  top: 50%;
  right: -30%;
  transform: translateY(-50%) rotate(0deg);
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1a1a 20%, #0a0a0a 21%, #222 35%, #111 36%, #1e1e1e 50%, #0d0d0d 51%, #1a1a1a 65%, #0a0a0a 66%, #181818 80%, #0e0e0e 100%);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  transition: transform 2s linear;
  z-index: -1;
}

.suite-cover-vinyl::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, #8a6a1a 100%);
}

.suite-cover-vinyl.spinning {
  animation: vinyl-spin 3s linear infinite;
}

@keyframes vinyl-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* Suite Meta */
.suite-meta {
  text-align: center;
  margin-bottom: 36px;
  max-width: 460px;
}

.suite-meta-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.suite-meta-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 8px;
}

.suite-meta-author {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.suite-meta-tracks {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* ---- THE PLAYER ---- */
.player {
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Progress / Waveform Bar */
.player-progress-wrap {
  width: 100%;
  cursor: pointer;
  padding: 10px 0;
  position: relative;
}

.player-progress-track {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: visible;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--gold-dim), var(--gold));
  border-radius: 2px;
  transition: width 0.1s linear;
  position: relative;
}

.player-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.player-progress-wrap:hover .player-progress-fill::after { opacity: 1; }

/* Time display */
.player-time {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 8px;
}

/* THE BIG PLAY BUTTON */
.player-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn-ring {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  animation: ring-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.player-btn-ring:nth-child(2) { animation-delay: 1s; }
.player-btn-ring:nth-child(3) { animation-delay: 2s; }

@keyframes ring-pulse {
  0%   { transform: scale(0.85); opacity: 0.6; }
  50%  { transform: scale(1.3);  opacity: 0; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

.player-playing .player-btn-ring { animation-play-state: running; }
.player-paused  .player-btn-ring { animation-play-state: paused; }

.player-btn {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(201,168,76,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(4px);
}

.player-btn:hover {
  background: rgba(201,168,76,0.15);
  box-shadow: 0 0 30px rgba(201,168,76,0.2);
  transform: scale(1.04);
}

.player-btn:active { transform: scale(0.97); }

/* SVG icons inside button */
.player-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
  flex-shrink: 0;
}

.icon-pause { display: none; }
.icon-play  { display: block; margin-left: 3px; }

.player-btn.is-playing .icon-play  { display: none; }
.player-btn.is-playing .icon-pause { display: block; }

/* Volume */
.player-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.player-volume-icon {
  flex-shrink: 0;
  opacity: 0.4;
}

.player-volume-icon svg { width: 14px; height: 14px; fill: var(--text-primary); }

input[type="range"].volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"].volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"].volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--gold);
}

/* Track name ticker */
.player-track-name {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  position: relative;
}

/* ============================================================
   PAYMENT GATE OVERLAY
   ============================================================ */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  padding: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 52px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.gate-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  opacity: 0.5;
}

.gate-card-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1; }

.gate-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.gate-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 8px;
}

.gate-author {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.gate-divider {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 28px;
}

.gate-description {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.gate-price-block {
  margin-bottom: 32px;
}

.gate-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}

.gate-price sup {
  font-size: 1.2rem;
  vertical-align: super;
  color: var(--gold);
}

.gate-price-note {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: 6px;
}

.gate-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.72rem;
  padding: 16px 32px;
}

.gate-trust {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gate-trust svg { width: 12px; height: 12px; fill: var(--text-faint); }

/* Demo unlock link (for testing) */
.gate-demo-link {
  margin-top: 20px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate-demo-link:hover { color: var(--text-muted); }

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

@media (max-width: 768px) {
  .site-header { padding: 20px 24px; }
  .site-nav { display: none; }
  .suite-grid-section { padding: 60px 16px 80px; }
  .gate-card { padding: 40px 28px; }
  .suite-cover-vinyl { display: none; }
}

@media (max-width: 480px) {
  .player-btn { width: 64px; height: 64px; }
  .player-btn-ring { width: 84px; height: 84px; }
}

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */

.fade-in {
  animation: fade-in 0.8s ease forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.25s; opacity: 0; }
.stagger-3 { animation-delay: 0.4s; opacity: 0; }
.stagger-4 { animation-delay: 0.55s; opacity: 0; }
