:root {
  --bg: #0A0B1E;
  --bg-alt: #10112c;
  --card: rgba(255,255,255,0.045);
  --border: rgba(255,255,255,0.09);
  --text: #E8E7F5;
  --text-dim: #A6A4C7;
  --accent: #A78BFA;
  --accent-dark: #7C3AED;
  --accent-gradient: linear-gradient(135deg, #8B5CF6, #EC4899);
  --teal: #22D3EE;
  --white: #ffffff;
  --radius: 16px;
  --max-width: 1140px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; transition: transform 0.15s ease, background 0.2s ease; white-space: nowrap; cursor: pointer; border: none; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-20deg); transition: left 0.55s ease; pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn--primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 8px 30px -8px rgba(139,92,246,0.55); }
.btn--primary:hover { background: linear-gradient(135deg, #7C3AED, #DB2777); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,0.03); backdrop-filter: blur(8px); color: var(--text); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--text-dim); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }
.btn--nav { display: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(10,11,30,0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__img { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; }
.logo__img--sm { width: 30px; height: 30px; }
.logo__text { font-family: var(--font-display); font-size: 0.78rem; line-height: 1.15; letter-spacing: 0.02em; }
.logo__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--text); }
.logo__wordmark--sm { font-size: 1.05rem; }
.logo__dot { color: var(--accent); }
.nav { display: flex; gap: 28px; font-weight: 600; font-size: 0.92rem; color: var(--text-dim); flex: 1; justify-content: center; }
.nav a { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent); border-radius: 2px; transition: right 0.25s ease; }
.nav a:hover { color: var(--white); }
.nav a.is-active { color: var(--white); }
.nav a.is-active::after { right: 0; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; text-align: center; }
.hero__bg { position: absolute; inset: -20%; z-index: 0; filter: blur(40px); background:
  radial-gradient(circle at 20% 20%, rgba(139,92,246,0.35), transparent 45%),
  radial-gradient(circle at 80% 15%, rgba(236,72,153,0.28), transparent 45%),
  radial-gradient(circle at 50% 90%, rgba(34,211,238,0.22), transparent 45%); }
.hero__spotlight { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 15%), rgba(139,92,246,0.18), transparent 70%); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; pointer-events: none; }
.hero__blob--1 { width: 320px; height: 320px; background: var(--accent); opacity: 0.22; top: -100px; left: -60px; animation: heroFloat 15s ease-in-out infinite; }
.hero__blob--2 { width: 260px; height: 260px; background: var(--teal); opacity: 0.2; bottom: -80px; right: -40px; animation: heroFloat 19s ease-in-out infinite reverse; }
.hero__content { position: relative; z-index: 1; }
.hero__burst { position: absolute; top: 45%; left: 50%; width: 800px; height: 800px; transform: translate(-50%, -50%); fill: rgba(139,92,246,0.06); z-index: 0; pointer-events: none; animation: heroSpin 100s linear infinite; }
.eyebrow { display: inline-block; padding: 8px 18px; border-radius: 999px; background: rgba(139,92,246,0.16); color: #C4B5FD; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px; border: 1px solid rgba(139,92,246,0.3); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: 0.01em; margin-bottom: 20px; }
.text-accent { background: linear-gradient(135deg, #A78BFA, #F472B6, #67E8F9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-dim); max-width: 560px; margin: 0 auto 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero__scrollcue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--text-dim); border-radius: 14px; z-index: 1; opacity: 0.7; }
.hero__scrollcue::before { content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); animation: scrollCue 1.6s ease infinite; }

.hero__content > * { opacity: 0; transform: translateY(18px); animation: heroIn 0.8s cubic-bezier(.16,.84,.44,1) forwards; }
.hero__content .eyebrow { animation-delay: 0.05s; }
.hero__content h1 { animation-delay: 0.18s; }
.hero__content .hero__subtitle { animation-delay: 0.34s; }
.hero__content .hero__actions { animation-delay: 0.5s; }

@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroFloat { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,-18px) scale(1.08); } }
@keyframes heroSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes scrollCue { 0% { opacity: 1; top: 6px; } 70% { opacity: 0; top: 20px; } 100% { opacity: 0; top: 6px; } }

@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .hero__burst, .hero__blob, .hero__scrollcue::before { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Section shared ---------- */
section { padding: 90px 0; }
.section-eyebrow { color: var(--accent); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: 0.01em; margin-bottom: 16px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Servicos ---------- */
.servicos { background: var(--bg-alt); text-align: center; }
.servicos h2 { margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; text-align: left; }
.card { position: relative; overflow: hidden; background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .35s ease, border-color .3s ease, box-shadow .35s ease; }
.cards.is-visible .card { opacity: 1; transform: none; }
.cards.is-visible .card:nth-child(1) { transition-delay: .05s; }
.cards.is-visible .card:nth-child(2) { transition-delay: .15s; }
.cards.is-visible .card:nth-child(3) { transition-delay: .25s; }
.cards.is-visible .card:nth-child(4) { transition-delay: .35s; }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(139,92,246,0.12), transparent); transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
.card:hover { transform: translateY(-8px); border-color: rgba(167,139,250,0.5); box-shadow: 0 20px 50px -20px rgba(139,92,246,0.4); }
.card:hover::before { transform: translateX(120%); }
.card__icon { font-size: 2.2rem; margin-bottom: 16px; display: inline-block; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.card:hover .card__icon { transform: scale(1.18) rotate(-6deg); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .card, .card::before, .card__icon { transition: none; opacity: 1; transform: none; } }

/* ---------- Processo ---------- */
.processo { text-align: center; }
.processo h2 { margin-bottom: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; text-align: left; margin-top: 48px; }
.step { position: relative; background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .3s ease, border-color .3s ease; }
.steps.is-visible .step { opacity: 1; transform: none; }
.steps.is-visible .step:nth-child(1) { transition-delay: .05s; }
.steps.is-visible .step:nth-child(2) { transition-delay: .15s; }
.steps.is-visible .step:nth-child(3) { transition-delay: .25s; }
.steps.is-visible .step:nth-child(4) { transition-delay: .35s; }
.step:hover { transform: translateY(-6px); border-color: rgba(167,139,250,0.5); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(139,92,246,0.18); color: var(--accent); font-family: var(--font-display); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Case study ---------- */
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.case__browser { perspective: 900px; }
.browser-frame { background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5); transition: transform .2s ease, box-shadow .2s ease; will-change: transform; }
.browser-frame__bar { display: flex; gap: 6px; padding: 12px 16px; background: #0a0f1c; }
.browser-frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.browser-frame__screen { background: #0a0505; padding: 50px 24px; text-align: center; }
.mock-otf__badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(224,38,59,0.15); color: #ff5c6c; font-size: 0.7rem; font-weight: 700; margin-bottom: 16px; animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,38,59,0.35); } 50% { box-shadow: 0 0 0 6px rgba(224,38,59,0); } }
@media (prefers-reduced-motion: reduce) { .browser-frame { transition: none; } .mock-otf__badge { animation: none; } }
.mock-otf__title { font-family: Anton, sans-serif; font-size: 2rem; color: #fff; line-height: 1; margin-bottom: 10px; }
.mock-otf__title span { color: #e0263b; }
.mock-otf__sub { color: #a3a3ab; font-size: 0.85rem; }
.case__text p { color: var(--text-dim); margin-bottom: 20px; }
.check-list { margin-bottom: 28px; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- Sobre ---------- */
.sobre { background: var(--bg-alt); }
.sobre__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.sobre__media { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.sobre__logo { width: 100%; max-width: 220px; }
.sobre__logo-name { text-align: center; margin-top: 20px; font-family: var(--font-display); }
.sobre__logo-name strong { display: block; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em; color: var(--white); }
.sobre__logo-name span { display: block; font-size: 0.85rem; letter-spacing: 0.18em; color: var(--text-dim); margin-top: 4px; }
.sobre__text p { color: var(--text-dim); margin-bottom: 20px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, #7C3AED, #22D3EE); text-align: center; }
.cta-banner__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); max-width: 640px; color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.cta-banner .btn--primary { background: #fff; color: #7C3AED; box-shadow: none; }
.cta-banner .btn--primary:hover { background: #EDEBFF; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.02em; }
.footer__links { display: flex; gap: 24px; font-weight: 600; color: var(--text-dim); }
.footer__links a:hover { color: var(--white); }
.footer__copy { width: 100%; text-align: center; color: var(--text-dim); font-size: 0.8rem; margin-top: 10px; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); box-shadow: 0 8px 24px -6px rgba(0,0,0,0.5); z-index: 200; transition: transform 0.2s ease; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .case__grid, .sobre__grid { grid-template-columns: 1fr; }
  .sobre__media { order: -1; }
}
@media (max-width: 1040px) {
  .nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 20px 24px 28px; gap: 18px; transform: translateY(-150%); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .btn--nav { display: none; }
  .burger { display: flex; }
  .header__inner { flex-wrap: wrap; }
}
@media (min-width: 1041px) { .btn--nav { display: inline-flex; } }
