/* =========================================================
   CerejaPlay — site de downloads
   Paleta e identidade extraídas do app (Cereja* tokens)
   ========================================================= */

:root {
  --bg: #060609;
  --surface: #101016;
  --surface-2: #17171f;
  --surface-3: #20202b;
  --outline: #2c2c39;
  --text: #ffffff;
  --muted: #9c9cab;
  --red: #ff3352;
  --red-light: #ff5c74;
  --red-deep: #b3122b;
  --gold: #f5c451;
  --green: #4cd964;
  --leaf: #46c46a;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --max: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- fundo ---------- */
.bg-glow {
  position: fixed;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
}
.bg-glow--one {
  top: -22vw;
  right: -18vw;
  background: radial-gradient(circle, rgba(255, 51, 82, 0.55), transparent 65%);
}
.bg-glow--two {
  top: 42vh;
  left: -30vw;
  background: radial-gradient(circle, rgba(76, 217, 100, 0.18), transparent 65%);
  opacity: 0.5;
}

/* ---------- navegação ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 6, 9, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand__mark { filter: drop-shadow(0 4px 12px rgba(255, 51, 82, 0.35)); }
.brand__name span { color: var(--red); }
.brand--sm { font-size: 1rem; }

.nav__links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav__links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__cta { margin-left: 4px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--red-light), var(--red) 55%, var(--red-deep));
  color: #fff;
  box-shadow: 0 12px 32px rgba(255, 51, 82, 0.32);
}
.btn--primary:hover { box-shadow: 0 18px 44px rgba(255, 51, 82, 0.44); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }

.btn--sm { padding: 11px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn--disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  cursor: not-allowed;
}
.btn--disabled:hover { transform: none; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow--tight { margin-bottom: 6px; }
.eyebrow .dot,
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(76, 217, 100, 0.9);
}
.dot--green { background: var(--green); }

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.ink-red {
  background: linear-gradient(120deg, var(--red-light), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ink-green { color: var(--green); }

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  max-width: 34rem;
  margin-top: 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- mockup do celular ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone {
  position: relative;
  width: min(300px, 82%);
  aspect-ratio: 9 / 18.6;
  background: linear-gradient(160deg, #1b1b24, #0a0a0e);
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: rotate(-6deg) rotateY(9deg) rotateX(3deg);
  transition: transform 0.5s ease;
}
.phone:hover { transform: rotate(-3deg) rotateY(4deg) rotateX(1deg); }
.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #040406;
  border-radius: 999px;
  z-index: 3;
}
.phone__screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #08080c;
  display: flex;
  flex-direction: column;
  padding: 26px 14px 12px;
  gap: 12px;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  padding-top: 8px;
}
.app-top__spacer { flex: 1; }
.app-pill {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(76, 217, 100, 0.16);
  color: var(--green);
  border: 1px solid rgba(76, 217, 100, 0.3);
}

.app-hero {
  position: relative;
  border-radius: 16px;
  padding: 84px 14px 14px;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(255, 51, 82, 0.55), transparent 55%),
    linear-gradient(160deg, #2a1220, #12121a 60%, #0b0b10);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-light);
  background: rgba(255, 51, 82, 0.14);
  border: 1px solid rgba(255, 51, 82, 0.3);
  padding: 4px 7px;
  border-radius: 999px;
}
.app-hero strong { font-size: 0.92rem; }
.app-hero small { font-size: 0.6rem; color: var(--muted); }
.app-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red-deep));
  font-size: 0.7rem;
  box-shadow: 0 6px 16px rgba(255, 51, 82, 0.45);
}

.app-tabs {
  display: flex;
  gap: 6px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
}
.app-tabs span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.app-tabs .on { background: rgba(255, 51, 82, 0.15); color: #fff; }

.app-row {
  display: flex;
  gap: 8px;
}
.poster {
  flex: 1;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
  background: linear-gradient(160deg, #22222c, #0d0d12);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.p1 { background: linear-gradient(160deg, #4a1a2a, #160a10); }
.p2 { background: linear-gradient(160deg, #1a3a4a, #0a1216); }
.p3 { background: linear-gradient(160deg, #3a2a1a, #16100a); }
.p4 { background: linear-gradient(160deg, #2a1a4a, #100a16); }
.p5 { background: linear-gradient(160deg, #1a4a2a, #0a160f); }

.app-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 9px;
}
.app-bottom .on { color: var(--red-light); }

.source-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 16, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.source-badge--a { top: 14%; left: 0; animation: float 6s ease-in-out infinite; }
.source-badge--b { bottom: 16%; right: 0; animation: float 7s ease-in-out infinite reverse; }
.source-badge b { color: var(--gold); letter-spacing: 0.06em; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- faixa ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}
.strip__item {
  background: var(--surface);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.strip__item strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.strip__item span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* ---------- seções ---------- */
.section { padding-top: clamp(64px, 9vw, 108px); }
.section__head { max-width: 640px; margin-bottom: 34px; }
.section__head h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  font-weight: 800;
}
.section__head p { color: var(--muted); margin-top: 12px; }

/* ---------- grids e cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 51, 82, 0.35);
  background: linear-gradient(180deg, #1b1b25, #101016);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 18px;
  font-size: 1.1rem;
  color: var(--red-light);
  background: rgba(255, 51, 82, 0.1);
  border: 1px solid rgba(255, 51, 82, 0.24);
}
.card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- downloads ---------- */
.download {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
  overflow: hidden;
}
.download--ready {
  border-color: rgba(255, 51, 82, 0.35);
  box-shadow: 0 20px 60px rgba(255, 51, 82, 0.1);
}
.download--ready::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.download--alt.download--ready {
  border-color: rgba(122, 184, 255, 0.34);
  box-shadow: 0 20px 60px rgba(122, 184, 255, 0.08);
}
.download--alt.download--ready::before {
  background: linear-gradient(90deg, transparent, #7ab8ff, transparent);
}
.btn--windows {
  background: linear-gradient(135deg, #8cc4ff, #4d8fe0 55%, #255a9e);
  box-shadow: 0 12px 32px rgba(122, 184, 255, 0.22);
}
.btn--windows:hover {
  box-shadow: 0 18px 44px rgba(122, 184, 255, 0.34);
}
.download--soon { opacity: 0.92; }

.download__os { display: flex; align-items: center; gap: 14px; }
.download__os h3 { font-size: 1.35rem; }
.os-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.os-icon--android { color: var(--green); background: rgba(76, 217, 100, 0.08); border-color: rgba(76, 217, 100, 0.22); }
.os-icon--windows { color: #7ab8ff; background: rgba(122, 184, 255, 0.08); border-color: rgba(122, 184, 255, 0.22); }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  margin-top: 5px;
}
.badge--ready { color: var(--green); background: rgba(76, 217, 100, 0.12); border: 1px solid rgba(76, 217, 100, 0.28); }
.badge--soon { color: var(--gold); background: rgba(245, 196, 81, 0.1); border: 1px solid rgba(245, 196, 81, 0.26); }

.download__desc { color: var(--muted); font-size: 0.94rem; }
.download__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 2px 0 4px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.download__stats div { display: flex; flex-direction: column; gap: 1px; }
.download__stats dt { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.download__stats dd { margin: 0; font-size: 0.9rem; font-weight: 700; }
.download__note { color: var(--muted); font-size: 0.78rem; text-align: center; }

/* ---------- passos ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step__n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--red-light), var(--red-deep));
  box-shadow: 0 8px 20px rgba(255, 51, 82, 0.3);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- status ---------- */
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 51, 82, 0.08), rgba(16, 16, 22, 0.9) 45%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.statusbar h3 { font-size: 1.25rem; }
.statusbar p { color: var(--muted); font-size: 0.9rem; margin-top: 3px; }
.statusbar__right { display: flex; align-items: center; gap: 18px; }

.status-dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 120px; }
.status-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
}
.status-dots span.on { background: var(--green); box-shadow: 0 0 8px rgba(76, 217, 100, 0.7); }
.status-dots span.mid { background: var(--gold); }
.status-dots span.off { background: var(--red); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq__item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: rgba(255, 51, 82, 0.3); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--red-light);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  color: var(--muted);
  font-size: 0.92rem;
  padding-bottom: 16px;
  max-width: 66ch;
}

/* ---------- legal ---------- */
.legal {
  border-radius: var(--radius);
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.legal h2 { font-size: 1.2rem; margin-bottom: 10px; }
.legal p { color: var(--muted); font-size: 0.88rem; max-width: 80ch; }

/* ---------- footer ---------- */
.footer {
  margin-top: clamp(64px, 9vw, 108px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 36px 0 44px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.footer__links a:hover { color: var(--text); }
.footer__note { color: var(--muted); font-size: 0.8rem; margin-left: auto; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { order: -1; }
  .phone { width: min(270px, 70%); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer__note { margin-left: 0; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .statusbar__right { width: 100%; justify-content: space-between; }
  .download__stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .hero__actions .btn { width: 100%; }
  .strip { grid-template-columns: 1fr; }
  .legal { padding: 24px 20px; }
}

/* ---------- animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ---------- acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}