/* ============================================================
   Figreen — Global Stylesheet
   Target: SEO landing page, Core Web Vitals (CLS/LCP/FID)
   ============================================================ */

:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --dark-900:  #0f172a;
  --dark-800:  #1e293b;
  --dark-700:  #334155;
  --gray-100:  #f8fafc;
  --gray-200:  #e2e8f0;
  --gray-500:  #64748b;
  --gray-700:  #374151;
  --white:     #ffffff;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.75; }

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--gray-100); }
.section--dark { background: var(--dark-900); color: var(--white); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: .625rem;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-600); color: var(--white);
  box-shadow: 0 4px 14px rgba(22,163,74,.35);
}
.btn-primary:hover { background: var(--green-700); text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--green-600);
  border-color: var(--green-600);
}
.btn-outline:hover { background: var(--green-50); text-decoration: none; }
.btn-white {
  background: var(--white); color: var(--green-700);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-white:hover { background: var(--green-50); text-decoration: none; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.navbar__logo { font-size: 1.5rem; font-weight: 800; color: var(--green-600); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.navbar__logo:hover { text-decoration: none; }
.navbar__logo span { color: var(--dark-900); }
.navbar__nav { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.navbar__nav a { font-size: .9rem; font-weight: 500; color: var(--gray-700); }
.navbar__nav a:hover { color: var(--green-600); text-decoration: none; }
.navbar__cta { display: flex; align-items: center; gap: .75rem; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-800) 60%, #0d2818 100%);
  color: var(--white); padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(22,163,74,.15) 0%, transparent 60%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3); color: var(--green-500); padding: .35rem .9rem; border-radius: 2rem; font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--green-500); }
.hero__desc { font-size: 1.125rem; color: #cbd5e1; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.hero__stat strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--green-500); }
.hero__stat span { font-size: .8rem; color: #94a3b8; }
.hero__visual { display: flex; justify-content: center; }
.hero__mockup {
  background: var(--dark-800); border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem; padding: 1.5rem; width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}
.mockup-bar { display: flex; gap: .4rem; margin-bottom: 1rem; }
.mockup-bar span { width: .7rem; height: .7rem; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #ef4444; }
.mockup-bar span:nth-child(2) { background: #f59e0b; }
.mockup-bar span:nth-child(3) { background: #22c55e; }
.mockup-row { display: flex; gap: .75rem; margin-bottom: .75rem; }
.mockup-card {
  flex: 1; background: var(--dark-900); border-radius: .5rem;
  padding: .875rem; border: 1px solid rgba(255,255,255,.05);
}
.mockup-card__label { font-size: .65rem; color: #64748b; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .05em; }
.mockup-card__value { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.mockup-card--green .mockup-card__value { color: var(--green-500); }
.mockup-card--red .mockup-card__value { color: #f87171; }
.mockup-chart { background: var(--dark-900); border-radius: .5rem; padding: 1rem; border: 1px solid rgba(255,255,255,.05); height: 80px; display: flex; align-items: flex-end; gap: .35rem; }
.mockup-bar-item { flex: 1; border-radius: .2rem .2rem 0 0; opacity: .8; }

/* ---- LOGOS / SOCIAL PROOF ---- */
.logos { padding: 2.5rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.logos__inner { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.logos__label { font-size: .8rem; color: var(--gray-500); font-weight: 500; }
.logos__item { font-size: .9rem; font-weight: 700; color: var(--gray-500); opacity: .6; }

/* ---- FEATURES ---- */
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 1rem; padding: 2rem;
  transition: box-shadow .2s, border-color .2s;
}
.feature-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); border-color: var(--green-500); }
.feature-card__icon { width: 3rem; height: 3rem; background: var(--green-50); border-radius: .75rem; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: .5rem; color: var(--dark-900); }
.feature-card p { font-size: .925rem; color: var(--gray-500); }

/* ---- HOW IT WORKS ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step { text-align: center; padding: 1.5rem; }
.step__number { width: 3rem; height: 3rem; background: var(--green-600); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; margin: 0 auto 1rem; }
.step h3 { margin-bottom: .5rem; color: var(--dark-900); }
.step p { font-size: .9rem; color: var(--gray-500); }

/* ---- METRICS ---- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.metric { text-align: center; }
.metric strong { display: block; font-size: 2.75rem; font-weight: 800; color: var(--green-600); line-height: 1; }
.metric span { font-size: .9rem; color: var(--gray-500); }

/* ---- TESTIMONIALS ---- */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.testimonial {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 1rem; padding: 1.75rem;
}
.testimonial__stars { color: #f59e0b; font-size: 1rem; margin-bottom: .75rem; }
.testimonial__text { font-size: .95rem; color: var(--gray-700); margin-bottom: 1.25rem; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--green-600); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.testimonial__name { font-size: .875rem; font-weight: 600; color: var(--dark-900); }
.testimonial__role { font-size: .8rem; color: var(--gray-500); }

/* ---- FAQ ---- */
.faq__list { margin-top: 2.5rem; max-width: 780px; margin-left: auto; margin-right: auto; }
.faq__item { border-bottom: 1px solid var(--gray-200); }
.faq__question {
  width: 100%; text-align: left; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 600; color: var(--dark-900);
  background: none; border: none; cursor: pointer; gap: 1rem;
}
.faq__question:hover { color: var(--green-600); }
.faq__icon { font-size: 1.25rem; flex-shrink: 0; color: var(--green-600); transition: transform .2s; }
.faq__answer { display: none; padding: 0 0 1.25rem; font-size: .95rem; color: var(--gray-500); line-height: 1.75; }
.faq__item--open .faq__answer { display: block; }
.faq__item--open .faq__icon { transform: rotate(45deg); }

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 100%);
  color: var(--white); text-align: center; padding: 5rem 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-section .btn-white { font-size: 1.05rem; padding: 1rem 2.5rem; }

/* ---- BLOG PREVIEW ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.blog-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 1rem; overflow: hidden;
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.blog-card__thumb { height: 180px; background: linear-gradient(135deg, var(--green-700), var(--dark-800)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card__body { padding: 1.5rem; }
.blog-card__tag { font-size: .75rem; font-weight: 600; color: var(--green-600); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.blog-card__title { font-size: 1.05rem; font-weight: 700; color: var(--dark-900); margin-bottom: .6rem; line-height: 1.4; }
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--green-600); text-decoration: none; }
.blog-card__excerpt { font-size: .875rem; color: var(--gray-500); margin-bottom: 1rem; }
.blog-card__meta { font-size: .8rem; color: var(--gray-500); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark-900); color: #cbd5e1;
  padding: 4rem 0 2rem;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand .footer__logo { font-size: 1.4rem; font-weight: 800; color: var(--green-500); margin-bottom: .75rem; display: block; text-decoration: none; }
.footer__brand p { font-size: .875rem; color: #94a3b8; line-height: 1.75; }
.footer__col h4 { font-size: .85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer__col ul { list-style: none; }
.footer__col ul li + li { margin-top: .6rem; }
.footer__col ul a { font-size: .875rem; color: #94a3b8; }
.footer__col ul a:hover { color: var(--green-500); text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__bottom p { font-size: .8rem; color: #64748b; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header .tag { display: inline-block; background: var(--green-50); color: var(--green-700); font-size: .8rem; font-weight: 700; padding: .3rem .9rem; border-radius: 2rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.section-header h2 { color: var(--dark-900); margin-bottom: .75rem; }
.section-header p { color: var(--gray-500); font-size: 1.05rem; }

/* ---- BLOG ARTICLE ---- */
.article-hero { background: var(--dark-900); color: var(--white); padding: 4rem 0 3rem; }
.article-hero .tag { display: inline-block; background: rgba(34,197,94,.2); color: var(--green-500); font-size: .8rem; font-weight: 600; padding: .3rem .9rem; border-radius: 2rem; margin-bottom: 1rem; }
.article-hero h1 { color: var(--white); margin-bottom: 1rem; }
.article-hero .meta { color: #94a3b8; font-size: .875rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.article-body { padding: 3rem 0 5rem; }
.article-content { max-width: 760px; margin: 0 auto; }
.article-content h2 { color: var(--dark-900); margin: 2.5rem 0 1rem; }
.article-content h3 { color: var(--dark-800); margin: 2rem 0 .75rem; }
.article-content p { margin-bottom: 1.25rem; color: var(--gray-700); }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: .6rem; }
.article-content blockquote { border-left: 4px solid var(--green-500); margin: 2rem 0; padding: 1rem 1.5rem; background: var(--green-50); border-radius: 0 .5rem .5rem 0; font-style: italic; color: var(--gray-700); }
.article-content .highlight-box { background: var(--green-50); border: 1px solid var(--green-100); border-radius: .75rem; padding: 1.5rem; margin: 2rem 0; }
.article-content .highlight-box h4 { color: var(--green-700); margin-bottom: .5rem; }
.article-toc { background: var(--gray-100); border-radius: .75rem; padding: 1.5rem; margin-bottom: 2.5rem; }
.article-toc h4 { font-size: .875rem; font-weight: 700; color: var(--dark-900); margin-bottom: .75rem; }
.article-toc ol { margin-left: 1.25rem; }
.article-toc li { margin-bottom: .4rem; font-size: .875rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .navbar__nav { display: none; }
  .navbar__cta .btn-outline { display: none; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
}

/* ---- BLOG CARD IMAGE THUMB ---- */
.blog-card__thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: .75rem .75rem 0 0;
  background: var(--gray-200);
}
.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.blog-card:hover .blog-card__thumb img {
  transform: scale(1.04);
}

/* ---- ARTICLE HERO IMAGE ---- */
.article-hero-img {
  width: 100%;
  max-height: 460px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border-radius: 1rem;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* ---- ARTICLE INLINE IMAGE ---- */
.article-img {
  width: 100%;
  margin: 2rem 0;
  border-radius: .75rem;
  overflow: hidden;
}
.article-img img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: .75rem;
}
.article-img figcaption {
  font-size: .8rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}
.article-hero-img figcaption {
  font-size: .8rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}
.article-img figcaption .fonte,
.article-hero-img figcaption .fonte {
  display: block;
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: .15rem;
  font-style: normal;
}
.article-img figcaption .fonte a,
.article-hero-img figcaption .fonte a {
  color: var(--gray-400);
  text-decoration: underline;
}
