/* ============================================================
   GRUPO FLY — Landing
   Built on the ViajaFlux design system (purple/mint over deep navy)
   ============================================================ */


@font-face {
  font-family: 'Gantari';
  font-style: normal;
  font-weight: 100 900;
  src: url('fonts/Gantari-VariableFont_wght.ttf') format('truetype-variations');
  font-display: swap;
}
@font-face {
  font-family: 'Gantari';
  font-style: italic;
  font-weight: 100 900;
  src: url('fonts/Gantari-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-display: swap;
}

:root {
  /* brand */
  --purple: #8A65E1;
  --purple-deep: #7B56D2;
  --mint: #00C9A7;
  --navy: #1E293B;

  /* themeable accent (driven by Tweaks) */
  --accent: #8A65E1;
  --accent-2: #00C9A7;
  --accent-glow: rgba(138, 101, 225, 0.35);

  /* dark surface (default) */
  --bg: #0A0E1A;
  --bg-2: #0F1525;
  --bg-3: #070B16;
  --fg: #E8E8F0;
  --fg-2: rgba(232, 232, 240, 0.66);
  --fg-3: rgba(232, 232, 240, 0.46);
  --fg-4: rgba(232, 232, 240, 0.30);
  --border: rgba(255, 255, 255, 0.08);
  --border-h: rgba(255, 255, 255, 0.22);
  --card: rgba(255, 255, 255, 0.022);
  --card-2: rgba(255, 255, 255, 0.04);
  --logo-filter: none; /* white logo on dark */

  --font-display: 'Gantari', system-ui, -apple-system, sans-serif;
  --font-body: 'Gantari', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --maxw: 1200px;

  --anim-scale: 1; /* 0 = off, set by tweaks */
}

/* light mode */
[data-theme="light"] {
  --bg: #F7F8FB;
  --bg-2: #FFFFFF;
  --bg-3: #EEF0F6;
  --fg: #141A2A;
  --fg-2: rgba(20, 26, 42, 0.70);
  --fg-3: rgba(20, 26, 42, 0.52);
  --fg-4: rgba(20, 26, 42, 0.34);
  --border: rgba(20, 26, 42, 0.10);
  --border-h: rgba(138, 101, 225, 0.45);
  --card: rgba(255, 255, 255, 0.9);
  --card-2: #FFFFFF;
  --logo-filter: invert(1); /* flip white logo back to dark */
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { position: relative; padding: clamp(72px, 11vh, 140px) 0; }
.section--tight { padding: clamp(56px, 8vh, 96px) 0; }

/* ---- type ---- */
.eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent); opacity: .7;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3 { margin: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 700; font-style: normal;
  line-height: 1.04; letter-spacing: -0.03em;
}
.h-hero { font-size: clamp(2.6rem, 6vw, 5rem); }
.h2 {
  font-family: var(--font-display);
  font-weight: 700; font-style: normal;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.025em; margin: 0;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.3; letter-spacing: -0.01em; margin: 0;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--fg-2); line-height: 1.6; }
.muted { color: var(--fg-2); }
.muted-3 { color: var(--fg-3); }

.grad {
  background: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- glows ---- */
.glow {
  position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none; z-index: 0;
  opacity: calc(0.5 + 0.5 * var(--anim-scale));
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 1rem; border: 1px solid transparent;
  cursor: pointer; transition: all .35s var(--ease); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 32px -6px var(--accent-glow);
}
.btn--primary:hover { background: var(--purple-deep); box-shadow: 0 0 44px -4px var(--accent-glow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-h); }
.btn--ghost:hover { border-color: var(--accent); color: var(--fg); background: var(--card-2); }
.btn--wa { background: #25D366; color: #04220f; box-shadow: 0 0 32px -8px rgba(37,211,102,.5); }
.btn--wa:hover { background: #20bb5a; transform: translateY(-2px); }

/* ---- cards ---- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 30px;
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.card:hover { border-color: var(--border-h); background: var(--card-2); }
.card--lift:hover { transform: translateY(-4px); }

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent);
}
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip--mint { background: color-mix(in srgb, var(--accent-2) 14%, transparent); border-color: color-mix(in srgb, var(--accent-2) 28%, transparent); color: var(--accent-2); }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo { height: 30px; filter: var(--logo-filter); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.93rem; color: var(--fg-2); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--fg); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; }
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
}

/* ---- hero ---- */
.hero { position: relative; padding-top: 150px; padding-bottom: 90px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--border);
  font-size: 0.84rem; color: var(--fg-2); font-weight: 500;
}
.badge b { color: var(--fg); font-weight: 600; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

.stat-strip { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; }
.stat-strip .s { display: flex; flex-direction: column; }
.stat-strip .s b { font-family: var(--font-display); font-weight: 700; font-style: normal; font-size: 1.7rem; letter-spacing: -0.02em; }
.stat-strip .s span { font-size: 0.82rem; color: var(--fg-3); }
.stat-divider { width: 1px; align-self: stretch; background: var(--border); }

/* sunburst stage */
.mark-stage { position: relative; display: grid; place-items: center; min-height: 380px; }
.mark-ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--border);
}
.mark-img {
  width: min(74%, 360px); filter: var(--logo-filter);
  animation: spin calc(90s / max(var(--anim-scale), 0.0001)) linear infinite;
  position: relative; z-index: 2;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mark-halo {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(30px); z-index: 1;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }

/* ---- problem list ---- */
.prob-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.prob {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px;
  border: 1px solid var(--border); border-radius: 1rem; background: var(--card);
  transition: border-color .35s var(--ease);
}
.prob:hover { border-color: rgba(239,68,68,.35); }
.prob .x { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(239,68,68,.12); color: #f87171; }
.prob .x svg { width: 15px; height: 15px; }
.prob p { margin: 0; font-weight: 500; }

/* ---- big statement ---- */
.statement { text-align: center; max-width: 980px; margin: 0 auto; }
.statement .h2 { margin-bottom: 22px; }

/* ---- diff areas ---- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .areas { grid-template-columns: 1fr; } }

/* ---- checklist ---- */
.checks { display: grid; gap: 12px; }
.check { display: flex; gap: 12px; align-items: center; }
.check .c { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.check .c svg { width: 14px; height: 14px; }

/* ---- companies ---- */
.companies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .companies { grid-template-columns: 1fr; } }
.company { display: flex; flex-direction: column; gap: 16px; }
.company__head { display: flex; align-items: center; gap: 14px; }
.company__tag { font-size: 0.72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.company__name { font-family: var(--font-display); font-weight: 700; font-style: normal; font-size: 1.45rem; letter-spacing: -.02em; }

/* ---- flow ---- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 460px) { .flow { grid-template-columns: 1fr; } }
.flow__step { position: relative; padding: 26px 24px; }
.flow__num { font-family: var(--font-display); font-weight: 700; font-style: normal; font-size: 1.1rem; color: var(--accent); }
.flow__arrow { position: absolute; right: -10px; top: 38px; color: var(--fg-4); z-index: 3; }
@media (max-width: 820px) { .flow__arrow { display: none; } }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: 0; width: 1px; bottom: 14px; background: var(--border);
}

/* ---- numbers / prova ---- */
.bignums { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .bignums { grid-template-columns: 1fr; } }
.bignum { text-align: center; padding: 44px 24px; }
.bignum b { display: block; font-family: var(--font-display); font-weight: 700; font-style: normal;
  font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -.03em; }
.bignum span { color: var(--fg-2); font-size: 1.05rem; }

/* ---- mvv ---- */
.mvv-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .mvv-top { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 820px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }
.value .vn { font-family: var(--font-display); font-weight: 700; font-style: normal; font-size: 1.2rem; margin-bottom: 6px; }

/* ---- socios ---- */
.socios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .socios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .socios { grid-template-columns: 1fr; } }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.name-row { display: flex; align-items: center; gap: 6px; }
.verified-badge { width: 16px; height: 16px; flex-shrink: 0; }
.socio .role { font-size: 0.8rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }

/* ---- para quem ---- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 880px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .audience { grid-template-columns: 1fr; } }
.aud { padding: 24px; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); transition: all .35s var(--ease); }
.aud:hover { border-color: var(--border-h); transform: translateY(-3px); }
.aud .n { font-family: var(--font-display); font-weight: 700; font-style: normal; color: var(--accent); font-size: 1rem; }

/* ---- final cta ---- */
.cta-final {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--border); border-radius: 2rem;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  padding: clamp(48px, 8vw, 90px) 28px;
}
.cta-final .glow { z-index: 0; }
.cta-final > * { position: relative; z-index: 1; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---- contact ---- */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } }
.cinfo { display: flex; gap: 14px; align-items: center; padding: 22px; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.cinfo a, .cinfo span { color: var(--fg); font-weight: 500; }
.cinfo small { color: var(--fg-3); display: block; font-weight: 400; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__logo { height: 26px; filter: var(--logo-filter); opacity: .85; }

/* ---- whatsapp floater ---- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  z-index: -1; animation: ripple calc(2.4s / max(var(--anim-scale),0.0001)) ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-anim="off"] .reveal { opacity: 1 !important; transform: none !important; }
[data-anim="off"] .mark-img { animation: none !important; }
[data-anim="off"] .mark-halo { animation: none !important; }
[data-anim="off"] .wa-float::before { animation: none !important; }

/* divider */
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
