/* Trama: site de divulgação. Cores do app: preto + laranja (#ff8a3d). */
:root {
  --bg: #0d0e11;
  --bg-2: #121318;
  --surface: #171920;
  --surface-2: #1d2029;
  --line: rgba(255, 255, 255, .08);
  --text: #eceef2;
  --muted: #9ba1ad;
  --orange: #ff8a3d;
  --orange-2: #ffb36b;
  --orange-deep: #e5641a;
  --radius: 18px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .9em Consolas, "Cascadia Code", monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .75em 1.3em; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--orange-2), var(--orange) 45%, var(--orange-deep));
  color: #160b03; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(255, 138, 61, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255, 138, 61, .75), inset 0 1px 0 rgba(255,255,255,.35); filter: saturate(1.1); }
.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn small { font-weight: 500; opacity: .75; }
.btn--lg { font-size: 1.06rem; padding: .95em 1.6em; }
.btn--sm { padding: .5em 1.1em; font-size: .92rem; }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

/* ---------------------------------------------------------------- navegação */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(13, 14, 17, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(13, 14, 17, .88); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6em; color: var(--text); font: 700 1.2rem var(--font-display); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .96rem; }
.nav__menu a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 72px 0 96px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(255, 138, 61, .22), transparent 70%),
    radial-gradient(520px 340px at 10% 10%, rgba(255, 179, 107, .10), transparent 70%);
}
/* trama = tecido: fios horizontais laranja cruzando fios verticais claros */
.hero__weave {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, rgba(255,138,61,.05) 0 2px, transparent 2px 64px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); margin-bottom: .35em; }
.grad { background: linear-gradient(100deg, var(--orange-2), var(--orange) 50%, #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #c3c8d1; max-width: 34em; }
.lead strong { color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .35em .9em; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: rgba(255, 138, 61, .1); color: var(--orange-2); box-shadow: inset 0 0 0 1px rgba(255,138,61,.28);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,138,61,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,138,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 16px; }
.hero__meta { color: var(--muted); font-size: .9rem; }

.hero__shot { position: relative; perspective: 1600px; }
.window {
  border-radius: 14px; overflow: hidden; background: #0b0c0f;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08), 0 0 120px -30px rgba(255,138,61,.45);
  transform: rotateY(-9deg) rotateX(4deg) scale(.98);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.hero__shot:hover .window { transform: rotateY(-3deg) rotateX(1deg) scale(1); }
.window__bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: #f3f3f3; color: #555; font-size: 12px; }
.window__bar span { flex: 1; }
.window__bar i { width: 10px; height: 1.5px; background: #777; margin-left: 14px; }
.eq { position: absolute; right: -14px; bottom: -26px; display: flex; gap: 5px; align-items: flex-end; height: 70px; padding: 14px 16px; border-radius: 16px; background: rgba(23,25,32,.9); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.eq i { width: 7px; border-radius: 4px; background: linear-gradient(var(--orange-2), var(--orange-deep)); animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(1) { animation-delay: -.2s; } .eq i:nth-child(2) { animation-delay: -.5s; } .eq i:nth-child(3) { animation-delay: -.9s; }
.eq i:nth-child(4) { animation-delay: -.3s; } .eq i:nth-child(5) { animation-delay: -.7s; } .eq i:nth-child(6) { animation-delay: -.1s; } .eq i:nth-child(7) { animation-delay: -.6s; }
@keyframes eq { from { height: 8px; } to { height: 42px; } }

/* ---------------------------------------------------------------- números */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 800 2.2rem var(--font-display); color: var(--orange); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .94rem; }

/* ---------------------------------------------------------------- seções */
.section { padding: 110px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }
.kicker { color: var(--orange) !important; font-weight: 700; font-size: .82rem !important; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,138,61,.35), 0 20px 50px -25px rgba(255,138,61,.4); }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px; background: rgba(255,138,61,.12); box-shadow: inset 0 0 0 1px rgba(255,138,61,.25); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.showcase { display: grid; gap: 90px; }
.showcase__item { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; margin: 0; }
.showcase__item--rev { grid-template-columns: 1fr 1.4fr; }
.showcase__item--rev .frame { order: 2; }
.showcase__item figcaption p { color: var(--muted); font-size: 1.06rem; }
.showcase__item h3 { font-size: 1.7rem; }
.frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.feature h3 { display: flex; align-items: baseline; gap: .5em; }
.feature h3 span { color: var(--orange); font: 700 .8rem Consolas, monospace; }
.feature ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .94rem; }
.feature li { position: relative; padding-left: 18px; margin: .5em 0; }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--orange); border-radius: 2px; }

/* ---------------------------------------------------------------- atualizações */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__text p { color: var(--muted); font-size: 1.08rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; color: var(--orange); background: rgba(255,138,61,.12); box-shadow: inset 0 0 0 1px rgba(255,138,61,.3);
}
.update-mock { position: relative; padding: 30px; }
.update-mock__win {
  background: #5a5a5a; border-radius: 12px; padding: 24px; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.1);
  background: linear-gradient(180deg, #4c4d50, #3d3e41);
}
.update-mock__title { font: 700 1.25rem var(--font-display); margin-bottom: .2em; }
.update-mock__sub { color: #d5d7db; font-size: .9rem; }
.update-mock__notes { background: #121318; border-radius: 6px; padding: 16px; display: grid; gap: 10px; margin-bottom: 16px; }
.update-mock__notes span { height: 8px; border-radius: 4px; background: #3a3d45; }
.update-mock__notes span:nth-child(1) { width: 60%; } .update-mock__notes span:nth-child(2) { width: 85%; } .update-mock__notes span:nth-child(3) { width: 45%; }
.update-mock__bar { height: 8px; border-radius: 4px; background: #23252b; overflow: hidden; margin-bottom: 18px; }
.update-mock__bar i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--orange-2), var(--orange)); animation: load 3.2s ease-in-out infinite; }
@keyframes load { 0% { width: 4%; } 80%, 100% { width: 100%; } }
.update-mock__btns { display: flex; justify-content: flex-end; gap: 10px; }
.update-mock__btns b, .update-mock__btns em { font-style: normal; font-size: .9rem; padding: .6em 1.2em; border-radius: 6px; background: #1d1f25; }
.update-mock__btns b { color: #fff; box-shadow: inset 0 0 0 1px var(--orange); }
.update-mock__badge {
  position: absolute; left: 0; bottom: -6px; margin: 0; padding: .55em 1em; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: var(--surface-2); color: var(--orange-2); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,138,61,.3);
}

/* ---------------------------------------------------------------- download */
.download { position: relative; isolation: isolate; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 50% 40%, rgba(255,138,61,.16), transparent 70%); }
.download__card {
  max-width: 680px; margin: 0 auto; text-align: center; padding: 56px 40px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(29,32,41,.9), rgba(18,19,24,.9));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,138,61,.22);
}
.download__logo { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 20px 50px -15px rgba(255,138,61,.5); }
.download__version { color: var(--muted); }
.download__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 26px 0; }
.download__req { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.download__req li::before { content: "✓ "; color: var(--orange); font-weight: 700; }
.download__all { margin: 0; font-size: .92rem; }
.notes { text-align: left; margin: 0 0 22px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.notes summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.notes__body { padding: 0 18px 16px; color: var(--muted); white-space: pre-line; font-size: .95rem; }

/* ---------------------------------------------------------------- perguntas */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------------------------------------------------------------- rodapé */
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .92rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer__legal { display: grid; gap: 4px; text-align: center; }
.footer__group { font-size: .86rem; }
.footer__group a { color: var(--orange-2); font-weight: 600; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--muted); }

/* ---------------------------------------------------------------- termos de uso */
.download__terms { margin: -8px 0 22px; color: var(--muted); font-size: .88rem; }
.nav__menu--static { display: flex !important; align-items: center !important; position: static !important; flex-direction: row !important; padding: 0 !important; background: none !important; border: 0 !important; gap: 22px !important; }
.nav__menu--static a:not(.btn) { padding: 0 !important; border: 0 !important; }
.nav__menu--static .btn { margin: 0 !important; }
.legal { max-width: 820px; padding: 64px 0 100px; }
.legal h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin: 2.2em 0 .7em; padding-top: .4em; scroll-margin-top: 90px; }
.legal p, .legal li { color: #c3c8d1; }
.legal__updated { color: var(--orange-2) !important; font-weight: 600; }
.legal__list { margin: 0 0 1em; padding-left: 1.4em; list-style: lower-alpha; }
.legal__list li { margin: .45em 0; padding-left: .3em; }
.legal__toc { margin: 28px 0 8px; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.legal__toc p { margin: 0 0 .6em; font-weight: 700; color: var(--text) !important; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.legal__toc li { margin: 0; padding: .25em 0; break-inside: avoid; }
.legal__toc a { color: var(--muted); }
.legal__toc a:hover { color: var(--orange-2); }
.footer nav a[aria-current="page"] { color: var(--orange-2); }
@media (max-width: 760px) {
  .legal { padding-top: 40px; }
  .legal__toc ol { columns: 1; }
}

/* ---------------------------------------------------------------- apoie (doações) */
.apoie__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; }
.apoie__grid:has(> .apoie__card:only-child) { grid-template-columns: minmax(0, 420px); }
.apoie__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px 28px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s, box-shadow .3s;
}
.apoie__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,138,61,.35), 0 20px 50px -25px rgba(255,138,61,.4); }
.apoie__card h3 { margin: 0; }
.apoie__card p { color: var(--muted); margin: 0 0 14px; }
.apoie__card .btn { margin-top: auto; }
.apoie__pix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; font-size: .9rem; color: var(--muted); }
.apoie__pix code { color: var(--text); background: var(--bg-2); padding: .3em .6em; border-radius: 8px; word-break: break-all; }
.apoie__thanks { text-align: center; color: var(--muted); margin: 40px 0 0; }
@media (max-width: 760px) { .apoie__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- comunidade (chamada na página inicial) */
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.comunidade-teaser .card { padding: 22px; }
.comunidade-teaser .card__icon { margin-bottom: 12px; }
@media (max-width: 760px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cards--2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- animação ao rolar */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1020px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .window { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .showcase__item, .showcase__item--rev { grid-template-columns: 1fr; gap: 28px; }
  .showcase__item--rev .frame { order: 0; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 20px; background: rgba(13,14,17,.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards, .features { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .eq { display: none; }
  .download__card { padding: 40px 22px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

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