/* =============================================================
   INTELLECTA IA · STYLE
   Vanilla CSS. Mobile-first. Editorial dark theme + glassmorphism.
   ============================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* palette */
  --bg-deep:      #050A1A;
  --bg-darker:    #020710;
  --bg-soft:      #0A1228;
  --electric:     #4B6EF5;
  --violet:       #7B2FFF;
  --amber:        #FF8C00;
  --cyan:         #00D4FF;
  --text-primary: #F0F4FF;
  --text-muted:   #8892B0;
  --text-soft:    #B8C2DE;
  --glass:        rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);

  /* gradients */
  --grad-display: linear-gradient(105deg, #C9A2FF 0%, #B98CFF 38%, #FFA959 100%);
  --grad-brand-name: linear-gradient(120deg, #B98CFF 0%, #7B2FFF 100%);  /* Intellecta -> violeta */
  --grad-brand-ia:   linear-gradient(120deg, #FFC371 0%, #FF8C00 100%);  /* IA -> ambar */
  --grad-btn:  linear-gradient(120deg, #4B6EF5 0%, #7B2FFF 100%);

  /* type */
  --font-display: 'Fraunces', 'Times New Roman', serif; /* serifa editorial sofisticada */
  --font-brand: 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* spacing rhythm */
  --space-section: clamp(5.5rem, 11vw, 10rem);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1200px;

  /* z-index scale */
  --z-nav: 100;
  --z-fab: 900;
  --z-drawer: 950;
  --z-modal: 1000;
  --z-progress: 1100;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
@media (min-width: 1024px) { body { font-size: 17px; } }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(123,47,255,.45); color: #fff; }

/* ---------- HELPERS ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.4rem, 6vw, 3rem); }
.section { position: relative; padding-block: var(--space-section); }

.grad-text {
  background: var(--grad-display);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;            /* destaque editorial sofisticado */
  font-weight: 600;
  padding-bottom: .12em;         /* espaço para descenders do itálico (g, ç) */
  margin-bottom: -.12em;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* editorial section header with index number */
.section__head { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); max-width: 24ch; }
.section__kicker {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--font-mono);
  font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}
.section__num { color: var(--cyan); }
.section__kicker .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--glass-border), transparent); max-width: 80px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.section__title--sm { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.section__lead { color: var(--text-soft); font-size: 1.08rem; margin-top: 1.25rem; max-width: 52ch; }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .9rem 1.7rem; border-radius: 999px; min-height: 48px;
  overflow: hidden; letter-spacing: .01em;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .35s ease, background .35s ease, border-color .35s ease;
}
.btn--primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(75,110,245,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(123,47,255,.75); }
.btn--outline {
  background: rgba(255,255,255,.02); color: var(--text-primary);
  border: 1px solid rgba(255,255,255,.18);
}
.btn--outline:hover { transform: translateY(-2px); border-color: var(--cyan); background: rgba(0,212,255,.06); }
.btn--ghost { padding-inline: 0; min-height: 44px; }

.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.35); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--grad-display); z-index: var(--z-progress); transition: width .1s linear; }

/* ---------- BRAND ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name {
  font-family: var(--font-brand); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em;
  background: var(--grad-brand-name); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__ia { background: var(--grad-brand-ia); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav); transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5,10,26,.85); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-bottom-color: var(--glass-border); }
.nav__inner { max-width: var(--maxw); margin-inline: auto; padding: .95rem clamp(1.4rem, 6vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav__links { display: none; gap: 2.25rem; }
.nav__links a { position: relative; font-size: .92rem; color: var(--text-muted); transition: color .25s ease; padding: .3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1.5px; border-radius: 2px; background: var(--grad-display); transition: width .3s ease; }
.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__ig { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; transition: transform .25s ease, filter .25s ease; filter: saturate(.9); }
.nav__ig:hover { transform: translateY(-2px) scale(1.05); filter: saturate(1.15) drop-shadow(0 4px 12px rgba(214,41,118,.45)); }
.nav__cta { display: none; }

.nav__burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; align-items: center; }
.nav__burger span { width: 24px; height: 2px; border-radius: 2px; background: var(--text-primary); transition: transform .3s ease, opacity .3s ease; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__actions { gap: .85rem; }
  .nav__burger { display: none; }
}

/* ---------- DRAWER ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(2,7,16,.65); backdrop-filter: blur(4px); z-index: var(--z-drawer); opacity: 0; transition: opacity .3s ease; }
.drawer-scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); background: var(--bg-darker); border-left: 1px solid var(--glass-border); z-index: var(--z-drawer); transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1); padding: 5.5rem 1.85rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.drawer.open { transform: translateX(0); }
.drawer__close { position: absolute; top: 1.25rem; right: 1.5rem; font-size: 2rem; line-height: 1; color: var(--text-muted); width: 44px; height: 44px; }
.drawer__links { display: flex; flex-direction: column; gap: .25rem; }
.drawer__links a { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--glass-border); transition: color .25s ease, padding-left .25s ease; }
.drawer__links a:hover { color: var(--cyan); padding-left: .5rem; }
.drawer__ig { display: inline-flex; align-items: center; gap: .6rem; margin-top: auto; font-family: var(--font-mono); font-size: .9rem; color: var(--text-soft); }
.drawer__ig:hover { color: var(--text-primary); }
.drawer__cta { margin-top: 1rem; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,10,26,.94) 0%, rgba(5,10,26,.78) 38%, rgba(5,10,26,.45) 70%, rgba(5,10,26,.55) 100%),
    linear-gradient(180deg, rgba(5,10,26,.55) 0%, transparent 30%, rgba(5,10,26,.85) 88%, var(--bg-deep) 100%);
}
.hero__halo { position: absolute; top: 12%; right: 6%; width: 42vw; max-width: 520px; height: 42vw; max-height: 520px; background: radial-gradient(circle, rgba(123,47,255,.22), transparent 62%); pointer-events: none; }

.hero__content { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; width: 100%; padding-inline: clamp(1.4rem, 6vw, 3rem); padding-top: 6rem; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); padding: .5rem 1rem; border: 1px solid var(--glass-border); border-radius: 999px; background: rgba(255,255,255,.03); backdrop-filter: blur(8px); margin-bottom: 1.75rem; }
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem, 6.4vw, 5.3rem); line-height: 1.1; letter-spacing: -.022em; margin-bottom: 1.6rem; max-width: 16ch; text-wrap: balance; padding-bottom: .08em; }
.hero__title .grad-text { display: inline-block; font-weight: 500; }
.hero__subtitle { font-size: clamp(1.02rem, 1.7vw, 1.3rem); color: var(--text-soft); max-width: 44ch; margin-bottom: 1.6rem; line-height: 1.6; }
.hero__manifesto { font-family: var(--font-mono); font-size: clamp(.72rem, 1.5vw, .92rem); color: var(--cyan); margin-bottom: 2.5rem; min-height: 1.4em; letter-spacing: .01em; overflow-wrap: anywhere; max-width: 100%; }
.hero__manifesto .prompt { opacity: .5; }
.caret { animation: blink 1.05s step-end infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 1.5px solid var(--glass-border); border-radius: 999px; display: grid; place-items: start center; padding-top: 8px; }
.hero__scroll-line { width: 3px; height: 8px; border-radius: 3px; background: var(--cyan); animation: scroll-bounce 1.9s infinite; }
@keyframes scroll-bounce { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- MANIFESTO ---------- */
.manifesto { overflow: hidden; }
.manifesto__glow { position: absolute; top: -8%; left: -12%; width: 55vw; height: 55vw; max-width: 640px; max-height: 640px; background: radial-gradient(circle, rgba(123,47,255,.1), transparent 65%); pointer-events: none; }
.manifesto__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4.2vw, 3.1rem); line-height: 1.18; letter-spacing: -.012em; margin-bottom: clamp(2.75rem, 6vw, 4.5rem); max-width: 22ch; }
.manifesto__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.manifesto__text p { color: var(--text-soft); font-size: 1.08rem; margin-bottom: 1.4rem; max-width: 56ch; }
.manifesto__text strong { color: var(--text-primary); font-weight: 600; }

.mission-card { padding: clamp(1.75rem, 4vw, 2.4rem); position: relative; overflow: hidden; }
.mission-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(123,47,255,.08), transparent 55%); pointer-events: none; }
.mission-card__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: rgba(0,212,255,.07); border: 1px solid rgba(0,212,255,.2); margin-bottom: 1.4rem; }
.mission-card__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: .75rem; }
.mission-card__text { font-family: var(--font-display); font-weight: 500; font-size: 1.42rem; line-height: 1.38; letter-spacing: -.01em; }

.values { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.value { display: inline-flex; align-items: center; gap: .7rem; padding: .8rem 1.4rem; font-family: var(--font-mono); font-size: .88rem; font-weight: 500; transition: transform .3s ease, border-color .3s ease; }
.value:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2); }
.value__ico { display: grid; place-items: center; }

@media (min-width: 880px) { .manifesto__grid { grid-template-columns: 1.25fr .9fr; gap: 3.5rem; } }

/* ---------- FOUNDERS ---------- */
.founders__grid { display: grid; gap: clamp(.85rem, 2.5vw, 2rem); grid-template-columns: 1fr 1fr; }
.founder { padding: clamp(1.15rem, 3.5vw, 2.3rem); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s ease, border-color .4s ease; }
.founder:hover { transform: translateY(-6px); border-color: rgba(123,47,255,.35); box-shadow: 0 28px 60px -28px rgba(123,47,255,.5); }
.founder__photo-wrap { position: relative; width: clamp(88px, 24vw, 122px); aspect-ratio: 1; margin-bottom: 1.4rem; }
.founder__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; border: 2px solid transparent; background: linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box, var(--grad-btn) border-box; }
.founder__badge { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; padding: .28rem .68rem; border-radius: 999px; backdrop-filter: blur(10px); border: 1px solid var(--glass-border); }
.founder__badge[data-accent="electric"] { background: rgba(75,110,245,.2); color: #b8c5ff; border-color: rgba(75,110,245,.45); }
.founder__badge[data-accent="amber"] { background: rgba(255,140,0,.16); color: #ffce9e; border-color: rgba(255,140,0,.4); }
.founder__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 3.4vw, 1.5rem); margin-bottom: .3rem; letter-spacing: -.01em; }
.founder__role { color: var(--cyan); font-size: clamp(.74rem, 2.3vw, .9rem); font-weight: 500; margin-bottom: .9rem; }
.founder__bio { color: var(--text-muted); font-size: clamp(.82rem, 2.2vw, .98rem); }
.founders__since { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.25rem; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; color: var(--text-muted); }
.founders__since-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(255,140,0,.7); }
.founder__socials { display: flex; gap: .55rem; margin-top: auto; padding-top: 1.4rem; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--glass-border); background: rgba(255,255,255,.02); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.social-btn svg { border-radius: 7px; }
.social-btn:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.05); }

/* ---------- PRODUCTS ---------- */
.products__grid { display: grid; gap: clamp(.85rem, 2.5vw, 1.75rem); grid-template-columns: 1fr 1fr; }
.product { padding: clamp(1.15rem, 3.4vw, 2.5rem); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s ease, border-color .4s ease; }
.product::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-display); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.product:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.15); box-shadow: 0 28px 60px -28px rgba(0,0,0,.75); }
.product:hover::after { transform: scaleX(1); }
.product__icon { width: clamp(46px, 12vw, 58px); aspect-ratio: 1; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.035); border: 1px solid var(--glass-border); margin-bottom: clamp(1rem, 3vw, 1.6rem); }
.product__icon svg { width: 78%; height: 78%; }
.product__cat { font-family: var(--font-mono); font-size: clamp(.6rem, 1.8vw, .68rem); letter-spacing: .12em; color: var(--text-muted); margin-bottom: .6rem; display: inline-block; }
.product__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.12rem, 3.4vw, 1.5rem); margin-bottom: .15rem; line-height: 1.18; letter-spacing: -.01em; }
.product__sub { color: var(--text-soft); font-size: clamp(.8rem, 2.2vw, .92rem); margin-bottom: .6rem; }
.product__tag { color: var(--text-muted); font-size: clamp(.86rem, 2.4vw, 1rem); margin-bottom: 1.4rem; flex: 1; }
.product__more { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: clamp(.84rem, 2.3vw, .92rem); color: var(--text-primary); padding: .55rem 0; min-height: 44px; transition: gap .25s ease, color .25s ease; }
.product__more svg { transition: transform .25s ease; }
.product__more:hover { color: var(--cyan); gap: .8rem; }
.product__more:hover svg { transform: translateX(3px); }

/* ---------- CLIENTS ---------- */
.clients { overflow: hidden; }
.marquee { position: relative; margin-top: 3.25rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: stretch; gap: clamp(1.25rem, 3vw, 2rem); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.client-card { flex: 0 0 auto; width: 240px; padding: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: .95rem; transition: transform .4s cubic-bezier(.4,0,.2,1), border-color .35s ease, box-shadow .35s ease; }
.client-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); box-shadow: 0 24px 50px -26px rgba(0,0,0,.7); }
.client-card__media { width: 100%; aspect-ratio: 8 / 5; border-radius: 12px; overflow: hidden; background: #fff; }
.client-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .96; transition: transform .4s ease, opacity .35s ease; }
.client-card:hover .client-card__media img { opacity: 1; transform: scale(1.04); }
.client-card__meta { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.client-card__name { font-family: var(--font-brand); font-weight: 600; font-size: .92rem; letter-spacing: .01em; color: var(--text-primary); text-align: center; }
.client-card__tech { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .07em; color: var(--cyan); padding: .3rem .7rem; border: 1px solid rgba(0,212,255,.28); border-radius: 999px; background: rgba(0,212,255,.06); white-space: nowrap; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-darker); border-top: 1px solid var(--glass-border); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer__inner { display: grid; gap: 2.75rem; grid-template-columns: 1fr; padding-bottom: 3.25rem; }
.brand--footer .brand__name { font-size: 1.5rem; }
.footer__tagline { color: var(--text-muted); margin-top: .9rem; max-width: 32ch; }
.footer__col-title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.1rem; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a, .footer__contact a { color: var(--text-muted); transition: color .25s ease; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--glass-border); padding-block: 1.6rem; }
.footer__bottom p { text-align: center; color: var(--text-muted); font-size: .8rem; }

@media (min-width: 768px) { .footer__inner { grid-template-columns: 1.7fr 1fr 1.3fr; gap: 3rem; } }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(2,7,16,.72); backdrop-filter: blur(7px); }
.modal__card { position: relative; width: min(660px, 100%); max-height: 88vh; overflow-y: auto; padding: clamp(1.85rem, 4vw, 2.85rem); border-radius: var(--radius-lg); transform: scale(.94) translateY(14px); transition: transform .4s cubic-bezier(.4,0,.2,1); }
.modal.open .modal__card { transform: scale(1) translateY(0); }
.modal__close { position: absolute; top: 1rem; right: 1.25rem; font-size: 2rem; line-height: 1; color: var(--text-muted); width: 44px; height: 44px; transition: color .25s ease; }
.modal__close:hover { color: var(--text-primary); }
.modal__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; padding-right: 2rem; }
.modal__icon { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); }
.modal__cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--cyan); display: block; margin-bottom: .4rem; }
.modal__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.2; }
.modal__body p { color: var(--text-soft); margin-bottom: 1rem; }
.modal__feats { display: flex; flex-direction: column; gap: .7rem; margin: 1.6rem 0; }
.modal__feat { display: flex; align-items: flex-start; gap: .7rem; color: var(--text-primary); font-size: .96rem; }
.modal__feat svg { flex: 0 0 auto; margin-top: 3px; }
.modal__metrics { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); }
.modal__metrics-title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.1rem; }
.modal__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kpi { display: flex; flex-direction: column; gap: .25rem; padding: .9rem .8rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); text-align: left; }
.kpi__v { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1; background: var(--grad-display); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi__k { font-size: .72rem; color: var(--text-muted); line-height: 1.3; }
.modal__metrics-note { color: var(--text-soft); font-size: .9rem; margin-top: 1.1rem; }
@media (max-width: 480px) { .modal__kpis { grid-template-columns: repeat(2, 1fr); } }
.modal__cta { width: 100%; margin-top: .5rem; }

@media (max-width: 560px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__card { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .modal.open .modal__card { transform: translateY(0); }
}

/* ---------- WHATSAPP FAB (pill com texto) ---------- */
.wa-fab { position: fixed; bottom: 22px; right: 22px; z-index: var(--z-fab); display: inline-flex; align-items: center; gap: .6rem; height: 56px; padding: 0 1.15rem 0 .55rem; border-radius: 999px; background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 12px 32px -8px rgba(37,211,102,.55); color: #fff; transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(37,211,102,.7); }
.wa-fab__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); animation: wa-pulse 2.6s ease-in-out infinite; }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
.wa-fab__label { font-family: var(--font-body); font-weight: 600; font-size: .95rem; white-space: nowrap; letter-spacing: .01em; }
@media (min-width: 1024px) { .wa-fab { height: 60px; bottom: 24px; right: 24px; } }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- SMALL PHONES ---------- */
@media (max-width: 480px) {
  .hero__content { padding-top: 5.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .value { flex: 1 1 auto; justify-content: center; }
  /* fundadores mais bonitos no celular */
  .founder { padding: 1.5rem 1.1rem 1.4rem; border-radius: 20px; }
  .founder__photo-wrap { margin-bottom: 1.15rem; }
  .founder__name { font-size: 1.18rem; line-height: 1.15; margin-bottom: .35rem; }
  .founder__role { font-size: .76rem; margin-bottom: .8rem; line-height: 1.3; }
  .founder__bio { font-size: .82rem; line-height: 1.55; }
  .founder__socials { gap: .5rem; padding-top: 1.2rem; }
  .social-btn { width: 42px; height: 42px; }
}
@media (max-width: 340px) {
  .founder__bio { display: none; }  /* telas muito estreitas: prioriza foto, nome e redes */
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}
