/* ==========================================================
   Astrytone — landing page
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #050509;
  --bg-alt: #0a0b12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);

  --text: #f3f3f6;
  --text-dim: #a6a6b3;
  --text-faint: #6c6c7a;

  --purple: #7b5cf0;
  --blue: #4f8fe0;
  --teal: #2fd9a8;

  --gradient: linear-gradient(120deg, var(--purple) 0%, var(--blue) 50%, var(--teal) 100%);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn-buy {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn--primary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.2); }

.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--nav { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 5, 9, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__brand { flex-shrink: 0; }
.nav__logo { height: 34px; width: auto; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-right: auto;
  margin-left: 12px;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 140px 24px 80px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero-bg-mobile.webp');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
@media (min-width: 720px) {
  .hero__bg { background-image: url('../assets/img/hero-bg.webp'); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(5,5,9,0.35) 0%, rgba(5,5,9,0.75) 60%, var(--bg) 100%);
  z-index: -1;
}

.hero__logo {
  position: relative;
  width: 260px;
  max-width: 70vw;
  aspect-ratio: 900 / 515;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 40px rgba(123, 92, 240, 0.25));
}

.hero__logo-center {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eq-bars {
  position: absolute;
  top: 2.4%;
  height: 82%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6%;
}
.eq-bars--left { left: 1.4%; width: 21.1%; }
.eq-bars--right { left: 75.9%; width: 22.8%; }

.eq-bar {
  flex: 1;
  height: var(--h);
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.45));
  transform-origin: center;
  animation: eqPulse 1.6s ease-in-out infinite;
}
.eq-bar:nth-child(1) { animation-delay: -0.1s; animation-duration: 1.3s; }
.eq-bar:nth-child(2) { animation-delay: -0.7s; animation-duration: 1.8s; }
.eq-bar:nth-child(3) { animation-delay: -1.2s; animation-duration: 1.4s; }
.eq-bar:nth-child(4) { animation-delay: -0.3s; animation-duration: 1.7s; }
.eq-bar:nth-child(5) { animation-delay: -0.9s; animation-duration: 1.5s; }
.eq-bar:nth-child(6) { animation-delay: -1.5s; animation-duration: 1.9s; }
.eq-bar:nth-child(7) { animation-delay: -0.5s; animation-duration: 1.3s; }
.eq-bar:nth-child(8) { animation-delay: -1.1s; animation-duration: 1.6s; }
.eq-bar:nth-child(9) { animation-delay: -0.2s; animation-duration: 1.8s; }
.eq-bar:nth-child(10) { animation-delay: -0.8s; animation-duration: 1.4s; }

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .eq-bar { animation: none; transform: scaleY(0.75); }
}

.hero__title {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 22px;
}

.hero__subtitle {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.08rem;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__price {
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__price-installment {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__price-total {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.hero__price-total s {
  color: var(--text-faint);
  text-decoration-color: currentColor;
  margin-right: 2px;
}

.price-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0910;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-highlight {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 14px;
  background: rgba(123, 92, 240, 0.12);
  border: 1px solid rgba(123, 92, 240, 0.4);
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--text-dim);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; top: 8px; }
  30% { opacity: 1; }
  60% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  text-align: center;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.section__lead {
  max-width: 560px;
  margin: 0 auto 52px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- About copy (O Astrytone) ---------- */
.about-copy {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: left;
}
.about-copy p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 26px;
}
.about-copy__quote {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.3;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 36px 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.compat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.92rem;
}
.compat strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Cinema video ---------- */
.cinema-video {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}

.cinema-video--hero {
  max-width: 620px;
  width: 100%;
  margin: 8px auto 36px;
  border-color: rgba(255, 255, 255, 0.14);
}
@media (min-width: 720px) {
  .cinema-video--hero { max-width: 680px; }
}

.cinema-video video {
  display: block;
  width: 100%;
  height: auto;
}

.cinema-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: #0a0910;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 32px -10px rgba(123, 92, 240, 0.6);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.cinema-video__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.cinema-video.is-playing .cinema-video__play {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Interface showcase ---------- */
.interface-showcase {
  margin: 0 auto 64px;
}

.interface-showcase__video { max-width: 800px; margin: 0 auto; }

.demos__audio-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 18px;
}

/* ---------- Demo player ---------- */
.player {
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}

.player__now {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.player__wheel {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  height: 132px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  scrollbar-width: thin;
}
.player__wheel::-webkit-scrollbar { width: 4px; }
.player__wheel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 4px; }

.player__wheel::before,
.player__wheel::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 44px;
  pointer-events: none;
  z-index: 2;
}
.player__wheel::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg-alt), transparent);
}
.player__wheel::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg-alt), transparent);
}

.player__wheel-highlight {
  position: absolute;
  top: 50%; left: 6px; right: 6px;
  height: 44px;
  transform: translateY(-50%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}

.player__wheel-track { padding: 44px 0; }

.player__wheel-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14px;
  scroll-snap-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__wheel-item.is-active {
  color: var(--text);
  font-weight: 700;
}

.player__main { flex: 1; min-width: 0; }

.player__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.player__track-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.player__track-count {
  font-size: 0.8rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.player__track-category {
  display: inline-block;
  font-size: 0.78rem;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.player__track-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player__play {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: #0a0910;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player__progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  position: relative;
  cursor: pointer;
}
.player__progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--gradient);
}

.player__time {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player__hint {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin: 0;
}

.player__empty {
  text-align: center;
  padding: 60px 30px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-dim);
}
.player__empty strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ---------- Producer ---------- */
.producer {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.producer__photo {
  position: relative;
}
.producer__photo::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: radial-gradient(closest-side, rgba(123, 92, 240, 0.35), rgba(47, 217, 168, 0.12) 70%, transparent 100%);
  filter: blur(40px);
  z-index: -1;
}
.producer__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.producer__role {
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.producer__bio {
  color: var(--text-dim);
  margin-bottom: 32px;
}
.producer__bio p { margin: 0 0 18px; }
.producer__bio-highlight {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 26px !important;
}

.producer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.producer__links a {
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color .2s, opacity .2s;
}
.producer__links a:hover { border-color: var(--text); }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}
.cta-final__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero-bg-mobile.webp');
  background-size: cover;
  background-position: center 70%;
  opacity: 0.5;
  z-index: -2;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,9,0.6) 40%, var(--bg) 100%);
  z-index: -1;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 40px;
  margin: 0 auto 28px;
}
.price-card__installments {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card__total {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.price-card__total s {
  color: var(--text-faint);
  text-decoration-color: currentColor;
  margin-right: 2px;
}

.price-card__urgency {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-faint);
  max-width: 320px;
}
.price-card__urgency strong {
  color: var(--text);
  font-weight: 700;
}

.cta-final__note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.footer {
  padding: 50px 0 34px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer__logo { height: 28px; opacity: 0.85; }

.footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color .2s;
}
.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .producer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .producer__photo { max-width: 320px; margin: 0 auto; }
  .producer__bio { text-align: left; }
  .producer__links { justify-content: center; }
}

@media (max-width: 720px) {
  .nav__inner { justify-content: center; gap: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; order: 3; }
  .nav .btn--nav { padding: 9px 16px; font-size: 0.82rem; }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5,5,9,0.97);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }

  .player__now { flex-direction: column; }
  .player__wheel { align-self: center; width: 100%; max-width: 220px; }

  .section { padding: 80px 0; }
}
