/* ============================================================
   We Will Grok You — styles.css
   Dark, minimal, music-tech. All tokens live in :root below.
   ============================================================ */

:root {
  /* color */
  --bg:          #0a0a0b;
  --bg-elev:    #111114;
  --surface:     rgba(255, 255, 255, 0.04);
  --surface-2:   rgba(255, 255, 255, 0.07);
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.16);
  --text:        #f3f3f1;
  --text-muted:  #8a8a8a;
  --text-dim:    #5a5a5a;
  --accent:      #d6ff3d;       /* hot lime — change for a different vibe */
  --accent-dim:  rgba(214, 255, 61, 0.18);

  /* typography */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;

  /* layout */
  --maxw: 1100px;
  --pad:  clamp(20px, 4vw, 48px);
  --radius: 14px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- selection ---------- */
::selection { background: var(--accent); color: #000; }

/* ---------- container helper ---------- */
.section,
.footer-inner,
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  /* gradient mask so edges fade into bg */
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 90%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(6px);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 28px 0 22px;
  text-wrap: balance;
}
.hero-title .grad {
  background: linear-gradient(180deg, var(--accent) 0%, #7eaa18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-tagline {
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-muted); }

/* scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: 22px; height: 38px;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 2px; height: 7px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translate(-50%, -4px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.section-head { margin-bottom: 56px; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
  max-width: 480px;
}

/* ============================================================
   TRACK LIST
   ============================================================ */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.track {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.track:hover { background: var(--surface); }

/* play button */
.track-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  flex-shrink: 0;
}
.track-play:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}
.track-play:hover svg { fill: #0a0a0b; }
.track-play svg {
  width: 18px; height: 18px;
  fill: var(--text);
  transition: fill .2s var(--ease);
}
.track-play .i-pause { display: none; }

/* meta */
.track-meta { min-width: 0; }
.track-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.track-num {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.track-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: -0.01em;
  transition: color .25s var(--ease);
}
.track-tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* progress */
.track-progress {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  cursor: pointer;
  overflow: visible;
}
.track-progress:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-dim); }
.track-progress-fill {
  height: 100%;
  width: 0;
  background: var(--text);
  border-radius: 4px;
  transition: background .25s var(--ease);
}
.track-progress-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px; height: 12px;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s var(--ease), background .25s var(--ease);
}
.track:hover .track-progress-handle,
.track.is-playing .track-progress-handle { transform: translate(-50%, -50%) scale(1); }

.track-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-muted);
}

/* equalizer wave (right side) */
.track-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  width: 32px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.track-wave span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  height: 30%;
}

/* ----- playing state ----- */
.track.is-playing { background: var(--surface); }
.track.is-playing .track-title { color: var(--accent); }
.track.is-playing .track-progress-fill { background: var(--accent); }
.track.is-playing .track-progress-handle { background: var(--accent); }
.track.is-playing .track-num { color: var(--accent); }
.track.is-playing .track-play {
  background: var(--accent);
  border-color: var(--accent);
}
.track.is-playing .track-play .i-play  { display: none; }
.track.is-playing .track-play .i-pause { display: block; fill: #0a0a0b; }
.track.is-playing .track-wave { opacity: 1; }
.track.is-playing .track-wave span { animation: bar 0.9s ease-in-out infinite; }
.track.is-playing .track-wave span:nth-child(1) { animation-delay: -1.2s; }
.track.is-playing .track-wave span:nth-child(2) { animation-delay: -0.7s; }
.track.is-playing .track-wave span:nth-child(3) { animation-delay: -0.3s; }
.track.is-playing .track-wave span:nth-child(4) { animation-delay: -0.9s; }
.track.is-playing .track-wave span:nth-child(5) { animation-delay: -0.5s; }
@keyframes bar {
  0%, 100% { height: 25%; }
  50%      { height: 100%; }
}

/* missing-file flash */
.track.is-missing .track-title::after {
  content: " (audio file not found — drop your mp3 in /audio/)";
  color: #ff6b6b;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
}

/* loading dot */
.track.is-loading .track-play::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.track-play { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ABOUT
   ============================================================ */
.section-about {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(214, 255, 61, 0.06), transparent 50%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.about-body {
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.footer-tag {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}
.footer-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.footer-mail {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.footer-mail:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.social {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.social svg { width: 16px; height: 16px; fill: var(--text-muted); transition: fill .2s var(--ease); }
.social:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social:hover svg { fill: #0a0a0b; }

.footer-fine {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--pad) 0;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   STICKY MINI-PLAYER
   ============================================================ */
.mini-player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(140%);
  width: min(560px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(17, 17, 20, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform .45s var(--ease), opacity .35s var(--ease);
  opacity: 0;
  z-index: 100;
}
.mini-player.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.mini-play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  transition: transform .2s var(--ease);
}
.mini-play:hover { transform: scale(1.08); }
.mini-play svg { width: 14px; height: 14px; fill: #0a0a0b; }
.mini-play .i-pause { display: none; }
.mini-player.is-playing .mini-play .i-play  { display: none; }
.mini-player.is-playing .mini-play .i-pause { display: block; }

.mini-meta { min-width: 0; }
.mini-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-progress {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.mini-progress-fill {
  height: 100%; width: 0;
  background: var(--accent);
  transition: width .1s linear;
}
.mini-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.mini-wave span {
  width: 2px; height: 30%;
  background: var(--accent);
  border-radius: 1px;
}
.mini-player.is-playing .mini-wave { opacity: 1; }
.mini-player.is-playing .mini-wave span { animation: bar 0.9s ease-in-out infinite; }
.mini-player.is-playing .mini-wave span:nth-child(1) { animation-delay: -1.0s; }
.mini-player.is-playing .mini-wave span:nth-child(2) { animation-delay: -0.6s; }
.mini-player.is-playing .mini-wave span:nth-child(3) { animation-delay: -0.3s; }
.mini-player.is-playing .mini-wave span:nth-child(4) { animation-delay: -0.8s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .track {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px 4px;
  }
  .track-wave { display: none; }
  .track-play { width: 42px; height: 42px; }
  .track-tag { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .footer-social { justify-content: flex-start; }
  .mini-player { bottom: 10px; padding: 10px 14px; }
  .mini-wave { display: none; }
  .mini-player { grid-template-columns: 36px 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero-canvas { display: none; }
  html { scroll-behavior: auto; }
}
