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

:root {
  --bg: #f8f6f0;                /* warm cream background */
  --bg-card: #ffffff;            /* pure white cards */
  --bg-card-hover: #f0f7ee;     /* soft green hover */
  --text: #2d3a2a;              /* warm dark green-gray */
  --text-muted: #7a8a75;        /* muted sage */
  --accent: #5b9f6b;            /* spring green */
  --accent-light: #8bc99b;     /* light spring green */
  --gold: #e8a838;              /* warm sunlight gold */
  --gold-light: #f5d78e;       /* soft gold */
  --accent-glow: rgba(91, 159, 107, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(248, 246, 240, 0.8);
  border-bottom: 1px solid rgba(91, 159, 107, 0.1);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
}
.logo {
  font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(135deg, #5b9f6b, #e8a838);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Language Switcher ─────────────────────────────────────── */
.lang-switcher {
  margin-left: 12px;
  border-left: 1px solid rgba(91, 159, 107, 0.15);
  padding-left: 12px;
}
.lang-select {
  padding: 6px 28px 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(91, 159, 107, 0.15);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.8rem;
  font-family: 'Inter', -apple-system, sans-serif;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a8a75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.lang-select:hover { border-color: var(--accent-light); }
.lang-select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(248,246,240,0.4) 0%, rgba(248,246,240,0.15) 40%, rgba(248,246,240,0.7) 100%);
}
.hero-content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(91, 159, 107, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(91, 159, 107, 0.2);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 750px;
  color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, #5b9f6b, #8bc99b, #e8a838);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 550px;
  line-height: 1.7;
}
.hero-stats {
  display: flex; gap: 40px; margin-top: 8px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, #5b9f6b, #7bbf8b);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 24px var(--accent-glow);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91, 159, 107, 0.35);
}

/* ── Featured Picks ─────────────────────────────────────────── */
.featured-section {
  position: relative;
  background: rgba(255,255,255,0.3);
  padding: 60px 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.featured-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(91, 159, 107, 0.1);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5b9f6b, #e8a838);
  opacity: 0.6;
}
.featured-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91, 159, 107, 0.1);
}
.featured-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #5b9f6b, #7bbf8b);
  padding: 2px 10px;
  border-radius: 10px;
  align-self: flex-start;
}
.featured-card .track-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.featured-card .track-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.featured-card .track-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.featured-card .track-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.featured-card .track-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.featured-card .track-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(91, 159, 107, 0.08);
  color: var(--accent);
}
.featured-card audio {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  margin-top: auto;
}
.featured-card audio::-webkit-media-controls-download-button { display: none !important; }

/* ── Quote Section ─────────────────────────────────────────── */
.quote-section {
  padding: 60px 0;
  text-align: center;
}
.quote-block {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}
.quote-text {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
}
.quote-text::before { content: '\201C'; }
.quote-text::after { content: '\201D'; }
.quote-block cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 1px;
}

/* ── Status Banner ────────────────────────────────────────── */
.status-banner {
  padding: 10px 0;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.3s;
}
.status-banner.live { background: rgba(91, 159, 107, 0.1); color: var(--accent); }
.status-banner.demo { background: rgba(232, 168, 56, 0.1); color: var(--gold); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-title {
  font-size: 2rem; font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}
/* ── Join / Email Signup ──────────────────────────────────── */
.join-section {
  position: relative;
  background: rgba(255,255,255,0.3);
  padding: 80px 0 100px;
}
.join-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 159, 107, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(232, 168, 56, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.join-mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 48px;
}
.mission-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(91, 159, 107, 0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.mission-item:hover { border-color: var(--accent-light); }
.mission-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.mission-item h3 { color: var(--text); margin-bottom: 8px; font-size: 1.1rem; }
.mission-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.email-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.email-input-group {
  display: flex;
  width: 100%;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(91, 159, 107, 0.12);
  border: 1.5px solid rgba(91, 159, 107, 0.15);
  transition: border-color 0.3s;
}
.email-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 32px rgba(91, 159, 107, 0.2);
}
.email-input-group input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: var(--bg-card);
  color: var(--text);
}
.email-input-group input::placeholder { color: #c0bdb5; }
.btn-email {
  padding: 16px 28px;
  border: none;
  background: linear-gradient(135deg, #5b9f6b, #7bbf8b);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.btn-email:hover {
  background: linear-gradient(135deg, #4d8f5d, #6baf7b);
}
.email-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.join-custom {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: rgba(91, 159, 107, 0.06);
  border: 1px dashed rgba(91, 159, 107, 0.2);
  line-height: 1.5;
}

.email-success {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(91, 159, 107, 0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.success-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.email-success h3 { color: var(--accent); margin-bottom: 8px; }
.email-success p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── How It Works ─────────────────────────────────────────── */
/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(91, 159, 107, 0.08);
}

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(91, 159, 107, 0.15);
  color: var(--text);
  font-size: 0.9rem;
  z-index: 200;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.hidden { opacity: 0; transform: translateX(-50%) translateY(20px); pointer-events: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .track-grid { grid-template-columns: 1fr; }
  .filter-search { width: 100%; box-sizing: border-box; }
  .filter-cards { gap: 6px; }
  .filter-card { font-size: 0.8rem; padding: 6px 12px; }
  .filter-search { min-width: auto; box-sizing: border-box; }
}

/* ── Library ──────────────────────────────────────────────── */
.library-section {
  position: relative;
  background: rgba(255,255,255,0.3);
}
.library-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 168, 56, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(91, 159, 107, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.lib-filters {
  max-width: 750px;
  margin: 0 auto 32px;
}
.filter-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-search {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(91, 159, 107, 0.15);
  background: var(--bg-card);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.filter-search:focus { border-color: var(--accent); }
.filter-search::placeholder { color: #c0bdb5; }

/* ── Filter Cards (replacing old selects) ──────────────────── */
.filter-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-card {
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1.5px solid rgba(91, 159, 107, 0.08);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  user-select: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.filter-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-1px);
}
.filter-card.selected {
  border-color: var(--accent);
  background: rgba(91, 159, 107, 0.08);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.filter-search-wrapper {
  margin-top: 20px;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.track-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(91, 159, 107, 0.08);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.track-card:hover { border-color: var(--accent-light); }
.track-card.hidden { display: none; }
.track-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.track-title { font-weight: 600; color: var(--text); font-size: 1rem; }
.track-artist { font-size: 0.8rem; color: var(--text-muted); }
.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.track-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(91, 159, 107, 0.08);
  color: var(--accent);
}
.track-tag.mood { background: rgba(232, 168, 56, 0.1); color: #b8860b; }
.track-tag.dur { background: rgba(91, 159, 107, 0.06); color: var(--text-muted); }

/* Custom audio player (no download) */
.track-player {
  width: 100%;
  margin-top: 4px;
}
.track-player audio {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}
.track-player audio::-webkit-media-controls-panel {
  background: rgba(248, 246, 240, 0.8);
}
.track-player audio::-webkit-media-controls-download-button { display: none !important; }
.track-player audio::-internal-media-controls-download-button { display: none !important; }
/* Hide download in Firefox */
.track-player audio::-moz-media-controls-download-button { display: none !important; }

.lib-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.track-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.progress-bar {
  width: 100%; height: 4px;
  background: rgba(91, 159, 107, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  transition: width 0.5s;
}
