/* ============================================================
   FLEXOON — Sistemas e Automação Comercial
   Design system: vibrant, energetic, brand gradient through-line
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand (sampled from logo) */
  --ink:        #15173a;
  --ink-soft:   #4a4d72;
  --ink-faint:  #8589ad;
  --violet:     #7c4dff;
  --blue:       #4d7cff;
  --magenta:    #9b4dff;
  --brand:      linear-gradient(118deg, #9b4dff 0%, #7c4dff 42%, #4d7cff 100%);
  --brand-soft: linear-gradient(118deg, #efeaff 0%, #e7eeff 100%);

  /* Surfaces */
  --bg:        #ffffff;
  --bg-soft:   #f6f7fc;
  --bg-lav:    #f3f1fe;
  --bg-ink:    #101230;
  --line:      #e8e9f5;
  --line-soft: #f0f1fa;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(21,23,58,.06);
  --shadow:    0 14px 40px -16px rgba(21,23,58,.22);
  --shadow-lg: 0 40px 80px -28px rgba(63,40,140,.38);
  --shadow-brand: 0 22px 50px -18px rgba(124,77,255,.55);

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.eyebrow.center::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.eyebrow.center { justify-content: center; }

.h-sec { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.lead  { color: var(--ink-soft); font-size: 18px; max-width: 60ch; }
.text-grad {
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-grad { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-grad:hover { box-shadow: 0 26px 60px -16px rgba(124,77,255,.7); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* WhatsApp pill */
.btn-wa { background: #1faf54; color: #fff; }
.btn-wa:hover { background: #1c9e4c; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-drop > a svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop:hover > a svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 12px; width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: all .22s ease;
}
.nav-drop:hover .drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; transition: background .15s; }
.drop-item:hover { background: var(--bg-soft); }
.drop-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.drop-ic svg { width: 19px; height: 19px; }
.drop-tx b { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); }
.drop-tx span { font-size: 12.5px; color: var(--ink-faint); }
.mobile-toggle { display: none; }

/* ---------- Hero shared ---------- */
.hero { position: relative; overflow: hidden; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 7px 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #1faf54; box-shadow: 0 0 0 4px rgba(31,175,84,.16); }
.hero-badge .tag { background: var(--brand); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; }
.hero .lead { font-size: 19px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats b { font-family: var(--font-display); font-size: 30px; font-weight: 700; display: block; }
.hero-stats span { font-size: 13.5px; color: var(--ink-faint); }

/* blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 0; }

/* ---------- Cards: segments ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.seg-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex; flex-direction: column; gap: 14px; min-height: 200px;
}
.seg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.seg-card .glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s; z-index: 0; pointer-events: none;
}
.seg-card:hover .glow { opacity: .1; }
.seg-ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; position: relative; z-index: 1; box-shadow: 0 10px 22px -8px rgba(21,23,58,.35);
}
.seg-ic svg { width: 27px; height: 27px; }
.seg-card h3 { font-size: 20px; font-weight: 600; position: relative; z-index: 1; }
.seg-card p { font-size: 14.5px; color: var(--ink-soft); position: relative; z-index: 1; }
.seg-card .more {
  margin-top: auto; font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1;
}
.seg-card .more svg { width: 15px; height: 15px; transition: transform .2s; }
.seg-card:hover .more svg { transform: translateX(4px); }

/* ---------- Feature cards ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 30px; transition: transform .22s, box-shadow .22s, background .22s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; }
.feat-ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand); color: #fff; margin-bottom: 18px; box-shadow: var(--shadow-brand);
}
.feat-ic svg { width: 25px; height: 25px; }
.feat h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Differentials (dark band) ---------- */
.band-ink { background: var(--bg-ink); color: #fff; position: relative; overflow: hidden; }
.band-ink .h-sec { color: #fff; }
.band-ink .lead { color: #b9bce0; }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.diff {
  display: flex; gap: 18px; padding: 24px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: background .2s, border-color .2s;
}
.diff:hover { background: rgba(255,255,255,.07); border-color: rgba(124,77,255,.5); }
.diff-ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.diff-ic svg { width: 23px; height: 23px; }
.diff h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.diff p { font-size: 14px; color: #aeb1d8; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding-top: 14px; }
.step .num {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); margin-bottom: 18px; box-shadow: var(--shadow-brand);
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Stats band ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(34px,4vw,52px); font-weight: 700; display: block; }
.stat span { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--brand); color: #fff; padding: 62px 56px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(30px,3.6vw,44px); font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; margin-top: 14px; }
.cta-band .hero-cta { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-ink); color: #c6c9ec; padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer p.about { font-size: 14px; color: #9396c4; max-width: 34ch; }
.footer h4 { font-family: var(--font-display); font-size: 14px; color: #fff; margin-bottom: 16px; letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14px; color: #9396c4; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer-bot {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #7e82b0;
}
.soc { display: flex; gap: 10px; }
.soc a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #c6c9ec; transition: background .2s, color .2s; }
.soc a:hover { background: var(--brand); color: #fff; }
.soc svg { width: 18px; height: 18px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; background: #1faf54; color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(31,175,84,.6);
  transition: transform .2s; animation: wapulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wapulse { 0%,100%{ box-shadow: 0 14px 30px -8px rgba(31,175,84,.6), 0 0 0 0 rgba(31,175,84,.4);} 50%{ box-shadow: 0 14px 30px -8px rgba(31,175,84,.6), 0 0 0 14px rgba(31,175,84,0);} }

/* ---------- Disable animations ---------- */
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .seg-grid, .feat-grid { grid-template-columns: repeat(2,1fr); }
  .steps, .stat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-toggle { display: grid; }
  .diff-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .seg-grid, .feat-grid, .steps, .stat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 44px 26px; }
  .wrap { padding: 0 20px; }
}
