/* ============ GLOBAL RESET ============ */

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

html,
body {
  margin: 0;
  padding: 0;
}

/* ============ THEME TOKENS ============ */

:root {
  --space0: #04050b;
  --space1: #060a18;
  --space2: #081028;
  --hazeA: rgba(100, 140, 255, 0.16);
  --hazeB: rgba(170, 110, 255, 0.12);
  --star: rgba(255, 255, 255, 0.22);
  --star2: rgba(170, 210, 255, 0.18);
  --bg0: #05060B;
  --bg1: #070A14;
  --bg2: #0A1024;
  --haze1: rgba(120, 110, 255, 0.14);
  --haze2: rgba(60, 210, 255, 0.10);
  --vignette: rgba(0, 0, 0, 0.75);
  --stars: rgba(255, 255, 255, 0.18);

  --bg: #05070c;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-2: rgba(255, 255, 255, 0.16);

  --accent: #8AB4FF;
  --accent-2: #7DE3FF;
  --accent-3: #B38CFF;

  --text: #EAF0FF;
  --muted: rgba(234, 240, 255, 0.70);

  --aura-blue: rgba(138, 180, 255, 0.22);
  --aura-blue-soft: rgba(138, 180, 255, 0.10);
  --glass-1: rgba(255,255,255,0.10);
  --glass-2: rgba(255,255,255,0.04);
  --rim: rgba(255,255,255,0.14);
  --rim-strong: rgba(255,255,255,0.20);
  --shadow-deep: rgba(0,0,0,0.55);

  --bg-2: var(--space2);
  --surface: var(--panel);
  --surface-2: var(--panel-2);
  --border: var(--stroke);
  --sky-x: 0px;
  --sky-y: 0px;
}

/* ============ BASE ============ */

body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(120% 120% at 50% 20%, rgba(0, 0, 0, 0) 0%, var(--vignette) 70%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(180deg, var(--space0), var(--space1) 45%, var(--space2));
  color: var(--text);
  padding-top: 90px;
}

.ev-demo-note{
  display:block;
  margin-top:0.5rem;
  font-size:0.85rem;
  opacity:0.7;
}

/* ============ STARFIELD ============ */

.starfield {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}

.starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 45%, var(--vignette) 100%);
}

.stars {
  position: absolute;
  inset: -60%;
  background-repeat: repeat;
  background-position: 0 0;
  opacity: 0.55;
  filter: blur(0.15px);
  mix-blend-mode: screen;
  will-change: background-position;
  transform: translate3d(0, 0, 0);
}

.stars--1 {
  background-image:
    radial-gradient(1px 1px at 20px 30px, var(--star) 0 1px, transparent 1px),
    radial-gradient(1px 1px at 120px 80px, var(--star2) 0 1px, transparent 1px),
    radial-gradient(1px 1px at 60px 140px, var(--star) 0 1px, transparent 1px),
    radial-gradient(1px 1px at 160px 200px, var(--star2) 0 1px, transparent 1px);
  background-size: 200px 200px;
  animation: star-drift-1 200s linear infinite;
}

.stars--2 {
  background-image:
    radial-gradient(1.5px 1.5px at 40px 50px, var(--star2) 0 1.5px, transparent 2px),
    radial-gradient(1.5px 1.5px at 160px 120px, var(--star) 0 1.5px, transparent 2px),
    radial-gradient(1.5px 1.5px at 100px 170px, var(--star2) 0 1.5px, transparent 2px),
    radial-gradient(1.5px 1.5px at 210px 30px, var(--star) 0 1.5px, transparent 2px);
  background-size: 240px 240px;
  opacity: 0.38;
  animation: star-drift-2 160s linear infinite;
}

.stars--3 {
  background-image:
    radial-gradient(2px 2px at 70px 60px, var(--star) 0 2px, transparent 2.5px),
    radial-gradient(2px 2px at 190px 140px, var(--star2) 0 2px, transparent 2.5px),
    radial-gradient(2px 2px at 140px 210px, var(--star) 0 2px, transparent 2.5px),
    radial-gradient(2px 2px at 20px 190px, var(--star2) 0 2px, transparent 2.5px);
  background-size: 300px 300px;
  opacity: 0.26;
  animation: star-drift-3 120s linear infinite;
}

/* Page wrapper for content below hero */

.page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  background: transparent;
}

/* Section helpers */

.section {
  padding: 40px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 22px;
}

.section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--text);
}

.section-subtitle {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ============ HERO WITH VIDEO & NAV ============ */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: #ffffff;
  overflow: visible;
}

/* Hero sky layers */

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: 0 0;
  pointer-events: none;
}

.hero::before {
  background-image:
    radial-gradient(1200px 900px at 20% 30%, var(--hazeA), transparent 60%),
    radial-gradient(1100px 900px at 80% 15%, var(--hazeB), transparent 60%),
    radial-gradient(1400px 1100px at 50% 80%, rgba(60, 90, 200, 0.18), transparent 65%);
  background-size: 220% 220%;
  filter: blur(12px);
  opacity: 0.55;
  animation: hero-haze-drift 260s linear infinite;
  transform: translate3d(0, 0, 0);
  z-index: -3;
}

.hero::after {
  background-image:
    repeating-radial-gradient(circle at 18% 28%, var(--star) 0 1px, transparent 1px 140px),
    repeating-radial-gradient(circle at 72% 36%, var(--star2) 0 1px, transparent 1px 180px),
    repeating-radial-gradient(circle at 40% 70%, var(--star) 0 1px, transparent 1px 160px),
    repeating-radial-gradient(circle at 60% 50%, var(--star2) 0 1px, transparent 1px 200px),
    repeating-radial-gradient(circle at 50% 55%, rgba(200, 220, 255, 0.08) 0 1px, transparent 2px 24px),
    conic-gradient(from 120deg at 50% 55%, rgba(180, 200, 255, 0.08) 0deg 10deg, transparent 10deg 30deg, rgba(180, 200, 255, 0.06) 30deg 36deg, transparent 36deg 60deg, rgba(180, 200, 255, 0.05) 60deg 70deg, transparent 70deg 360deg);
  background-size: 220% 220%;
  opacity: 0.28;
  animation: hero-stars-drift 180s linear infinite, hero-orbits-rotate 420s linear infinite;
  mix-blend-mode: screen;
  will-change: transform, background-position;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 55%;
  z-index: -2;
}

/* Dark overlay for readability */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
  z-index: -1;
}

.hero-inner {
  width: 100%;
  max-width: 1120px;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

@keyframes star-drift-1 {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -140px 120px;
  }
}

@keyframes star-drift-2 {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 160px -140px;
  }
}

@keyframes star-drift-3 {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -120px -180px;
  }
}

@keyframes hero-haze-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -180px 140px;
  }
}

@keyframes hero-stars-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 160px 120px;
  }
}

@keyframes hero-orbits-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* NAV */

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rim);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 12px 30px var(--shadow-deep);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ev-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t4-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 40px));
  z-index: 9999;
}

.hero-nav::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    var(--aura-blue),
    var(--aura-blue-soft),
    rgba(138,180,255,0.0) 70%
  );
  filter: blur(14px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.20);
  opacity: 0.9;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent);
}

.template-label {
  font-size: 0.75rem;
  color: rgba(255, 242, 227, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-size: 0.78rem;
  text-decoration: none;
  color: rgba(255, 242, 227, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.hero-nav a,
.hero-nav .nav-link {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease, opacity 180ms ease;
}

.hero-nav a:hover,
.hero-nav .nav-link:hover {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 0 12px rgba(138,180,255,0.35);
}

.hero-nav a.active,
.hero-nav .nav-link.active,
.hero-nav .is-active a {
  color: rgba(255,255,255,0.98);
  text-shadow: 0 0 14px rgba(138,180,255,0.45);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Socials */

.nav-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-social {
  text-decoration: none;
}

.nav-social--demo {
  pointer-events: none;
  cursor: default;
  opacity: 0.88;
}

.nav-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-social-icon:hover {
  transform: translateY(-1px);
  background: rgba(138, 180, 255, 0.10);
  color: var(--accent-2);
}

/* Buttons */

.btn-primary,
.btn-secondary {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  padding: 0.55em 1.6em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(138, 180, 255, 0.22), rgba(125, 227, 255, 0.16));
  color: var(--text);
  border: 1px solid rgba(138, 180, 255, 0.28);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(138, 180, 255, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.8);
}

.hero-nav .hero-cta {
  background: linear-gradient(180deg, rgba(138,180,255,0.22), rgba(138,180,255,0.10));
  border: 1px solid rgba(138,180,255,0.30);
  color: rgba(255,255,255,0.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 10px 22px rgba(0,0,0,0.35),
    0 0 24px rgba(138,180,255,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.hero-nav .hero-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 14px 30px rgba(0,0,0,0.45),
    0 0 30px rgba(138,180,255,0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.btn-secondary:hover {
  background: rgba(138, 180, 255, 0.08);
}

/* HERO TEXT */

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0 8px;
}

.text-bg-image h1 {
  margin: 0 auto;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.9);
}

/* subtle glow block behind text, echoing your example vibe */
.text-bg-image {
  display: inline-block;
  padding: 0.1em 0.35em;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12),
    transparent,
    rgba(0, 0, 0, 0.35)
  );
  border-radius: 6px;
}

.hero-tagline {
  margin: 14px auto 0;
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  max-width: 520px;
  color: rgba(255, 242, 227, 0.9);
}

/* ============ PLAYLIST SECTION ============ */

.section-playlist {
  padding-top: 36px;
  padding-bottom: 96px;
}

.playlist-shell {
  margin-top: 10px;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.player-shell {
  margin-bottom: 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0.9rem 0.9rem 0.6rem;
  background: var(--surface-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.audio-el {
  display: none;
}

/* ============ PLAYER DOCK ============ */

.player-dock {
  position: sticky;
  bottom: 12px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  z-index: 2;
}

.dock-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dock-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.dock-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dock-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-note {
  font-size: 0.85rem;
  opacity: 0.6;
}

.dock-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.dock-btn:active {
  transform: translateY(0);
}

/* === PLAY BUTTON: premium aura ring === */
.dock-btn--play{
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* outer aura ring */
.dock-btn--play::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:999px;
  background:
    conic-gradient(
      from 180deg,
      rgba(138,180,255,0.0),
      rgba(138,180,255,0.55),
      rgba(125,227,255,0.65),
      rgba(179,140,255,0.55),
      rgba(138,180,255,0.0)
    );
  filter: blur(8px);
  opacity: 0.85;
  z-index: -1;
  transform: scale(0.98);
}

/* inner highlight ring */
.dock-btn--play::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 0 0 1px rgba(138,180,255,0.10),
    0 0 18px rgba(138,180,255,0.18);
  opacity: 0.9;
  pointer-events:none;
}

/* hover: sharper */
.dock-btn--play:hover{
  transform: translateY(-1px);
  border-color: rgba(138,180,255,0.35);
  box-shadow:
    0 14px 38px rgba(0,0,0,0.50),
    0 0 22px rgba(138,180,255,0.16),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

/* playing state: subtle pulse */
.dock-btn--play.is-playing::before{
  animation: playAura 1.6s ease-in-out infinite;
  opacity: 0.95;
}

@keyframes playAura{
  0%,100%{ transform: scale(0.96); filter: blur(8px); }
  50%{ transform: scale(1.05); filter: blur(10px); }
}

/* icon styling (hide raw text, draw clean symbol feel) */
#playPauseIcon{
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 10px rgba(138,180,255,0.25);
}

.dock-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 60vw);
}

.dock-progress .time {
  font-size: 0.74rem;
  color: var(--muted);
  min-width: 36px;
  text-align: center;
}

#progressBar,
#volumeRange {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(138,180,255,0.0), rgba(138,180,255,0.55), rgba(125,227,255,0.55));
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

#progressBar:hover,
#volumeRange:hover {
  box-shadow: 0 0 0 6px rgba(138,180,255,0.10);
}

#progressBar:focus-visible,
#volumeRange:focus-visible {
  box-shadow: 0 0 0 6px rgba(138,180,255,0.14);
}

#progressBar {
  flex: 1;
}

#volumeRange {
  width: 120px;
}

#progressBar::-webkit-slider-thumb,
#volumeRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    0 0 14px rgba(138,180,255,0.35),
    0 6px 14px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

#progressBar:hover::-webkit-slider-thumb,
#volumeRange:hover::-webkit-slider-thumb,
#progressBar:focus-visible::-webkit-slider-thumb,
#volumeRange:focus-visible::-webkit-slider-thumb {
  transform: scale(1.05);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.38),
    0 0 14px rgba(138,180,255,0.35);
}

#progressBar::-moz-range-thumb,
#volumeRange::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    0 0 14px rgba(138,180,255,0.35),
    0 6px 14px rgba(0, 0, 0, 0.35);
}

#progressBar:hover::-moz-range-thumb,
#volumeRange:hover::-moz-range-thumb,
#progressBar:focus-visible::-moz-range-thumb,
#volumeRange:focus-visible::-moz-range-thumb {
  transform: scale(1.05);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.38),
    0 0 14px rgba(138,180,255,0.35);
}

.dock-right {
  display: flex;
  justify-content: flex-end;
}

.now-playing {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.now-playing .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  opacity: 0.85;
}

.now-playing .title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
}

/* audio controls stay default browser */

audio {
  width: 100%;
  outline: none;
}

/* Track list */

.track-list {
  list-style: none;
  padding: 14px;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.track:last-child {
  border-bottom: 0;
}

.track:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.track.active {
  background: rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(138, 180, 255, 0.22),
    0 10px 30px rgba(0, 0, 0, 0.35);
  border-color: transparent;
}

.track.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(138,180,255,0.95), rgba(125,227,255,0.55));
  box-shadow: 0 0 16px rgba(138,180,255,0.22);
}

.track.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: track-shimmer 7s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.track.active:hover::after {
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
}

@keyframes track-shimmer {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateX(120%);
    opacity: 0.6;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.track-play {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 240, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.track-play:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.4),
    0 0 0 6px rgba(138,180,255,0.14);
  color: var(--accent-2);
}

.track.active .track-play {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(138,180,255,0.18),
    0 0 0 7px rgba(138,180,255,0.10);
}

.icon {
  width: 14px;
  height: 14px;
  display: block;
  position: relative;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.icon::before {
  background: currentColor;
  clip-path: polygon(22% 12%, 22% 88%, 90% 50%);
  opacity: 1;
}

.icon::after {
  background: linear-gradient(
    90deg,
    currentColor 0 34%,
    transparent 34% 54%,
    currentColor 54% 88%,
    transparent 88% 100%
  );
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.96);
}

.is-playing .icon::before {
  opacity: 0;
  transform: scale(0.92);
}

.is-playing .icon::after {
  opacity: 1;
  transform: scale(1);
}

.dock-btn:focus-visible,
.track-play:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid rgba(138,180,255,0.55);
  outline-offset: 3px;
}

.section-features {
  padding-top: 28px;
}

.track-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.track-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.track-info,
.track-subtitle {
  font-size: 0.92em;
  color: rgba(255, 255, 255, 0.65);
}

.track-duration,
.track-time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

.playlist-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============ FEATURE GRID ============ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 14px;
}

.feature-card {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.03), transparent 60%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--surface);
  border-radius: 22px;
  padding: 16px 16px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.feature-title {
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  color: var(--text);
}

.feature-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============ BEATS GRID ============ */

.beats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.beat-card {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.03), transparent 60%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  padding-bottom: 10px;
}

.beat-thumb {
  height: 150px;
  position: relative;
  border-radius: 15px 15px 10px 10px;
  margin: 10px 10px 0;
  overflow: hidden;
}

.beat-thumb-a {
  background: radial-gradient(circle at top left, #1b2234, #121624 55%, #0b0f1b 100%);
}

.beat-thumb-b {
  background: radial-gradient(circle at top right, #1f273a, #151a28 55%, #0c101c 100%);
}

.beat-thumb-c {
  background: radial-gradient(circle at center, #1a2030, #121623 45%, #0a0e18 100%);
}

.beat-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.25;
  mix-blend-mode: soft-light;
}

.beat-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
  z-index: 1;
  pointer-events: none;
}

.beat-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.beat-label {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--bg);
  color: var(--text);
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
}

.beat-body {
  padding: 10px 14px 12px;
}

.beat-title {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.beat-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ============ ABOUT / STORY ============ */

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 24px;
}

.body-text {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.about-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

/* ============ CTA ============ */

.section-cta {
  padding: 40px 0 32px;
}

.cta-inner {
  background: var(--surface-2);
  border-radius: 20px;
  padding: 22px 20px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.cta-actions {
  margin-top: 16px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-note {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ============ FOOTER ============ */

.footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-contact {
  padding-top: 30px;
  padding-bottom: 30px;
}

.demo-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.demo-contact-left,
.demo-contact-right {
  display: flex;
  flex-direction: column;
}

.demo-contact-form {
  margin-top: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.demo-contact-form input,
.demo-contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.94rem;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demo-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.demo-contact-form input::placeholder,
.demo-contact-form textarea::placeholder {
  color: rgba(234, 240, 255, 0.7);
}

.demo-contact-form input:focus-visible,
.demo-contact-form textarea:focus-visible {
  outline: 2px solid rgba(138, 180, 255, 0.55);
  outline-offset: 2px;
  border-color: rgba(138, 180, 255, 0.45);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.demo-form-preview {
  cursor: default;
}

.demo-contact-right .demo-contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  height: 100%;
}

.demo-contact-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.demo-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 6px;
}

.demo-contact-list li {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.demo-contact-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Anchor offset for sticky nav */
#top,
#playlist,
#beats,
#about,
#contact,
#demo-contact {
  scroll-margin-top: 120px;
}

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

@media (max-width: 900px) {
  .hero-inner {
    padding: 18px 14px 30px;
  }

  .hero-nav {
    padding-inline: 12px;
  }

  .nav-links {
    display: none; /* can replace with burger menu later if you want */
  }

  .hero-text {
    padding-top: 32px;
  }

  .text-bg-image h1 {
    letter-spacing: 0.16em;
  }

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

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

  .section-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .player-dock {
    grid-template-columns: 1fr;
  }

  .dock-center {
    width: 100%;
  }

  .dock-progress {
    width: 100%;
  }

  .dock-right {
    justify-content: center;
  }

  #volumeRange {
    width: min(220px, 70vw);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 18px 14px 32px;
  }

  .hero-nav {
    border-radius: 16px;
  }

  .hero-tagline {
    padding-inline: 12px;
  }

  .feature-grid,
  .beats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    padding-inline: 16px;
  }

  .demo-contact-form {
    padding: 14px;
  }

  .track-list {
    padding: 12px;
  }

  .track {
    padding: 10px 10px;
    gap: 0.6rem;
  }

  .track-play {
    width: 34px;
    height: 34px;
  }

  .track-duration,
  .track-time {
    text-align: right;
  }
}

@media (max-width: 700px){
  .hero-nav::before{ opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .stars,
  .hero::before,
  .hero::after,
  .track.active::after {
    animation: none !important;
  }

  .track.active::after {
    opacity: 0 !important;
    transform: none !important;
  }

  .dock-btn,
  .track,
  .track-play,
  .icon::before,
  .icon::after {
    transition: none !important;
  }
}

/* EV nav badge (scoped) */
.ev-navhome{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ev-navhome__badge{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .4px;

  background: var(--ev-brand-purple-soft);
  border: 1px solid var(--ev-brand-purple-border);
  color: var(--ev-brand-purple);
  box-shadow: 0 0 0 transparent;
}

.ev-navhome:hover .ev-navhome__badge{
  background: var(--ev-brand-purple-soft);
  border-color: var(--ev-brand-purple-border);
  box-shadow: 0 0 24px rgba(164, 155, 255, 0.35);
}

:root{
  --ev-brand-purple: #a49bff;
  --ev-brand-purple-soft: rgba(164, 155, 255, 0.16);
  --ev-brand-purple-border: rgba(164, 155, 255, 0.35);
}

.ev-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 1rem 1.5rem;
  margin-top: 4rem;

  font-size: 0.85rem;
  opacity: 0.8;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ev-footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7c4dff;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  text-decoration: none;
}

.ev-footer__center {
  text-align: center;
  opacity: 0.7;
}

.ev-footer__cta {
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.ev-footer__cta:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .ev-footer {
    flex-direction: column;
    text-align: center;
  }
}

.ev-copyright {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

.demo-safe-link { cursor: pointer; }

.btn-template-primary {
  /* inherits base primary button styling */
}

.btn-template-secondary {
  opacity: 0.85;
}

.btn-template-secondary:hover {
  opacity: 1;
}


/* Footer layout */
.site-footer {
  margin-top: 60px;
  padding: 20px 22px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.footer-left,
.footer-center,
.footer-right {
  color: var(--muted, var(--ink-muted, rgba(255, 255, 255, 0.78)));
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-left {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-right a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.footer-right a:hover {
  color: var(--text, var(--ink-main, #ffffff));
}

@media (max-width: 720px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    justify-content: center;
  }

  .footer-right {
    justify-content: center;
  }
}

