/* ============================================================
   FirstOnAI — Landing page
   Pure CSS. Mobile-first with desktop enhancements.
   ============================================================ */

:root {
  /* Palette */
  --cream:        #FBF7F1;
  --cream-soft:   #FDFAF5;
  --card:         #FFFFFF;
  --navy:         #14263F;
  --navy-soft:    #1E3454;
  --ink:          #46505E;
  --ink-muted:    #6B7482;
  --border:       #EEE6D8;
  --border-soft:  #F0EADF;

  --gold:         #B0812F;
  --gold-light:   #E9B77F;
  --gold-lighter: #F5DFC1;
  --bronze-1:     #CBA063;
  --bronze-2:     #A9772E;

  --grad-gold:    linear-gradient(120deg, #D9A94E 0%, #A9772E 100%);
  --grad-btn:     linear-gradient(135deg, #C99C5B 0%, #A9772E 100%);
  --grad-band:    linear-gradient(120deg, #FBEFDD 0%, #F7E7CF 100%);

  --shadow-sm:    0 2px 10px rgba(20, 38, 63, .05);
  --shadow-md:    0 12px 34px rgba(20, 38, 63, .08);
  --shadow-btn:   0 10px 24px rgba(169, 119, 46, .28);

  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  --maxw:         1300px;
  --gutter:       clamp(20px, 4vw, 48px);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.section-eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius-pill); border: 0;
  background: var(--grad-btn); color: #fff;
  box-shadow: var(--shadow-btn);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(169,119,46,.36); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(169,119,46,.5); outline-offset: 2px; }
.btn-sm { padding: 11px 20px; font-size: .88rem; }
.btn-block { width: 100%; }

.link-plain { font-weight: 500; color: var(--navy); font-size: .92rem; transition: color .15s; }
.link-plain:hover { color: var(--gold); }

/* ---------- Decorative flow lines ----------
   Cobrem a PÁGINA INTEIRA (não por seção). O SVG usa
   preserveAspectRatio="none", então esticamos em 100% x 100%. */
body { position: relative; }
.flow-lines {
  position: absolute; inset: 0; z-index: -1; height: 100%; min-height: 100%;
  background-image: url("assets/decorative/flow-lines-desktop.svg");
  background-repeat: no-repeat; background-position: top center; background-size: 100% 100%;
  pointer-events: none; opacity: 1;
}
@media (max-width: 720px) {
  .flow-lines { background-image: url("assets/decorative/flow-lines-mobile.svg"); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 241, .82);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(238, 230, 216, .7);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 104px; }
.brand { display: inline-flex; align-items: center; transition: transform .2s ease; }
.brand:hover { transform: scale(1.03); }
.brand-logo { width: auto; height: 80px; }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-size: .92rem; font-weight: 500; color: var(--navy); transition: color .15s; }
.main-nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .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); }

.mobile-nav { border-top: 1px solid var(--border); background: var(--cream-soft); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; padding: 16px var(--gutter) 24px; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 500; color: var(--navy); }
.mobile-nav .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 76px) 0 clamp(30px, 5vw, 40px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.15rem); margin-bottom: 22px; letter-spacing: -.02em; }
.hero-lead { font-size: 1.06rem; color: var(--ink); max-width: 480px; margin-bottom: 28px; }
.hero-lead strong { color: var(--navy); font-weight: 600; }

.analyze-form {
  display: flex; gap: 10px; background: var(--card); padding: 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); max-width: 500px;
}
.analyze-form.stacked { flex-direction: column; background: none; border: 0; padding: 0; box-shadow: none; max-width: 440px; }
.input-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; color: var(--gold); pointer-events: none; }
.analyze-form input {
  width: 100%; border: 0; background: transparent; padding: 13px 16px 13px 44px;
  font-family: inherit; font-size: .95rem; color: var(--navy); border-radius: var(--radius-pill);
}
.analyze-form.stacked .input-wrap {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.analyze-form input::placeholder { color: #A9AEB6; }
.analyze-form input:focus { outline: none; }
.analyze-form input:focus-visible { outline: 2px solid rgba(169,119,46,.4); outline-offset: 2px; }

.form-hint { font-size: .82rem; color: var(--ink-muted); margin-top: 14px; }
.check-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; }
.check-list li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--navy); }
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: .72rem;
  background: var(--gold-lighter); color: var(--bronze-2);
}

.hero-visual { position: relative; text-align: center; }
/* Glow suave atrás do camaleão — preenche o espaço e evita
   ampliar demais o PNG (que é pequeno). */
.hero-chameleon-wrap {
  position: relative; display: grid; place-items: center;
  min-height: 460px;
}
.hero-chameleon-wrap::before {
  content: ""; position: absolute; z-index: 0;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(233,183,127,.22), rgba(245,223,193,.10) 46%, transparent 70%);
  filter: blur(6px);
}
.hero-chameleon {
  position: relative; z-index: 1;
  width: 100%; max-width: 430px; margin-inline: auto;
  image-rendering: auto;
  filter: drop-shadow(0 20px 34px rgba(20,38,63,.20));
}
.hero-visual-caption {
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted);
  margin-top: 8px; line-height: 1.9;
}

/* ---------- Platforms ---------- */
.platforms { padding: clamp(30px, 5vw, 48px) 0; }
.platform-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px clamp(24px, 5vw, 56px); margin-top: 26px;
}
.platform-row li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.ai-logo { width: 26px; height: 26px; flex-shrink: 0; color: var(--navy-soft); }

/* ---------- Why ---------- */
.why { padding: clamp(48px, 7vw, 80px) 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.why h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 22px; }
.why-copy p { font-size: 1.05rem; margin-bottom: 30px; max-width: 440px; }

.stat-list { display: flex; flex-direction: column; gap: 20px; }
.stat-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.stat-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 30% 30%, #FBEFDD, #F5E4CC);
}
.stat-value { display: block; font-size: 1.5rem; color: var(--navy); font-weight: 700; line-height: 1.1; }
.stat-card p { font-size: .92rem; color: var(--ink-muted); margin-top: 2px; }

/* ---------- How it works ---------- */
.how { padding: clamp(48px, 7vw, 80px) 0; }
.how .section-title { margin-bottom: 52px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  font-size: 1.5rem; font-weight: 700; color: var(--bronze-2);
  background: var(--cream-soft); border: 1px solid var(--gold-lighter); box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--ink-muted); font-size: .96rem; }
/* connector line */
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; left: 74px; right: -20px; height: 1px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(20px, 4vw, 36px) 0; }
.cta-band-inner {
  background: var(--grad-band); border: 1px solid var(--gold-lighter); border-radius: 28px;
  padding: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 40px; align-items: center; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.cta-band .eyebrow { color: var(--bronze-2); }

/* ---------- Benefits ---------- */
.benefits { padding: clamp(48px, 7vw, 80px) 0; }
.benefits .section-title { margin-bottom: 50px; }
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; text-align: center; }
.benefit-icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 30% 30%, #FBEFDD, #F5E4CC);
}
.benefit h3 { font-size: 1.02rem; margin-bottom: 8px; }
.benefit p { font-size: .88rem; color: var(--ink-muted); }

/* ---------- Testimonials ---------- */
.testimonials { padding: clamp(48px, 7vw, 80px) 0; }
.testimonials .section-title { margin-bottom: 50px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0 0 22px; font-size: .98rem; color: var(--ink); line-height: 1.65; }
.author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .82rem; font-weight: 600; color: #fff;
  background: var(--grad-btn);
}
.author strong { display: block; color: var(--navy); font-size: .95rem; }
.author span { font-size: .82rem; color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(48px, 7vw, 80px) 0 clamp(60px, 8vw, 96px); }
.faq .section-title { margin-bottom: 44px; }
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 2px; transition: transform .25s ease;
}
.faq-mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-mark::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 24px 22px; color: var(--ink-muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-soft); border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 28px; align-items: center;
}
.footer-brand img { height: 60px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: .84rem; color: var(--ink-muted); }
.footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: .9rem; font-weight: 500; color: var(--navy); transition: color .15s; }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--navy); background: var(--card); border: 1px solid var(--border); transition: .18s;
}
.footer-social a:hover { color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.footer-copy { font-size: .82rem; color: var(--ink-muted); text-align: right; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  /* camaleão vem ABAIXO do texto/campo de URL no mobile */
  .hero-visual { order: 0; margin-top: 8px; }
  .hero-chameleon-wrap { min-height: 300px; }
  .hero-chameleon-wrap::before { width: 300px; height: 300px; }
  .hero-chameleon { max-width: 300px; }
  .hero-visual-caption { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-copy { text-align: left; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero h1 br { display: none; }
  .hero-chameleon-wrap { min-height: 230px; }
  .hero-chameleon-wrap::before { width: 230px; height: 230px; }
  .hero-chameleon { max-width: 220px; }
  .analyze-form { flex-direction: column; background: none; border: 0; box-shadow: none; padding: 0; }
  .analyze-form .input-wrap {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  }
  .analyze-form .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps .step:not(:last-child)::after { display: none; }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; align-items: start; }
  .step-num { margin-bottom: 0; grid-row: span 2; }
  .benefit-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img, .footer-nav ul, .footer-social { margin-inline: auto; justify-content: center; }
}

/* ============================================================
   Scroll reveal / animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s cubic-bezier(.16,.84,.44,1),
                transform .7s cubic-bezier(.16,.84,.44,1);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Hero entra na carga da página */
  .hero-copy.reveal { transform: translateY(20px); }
  .hero-visual.reveal { transform: translateY(20px) scale(.94); }
  .hero-visual.reveal.is-visible { transform: none; }

  /* Cascata (stagger) para grupos de cards */
  .stat-card.reveal,
  .step.reveal,
  .benefit.reveal,
  .testimonial.reveal,
  .faq-item.reveal { transform: translateY(40px) scale(.98); }
  .stat-card.reveal.is-visible,
  .step.reveal.is-visible,
  .benefit.reveal.is-visible,
  .testimonial.reveal.is-visible,
  .faq-item.reveal.is-visible { transform: none; }

  .stat-card:nth-child(2).reveal,
  .step:nth-child(2).reveal,
  .benefit:nth-child(2).reveal,
  .testimonial:nth-child(2).reveal,
  .faq-item:nth-child(2).reveal { transition-delay: .10s; }

  .stat-card:nth-child(3).reveal,
  .step:nth-child(3).reveal,
  .benefit:nth-child(3).reveal,
  .testimonial:nth-child(3).reveal,
  .faq-item:nth-child(3).reveal { transition-delay: .20s; }

  .benefit:nth-child(4).reveal,
  .faq-item:nth-child(4).reveal { transition-delay: .30s; }
  .benefit:nth-child(5).reveal { transition-delay: .40s; }

  /* Camaleão flutua suavemente e reage ao mouse */
  .hero-chameleon { animation: floaty 6s ease-in-out infinite; }
  @keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(-1.5deg); }
  }

  /* Header encolhe levemente ao rolar */
  .site-header.scrolled { box-shadow: 0 6px 24px rgba(20,38,63,.07); }
  .site-header.scrolled .header-inner { height: 84px; }
  .site-header.scrolled .brand-logo { height: 64px; }
  .site-header { transition: box-shadow .3s ease; }
  .site-header .header-inner { transition: height .3s ease; }
  .site-header .brand-logo { transition: height .3s ease, transform .2s ease; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .hero-chameleon { animation: none; }
}
