/* ============================================================
   MAVEX — Página inicial (home)
   Estética: Editorial Moderno Escuro + dourado
   ============================================================ */

:root{
  --color-bg:        #121212;
  --color-bg-deep:   #0C0C0C;
  --color-surface:   #1A1A1A;
  --color-surface-2: #202020;
  --color-line:      rgba(201,162,39,0.18);
  --color-text:      #F4F1EA;
  --color-text-muted:#9A9286;
  --color-accent:    #C9A227;
  --color-accent-2:  #E6C765;

  --font-display: 'Archivo', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --maxw: 1140px;
  --radius: 6px;
  --ease-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  font-family:var(--font-body);
  color:var(--color-text);
  background:var(--color-bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  position:relative;
}

body::before{
  content:''; position:fixed; inset:0; z-index:-2;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(201,162,39,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(201,162,39,0.07) 0%, transparent 55%),
    var(--color-bg);
}
body::after{
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:0.035;
}
.watermark{
  position:fixed; right:-10%; top:30%;
  width:min(60vw, 560px); opacity:0.04;
  pointer-events:none; z-index:-1;
}

.accent{ color:var(--color-accent); }

/* ============================== TIPOGRAFIA BASE ============================== */
h1,h2,h3{ font-family:var(--font-display); letter-spacing:-0.03em; line-height:1.05; }
.eyebrow{
  font-family:var(--font-display); font-weight:600;
  font-size:0.78rem; letter-spacing:0.28em; text-transform:uppercase;
  color:var(--color-accent); margin-bottom:1rem;
}

/* ============================== BOTÕES ============================== */
.btn{
  font-family:var(--font-display); font-weight:700;
  letter-spacing:0.06em; text-transform:uppercase; font-size:0.82rem;
  padding:0.95rem 2rem; border-radius:var(--radius);
  cursor:pointer; border:2px solid transparent; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary{
  background:var(--color-accent); color:#171204; border-color:var(--color-accent);
  box-shadow:4px 4px 0 rgba(201,162,39,0.28);
}
.btn-primary:hover{ transform:translate(-2px,-2px); box-shadow:6px 6px 0 rgba(201,162,39,0.4); }
.btn-primary:active{ transform:translate(0,0); box-shadow:2px 2px 0 rgba(201,162,39,0.4); }
.btn-ghost{ background:transparent; color:var(--color-text); border-color:var(--color-line); }
.btn-ghost:hover{ border-color:var(--color-accent); color:var(--color-accent-2); }
.btn-sm{ padding:0.65rem 1.3rem; font-size:0.74rem; }
.btn-lg{ padding:1.15rem 2.8rem; font-size:0.95rem; }
.btn-block{ width:100%; margin-top:auto; }

/* ============================== NAV ============================== */
.nav{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:1.5rem;
  padding:1rem clamp(1.2rem,5vw,3rem);
  background:linear-gradient(180deg, rgba(18,18,18,0.95), rgba(18,18,18,0.6));
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--color-line);
}
.brand{ display:flex; align-items:center; gap:0.7rem; text-decoration:none; }
.brand img{ width:40px; height:40px; border-radius:50%; }
.wordmark{
  font-family:var(--font-display); font-weight:800;
  letter-spacing:0.22em; font-size:1rem; text-transform:uppercase; color:var(--color-text);
}
.wordmark span{ color:var(--color-accent); }
.nav-links{ display:flex; gap:1.6rem; margin-left:auto; }
.nav-links a{
  color:var(--color-text-muted); text-decoration:none; font-size:0.9rem; font-weight:500;
  background:linear-gradient(var(--color-accent),var(--color-accent)) no-repeat;
  background-size:0% 1.5px; background-position:left bottom; transition:background-size 0.3s ease, color 0.2s ease;
  padding-bottom:2px;
}
.nav-links a:hover{ color:var(--color-text); background-size:100% 1.5px; }
.nav .btn{ margin-left:0; }
@media(max-width:860px){
  .nav-links{ display:none; }
  .nav .btn-sm{ margin-left:auto; }
}

/* ============================== HERO ============================== */
.hero{
  max-width:var(--maxw); margin:0 auto;
  padding:clamp(4rem,12vh,8rem) clamp(1.2rem,5vw,3rem) clamp(3rem,8vh,6rem);
}
.hero-inner{ max-width:760px; }
.hero h1{
  font-weight:900; font-size:clamp(2.8rem,8vw,5.6rem);
  margin-bottom:1.5rem;
}
.hero-lead{ font-size:clamp(1.1rem,2.2vw,1.35rem); color:var(--color-text-muted); max-width:60ch; margin-bottom:2.4rem; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:2.2rem; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:1.5rem; font-size:0.88rem; color:var(--color-text-muted); }
.hero-badges span{ white-space:nowrap; }

/* ============================== SEÇÕES ============================== */
.section{ max-width:var(--maxw); margin:0 auto; padding:clamp(4rem,10vh,7rem) clamp(1.2rem,5vw,3rem); }
.section-alt{ max-width:none; background:linear-gradient(180deg, transparent, rgba(201,162,39,0.04), transparent); }
.section-alt > *{ max-width:var(--maxw); margin-left:auto; margin-right:auto; }
.section-head{ max-width:640px; margin-bottom:3rem; }
.section-head h2{ font-weight:800; font-size:clamp(2rem,5vw,3.2rem); margin-bottom:1rem; }
.section-sub{ color:var(--color-text-muted); font-size:1.05rem; }

/* ============================== EDUCATIVO ============================== */
.explain-grid{
  display:grid; gap:1.4rem;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
}
.explain-card{
  background:var(--color-surface); border:1px solid var(--color-line);
  border-radius:var(--radius); padding:2rem 1.6rem 1.8rem; position:relative;
  transition:transform 0.3s var(--ease-soft), border-color 0.3s ease;
}
.explain-card:hover{ transform:translateY(-6px); border-color:var(--color-accent); }
.explain-num{
  font-family:var(--font-display); font-weight:800; font-size:2.4rem;
  color:transparent; -webkit-text-stroke:1.5px rgba(201,162,39,0.4);
  display:block; line-height:1; margin-bottom:0.6rem;
}
.explain-card h3{ font-weight:700; font-size:1.35rem; margin-bottom:0.7rem; }
.explain-card p{ font-size:0.95rem; color:var(--color-text-muted); margin-bottom:0.7rem; }
.explain-card p b{ color:var(--color-text); font-weight:600; }
.explain-ideal{ font-size:0.85rem !important; color:var(--color-accent-2) !important; margin-bottom:0 !important; }
.explain-note{ margin-top:2.4rem; text-align:center; color:var(--color-text-muted); }
.explain-note a{ color:var(--color-accent); font-weight:600; }

/* ============================== PREÇOS ============================== */
.price-grid{
  display:grid; gap:1.4rem;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
}
.price-card{
  display:flex; flex-direction:column;
  background:var(--color-surface); border:1px solid var(--color-line);
  border-radius:var(--radius); padding:2rem 1.6rem; position:relative; overflow:hidden;
  transition:transform 0.3s var(--ease-soft), border-color 0.3s ease, box-shadow 0.3s ease;
}
.price-card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform:scaleX(0); transform-origin:left; transition:transform 0.4s ease;
}
.price-card:hover{ transform:translateY(-6px); border-color:var(--color-accent); box-shadow:0 24px 48px rgba(0,0,0,0.35); }
.price-card:hover::before{ transform:scaleX(1); }
.price-card.is-featured{ border-color:var(--color-accent); }
.price-card.is-featured::before{ transform:scaleX(1); }
.price-tag{
  position:absolute; top:1rem; right:1rem;
  font-family:var(--font-display); font-size:0.66rem; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase;
  color:#171204; background:var(--color-accent); padding:0.3rem 0.7rem; border-radius:99px;
}
.price-icon{
  width:52px; height:52px; border-radius:var(--radius);
  display:grid; place-items:center; margin-bottom:1.2rem;
  border:1px solid var(--color-line); color:var(--color-accent);
  background:linear-gradient(135deg, rgba(201,162,39,0.12), transparent);
}
.price-icon svg{ width:26px; height:26px; stroke:currentColor; }
.price-card h3{ font-weight:700; font-size:1.3rem; margin-bottom:0.7rem; }
.price-desc{ font-size:0.92rem; color:var(--color-text-muted); margin-bottom:1.4rem; }
.price-value{ margin-bottom:1.6rem; }
.price-value span{ display:block; font-size:0.78rem; color:var(--color-text-muted); letter-spacing:0.04em; }
.price-value strong{ font-family:var(--font-display); font-weight:800; font-size:2rem; color:var(--color-text); }

/* card largo (projetos personalizados) */
.price-card-wide{ grid-column:1 / -1; }
@media(min-width:760px){
  .price-card-wide{
    display:grid; align-items:center; gap:1.5rem;
    grid-template-columns:auto 1fr auto auto;
  }
  .price-card-wide .price-icon{ margin-bottom:0; }
  .price-card-wide .price-value{ margin-bottom:0; text-align:right; }
  .price-card-wide .btn-block{ width:auto; margin-top:0; }
}

/* ============================== INDICAÇÃO ============================== */
.referral{ border:1px solid var(--color-line); border-radius:var(--radius); overflow:hidden; }
.referral-row{
  display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:1rem; align-items:center;
  padding:1rem 1.4rem; border-bottom:1px solid var(--color-line); font-size:0.95rem;
}
.referral-row:last-child{ border-bottom:none; }
.referral-row strong{ font-family:var(--font-display); color:var(--color-accent-2); font-weight:700; }
.referral-head{
  background:rgba(201,162,39,0.08);
  font-family:var(--font-display); font-weight:700; font-size:0.78rem;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--color-text-muted);
}
.referral-head span{ color:var(--color-text-muted); }
@media(max-width:560px){
  .referral-row{ grid-template-columns:1fr auto; row-gap:0.2rem; }
  .referral-row span:nth-child(2){ text-align:right; color:var(--color-text-muted); }
  .referral-head span:nth-child(3){ display:none; }
  .referral-row strong{ grid-column:2; text-align:right; }
}

/* ============================== GARANTIAS ============================== */
.trust-box{
  display:grid; gap:2rem; align-items:center;
  grid-template-columns:1fr; padding:2.5rem;
  border:1px solid var(--color-line); border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(201,162,39,0.06), transparent);
}
@media(min-width:820px){ .trust-box{ grid-template-columns:1.1fr 1fr; } }
.trust-headline h2{ font-weight:800; font-size:clamp(1.8rem,4vw,2.6rem); margin-bottom:0.8rem; }
.trust-headline p{ color:var(--color-text-muted); }
.trust-list{ list-style:none; display:grid; gap:0.9rem; }
.trust-list li{ display:flex; align-items:center; gap:0.8rem; font-weight:600; font-size:1rem; }
.trust-list span{ font-size:1.3rem; }

/* ============================== CTA FINAL ============================== */
.final-cta{
  text-align:center; padding:clamp(4rem,10vh,7rem) clamp(1.2rem,5vw,3rem);
  max-width:var(--maxw); margin:0 auto;
}
.final-cta h2{ font-weight:800; font-size:clamp(2rem,5vw,3.4rem); margin-bottom:1rem; }
.final-cta p{ color:var(--color-text-muted); font-size:1.1rem; max-width:50ch; margin:0 auto 2.2rem; }

/* ============================== FOOTER ============================== */
.site-footer{
  text-align:center; padding:3rem 1.5rem;
  border-top:1px solid var(--color-line); color:var(--color-text-muted);
}
.footer-brand{ display:inline-flex; align-items:center; gap:0.7rem; margin-bottom:0.8rem; }
.footer-brand img{ width:34px; height:34px; border-radius:50%; }
.site-footer p{ font-size:0.9rem; }
.footer-fine{ font-size:0.78rem; margin-top:0.6rem; opacity:0.7; }

/* ============================== ANIMAÇÃO DE ENTRADA (scroll reveal) ============================== */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity 0.7s ease, transform 0.7s var(--ease-soft); }
.reveal.in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}
