:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --fg: #e8e4df;
  --fg-muted: #8a857e;
  --gold: #d4a017;
  --gold-light: #f0c75e;
  --gold-dim: #a07b10;
  --accent-glow: rgba(212, 160, 23, 0.12);
  --border: #2a2622;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--fg);
}

.gold {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}

/* Waveform visualization */
.hero-waveform {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  position: absolute;
  bottom: 3rem;
  right: 2rem;
  z-index: 2;
  opacity: 0.3;
}

.wave-bar {
  width: 4px;
  background: linear-gradient(to top, var(--gold-dim), var(--gold));
  border-radius: 2px;
  animation: pulse 2.5s ease-in-out infinite;
}

.wave-bar:nth-child(odd) {
  animation-delay: -0.5s;
}

.wave-bar:nth-child(3n) {
  animation-delay: -1.2s;
}

.wave-bar:nth-child(4n+1) {
  animation-delay: -0.8s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ===== CREDITS ===== */
.credits {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.credits-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.credit-item {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--fg);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease;
}

.credit-item:hover {
  color: var(--gold);
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 40px var(--accent-glow);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 750px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.closing-text {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-waveform {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 3rem;
    opacity: 0.25;
    height: 60px;
  }

  .credits,
  .features,
  .closing {
    padding: 4rem 1.5rem;
  }

  .feature-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .credits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .credit-item {
    font-size: 1rem;
    padding: 0.8rem 0;
  }
}
