/* ================================================================
   FLOWAI DIGITAL — v7 Editorial Premium
   Paleta: Off-white + Areia + Espresso + Terracota + Cobre
   Fonts: Noto Serif (display) + Noto Sans (body)
   Effects: Gradient mesh, grain, particles, GSAP scroll, Lenis
   ================================================================ */

/* ── TOKENS ── */
:root {
  --bg: #F5EFE6;
  --bg-alt: #E7D8C7;
  --bg-dark: #3D2518;
  --text: #6B412D;
  --text-light: #8B7355;
  --accent: #C9653C;
  --accent-hover: #A95532;
  --accent-glow: rgba(201,101,60,0.15);
  --white: #FBF8F3;
  --border: rgba(107,65,45,0.10);
  --border-md: rgba(107,65,45,0.15);
  --shadow-sm: 0 1px 3px rgba(107,65,45,0.06);
  --shadow-md: 0 4px 16px rgba(107,65,45,0.08);
  --shadow-lg: 0 12px 40px rgba(107,65,45,0.14);
  --shadow-glow: 0 0 40px rgba(201,101,60,0.08);
  --font-d: 'Noto Serif', Georgia, serif;
  --font-b: 'Noto Sans', system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*,::before,::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--cta { background: var(--bg-dark); color: var(--white); padding: 100px 0; }
.section--cta .section__title { color: var(--white); }
.section--cta .section__sub { color: rgba(251,248,243,0.7); }
.section--cta .hero__note { color: rgba(251,248,243,0.5); }
.text-center { text-align: center; }

/* Section dividers */
.section--alt::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-md), transparent);
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-b); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 1px;
}
.section__title {
  font-family: var(--font-d); font-size: clamp(30px, 5vw, 48px);
  font-weight: 700; line-height: 1.12; color: var(--text);
  margin-bottom: 20px; max-width: 720px; margin-left: auto; margin-right: auto;
  text-align: center;
}
.section__sub {
  font-size: 18px; line-height: 1.7; color: var(--text-light);
  max-width: 600px; margin: 0 auto 56px; text-align: center;
}

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,239,230,0.85); backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
#nav.nav--scrolled { border-bottom-color: var(--border); background: rgba(245,239,230,0.95); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
}
.nav__logo-img { height: 32px; width: auto; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--text-light);
  transition: color 0.2s; position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform 0.2s var(--ease); transform-origin: center;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { font-size: 14px; }
.nav__toggle { display: none; width: 28px; height: 20px; flex-direction: column; justify-content: space-between; }
.nav__toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__mobile {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(245,239,230,0.98); backdrop-filter: blur(20px);
  padding: 32px 24px; border-bottom: 1px solid var(--border); z-index: 99;
  flex-direction: column; gap: 16px;
}
.nav__mobile.active { display: flex; }
.nav__mobile-link { font-size: 18px; font-weight: 500; padding: 8px 0; }

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-b); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--r-sm); cursor: pointer;
  transition: all 0.25s var(--ease); position: relative; overflow: hidden;
}
.btn--primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 2px 8px rgba(201,101,60,0.25);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(201,101,60,0.35);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }
.btn--lg { font-size: 17px; padding: 18px 36px; border-radius: var(--r-md); }
.btn__arrow { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 80px;
}
.hero__mesh {
  position: absolute; inset: -50%;
  background:
    radial-gradient(ellipse at 15% 35%, rgba(201,101,60,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(169,85,50,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 85%, rgba(231,216,199,0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 60%, rgba(201,101,60,0.08) 0%, transparent 40%);
  filter: blur(80px);
  animation: meshMove 12s ease-in-out infinite alternate;
}
@keyframes meshMove {
  0% { transform: translate(0,0) rotate(0deg) scale(1); }
  50% { transform: translate(-20px,10px) rotate(1deg) scale(1.03); }
  100% { transform: translate(-40px,20px) rotate(-1deg) scale(1.06); }
}

.hero__particles {
  position: absolute; inset: 0; pointer-events: none;
}

.hero__grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative; z-index: 1; max-width: 720px;
  text-align: center; margin: 0 auto;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 28px;
  background: rgba(201,101,60,0.06); padding: 8px 18px;
  border-radius: 20px; border: 1px solid rgba(201,101,60,0.12);
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(201,101,60,0.4);
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.hero__h1 {
  font-family: var(--font-d); font-size: clamp(38px, 7vw, 68px);
  font-weight: 700; line-height: 1.08; color: var(--text); margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero__h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(135deg, #C9653C, #A95532);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 19px; line-height: 1.65; color: var(--text-light);
  margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero__cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__note { font-size: 13px; color: var(--text-light); letter-spacing: 0.02em; }

/* ── PROBLEMS ── */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.problem-card {
  background: var(--white); padding: 28px 24px; border-radius: var(--r-md);
  border: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.3s var(--ease);
}
.problem-card:hover {
  border-color: rgba(201,101,60,0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.problem-card__icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.problem-card p { font-size: 15px; line-height: 1.6; }

/* ── PILLARS ── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; text-align: center; }
.pillar {
  background: var(--bg-alt); padding: 48px 32px; border-radius: var(--r-lg);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: all 0.3s var(--ease);
}
.pillar::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px;
}
.pillar:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pillar__title { font-family: var(--font-d); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.pillar p { font-size: 15px; line-height: 1.65; color: var(--text-light); }

/* ── COMPARE TABLE ── */
.compare-table { overflow-x: auto; border-radius: var(--r-md); }
.compare-table table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(107,65,45,0.03); }
.compare-highlight { background: rgba(201,101,60,0.05); color: var(--accent); font-weight: 600; }
.compare-table thead .compare-highlight { background: rgba(201,101,60,0.08); }

/* ── STATS ── */
.stats-row { display: flex; justify-content: center; gap: 64px; margin-bottom: 56px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-d); font-size: 56px; font-weight: 700; color: var(--accent);
  display: block; line-height: 1;
  background: linear-gradient(135deg, #C9653C, #A95532);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 8px; }

/* ── SQUADS ── */
.squads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.squad-card {
  background: var(--white); padding: 28px; border-radius: var(--r-md);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: all 0.3s var(--ease);
}
.squad-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--accent); opacity: 0; transition: opacity 0.3s;
}
.squad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(201,101,60,0.15); }
.squad-card:hover::before { opacity: 1; }
.squad-card h3 { font-family: var(--font-d); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.squad-card p { font-size: 14px; line-height: 1.55; color: var(--text-light); }

/* ── FLOW DIAGRAM ── */
.flow-diagram { display: flex; justify-content: center; overflow: hidden; margin-top: 40px; }
#flowCanvas { max-width: 100%; height: auto; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; counter-reset: step; }
.step {
  text-align: center; padding: 40px 24px; position: relative;
  background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.step:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step__number {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 22px; font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(201,101,60,0.3);
}
.step__title { font-family: var(--font-d); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-light); }

/* ── VALUE STACK ── */
.value-stack { max-width: 580px; margin: 0 auto; }
.value-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; margin-bottom: 8px; font-size: 16px; line-height: 1.5;
  background: var(--white); border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}
.value-item:hover { border-color: rgba(201,101,60,0.15); box-shadow: var(--shadow-sm); }
.value-check { color: var(--accent); font-weight: 700; font-size: 20px; flex-shrink: 0; }

/* ── AUDIENCE ── */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.audience-card {
  background: var(--white); padding: 24px 28px; border-radius: var(--r-md);
  border-left: 4px solid var(--accent);
  transition: all 0.3s var(--ease);
}
.audience-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.audience-card p { font-size: 15px; line-height: 1.6; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 22px 0; font-size: 17px; font-weight: 600; color: var(--text);
  text-align: left; transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon { font-size: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer p { padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--text-light); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ── FOOTER ── */
.footer { padding: 56px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer__logo { height: 28px; width: auto; margin-bottom: 8px; opacity: 0.8; }
.footer__tagline { font-size: 14px; color: var(--text-light); font-style: italic; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-size: 14px; color: var(--text-light); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }
.footer__legal p { font-size: 12px; color: var(--text-light); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: all 0.3s var(--ease);
  animation: whatsappPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes whatsappPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.5); }
}

/* ── GSAP REVEAL (overrides default) ── */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Stagger delay for grid children */
.squad-card:nth-child(2) { transition-delay: 50ms; }
.squad-card:nth-child(3) { transition-delay: 100ms; }
.squad-card:nth-child(4) { transition-delay: 150ms; }
.squad-card:nth-child(5) { transition-delay: 200ms; }
.squad-card:nth-child(6) { transition-delay: 250ms; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { padding-top: 72px; min-height: 92vh; }
  .hero__h1 { letter-spacing: -0.01em; }
  .stats-row { gap: 32px; }
  .stat__number { font-size: 40px; }
  .compare-table { font-size: 13px; }
  .steps { gap: 16px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__badge { font-size: 11px; padding: 6px 14px; }
  .problems-grid { grid-template-columns: 1fr; }
  .squads-grid { grid-template-columns: 1fr; }
}
