/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root {
  --ink: #0e1a18;
  --ink-deep: #0a1412;
  --paper: #f1ecdf;
  --paper-dim: #c9c3b3;
  --amber: #e7a84c;
  --rust: #b8563a;
  --fade: #6e7c79;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Literata", serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  color-scheme: dark;
}

body {
  background: radial-gradient(ellipse 120% 90% at 50% -10%, #142623 0%, var(--ink) 45%, var(--ink-deep) 100%);
  color: var(--paper);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------------------------------------------
   Layout
--------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 3rem;
  position: relative;
}

/* ---------------------------------------------
   REC tag
--------------------------------------------- */
.rec-tag {
  position: absolute;
  top: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--rust);
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------------------------------------------
   Eyebrow
--------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fade);
  margin-bottom: 1.75rem;
}

/* ---------------------------------------------
   Headline
--------------------------------------------- */
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 16ch;
}

.headline-accent {
  color: var(--amber);
  font-style: normal;
}

/* ---------------------------------------------
   Waveform signature
--------------------------------------------- */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
  margin: 3rem 0 2.5rem;
}

.waveform span {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  background: var(--amber);
  animation: wave 1.6s ease-in-out infinite;
}

.waveform span:nth-child(odd) {
  background: var(--rust);
}

/* Deterministic varied heights + delays for an organic waveform look */
.waveform span:nth-child(1)  { height: 18px; animation-delay: -0.1s; }
.waveform span:nth-child(2)  { height: 34px; animation-delay: -0.9s; }
.waveform span:nth-child(3)  { height: 12px; animation-delay: -0.3s; }
.waveform span:nth-child(4)  { height: 48px; animation-delay: -1.2s; }
.waveform span:nth-child(5)  { height: 22px; animation-delay: -0.6s; }
.waveform span:nth-child(6)  { height: 58px; animation-delay: -0.2s; }
.waveform span:nth-child(7)  { height: 30px; animation-delay: -1.4s; }
.waveform span:nth-child(8)  { height: 16px; animation-delay: -0.5s; }
.waveform span:nth-child(9)  { height: 44px; animation-delay: -1.0s; }
.waveform span:nth-child(10) { height: 26px; animation-delay: -0.4s; }
.waveform span:nth-child(11) { height: 62px; animation-delay: -1.3s; }
.waveform span:nth-child(12) { height: 14px; animation-delay: -0.7s; }
.waveform span:nth-child(13) { height: 38px; animation-delay: -0.15s; }
.waveform span:nth-child(14) { height: 20px; animation-delay: -1.1s; }
.waveform span:nth-child(15) { height: 52px; animation-delay: -0.45s; }
.waveform span:nth-child(16) { height: 28px; animation-delay: -0.85s; }
.waveform span:nth-child(17) { height: 46px; animation-delay: -0.25s; }
.waveform span:nth-child(18) { height: 16px; animation-delay: -1.35s; }
.waveform span:nth-child(19) { height: 36px; animation-delay: -0.55s; }
.waveform span:nth-child(20) { height: 24px; animation-delay: -0.95s; }
.waveform span:nth-child(21) { height: 56px; animation-delay: -0.05s; }
.waveform span:nth-child(22) { height: 18px; animation-delay: -1.15s; }
.waveform span:nth-child(23) { height: 40px; animation-delay: -0.35s; }
.waveform span:nth-child(24) { height: 12px; animation-delay: -0.75s; }
.waveform span:nth-child(25) { height: 50px; animation-delay: -1.05s; }
.waveform span:nth-child(26) { height: 22px; animation-delay: -0.65s; }
.waveform span:nth-child(27) { height: 32px; animation-delay: -0.2s; }
.waveform span:nth-child(28) { height: 14px; animation-delay: -1.25s; }
.waveform span:nth-child(29) { height: 42px; animation-delay: -0.4s; }
.waveform span:nth-child(30) { height: 20px; animation-delay: -0.9s; }
.waveform span:nth-child(31) { height: 60px; animation-delay: -0.1s; }
.waveform span:nth-child(32) { height: 26px; animation-delay: -1.3s; }
.waveform span:nth-child(33) { height: 34px; animation-delay: -0.5s; }
.waveform span:nth-child(34) { height: 16px; animation-delay: -0.8s; }
.waveform span:nth-child(35) { height: 44px; animation-delay: -0.3s; }
.waveform span:nth-child(36) { height: 24px; animation-delay: -1.0s; }
.waveform span:nth-child(37) { height: 54px; animation-delay: -0.6s; }
.waveform span:nth-child(38) { height: 18px; animation-delay: -0.15s; }
.waveform span:nth-child(39) { height: 30px; animation-delay: -1.2s; }
.waveform span:nth-child(40) { height: 12px; animation-delay: -0.45s; }

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

/* ---------------------------------------------
   Subtext + CTA
--------------------------------------------- */
.subtext {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 40ch;
  margin-bottom: 2.5rem;
}

.cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-deep);
  background: var(--amber);
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  background: var(--rust);
  color: var(--paper);
  transform: translateY(-2px);
}

.cta:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------------------------------------------
   Footer meta
--------------------------------------------- */
.meta {
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fade);
}

/* ---------------------------------------------
   Reduced motion
--------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rec-dot,
  .waveform span {
    animation: none;
  }
  .waveform span {
    transform: scaleY(0.7);
    opacity: 0.9;
  }
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 480px) {
  .hero {
    padding: 6.5rem 1.25rem 5.5rem;
  }
  .meta {
    flex-direction: column;
    gap: 0.35rem;
    bottom: 1.25rem;
  }
  .waveform {
    height: 48px;
  }
}
