/* Rolezin — landing (apps/site). Tokens do design system "Rolezin Precision"
   (docs/design/design-system.md §3 / brand.md): dourado único acento, dark warm,
   hairline desvanecendo, Inter. Estático puro — sem build, sem dependências. */

:root {
  --bg: #0a0a0c;
  --surface: #16161a;
  --surface2: #201f25;
  --gold: #e6c77e;
  --gold-soft: #d4af6a;
  --text: #f7f5f0;
  --muted: #9a968c;
  --line: #2a2830;
  --card-border: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- utilitários da marca ---------- */
.label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
}
.hairline {
  height: 1px;
  background: linear-gradient(90deg, rgba(230, 199, 126, 0.7), rgba(230, 199, 126, 0));
  border: 0;
}

/* ---------- header ---------- */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* em telas largas, o padding centraliza o conteúdo num teto de 1240px */
  padding: 26px max(min(6vw, 64px), calc((100% - 1240px) / 2));
}
.top .wordmark {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--text);
}
.top .wordmark .r { color: var(--gold); }
.top nav { display: flex; gap: 28px; }
.top nav a {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.top nav a:hover { color: var(--gold); }

/* ---------- hero (dobra 1, 100vh) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: min(4vw, 48px);
  /* em telas largas, o padding centraliza o conteúdo num teto de 1240px */
  padding: 96px max(min(6vw, 64px), calc((100% - 1240px) / 2)) 56px;
  isolation: isolate;
  overflow: hidden; /* recorta o blur do fundo (sem isso ele vaza na seção seguinte) */
}
.hero::before {
  /* mood photo borrada e afogada no dark warm — a foto real mora no mock do app */
  content: '';
  position: absolute;
  inset: -40px;
  z-index: -2;
  background: url('../assets/hero-bg.jpg') center 30% / cover no-repeat;
  filter: blur(26px) brightness(0.5) saturate(0.9);
  opacity: 0.32;
  /* desvanece a foto antes do fim do hero: transição suave, sem faixa escura */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 94%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 68% 42%, rgba(230, 199, 126, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.55), rgba(10, 10, 12, 0.15) 45%, rgba(10, 10, 12, 0) 80%);
}

.hero-copy .kicker { margin-bottom: 18px; }
.hero-copy h1 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -1.5px;
  max-width: 13ch;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-copy .sub {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
}
.hero-copy .sub strong { color: var(--text); font-weight: 600; }

/* hairline que vira som (assinatura da marca animada) */
.eqline {
  position: relative;
  margin-top: 34px;
  height: 40px;
  max-width: 520px;
}
.eqline .line {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(230, 199, 126, 0.85), rgba(230, 199, 126, 0));
}
.eqline .bars {
  position: absolute;
  left: 4%;
  bottom: 9px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 30px;
}
.eqline .bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0.85;
  animation: eq 1.1s ease-in-out infinite alternate;
  height: 30%;
}
.eqline .bars i:nth-child(2n) { animation-duration: 0.9s; opacity: 0.6; }
.eqline .bars i:nth-child(3n) { animation-duration: 1.35s; opacity: 0.45; }
.eqline .bars i:nth-child(4n) { animation-duration: 0.75s; opacity: 0.7; }
.eqline .bars i:nth-child(5n) { animation-delay: 0.35s; }
.eqline .bars i:nth-child(7n) { animation-delay: 0.6s; opacity: 0.3; }
@keyframes eq {
  from { height: 18%; }
  to { height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .eqline .bars i { animation: none; height: 55%; }
}

/* badges das lojas */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 13px 24px;
  transition: background 0.2s, transform 0.2s;
}
.store svg { flex: none; }
.store .s-txt { display: flex; flex-direction: column; line-height: 1.2; }
.store .s-top { font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.store .s-name { font-weight: 700; font-size: 15px; color: var(--text); }
.store.play:hover { background: rgba(230, 199, 126, 0.08); transform: translateY(-1px); }
.store.ios {
  border-color: var(--glass-border);
  opacity: 0.55;
  cursor: default;
  position: relative;
}
.store.ios .tag {
  position: absolute;
  top: -9px;
  right: 16px;
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 3px 9px;
  color: var(--gold);
}

/* ---------- mock do app (proporção real de celular: 9 / 19.3) ---------- */
.phone-wrap {
  display: flex;
  justify-content: center;
}
.phone {
  width: min(310px, 76vw);
  aspect-ratio: 9 / 19.3;
  border-radius: 46px;
  background: #050506;
  border: 2px solid #33313a;
  padding: 9px;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(230, 199, 126, 0.07),
    inset 0 0 3px rgba(255, 255, 255, 0.06);
  display: flex;
}
.phone .screen {
  position: relative;
  flex: 1;
  border-radius: 37px;
  background: var(--bg);
  overflow: hidden;
  padding: 8px 13px 0;
  display: flex;
  flex-direction: column;
}
/* câmera punch-hole */
.phone .punch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
  z-index: 3;
}
/* barra de status */
.phone .statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 14px;
  font-weight: 600; font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.phone .statusbar .icons { display: flex; gap: 5px; align-items: center; opacity: 0.8; }
/* fade no rodapé da tela: sugere que a lista continua */
.phone .screen::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, transparent, var(--bg) 82%);
  pointer-events: none;
  z-index: 2;
}
/* barra de gesto do Android */
.phone .gesture {
  position: absolute;
  bottom: 7px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  z-index: 3;
}
.phone .m-word { font-weight: 800; font-size: 12px; letter-spacing: 3.2px; }
.phone .m-meta {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding-bottom: 9px;
  border-bottom: 1px solid var(--card-border);
  font-weight: 700; font-size: 8px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted);
}
.phone .m-meta .gold { color: var(--gold); }
.phone .chips { display: flex; gap: 6px; margin: 12px 0 13px; }
.phone .chip {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-weight: 700; font-size: 7.5px; letter-spacing: 1.1px; text-transform: uppercase;
  color: #b9b4a8;
  padding: 6px 11px;
  white-space: nowrap;
}
.phone .chip.on { border-color: var(--gold); color: var(--gold); background: rgba(230, 199, 126, 0.08); }
.pcard {
  position: relative;
  border-radius: 15px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  flex: none;
}
.pcard.hero-card { height: 148px; }
.pcard.sm { height: 84px; }
.pcard::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.12), rgba(8, 8, 10, 0.55) 50%, rgba(8, 8, 10, 0.97));
}
.pcard .in { position: relative; width: 100%; padding: 9px 11px; }
.pcard .g { font-weight: 700; font-size: 6.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); }
.pcard .n { font-weight: 700; font-size: 12.5px; margin-top: 3px; }
.pcard .f { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.pcard .meta { font-weight: 600; font-size: 6.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #cfcabf; }
.pcard .t { font-weight: 700; font-size: 9.5px; color: var(--gold); font-variant-numeric: tabular-nums; }
.pcard .t small { font-weight: 600; font-size: 7.5px; color: #cfcabf; }
.pcard .n { font-size: 13.5px; }

/* ---------- seções ---------- */
section.block { padding: 84px min(6vw, 64px); max-width: 1180px; margin: 0 auto; }
.block .head { margin-bottom: 40px; }
.block .head h2 {
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.8px;
  margin-top: 12px;
}
.block .head .hairline { max-width: 140px; margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 24px 28px;
}
.step .num {
  font-weight: 800; font-size: 13px; color: var(--gold);
  border: 1px solid rgba(230, 199, 126, 0.4);
  border-radius: 999px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step h3 { font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.genres { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.genre {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.genre::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.05), rgba(8, 8, 10, 0.9));
}
.genre span {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  font-weight: 700; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase;
}
.genre i { width: 6px; height: 6px; border-radius: 50%; }

.cta-end { text-align: center; }
.cta-end h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -1px; }
.cta-end h2 em { font-style: normal; color: var(--gold); }
.cta-end .stores { justify-content: center; }
.cta-end .ig { display: inline-block; margin-top: 22px; color: var(--muted); font-size: 13px; }
.cta-end .ig b { color: var(--gold); font-weight: 600; }

/* ---------- rodapé ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px max(min(6vw, 64px), calc((100% - 1240px) / 2)) 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
footer .fbrand { display: flex; align-items: center; gap: 12px; }
footer .fbrand img { width: 26px; height: 26px; border-radius: 7px; }
footer .fbrand span { font-weight: 800; font-size: 11px; letter-spacing: 3px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer nav a, footer .made {
  font-size: 12px;
  color: var(--muted);
}
footer nav a:hover { color: var(--gold); }
footer .made a { color: var(--gold-soft); font-weight: 600; }
footer .made a:hover { color: var(--gold); }

/* ---------- página de privacidade ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px min(6vw, 32px) 80px;
}
.doc h1 { font-weight: 800; font-size: clamp(26px, 4vw, 38px); letter-spacing: -1px; margin-top: 14px; }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 13px; }
.doc .hairline { max-width: 140px; margin: 26px 0 8px; }
.doc h2 { font-weight: 700; font-size: 19px; letter-spacing: -0.3px; margin: 38px 0 12px; }
.doc p, .doc li { color: #cfcabf; font-size: 14.5px; line-height: 1.75; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc a { color: var(--gold-soft); }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 72px; text-align: left; }
  .phone-wrap { margin-top: 40px; }
  .phone { box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(230, 199, 126, 0.07); }
  .steps { grid-template-columns: 1fr; }
  .genres { grid-template-columns: repeat(3, 1fr); }
  .top nav { display: none; }
}
@media (max-width: 520px) {
  .genres { grid-template-columns: repeat(2, 1fr); }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
}
