/* ============================================================
   CartolaMan Landing — styles
   Dark premium + orange glow. Cman palette.
   ============================================================ */

:root {
  --orange:       #EA5C1F;
  --orange-soft:  #FF7A3D;
  --orange-deep:  #8A3413;
  --cream:        #FFE3D6;
  --bg:           #15171F;
  --surface:      #212431;
  --surface-2:    #2D3140;
  --text:         #F4F5F7;
  --text-dim:     #A6AAB8;
  --live:         #FF3B30;

  --radius:       20px;
  --radius-lg:    28px;
  --maxw:         1180px;

  --shadow-glow:  0 0 60px -10px rgba(234, 92, 31, .55);
  --shadow-card:  0 24px 60px -24px rgba(0, 0, 0, .7);

  --ease:         cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* offset pro nav fixo não cobrir o alvo das âncoras */
.features, .gallery, .faq, .cta-final, #download { scroll-margin-top: 84px; }

body {
  font-family: 'Onest', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(234, 92, 31, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(138, 52, 19, .14), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }

.grad {
  background: linear-gradient(120deg, var(--orange-soft), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ====================== NAV ====================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(21, 23, 31, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand-accent { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: #fff !important;
  background: linear-gradient(120deg, var(--orange-soft), var(--orange));
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(234, 92, 31, .9);
}
.nav-cta:hover { filter: brightness(1.06); }

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

/* ====================== HERO ====================== */
.hero { position: relative; overflow: hidden; padding: 70px 22px 90px; }
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: glowBreathe 9s var(--ease) infinite alternate;
}
.hero-glow-1 { width: 520px; height: 520px; background: rgba(234, 92, 31, .35); top: -120px; right: -80px; }
.hero-glow-2 { width: 420px; height: 420px; background: rgba(138, 52, 19, .4); bottom: -160px; left: -120px; animation-delay: -4s; }
@keyframes glowBreathe { from { opacity: .55; transform: scale(.92); } to { opacity: .9; transform: scale(1.06); } }

.grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black, transparent 75%);
}

.hero-copy { position: relative; z-index: 2; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--cream);
  background: rgba(234, 92, 31, .12);
  border: 1px solid rgba(234, 92, 31, .35);
  padding: 7px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, .7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 900;
  margin: 18px 0 16px;
}
.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 28px;
}

/* store buttons */
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-buttons.center { justify-content: center; }
.btn-store {
  --mx: 50%; --my: 50%;
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.btn-store::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(160px circle at var(--mx) var(--my), rgba(234, 92, 31, .35), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.btn-store:hover {
  transform: translateY(-3px);
  border-color: rgba(234, 92, 31, .55);
  box-shadow: 0 16px 40px -18px rgba(234, 92, 31, .8);
}
.btn-store:hover::before { opacity: 1; }
.btn-store svg { position: relative; z-index: 1; }
.bs-text { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.bs-text small { font-size: 11px; color: var(--text-dim); }
.bs-text strong { font-size: 17px; font-weight: 700; }

.trust { margin-top: 16px; font-size: 13.5px; color: var(--text-dim); }

/* ---- phone mockup ---- */
.hero-mock { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; }
.mock-glow {
  position: absolute; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(234, 92, 31, .5), transparent 65%);
  filter: blur(40px); z-index: 0;
}
.phone {
  position: relative;
  width: 300px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #34384a, #1a1c26);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  z-index: 1;
}
.phone img { border-radius: 32px; width: 100%; height: auto; }
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #0c0d12; border-radius: 0 0 14px 14px; z-index: 2;
}
.tilt { transition: transform .15s var(--ease); transform-style: preserve-3d; will-change: transform; }
.hero-mock { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 10px 14px; border-radius: 14px;
  color: var(--text);
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { color: var(--orange-soft); }
.fc-1 { top: 16%; left: -6%; animation-delay: -1s; }
.fc-2 { bottom: 14%; right: -10%; animation-delay: -3s; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d058; box-shadow: 0 0 8px #34d058; }
.fc-ico { font-size: 14px; }

/* ====================== shared section ====================== */
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-soft); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

.glass {
  background: linear-gradient(160deg, rgba(45, 49, 64, .7), rgba(33, 36, 49, .5));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);
}

/* ====================== FEATURES ====================== */
.features { max-width: var(--maxw); margin: 0 auto; padding: 90px 22px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(234, 92, 31, .4); }
.feat-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(150deg, var(--orange-soft), var(--orange-deep));
  box-shadow: 0 10px 26px -12px rgba(234, 92, 31, .9);
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }

/* ====================== GALLERY ====================== */
.gallery { padding: 60px 0 90px; }
.gallery-track {
  display: flex; gap: 26px;
  overflow-x: auto;
  padding: 24px max(22px, calc((100vw - var(--maxw)) / 2 + 22px));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.phone-sm {
  flex: 0 0 auto;
  width: 232px; padding: 9px; border-radius: 34px;
  scroll-snap-align: center;
  transition: transform .35s var(--ease);
}
.phone-sm img { border-radius: 26px; }
.phone-sm:hover { transform: translateY(-10px) scale(1.02); }

/* ====================== FAQ ====================== */
.faq { max-width: 760px; margin: 0 auto; padding: 70px 22px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(45, 49, 64, .4);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer;
  color: var(--text);
  font-family: inherit; font-size: 16.5px; font-weight: 600; text-align: left;
  padding: 20px 22px;
}
.faq-chevron {
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(-135deg); }
.faq-q[aria-expanded="true"] { color: var(--orange-soft); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-a p { padding: 0 22px 20px; color: var(--text-dim); font-size: 15px; }

/* ====================== CTA FINAL ====================== */
.cta-final { padding: 40px 22px 100px; }
.cta-panel {
  position: relative; overflow: hidden;
  max-width: 880px; margin: 0 auto; text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(234, 92, 31, .25);
}
.cta-glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(234, 92, 31, .4), transparent 65%);
  filter: blur(50px); z-index: 0;
}
.cta-panel > *:not(.cta-glow) { position: relative; z-index: 1; }
.cta-panel h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.cta-panel p { color: var(--text-dim); font-size: 17px; margin-bottom: 28px; }

/* ====================== FOOTER ====================== */
.footer { border-top: 1px solid rgba(255, 255, 255, .07); padding: 50px 22px 36px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { border-radius: 11px; }
.footer-tag { color: var(--text-dim); font-size: 13.5px; margin-top: 2px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-weight: 600; font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--orange-soft); }
.footer-legal {
  max-width: var(--maxw); margin: 30px auto 0;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .05);
}
.footer-legal p { color: #6b6f7d; font-size: 12.5px; line-height: 1.6; }

/* ====================== reveal animation ====================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .store-buttons { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 60px 0 auto 0;
    flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(21, 23, 31, .97);
    backdrop-filter: blur(16px);
    padding: 16px 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
  }
  .nav-links a { padding: 12px 6px; font-size: 16px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 48px 20px 70px; }
  .float-card { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

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