/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #6C63FF;
  --brand-dk: #5549E0;
  --accent:   #00C9A7;
  --text:     #1A1A2E;
  --text-2:   #5A5A7A;
  --bg:       #F6F7FF;
  --white:    #FFFFFF;
  --shadow:   0 8px 32px rgba(108,99,255,.14);
  --radius:   18px;
  --nav-h:    72px;

  /* Block palette */
  --c-green:  #5BD36E;
  --c-greend: #3AAF50;
  --c-purple: #A78BFA;
  --c-purpled:#8B68F0;
  --c-blue:   #60B8F8;
  --c-blued:  #3D99E0;
  --c-yellow: #FFD055;
  --c-yellowd:#E8B030;
  --c-orange: #FF8C42;
  --c-oranged:#E06A20;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
@keyframes floatStar {
  0%,100% { transform: translateY(0) scale(1); opacity:.7; }
  50%      { transform: translateY(-10px) scale(1.15); opacity:1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== 3D DECORATIVE BLOCKS ===== */
.deco-cluster {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.deco-block {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  position: relative;
}
/* 3D effect via layered box-shadows */
.deco-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.45) 0%, transparent 60%);
}

.deco-cluster--green  .deco-block { background: var(--c-green);  box-shadow: 0 6px 0 var(--c-greend),  0 12px 20px rgba(0,0,0,.18); --rot:-8deg; }
.deco-cluster--purple .deco-block { background: var(--c-purple); box-shadow: 0 6px 0 var(--c-purpled), 0 12px 20px rgba(0,0,0,.18); --rot: 6deg; }
.deco-cluster--blue   .deco-block { background: var(--c-blue);   box-shadow: 0 6px 0 var(--c-blued),   0 12px 20px rgba(0,0,0,.18); --rot:12deg; }
.deco-cluster--yellow .deco-block { background: var(--c-yellow); box-shadow: 0 6px 0 var(--c-yellowd), 0 12px 20px rgba(0,0,0,.18); --rot:-5deg; }
.deco-cluster--orange .deco-block { background: var(--c-orange); box-shadow: 0 6px 0 var(--c-oranged), 0 12px 20px rgba(0,0,0,.18); --rot: 9deg; }

.deco-cluster--green  { --delay:.3s; }
.deco-cluster--purple { --delay:1.1s; }
.deco-cluster--blue   { --delay:2.0s; }
.deco-cluster--yellow { --delay:.7s; }
.deco-cluster--orange { --delay:1.6s; }

/* Glass block */
.deco-glass {
  position: absolute;
  border-radius: 12px;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(108,99,255,.08);
  animation: float 7s ease-in-out infinite;
  animation-delay: var(--gd, 0s);
}

/* Star sparkle */
.deco-star {
  position: absolute;
  color: #fff;
  font-style: normal;
  animation: floatStar 4s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(108,99,255,.4);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(108,99,255,.09);
  box-shadow: 0 2px 16px rgba(108,99,255,.06);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ===== LOGO ===== */
.logo { display: flex; align-items: center; gap: .65rem; }

.logo__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}
.logo__img--lg {
  width: 160px;
  height: 160px;
}
.logo__text--lg {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__line {
  font-size: 3.2rem;
  display: block;
}
.logo__line--sub {
  font-size: 2.3rem;
}

.logo__text { font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.logo--light .logo__text { color: #fff; }

/* ===== NAV ===== */
.nav { display: flex; gap: 2rem; }

.nav__link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color .2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width .25s;
}
.nav__link:hover, .nav__link.active { color: var(--brand); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Nav CTA highlight */
.nav__link--cta {
  background: var(--brand);
  color: #fff !important;
  padding: .35rem .9rem;
  border-radius: 50px;
  font-weight: 700;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--brand-dk); opacity: .9; }

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.btn:hover  { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(108,99,255,.35); }
.btn:active { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-dk)); color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(160deg, #C5DEFF 0%, #D8EDFF 35%, #E5F4FF 60%, #E8FAF2 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

/* Subtle wavy divider at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero__decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.highlight { color: var(--brand); }

.hero__sub {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
  max-width: 430px;
}

/* Hero store buttons */
.hero__stores {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.hero__stores-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.store-btns--hero {
  gap: .75rem;
}
.store-btn--sm {
  min-width: 160px;
  padding: .7rem 1.2rem;
  border-radius: 12px;
  border: 2px solid rgba(108,99,255,.2);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  color: var(--text);
}
.store-btn--sm:hover {
  background: rgba(255,255,255,.95);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(108,99,255,.18);
}
.store-btn--sm.store-btn--android { border-color: rgba(80,180,80,.3); }
.store-btn--sm.store-btn--android .store-btn__icon { color: #3DAA2A; }
.store-btn--sm.store-btn--ios     { border-color: rgba(108,99,255,.3); }
.store-btn--sm.store-btn--ios     .store-btn__icon { color: #555; }
.store-btn--sm .store-btn__sub  { color: var(--text-2); }
.store-btn--sm .store-btn__name { color: var(--text); font-size: 1rem; }

/* ===== PHONE MOCKUP ===== */
.hero__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: 272px;
  background: #18182A;
  border-radius: 40px;
  padding: 14px 12px 18px;
  box-shadow:
    0 40px 100px rgba(0,0,0,.30),
    0 0 0 1.5px rgba(255,255,255,.10),
    inset 0 0 0 1px rgba(255,255,255,.05);
  transform: rotate(3deg);
  position: relative;
}

.phone__notch {
  width: 80px; height: 8px;
  border-radius: 4px;
  background: #111;
  margin: 0 auto 10px;
}

.phone__screen {
  background: #0C0C1E;
  border-radius: 28px;
  overflow: hidden;
  padding: 12px 10px 10px;
}

.phone__topbar { margin-bottom: 10px; }

.phone__app-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.phone__home-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.phone__app-name { color: #fff; font-size: .72rem; font-weight: 700; }
.phone__badge {
  background: rgba(108,99,255,.35);
  color: #C5C0FF;
  font-size: .55rem;
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 600;
}

.phone__score-row {
  display: flex;
  gap: 1rem;
  padding: 0 2px;
}
.score-label { color: #666; font-size: .52rem; text-transform: uppercase; letter-spacing: .05em; }
.score-val   { color: #fff; font-size: .9rem; font-weight: 900; }
.score-val--gold { color: #FFD055; }

.board { padding: 2px 0; }
.board__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
}
.board__cell {
  aspect-ratio: 1;
  border-radius: 3px;
}

.phone__pieces {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 6px 2px 2px;
  min-height: 36px;
}

/* ===== SECTION BASE ===== */
.section { padding: 6rem 0; }

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: .75rem;
}
.section__sub {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===== SOBRE ===== */
.sobre {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.sobre__decor { position: absolute; inset: 0; pointer-events: none; }

/* ===== CREATORS ===== */
.creators {
  background: linear-gradient(135deg, #EEF2FF, #F0F8FF);
  border-radius: var(--radius);
  border-left: 5px solid var(--brand);
  padding: 2.2rem 2.5rem;
  margin-bottom: 3rem;
  max-width: 780px;
}

.creators__title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 1.2rem;
}

.creators p {
  color: var(--text-2);
  font-size: .97rem;
  margin-bottom: .9rem;
  line-height: 1.7;
}
.creators p:last-of-type { margin-bottom: 0; }

.creators__tagline {
  font-weight: 700;
  color: var(--text) !important;
  font-style: italic;
  border-top: 1px solid rgba(108,99,255,.15);
  padding-top: .9rem;
  margin-top: .5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1.5px solid rgba(108,99,255,.07);
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card__icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon--blue   { background: #EEF2FF; color: #6C63FF; }
.card__icon--green  { background: #E8F8EC; color: #2E8B57; }
.card__icon--purple { background: #F3EDFF; color: #7C3AED; }
.card__icon--orange { background: #FFF4ED; color: #D9460A; }

.card__title { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; }
.card__text  { font-size: .9rem; color: var(--text-2); }

/* ===== JOGO ===== */
.jogo {
  background: linear-gradient(160deg, #F0F4FF 0%, #EAF4FF 60%, #F0FFFA 100%);
  position: relative;
  overflow: hidden;
}
.jogo__decor { position: absolute; inset: 0; pointer-events: none; }

.jogo__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
}

.feature-list { margin-bottom: 2.2rem; }

.feature-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .55rem 0;
  font-size: .97rem;
  color: var(--text-2);
  font-weight: 500;
}

.check-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ===== APP LOGO ===== */
.jogo__logo-wrap { position: relative; }

.app-logo {
  background: var(--white);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: 0 12px 48px rgba(108,99,255,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 240px;
}

.app-logo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.app-logo__block {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--c);
  box-shadow: 0 5px 0 var(--cd), 0 8px 16px rgba(0,0,0,.15);
  position: relative;
  transition: transform .25s;
}
.app-logo__block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.4) 0%, transparent 55%);
}
.app-logo__block:hover { transform: translateY(-4px) scale(1.05); }

.app-logo__block--center {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  z-index: 1;
}

.app-logo__name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.02em;
}

/* ===== DOWNLOAD ===== */
.download {
  background: linear-gradient(135deg, #1A1A2E, #2A1A5E);
  color: #fff;
}
.download .section__title { color: #fff; }
.download .section__sub   { color: rgba(255,255,255,.65); }

.download__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.store-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.6rem;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .2s, transform .2s, box-shadow .2s;
  backdrop-filter: blur(8px);
  min-width: 190px;
}
.store-btn:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

.store-btn--android { border-color: rgba(100,220,100,.35); }
.store-btn--android:hover { background: rgba(100,220,100,.12); }

.store-btn--ios { border-color: rgba(200,200,255,.35); }
.store-btn--ios:hover { background: rgba(200,200,255,.12); }

.store-btn__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.store-btn--android .store-btn__icon { color: #78D64B; }
.store-btn--ios     .store-btn__icon { color: #C8C8FF; }

.store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-btn__sub  { font-size: .72rem; opacity: .65; }
.store-btn__name { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }

.download__deco {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: .7;
}

/* ===== RECURSOS ===== */
.recursos { background: var(--white); }

.recursos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.recurso-card {
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1.5px solid transparent;
  transition: transform .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}
.recurso-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
}
.recurso-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.recurso-card--blue   { background: #EEF2FF; }
.recurso-card--blue::before   { background: var(--brand); }
.recurso-card--green  { background: #E8F8EC; }
.recurso-card--green::before  { background: var(--c-green); }
.recurso-card--purple { background: #F3EDFF; }
.recurso-card--purple::before { background: var(--c-purple); }
.recurso-card--orange { background: #FFF4ED; }
.recurso-card--orange::before { background: var(--c-orange); }

.recurso-card__num {
  font-size: 2.2rem;
  font-weight: 900;
  opacity: .18;
  margin-bottom: .4rem;
  line-height: 1;
}
.recurso-card--blue   .recurso-card__num { color: var(--brand); }
.recurso-card--green  .recurso-card__num { color: #2E8B57; }
.recurso-card--purple .recurso-card__num { color: #7C3AED; }
.recurso-card--orange .recurso-card__num { color: #D9460A; }

.recurso-card__title { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; }
.recurso-card__text  { font-size: .9rem; color: var(--text-2); }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(160deg, #12122A, #1E1E3A);
  color: rgba(255,255,255,.8);
  padding-top: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer__tagline { margin-top: .8rem; font-size: .9rem; opacity: .55; }

.footer__heading {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}

.footer__link {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  margin-bottom: .55rem;
  transition: color .2s;
}
.footer__link:hover { color: var(--brand); }

.footer__link--icon {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p { font-size: .85rem; opacity: .4; }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links .footer__link { font-size: .85rem; margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub   { margin-inline: auto; }
  .hero__mockup { display: none; }
  .cards          { grid-template-columns: repeat(2, 1fr); }
  .jogo__inner    { grid-template-columns: 1fr; }
  .jogo__logo-wrap { margin-inline: auto; }
  .download__inner { grid-template-columns: 1fr; }
  .download__badges { display: none; }
  .recursos__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
  .footer__brand  { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .nav { display: none; flex-direction: column; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(108,99,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 100;
  }
  .nav-toggle { display: flex; }
  .cards          { grid-template-columns: 1fr; }
  .recursos__grid { grid-template-columns: 1fr; }
  .footer__inner  { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .deco-cluster   { display: none; }
  .deco-glass     { display: none; }
}
