/* ==========================================================================
   AppGrove — appgroveo.com
   Visual DNA "Atlântico": teal-charcoal profundo + acento coral, tipografia
   Space Grotesk / Fraunces, assinatura "maré" (linha ondulada coral).
   BEM. Sem bibliotecas externas de CSS.
   ========================================================================== */

:root {
  --bg:        #0E1A1F;
  --surface:   #13242B;
  --surface-2: #172C34;
  --raise:     #1C343D;
  --text:      #EAF2F0;
  --muted:     #8FA3A6;
  --faint:     #6A7E82;
  --accent:    #FF6B5C;
  --accent-2:  #FF8578;
  --accent-ink:#160B08;
  --star:      #F4B740;
  --border:    #21343B;
  --border-2:  #2C424A;

  --container: 1200px;
  --pad-x: clamp(18px, 5vw, 56px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-logo: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --shadow-1: 0 1px 0 rgba(255,255,255,.03), 0 12px 30px -18px rgba(0,0,0,.7);
  --shadow-2: 0 30px 70px -40px rgba(0,0,0,.85);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------ base ------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tint { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.section--panel { background: var(--surface); }

/* ---------- eyebrow / heading system (signature numbering by content) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.section__head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 60px); }
.section__title { font-size: clamp(28px, 4.6vw, 48px); margin-top: 18px; }
.section__lead { color: var(--muted); margin-top: 16px; font-size: 18px; }

.accent { color: var(--accent); }
.serif { font-family: var(--font-logo); font-style: italic; font-weight: 500; }

/* signature wave divider */
.tide { display: block; width: 100%; height: 26px; color: var(--accent); opacity: .5; }
.tide svg { display: block; width: 100%; height: 100%; }

/* ------------------------------ buttons ------------------------------ */
.btn {
  --_bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -14px rgba(255,107,92,.7); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ------------------------------ header ------------------------------ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.has-scroll { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.logo { font-family: var(--font-logo); font-weight: 600; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); display: inline-flex; align-items: baseline; }
.logo b { font-weight: 600; color: var(--accent); }
.logo__dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.header__cta { margin-left: 8px; }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border-2); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* ------------------------------ hero ------------------------------ */
.hero { position: relative; padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before { content: ""; position: absolute; width: 780px; height: 780px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,107,92,.20), transparent 62%); }
.hero__bg::after { content: ""; position: absolute; width: 620px; height: 620px; left: -240px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(58,150,150,.16), transparent 60%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(38px, 6.4vw, 74px); letter-spacing: -.03em; }
.hero__title .serif { display: inline; }
.hero__sub { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 40ch; margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust-item { }
.hero__trust-num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text); }
.hero__trust-label { font-size: 13px; color: var(--faint); letter-spacing: .02em; }

/* hero showcase — grove of real icons */
.showcase { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.showcase__tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface-2); box-shadow: var(--shadow-2); aspect-ratio: 1;
  transition: transform .35s var(--ease), border-color .35s;
}
.showcase__tile img { width: 100%; height: 100%; object-fit: cover; }
.showcase__tile:nth-child(1){ transform: translateY(-14px); }
.showcase__tile:nth-child(3){ transform: translateY(18px); }
.showcase__tile:nth-child(4){ transform: translateY(-20px); }
.showcase__tile:nth-child(6){ transform: translateY(14px); }
.showcase__tile:hover { transform: translateY(-6px) scale(1.02); border-color: var(--accent); }
.showcase__badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(4px);
  border: 1px solid var(--border-2); color: var(--text);
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px;
}

/* ------------------------------ marquee (logos-lite) ------------------------------ */
.strip { border-block: 1px solid var(--border); background: var(--surface); }
.strip__row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; padding-block: 22px; }
.strip__item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-family: var(--font-display); letter-spacing: .02em; }
.strip__item svg { width: 18px; height: 18px; color: var(--accent); }

/* ------------------------------ games ------------------------------ */
.games__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow-2); }
.card__top { display: flex; gap: 15px; align-items: center; }
.card__icon { width: 66px; height: 66px; border-radius: 16px; border: 1px solid var(--border-2); flex: none; box-shadow: var(--shadow-1); }
.card__id { min-width: 0; }
.card__title { font-size: 19px; }
.card__dev { color: var(--faint); font-size: 13.5px; margin-top: 3px; }
.card__genre {
  align-self: flex-start; margin-top: 16px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-2); background: rgba(255,107,92,.10); border: 1px solid rgba(255,107,92,.25);
  padding: 4px 11px; border-radius: 999px;
}
.card__desc { color: var(--muted); font-size: 15px; margin-top: 14px; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.card .btn { padding: 10px 16px; font-size: 14px; }

/* rating stars */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.stars { position: relative; display: inline-block; width: 92px; height: 16px; }
.stars__bg, .stars__fill { position: absolute; inset: 0; display: flex; gap: 2px; color: var(--border-2); }
.stars__fill { color: var(--star); overflow: hidden; white-space: nowrap; }
.stars svg { width: 16px; height: 16px; flex: none; }
.rating__num { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text); }

/* ------------------------------ stats ------------------------------ */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 26px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.stat__num { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.03em; }
.stat__num b { color: var(--accent); font-weight: 600; }
.stat__label { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ------------------------------ demo / em ação ------------------------------ */
.demo__frame { position: relative; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); }
.demo__wide { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.demo__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.demo__thumb { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.demo__thumb img { width: 100%; height: 100%; object-fit: cover; }
.demo__phone { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.demo__phone-item { flex: 1 1 0; min-width: 130px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.demo__phone-item img { width: 100%; height: auto; }

/* ------------------------------ transparency / como ganhamos ------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.money__list { margin-top: 24px; display: grid; gap: 16px; }
.money__item { display: flex; gap: 14px; }
.money__item svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.money__item b { font-family: var(--font-display); }
.money__item span { color: var(--muted); }
.money__visual { position: relative; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-2); }
.money__visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; filter: saturate(1.05); }
.money__tagline { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(0deg, rgba(14,26,31,.92), transparent); font-family: var(--font-display); }

/* ------------------------------ features / porquê confiar ------------------------------ */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.feature__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,107,92,.12); border: 1px solid rgba(255,107,92,.25); color: var(--accent); margin-bottom: 18px; }
.feature__ico svg { width: 24px; height: 24px; }
.feature__title { font-size: 19px; }
.feature__text { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ------------------------------ reviews ------------------------------ */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { padding: 26px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; }
.review__quote { font-size: 16.5px; margin-top: 16px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.review__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.review__role { color: var(--faint); font-size: 13px; }

/* ------------------------------ newsletter / form ------------------------------ */
.cta { position: relative; overflow: hidden; border: 1px solid var(--border-2); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 100% 0%, rgba(255,107,92,.14), transparent 55%), var(--surface); padding: clamp(30px, 5vw, 60px); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; color: var(--muted); font-family: var(--font-display); letter-spacing: .01em; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--border-2); color: var(--text); font: inherit;
  transition: border-color .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { border-color: var(--accent); outline: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.form__success { display: none; align-items: center; gap: 12px; padding: 15px 17px; border-radius: var(--r-md); background: rgba(70,190,150,.10); border: 1px solid rgba(70,190,150,.35); color: #BFEBD8; font-size: 15px; }
.form__success.is-visible { display: flex; }
.form__success svg { width: 22px; height: 22px; color: #5FD3A6; flex: none; }
.form__note { font-size: 12.5px; color: var(--faint); }

/* ------------------------------ faq ------------------------------ */
.faq__list { display: grid; gap: 12px; max-width: 820px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.faq__q svg { width: 20px; height: 20px; color: var(--accent); flex: none; transition: transform .3s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a-inner { padding: 0 22px 22px; color: var(--muted); }

/* ------------------------------ footer ------------------------------ */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: clamp(48px, 6vw, 72px) 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__about { max-width: 34ch; color: var(--muted); font-size: 15px; margin-top: 16px; }
.footer__col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; color: var(--muted); font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13.5px; }
.footer__mail { color: var(--accent-2); }

/* ------------------------------ back to top ------------------------------ */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(255,107,92,.7); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop svg { width: 22px; height: 22px; }

/* ------------------------------ cookie banner ------------------------------ */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 640px; margin-inline: auto; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 20px 22px; display: none; }
.cookie.is-visible { display: block; }
.cookie__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie__text { color: var(--muted); font-size: 14px; flex: 1; min-width: 220px; }
.cookie__text a { color: var(--accent-2); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; }
.cookie .btn { padding: 10px 18px; font-size: 14px; }

/* ------------------------------ legal pages ------------------------------ */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal__head { max-width: 760px; }
.legal__updated { color: var(--faint); font-size: 14px; margin-top: 10px; }
.legal__body { max-width: 760px; margin-top: 40px; color: var(--muted); }
.legal__body h2 { color: var(--text); font-size: 24px; margin-top: 44px; margin-bottom: 14px; }
.legal__body h3 { color: var(--text); font-size: 18px; margin-top: 26px; margin-bottom: 10px; }
.legal__body p { margin-bottom: 14px; }
.legal__body ul { margin-bottom: 14px; display: grid; gap: 8px; }
.legal__body li { padding-left: 22px; position: relative; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal__body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--accent-2); font-family: var(--font-display); font-weight: 600; }
.back-home svg { width: 18px; height: 18px; }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .showcase { max-width: 420px; }
  .split, .cta__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .games__grid, .features__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .demo__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .header__cta { display: none; }
  .nav.is-open {
    display: flex; position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px var(--pad-x) 26px; z-index: 59;
  }
  .nav.is-open .nav__link { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--border); }
  .burger { display: inline-flex; }
  .games__grid, .features__grid, .reviews__grid { grid-template-columns: 1fr; }
  .demo__row { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  body { font-size: 16px; }
}
@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 20px; }
}
