/* ============================================================
   CableBox — site sections, nav, buttons, badges, footer
   ============================================================ */

/* keep page content above the aurora */
.page { position: relative; z-index: 2; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(2,2,28,0.5);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(2,2,28,0.82);
  border-bottom-color: var(--hairline);
}
.nav__row {
  display: flex; align-items: center; gap: 16px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; filter: drop-shadow(0 2px 8px rgba(73,80,250,0.5)); }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 28px; margin-left: 18px; }
.nav__links a {
  font-size: 14px; color: var(--ink-soft); transition: color 0.2s ease; white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); }
.nav__spacer { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 12px 20px; border-radius: 100px; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn--ghost {
  border-color: var(--hairline-strong); color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }

/* ---------- Official Google Play badge (faithful rebuild) ---------- */
.gplay {
  display: inline-flex; align-items: center; gap: 13px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 10px 19px 10px 17px;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.8);
}
.gplay:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 16px 40px -14px rgba(73,80,250,0.6), 0 0 0 1px rgba(255,255,255,0.1);
}
.gplay svg { width: 26px; height: 29px; flex: none; }
.gplay .txt { display: flex; flex-direction: column; line-height: 1; }
.gplay .txt small { font-size: 10px; letter-spacing: 0.04em; color: #fff; opacity: 0.92; }
.gplay .txt span { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: #fff; letter-spacing: 0.01em; margin-top: 3px; }
.gplay--lg { padding: 14px 26px 14px 22px; border-radius: 14px; }
.gplay--lg svg { width: 32px; height: 35px; }
.gplay--lg .txt span { font-size: 26px; }
.gplay--lg .txt small { font-size: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 76px); padding-bottom: clamp(60px, 9vw, 120px); }
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin: 0 0 34px; max-width: 540px; }
.hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__rating {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px; font-size: 13px; color: var(--ink-soft);
  font-family: var(--font-mono);
}
.hero__rating .stars { color: var(--gold); letter-spacing: 2px; }
.hero__phone {
  position: relative;
  display: flex; justify-content: center;
}
.hero__phone .phone { --w: 318px; }
.hero__phone::before {
  content: "";
  position: absolute; inset: -8% -4%;
  background: radial-gradient(closest-side, rgba(73,80,250,0.35), transparent 72%);
  filter: blur(20px); z-index: -1;
}

/* floating spec tag near hero phone */
.spec-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: rgba(7,7,42,0.82);
  border: 1px solid var(--hairline-strong);
  border-radius: 9px;
  padding: 7px 11px;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.8);
}
.spec-tag.t1 { top: 12%; left: -6%; }
.spec-tag.t2 { bottom: 16%; right: -8%; }

/* ---------- Generic section header ---------- */
.sec-head { max-width: 760px; }
.sec-head .lead { margin-top: 22px; }

/* ---------- Problem section ---------- */
.problem .lead { font-size: clamp(18px, 2vw, 23px); color: var(--ink-soft); }
.problem__list { display: grid; gap: 14px; margin-top: 36px; }
.problem__list .row {
  display: flex; gap: 16px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--hairline);
}
.problem__list .row .k {
  font-family: var(--font-mono); font-size: 12px; color: var(--pink);
  letter-spacing: 0.08em; white-space: nowrap; min-width: 130px;
}
.problem__list .row p { margin: 0; color: var(--ink-soft); }

/* ---------- Solution ---------- */
.solution__grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.steps { display: grid; gap: 2px; margin-top: 30px; counter-reset: step; }
.step {
  display: flex; gap: 16px; padding: 16px 0; align-items: flex-start;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step .n {
  counter-increment: step; flex: none;
  font-family: var(--font-mono); font-size: 12px; color: var(--cyan);
  width: 30px; padding-top: 3px;
}
.step .n::before { content: counter(step, decimal-leading-zero); }
.step b { font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.step p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Features ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(50px, 7vw, 96px);
}
.feature:nth-child(even) .feature__media { order: -1; }
.feature__copy { max-width: 520px; }
.feature__index {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--ink-mute); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.feature__index .dot { width: 7px; height: 7px; border-radius: 50%; }
.feature h3 { margin-bottom: 16px; }
.feature__copy p { color: var(--ink-soft); margin: 0; }
.feature__media { display: flex; justify-content: center; position: relative; }
.feature__media .phone { --w: 276px; }
.feature__media::before {
  content: "";
  position: absolute; inset: 6% 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgba(73,80,250,0.3)), transparent 72%);
  filter: blur(34px); z-index: 0;
}

/* ---------- Who it's for ---------- */
.audience__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px;
}
.aud-card {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 24px; background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  position: relative; overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.aud-card:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.aud-card .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 14px;
}
.aud-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.aud-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.aud-card .edge { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }

/* ---------- Final CTA ---------- */
.finalcta {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(56px, 9vw, 110px) clamp(24px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(180deg, rgba(10,10,50,0.6), rgba(2,2,28,0.4));
}
.finalcta .aurora { z-index: 0; opacity: 0.9; }
.finalcta__inner { position: relative; z-index: 2; }
.finalcta h2 { margin-bottom: 18px; }
.finalcta .lead { margin: 0 auto 38px; max-width: 520px; }
.finalcta .gplay { margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 56px 40px; position: relative; z-index: 2; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer__brand { max-width: 300px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { font-size: 13.5px; color: var(--ink-mute); margin: 0; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 16px; font-weight: 500; }
.footer__col a { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 11px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--ink-mute); font-family: var(--font-mono);
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--hairline);
  display: grid; place-items: center; color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer__social a:hover { border-color: var(--hairline-strong); color: var(--ink); transform: translateY(-2px); }

/* ---------- Scroll reveal ----------
   Transform-only (opacity stays 1) so content is ALWAYS legible even if the
   animation timeline is paused/throttled. Live browsers get the slide-up. */
.reveal { transform: translateY(26px) scale(0.99); transition: transform 0.75s cubic-bezier(0.2,0.7,0.2,1); will-change: transform; }
.reveal.in { transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: none; }
  .hero__phone { order: -1; }
  .solution__grid { grid-template-columns: 1fr; gap: 40px; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .feature__media { order: -1; }
  .audience__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 540px) {
  .hero__cta { gap: 14px; }
  .spec-tag.t1 { left: 0; }
  .spec-tag.t2 { right: 0; }
  .problem__list .row { flex-direction: column; gap: 6px; }
  .problem__list .row .k { min-width: 0; }
}
