/* Sonakay · landing. Tipografía propia (sin servicios externos). */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #121110;
  --bg-soft: #181614;
  --card: #1c1a18;
  --line: rgba(255, 255, 255, .09);
  --text: #f3efe8;
  --muted: #b5aea3;
  --orange: #f84202;
  --orange-btn: #ff5a1f;
  --teal: #09b0bf;
  --gold: #d9b36c;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--text); color: #111; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(20px, calc((100vw - var(--wrap)) / 2));
  background: rgba(18, 17, 16, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: auto; height: 40px; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 600; }
.topnav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.topnav a:hover { color: var(--text); }
.topnav .btn { color: #140803; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--orange-btn); color: #140803;
  font: 700 1rem/1 "Montserrat", sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(248, 66, 2, .75);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #ff6e38; box-shadow: 0 16px 36px -12px rgba(248, 66, 2, .85); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .88rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); box-shadow: none; }

/* Estructura */
section { position: relative; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.accent { color: var(--orange-btn); }
h1 { font-size: clamp(2.35rem, 6.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { margin-bottom: 12px; }

/* Héroe */
.hero {
  display: grid; gap: 56px; align-items: center;
  max-width: var(--wrap); margin: 0 auto;
  padding: 56px 20px 72px;
}
.hero::before {
  content: ""; position: absolute; inset: -80px calc(50% - 50vw) auto; max-width: 100vw; height: 640px; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  background:
    radial-gradient(520px 360px at 72% 38%, rgba(248, 66, 2, .22), transparent 70%),
    radial-gradient(420px 320px at 92% 78%, rgba(9, 176, 191, .13), transparent 70%);
}
.hero-copy { max-width: 560px; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.lead { margin-top: 22px; font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.platforms li { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-btn); box-shadow: 0 0 0 4px rgba(255, 90, 31, .18); }

/* Móviles (maquetas con capturas reales de la app) */
.phone {
  padding: 2.1%;
  background: linear-gradient(160deg, #3a3631, #1c1a18 55%, #2a2622);
  border-radius: 15% / 7%;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img { width: 100%; border-radius: 12.8% / 5.9%; background: #0e0d0c; }

.hero-phones { position: relative; width: min(100%, 420px); margin: 0 auto; padding-bottom: 8px; }
.phone-front { position: relative; z-index: 2; width: 66%; margin-left: 0; }
.phone-back {
  position: absolute; z-index: 1; width: 58%; right: 0; top: 9%;
  transform: rotate(7deg); transform-origin: 30% 100%; opacity: .95;
}

/* Cifras */
.stats { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; max-width: var(--wrap); margin: 0 auto; }
.stats dl > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats dl > div:nth-child(2n) { border-right: 0; }
.stats dl > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.stats dd { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.1; }
.stats dd small { font-size: .45em; font-weight: 600; letter-spacing: .06em; color: var(--gold); }
.stats dt { font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* Funciones */
.features, .screens { max-width: var(--wrap); margin: 0 auto; padding: 88px 20px 24px; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature {
  padding: 28px 26px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.feature:hover { border-color: rgba(248, 66, 2, .45); transform: translateY(-3px); }
.feature-tuner:hover { border-color: rgba(9, 176, 191, .55); }
.feature p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.icon {
  width: 52px; height: 52px; padding: 13px; margin-bottom: 20px;
  border-radius: 15px; background: rgba(248, 66, 2, .13);
  fill: none; stroke: var(--orange-btn); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feature-tuner .icon { background: rgba(9, 176, 191, .14); stroke: var(--teal); }

/* Pantallas */
.screen-row {
  display: flex; gap: 20px; margin-inline: -20px; padding: 6px 20px 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.screen-row::-webkit-scrollbar { display: none; }
.screen { flex: 0 0 min(66%, 270px); scroll-snap-align: center; }
.screen figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; text-align: center; font-size: .9rem; color: var(--muted); }
.screen figcaption strong { color: var(--text); font-size: 1rem; }

/* Llamada final */
.cta { padding: 56px 20px 96px; }
.cta-card {
  max-width: 820px; margin: 0 auto; padding: 56px 28px; text-align: center;
  border: 1px solid var(--line); border-radius: 28px;
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(248, 66, 2, .24), transparent 72%),
    var(--card);
}
.cta-card .eyebrow { margin-bottom: 14px; }
.cta-card p:not(.eyebrow) { margin: 16px auto 30px; max-width: 460px; color: var(--muted); }

/* Pie */
.footer { padding: 44px 20px 56px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-mark { width: 120px; height: auto; margin: 0 auto 14px; opacity: .92; }
.footer .fine { margin-top: 10px; font-size: .8rem; opacity: .7; }

/* Aparición suave (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .feature-grid .reveal:nth-child(3n + 2) { transition-delay: .08s; }
.js .feature-grid .reveal:nth-child(3n + 3) { transition-delay: .16s; }

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding-block: 12px; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; padding-top: 80px; padding-bottom: 96px; }
  .stats dl { grid-template-columns: repeat(4, 1fr); }
  .stats dl > div { border-bottom: 0 !important; }
  .stats dl > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .stats dl > div:last-child { border-right: 0; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .screen-row { justify-content: center; margin-inline: 0; padding-inline: 0; overflow: visible; gap: 36px; }
  .screen { flex: 1 1 0; max-width: 290px; }
  .hero-phones { margin-right: 0; }
}

@media (max-width: 520px) {
  .topnav a:not(.btn) { display: none; }
  .hero-phones { width: min(86%, 330px); }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature, .js .reveal { transition: none; }
  .js .reveal { opacity: 1; transform: none; }
}
