/* =============================================
   CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-bg: #0D0D0D;
  --color-surface: #161616;
  --color-text: #F0EDE6;
  --color-text-muted: #6E6A64;

  --color-orange: #E8793A;
  --color-yellow: #F2C14E;

  --color-nexo-purple: #3D1F6E;
  --color-nexo-purple-light: #7B4FCF;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 480px;
  --section-padding: 5rem 1.5rem;
}

/* =============================================
   RESET + BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-orange), var(--color-yellow), var(--color-nexo-purple-light));
  z-index: 1000;
  pointer-events: none;
  transition: width 80ms linear;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo), background-color 0.2s;
}

.btn--spotify {
  background-color: #1DB954;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.btn--spotify:hover,
.btn--spotify:focus-visible {
  background-color: #1ed760;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(29, 185, 84, 0.35);
}

.btn--spotify:active {
  transform: translateY(0);
}

.btn--spotify svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn--spotify:hover svg {
  transform: rotate(-8deg) scale(1.1);
}

.btn--amazon {
  background-color: #00A8E1;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn--amazon:hover,
.btn--amazon:focus-visible {
  background-color: #00bfff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 168, 225, 0.35);
}

.btn--amazon:active {
  transform: translateY(0);
}

.btn--amazon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn--amazon:hover svg {
  transform: scale(1.1);
}

.acid-roots__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  align-items: center;
}

.btn--nexo {
  background: linear-gradient(135deg, var(--color-nexo-purple), var(--color-nexo-purple-light));
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  opacity: 0.55;
}

.btn--nexo.shake {
  animation: shake 0.42s var(--ease-out-expo);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 6rem;
  background: radial-gradient(ellipse at center, #1C1309 0%, #0D0D0D 65%);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 75%, rgba(232, 121, 58, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.hero__logo-wrap {
  animation: fade-in 0.8s var(--ease-out-expo) 0.1s both;
}

.hero__logo-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 22px rgba(232, 121, 58, 0.55));
  animation: spin-slow 28s linear infinite;
}

.hero__wordmark {
  width: 210px;
  object-fit: contain;
  mix-blend-mode: screen;
  animation: fade-up 0.9s var(--ease-out-expo) 0.35s both;
}

.hero__tagline {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  animation: fade-up 0.9s var(--ease-out-expo) 0.65s both;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  animation: bounce-fade 4s ease-in-out 2s forwards;
  z-index: 1;
  line-height: 1;
}

/* =============================================
   ACID ROOTS SECTION
   ============================================= */
.acid-roots {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.acid-roots__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.acid-roots__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.acid-roots__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.acid-roots__title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 16vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--color-orange) 30%, var(--color-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.acid-roots__cover-wrap {
  width: 100%;
  max-width: 340px;
}

.acid-roots__cover {
  width: 100%;
  border-radius: 12px;
  display: block;
  animation: cover-glow 4s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out-expo);
}

.acid-roots__cover:hover {
  transform: scale(1.025);
}

.acid-roots__embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.acid-roots__embed iframe {
  display: block;
}

/* =============================================
   NEXO INFINITO SECTION
   ============================================= */
.nexo {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem;
}

.nexo__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nexo__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.1);
  will-change: transform;
}

.nexo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0D0D0D 12%,
    rgba(13, 13, 13, 0.65) 45%,
    rgba(13, 13, 13, 0.25) 100%
  );
}

.nexo__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
}

.nexo__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.nexo__badge {
  display: inline-block;
  padding: 0.32rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--color-nexo-purple-light);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-nexo-purple-light);
  animation: pulse-glow 2.8s ease-in-out infinite;
}

.nexo__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 13vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.nexo__by {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: -0.4rem;
}

.nexo__desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: rgba(240, 237, 230, 0.65);
  line-height: 1.75;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--color-bg);
  border-top: 1px solid #1A1A1A;
}

.footer__copy {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-fade {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  12%  { transform: translateX(-50%) translateY(-9px); }
  24%  { transform: translateX(-50%) translateY(0); }
  36%  { transform: translateX(-50%) translateY(-6px); }
  48%  { transform: translateX(-50%) translateY(0); }
  60%  { transform: translateX(-50%) translateY(-3px); }
  72%  { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(6px); opacity: 0; }
}

@keyframes cover-glow {
  0%, 100% { box-shadow: 0 10px 40px rgba(232, 121, 58, 0.35); }
  50%       { box-shadow: 0 10px 60px rgba(242, 193, 78, 0.50); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(123, 79, 207, 0); }
  50%       { box-shadow: 0 0 18px rgba(123, 79, 207, 0.55); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  18%       { transform: translateX(-7px); }
  36%       { transform: translateX(7px); }
  54%       { transform: translateX(-4px); }
  72%       { transform: translateX(4px); }
  86%       { transform: translateX(-2px); }
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 640px) {
  :root {
    --max-width: 560px;
    --section-padding: 6rem 2rem;
  }

  .hero__logo-mark  { width: 108px; height: 108px; }
  .hero__wordmark   { width: 250px; }
  .acid-roots__cover-wrap { max-width: 380px; }
}

@media (min-width: 1024px) {
  :root {
    --max-width: 640px;
  }

  .acid-roots__cover-wrap { max-width: 420px; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__logo-mark {
    filter: drop-shadow(0 0 18px rgba(232, 121, 58, 0.5));
  }
}
