/* =========================================================
   Audio Reloaded — Landing page
   Pure CSS. Dark mode, glass cards, subtle neon glow.
   ========================================================= */

:root {
  /* Palette */
  --bg:            #07080d;
  --bg-2:          #0a0b12;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #eef1f8;
  --text-dim:      #aab0c2;
  --text-mute:     #717890;

  --accent:        #39ff14;   /* neon green */
  --accent-2:      #00e676;   /* emerald */
  --accent-3:      #0affab;   /* spring teal */

  --boost:         #ff5a3c;
  --balanced:      #39ff14;
  --light:         #0affc7;

  --grad-brand: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);

  /* Layout */
  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --glow:   0 0 40px -8px rgba(57, 255, 20, 0.45);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: rgba(0, 230, 118, 0.4); color: #fff; }

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); opacity: 0.5; pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.bg-glow--1 {
  width: 520px; height: 520px; top: -160px; left: -120px;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
}
.bg-glow--2 {
  width: 480px; height: 480px; top: 240px; right: -140px;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, 40px); }
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: 96px; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(0, 230, 118,0.04), transparent); }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--grad-brand);
  color: #07080d; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(0, 230, 118, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(57, 255, 20, 0.7);
}

.btn--ghost {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: #fff; background: rgba(57, 255, 20,0.08); }

.btn--lg { --pad-y: 17px; --pad-x: 34px; font-size: 1.06rem; }
.btn--sm { --pad-y: 8px; --pad-x: 14px; font-size: 0.82rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; }
.brand__logo {
  width: 34px; height: 34px; object-fit: contain;
  background: #fff; border-radius: 9px; padding: 3px;
  box-shadow: 0 0 14px -2px rgba(57, 255, 20, 0.55);
}
.brand__name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__accent {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; position: relative; transition: color 0.2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-brand); transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { margin-left: 4px; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: 88px 72px; position: relative; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-dim); font-weight: 500;
  margin-bottom: 26px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--light); box-shadow: 0 0 10px var(--light); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; }
.hero__title-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tagline { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 600; margin-top: 16px; color: var(--text); }
.hero__sub { font-size: 1.08rem; color: var(--text-dim); margin-top: 16px; max-width: 30em; }

.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__badges { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
}
.badge__icon { color: var(--accent); }
.badge--muted { color: var(--text-mute); }

/* Hero preview — screenshot real */
.hero__preview { display: flex; justify-content: center; perspective: 1400px; }
.preview-shot {
  width: 100%; max-width: 660px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.28);
  box-shadow: var(--shadow), 0 0 50px -10px rgba(57, 255, 20, 0.4);
  animation: rise 1s var(--ease) both;
}
.preview-shot img { width: 100%; height: auto; display: block; }

/* Hero preview mock (legacy, sin uso) */
.hero__preview-mock { display: flex; justify-content: center; }
.preview-card {
  width: 100%; max-width: 420px; border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
  animation: rise 1s var(--ease) both;
}
.preview-card__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }
.preview-card__title { margin-left: 8px; font-size: 0.82rem; color: var(--text-mute); font-family: "Space Grotesk", sans-serif; }

.preview-card__body { padding: 24px; }
.preview-card__label { font-size: 0.72rem; letter-spacing: 0.15em; color: var(--text-mute); font-weight: 600; }

.mode-pills { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mode-pill {
  flex: 1; min-width: 88px; padding: 10px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-dim); font: inherit; font-weight: 700; font-size: 0.74rem;
  cursor: pointer; transition: all 0.25s var(--ease);
}
.mode-pill.is-active.mode-pill--boost    { border-color: var(--boost);    color: #fff; box-shadow: 0 0 20px -4px var(--boost); background: rgba(255,90,60,0.12); }
.mode-pill.is-active.mode-pill--balanced { border-color: var(--balanced); color: #fff; box-shadow: 0 0 20px -4px var(--balanced); background: rgba(57, 255, 20,0.12); }
.mode-pill.is-active.mode-pill--light    { border-color: var(--light);    color: #fff; box-shadow: 0 0 20px -4px var(--light); background: rgba(92,240,194,0.12); }

.visualizer {
  display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-top: 22px;
  padding: 12px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.25);
}
.visualizer span {
  flex: 1; border-radius: 3px 3px 0 0;
  background: var(--grad-brand);
  animation: eq 1.1s ease-in-out infinite;
}
.visualizer span:nth-child(odd)  { animation-duration: 0.9s; }
.visualizer span:nth-child(3n)   { animation-duration: 1.3s; }
.visualizer span:nth-child(4n)   { animation-duration: 0.75s; }
@keyframes eq { 0%,100% { height: 16%; opacity: 0.55; } 50% { height: 100%; opacity: 1; } }

.preview-card__meta { display: flex; gap: 14px; margin-top: 18px; font-size: 0.76rem; color: var(--text-mute); flex-wrap: wrap; }
.preview-card__meta .ok { color: var(--light); margin-left: auto; }

@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Section heads ---------- */
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__kicker {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: 14px;
}
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
.section__lead { color: var(--text-dim); margin-top: 16px; font-size: 1.05rem; }

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

/* ---------- Cards ---------- */
.card {
  padding: 28px; border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card__icon {
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Mode cards ---------- */
.modes { gap: 22px; }
.mode-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.mode-card:hover { transform: translateY(-6px); }
.mode-card__glow {
  position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
  background: radial-gradient(circle at 50% -10%, var(--mc, var(--accent)), transparent 60%);
  opacity: 0.18;
}
.mode-card--boost    { --mc: var(--boost);    border-color: rgba(255,90,60,0.35); }
.mode-card--balanced { --mc: var(--balanced); border-color: rgba(57, 255, 20,0.35); }
.mode-card--light    { --mc: var(--light);    border-color: rgba(92,240,194,0.35); }

.mode-card__tag {
  display: inline-block; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.12em; padding: 6px 14px; border-radius: 999px;
  color: #07080d; background: var(--mc); margin-bottom: 18px;
  box-shadow: 0 0 24px -6px var(--mc);
}
.mode-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.mode-card > p { color: var(--text-dim); margin-bottom: 18px; position: relative; }
.mode-card__list { display: grid; gap: 9px; position: relative; }
.mode-card__list li { padding-left: 24px; position: relative; color: var(--text-dim); font-size: 0.94rem; }
.mode-card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--mc);
  box-shadow: 0 0 10px var(--mc);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem;
  background: var(--grad-brand); color: #07080d; margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Instalación ---------- */
.instalacion__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.install-list { counter-reset: ins; display: grid; gap: 16px; margin: 26px 0 30px; }
.install-list li {
  counter-increment: ins; position: relative; padding-left: 48px;
  color: var(--text-dim); font-size: 1rem;
}
.install-list li::before {
  content: counter(ins); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--accent); font-weight: 700; font-size: 0.9rem;
}
.install-list strong { color: var(--text); }
code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  background: rgba(255,255,255,0.07); padding: 2px 7px; border-radius: 6px;
  font-size: 0.88em; color: var(--accent);
}

.note { padding: 26px; border-radius: var(--radius); border-color: rgba(57, 255, 20,0.25); }
.note__title { font-size: 1.1rem; margin-bottom: 10px; }
.note p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Descarga ---------- */
.section--download { padding-block: 88px; }
.download-card {
  position: relative; max-width: 720px; margin-inline: auto; text-align: center;
  padding: 56px 40px; border-radius: 26px; overflow: hidden;
  border-color: var(--border-strong);
}
.download-card__glow {
  position: absolute; inset: -1px; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(0, 230, 118,0.3), transparent 60%);
}
.download-card .section__kicker { margin-bottom: 10px; }
.download-card__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.download-card__sub { color: var(--text-dim); margin: 12px 0 30px; }
.download-card .btn--lg { margin-inline: auto; }
.download-card__fallback { margin-top: 18px; font-size: 0.9rem; color: var(--text-mute); }
.download-card__fallback a { color: var(--accent); border-bottom: 1px dashed currentColor; }
.download-card__fallback a:hover { color: #fff; }

.download-meta {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--border);
}
.download-meta div {
  min-width: 130px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.download-meta dt { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.download-meta dd { font-weight: 700; margin-top: 4px; }

/* ---------- Checksum ---------- */
.checksum { margin-top: 36px; padding: 28px; border-radius: var(--radius); }
.checksum__title { font-size: 1.2rem; margin-bottom: 8px; }
.checksum p { color: var(--text-dim); font-size: 0.95rem; }
.checksum__code {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.35); border: 1px solid var(--border);
}
.checksum__code code {
  flex: 1; min-width: 200px; background: none; padding: 0; color: var(--light);
  word-break: break-all; font-size: 0.9rem;
}
.checksum__hint { margin-top: 8px; font-size: 0.88rem; }
.checksum__hint code { display: inline-block; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 56px 30px; margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { color: var(--text-mute); margin-top: 10px; max-width: 26em; font-size: 0.94rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; align-content: flex-start; }
.footer__links a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-mute); font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(140%);
  background: rgba(20, 22, 34, 0.95); border: 1px solid var(--border-strong);
  color: var(--text); padding: 13px 22px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); z-index: 100;
  transition: transform 0.4s var(--ease);
}
.toast.is-shown { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__preview { order: -1; }
  .instalacion__inner { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(7,8,13,0.97); border-bottom: 1px solid var(--border);
    padding: 16px 24px; backdrop-filter: blur(16px);
  }
  .nav__links.is-open a { padding: 10px 0; }
}

@media (max-width: 560px) {
  .section { padding-block: 64px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .download-card { padding: 40px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
