/* =========================================
   ARKIVE — Memphis Phonk Beat Licensing
   Dark. Underground. Unapologetic.
   ========================================= */

:root {
  --bg: #090909;
  --bg-alt: #111111;
  --bg-card: #141414;
  --accent: #FF5A1F;
  --accent-dim: rgba(255, 90, 31, 0.12);
  --accent-glow: rgba(255, 90, 31, 0.06);
  --crimson: #8B1A1A;
  --text: #F0EDE8;
  --text-muted: #666666;
  --text-dim: #3a3a3a;
  --border: #1f1f1f;
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 80px 80px 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(139, 26, 26, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255, 90, 31, 0.05) 0%, transparent 50%),
    var(--bg);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.07;
}

.shape-1 {
  width: 300px; height: 300px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  top: -60px; right: 15%;
  animation: pulse-slow 6s ease-in-out infinite;
}

.shape-2 {
  width: 0; height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid var(--crimson);
  bottom: 20%; right: 8%;
  opacity: 0.06;
}

.shape-3 {
  width: 120px; height: 120px;
  background: var(--accent);
  bottom: 10%; left: 5%;
  transform: rotate(45deg);
  opacity: 0.04;
}

.shape-4 {
  width: 2px; height: 200px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  top: 5%; left: 30%;
  opacity: 0.15;
}

.shape-5 {
  width: 60px; height: 60px;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  top: 30%; left: 15%;
  opacity: 0.05;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 0.07; }
  50% { transform: scale(1.04); opacity: 0.1; }
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 36px;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.hero-lede {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-left: 80px;
  position: relative;
  z-index: 2;
}

.waveform-visual {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 180px;
  padding: 0 20px;
}

.wave-bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave-anim 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1)  { height: 60px; animation-delay: 0s; }
.wave-bar:nth-child(2)  { height: 100px; animation-delay: 0.1s; }
.wave-bar:nth-child(3)  { height: 140px; animation-delay: 0.2s; }
.wave-bar:nth-child(4)  { height: 80px; animation-delay: 0.3s; }
.wave-bar:nth-child(5)  { height: 160px; animation-delay: 0.4s; }
.wave-bar:nth-child(6)  { height: 120px; animation-delay: 0.5s; }
.wave-bar:nth-child(7)  { height: 90px; animation-delay: 0.6s; }
.wave-bar:nth-child(8)  { height: 150px; animation-delay: 0.7s; }
.wave-bar:nth-child(9)  { height: 70px; animation-delay: 0.8s; }
.wave-bar:nth-child(10) { height: 130px; animation-delay: 0.9s; }
.wave-bar:nth-child(11) { height: 55px; animation-delay: 1.0s; }
.wave-bar:nth-child(12) { height: 110px; animation-delay: 1.1s; }
.wave-bar:nth-child(13) { height: 145px; animation-delay: 0.05s; }
.wave-bar:nth-child(14) { height: 85px; animation-delay: 0.35s; }
.wave-bar:nth-child(15) { height: 125px; animation-delay: 0.65s; }
.wave-bar:nth-child(16) { height: 95px; animation-delay: 0.95s; }

@keyframes wave-anim {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

.beat-count {
  text-align: center;
}

.beat-count-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.beat-count-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---- SECTION COMMON ---- */
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

/* ---- SOUND ---- */
.sound {
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sound-eyebrow {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.sound-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 32px;
}

.sound-body {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.sound-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Cassette visual */
.cassette {
  width: 200px;
  height: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  position: relative;
}

.cassette::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(255, 90, 31, 0.08);
}

.cassette-label {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.2;
}

.cassette-holes {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cassette-hole {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
}

/* ---- CATALOG ---- */
.catalog {
  padding: 100px 80px;
  background: var(--bg);
}

.catalog-header {
  margin-bottom: 56px;
}

.catalog-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  color: var(--text);
  line-height: 1;
}

.beat-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}

.beat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}

.beat-card:hover {
  border-color: var(--accent-dim);
}

.beat-card--large {
  grid-row: span 2;
}

.beat-waveform {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 48px;
}

.mini-bar {
  flex: 1;
  background: var(--accent);
  opacity: 0.4;
  border-radius: 1px;
  animation: mini-wave 2s ease-in-out infinite;
}

.mini-bar:nth-child(odd)  { animation-delay: 0.2s; }
.mini-bar:nth-child(3n)   { animation-delay: 0.4s; }
.mini-bar:nth-child(4n)  { animation-delay: 0.6s; }

@keyframes mini-wave {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.15; }
}

.beat-card--large .beat-waveform {
  height: 80px;
}

.beat-card--large .mini-bar {
  opacity: 0.5;
}

.beat-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.beat-card--large .beat-name {
  font-size: 28px;
}

.beat-meta {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---- LICENSING ---- */
.licensing {
  padding: 100px 80px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.licensing-header {
  margin-bottom: 60px;
}

.licensing-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text);
  line-height: 1;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.2s;
}

.tier:hover {
  border-color: var(--accent-dim);
}

.tier--featured {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.tier-badge {
  position: absolute;
  top: -1px;
  left: 32px;
  background: var(--accent);
  color: var(--bg);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-family: var(--font-mono);
}

.tier-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tier-range {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text);
  margin-bottom: 36px;
  line-height: 1;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-features li {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-left: 16px;
  position: relative;
}

.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1px;
  background: var(--accent);
}

/* ---- DIGITAL ---- */
.digital {
  padding: 100px 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.digital-inner {
  max-width: 960px;
}

.digital-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}

.digital-body {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 60px;
  margin-top: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 32px 24px;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: var(--accent-dim);
}

.product-icon {
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}

.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- CLOSING ---- */
.closing {
  padding: 140px 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139, 26, 26, 0.3) 0%, transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-line {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.closing-heading {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 140px);
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 32px;
}

.closing-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--text);
}

.footer-tagline {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 32px 48px;
  }

  .hero-visual { display: none; }

  .sound {
    grid-template-columns: 1fr;
    padding: 80px 32px;
  }

  .cassette { display: none; }

  .catalog { padding: 80px 32px; }

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

  .beat-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .licensing { padding: 80px 32px; }

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

  .digital { padding: 80px 32px; }

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

  .closing { padding: 80px 32px; }

  .footer {
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .beat-grid {
    grid-template-columns: 1fr;
  }

  .beat-card--large {
    grid-column: span 1;
  }

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