/* ============================================================================
   BWE MUSIC — KINGSTON SUN DESIGN SYSTEM
   ============================================================================ */

:root {
  /* Palette */
  --cream: #faf6ee;
  --cream-warm: #f4ecdc;
  --cream-deep: #ebe0c9;
  --ink: #1a1714;
  --ink-soft: #5a5348;
  --ink-faint: #8a8172;
  --green: #0f3d2e;
  --green-light: #1a5442;
  --gold: #d4a017;
  --gold-light: #f0c85a;
  --coral: #e85a3f;
  --coral-dark: #c94428;
  --border: #e5dcc8;
  --white: #ffffff;

  /* FITSY */
  --fb: #1877F2;
  --ig-grad: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  --tt: #000000;
  --sp: #1DB954;
  --yt: #FF0000;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,61,46,0.06);
  --shadow-md: 0 4px 20px rgba(15,61,46,0.08);
  --shadow-lg: 0 12px 40px rgba(15,61,46,0.12);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
}

.italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

p { color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

/* ---- Layout -------------------------------------------------------------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 5rem 0; }
.section-warm { background: var(--cream-warm); }
.section-green { background: var(--green); color: var(--cream); }
.section-green p { color: rgba(250,246,238,0.75); }
.section-green h1, .section-green h2, .section-green h3 { color: var(--cream); }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,238,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green);
  cursor: pointer;
}
.nav-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.nav-links {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-links a.active { font-weight: 700; }

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
@media (min-width: 900px) {
  .nav-burger { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.8rem; }
.btn-lg { padding: 1.1rem 2.25rem; font-size: 1rem; }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  transition: all 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

/* ---- Artist card --------------------------------------------------------- */
.artist-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}
.artist-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.artist-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.artist-card-body { padding: 1.25rem; }
.artist-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.artist-card-genre {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
}

/* ---- FITSY icon row ------------------------------------------------------ */
.fitsy {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.fitsy a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  transition: all 0.2s;
  background: var(--ink-faint);
}
.fitsy a:hover { transform: translateY(-2px) scale(1.08); box-shadow: var(--shadow-md); }
.fitsy a.fb { background: var(--fb); }
.fitsy a.ig { background: var(--ig-grad); }
.fitsy a.tt { background: var(--tt); }
.fitsy a.sp { background: var(--sp); }
.fitsy a.yt { background: var(--yt); }
.fitsy a.missing { opacity: 0.25; pointer-events: none; }

.fitsy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}
.hero h1 { margin: 1rem 0 1.5rem; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4/5;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Feature blocks ------------------------------------------------------ */
.feature-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature-row.reverse { direction: rtl; }
  .feature-row.reverse > * { direction: ltr; }
}
.feature-row img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

/* ---- Grid helpers -------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Section header ------------------------------------------------------ */
.section-head {
  margin-bottom: 3rem;
  max-width: 42rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 0.75rem 0 1rem; }

/* ---- Forms --------------------------------------------------------------- */
.input-field {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.input-field:focus { border-color: var(--gold); }

.label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

/* ---- Footer -------------------------------------------------------------- */
.footer {
  background: var(--green);
  color: var(--cream);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer a, .footer p {
  color: rgba(250,246,238,0.7);
  font-size: 0.9rem;
  line-height: 1.9;
  display: block;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(250,246,238,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(250,246,238,0.5);
}

/* ---- Floating widget ----------------------------------------------------- */
.auth-widget {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 999;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  background: rgba(250,246,238,0.95);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---- Misc ---------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--cream-deep);
  color: var(--ink-soft);
}

.divider { height: 1px; background: var(--border); margin: 3rem 0; }

.spin-slow { animation: spin 12s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   DAW — Studio Styles
   ============================================================================ */
.daw-shell {
  background: var(--green);
  border-radius: 28px;
  padding: 1.75rem;
  color: var(--cream);
}
.daw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(250,246,238,0.15);
  margin-bottom: 1.5rem;
}
.daw-header h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.daw-header .session-name {
  font-size: 0.8rem;
  color: rgba(250,246,238,0.6);
  font-family: monospace;
  margin-top: 0.25rem;
}
.daw-transport {
  display: flex;
  gap: 0.5rem;
}
.daw-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: none;
  background: rgba(250,246,238,0.08);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.daw-btn:hover { background: rgba(250,246,238,0.15); }
.daw-btn.play { color: #7dd3a0; }
.daw-btn.play.active { background: rgba(125,211,160,0.2); box-shadow: 0 0 0 1px #7dd3a0; }
.daw-btn.rec { color: var(--coral); }
.daw-btn.rec.active { background: rgba(232,90,63,0.2); box-shadow: 0 0 0 1px var(--coral); animation: pulseRec 1s infinite; }
@keyframes pulseRec { 50% { opacity: 0.6; } }

.daw-track {
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  border-left: 4px solid rgba(250,246,238,0.1);
}
.daw-track.armed { border-left-color: var(--coral); background: rgba(232,90,63,0.1); }
@media (max-width: 700px) {
  .daw-track { grid-template-columns: 1fr; }
}
.daw-arm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(250,246,238,0.4);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.daw-arm.armed {
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 0 12px rgba(232,90,63,0.6);
}
.daw-track-info { min-width: 0; }
.daw-track-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.daw-track-name i { color: var(--gold-light); font-size: 0.7rem; }
.daw-canvas {
  width: 100%;
  height: 48px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(250,246,238,0.08);
}
.daw-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.3);
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
}
.daw-tiny {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(250,246,238,0.1);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}
.daw-tiny:hover { background: rgba(250,246,238,0.2); }
.daw-tiny.mute.on { background: var(--coral); color: white; }
.daw-tiny.solo.on { background: var(--gold); color: var(--ink); }
.daw-knob {
  appearance: none;
  height: 5px;
  background: rgba(250,246,238,0.15);
  border-radius: 4px;
  outline: none;
  width: 70px;
}
.daw-knob::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.daw-knob::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

.daw-riddim-panel {
  background: rgba(0,0,0,0.25);
  border-radius: 16px;
  padding: 1.25rem;
  margin-top: 1rem;
}
.daw-riddim-panel h4 {
  color: var(--gold-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.daw-export {
  margin-top: 1.25rem;
  width: 100%;
  padding: 1.1rem;
  border-radius: 14px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.daw-export:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Lock overlay for gated features */
.lock-overlay {
  position: relative;
  margin-top: 1.25rem;
}
.lock-overlay .lock-cta {
  text-align: center;
  padding: 1.5rem;
  background: rgba(15,61,46,0.6);
  border: 1px dashed rgba(250,246,238,0.3);
  border-radius: 16px;
}
.lock-overlay .lock-cta p {
  color: rgba(250,246,238,0.85);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---- Modal -------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}
.modal-panel {
  background: var(--cream);
  border-radius: 28px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}
.modal-close:hover { background: var(--gold); }

/* ---- Notification ------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  animation: toastIn 0.3s ease-out;
}
.toast.error { background: var(--coral-dark); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
