/* fontes hospedadas no próprio site (OFL): sem requisições a terceiros, melhor LCP e privacidade */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/fonts/spacegrotesk-400-700.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibmplexmono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibmplexmono-500.woff2) format('woff2'); }

:root {
  --bg: #12152B; --ink: #1B1F3B; --card: rgba(255,255,255,.04); --stroke: rgba(255,255,255,.09);
  --blue: #4C7DF0; --blue-l: #7FA8FF; --blue-p: #9FC0FF; --text: #F2F5FF; --muted: #A5B0D6;
  --mono: 'IBM Plex Mono', ui-monospace, monospace; --sans: 'Space Grotesk', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); position: relative; z-index: 2; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; font-weight: 700; }
.grad { background: linear-gradient(100deg, #fff 0%, var(--blue-p) 40%, var(--blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-l); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--blue-l); }
.center { text-align: center; align-items: center; margin-inline: auto; }
.sec-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; max-width: 760px; }

/* aurora */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 16s ease-in-out infinite alternate; }
.b1 { width: 620px; height: 620px; background: #3D63E0; left: -160px; top: -200px; }
.b2 { width: 520px; height: 520px; background: #7FA8FF; right: -120px; top: 40px; opacity: .3; animation-delay: -5s; }
.b3 { width: 460px; height: 460px; background: #6B4CF0; left: 40%; top: 340px; opacity: .25; animation-delay: -9s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.12); } }
.noise { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000, transparent 75%); }

/* nav */
header { position: sticky; top: 14px; z-index: 40; padding: 0 clamp(12px, 3vw, 24px); }
.nav { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border: 1px solid var(--stroke); border-radius: 999px; background: rgba(27,31,59,.65); backdrop-filter: blur(18px); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand i { font-style: normal; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 16px; letter-spacing: -.05em; }
.brand b { font-size: 20px; letter-spacing: -.05em; } .brand b span { color: var(--blue-l); }
nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }
nav a.l { font-size: 15px; color: var(--muted); transition: color .2s; } nav a.l:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; padding: 13px 24px; border-radius: 999px; background: linear-gradient(180deg, #6C95F6, var(--blue)); color: #fff; box-shadow: 0 8px 30px -8px rgba(76,125,240,.8), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(76,125,240,.95), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.ghost { background: var(--card); border: 1px solid var(--stroke); box-shadow: none; backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255,255,255,.09); box-shadow: none; }
nav .btn { padding: 9px 18px; font-size: 14px; }
.menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--stroke); background: var(--card); color: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; }
.menu i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav { border-radius: 28px; padding: 8px 8px 8px 16px; }
  .menu { display: inline-flex; }
  nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 4px 6px; border-top: 1px solid var(--stroke); }
  nav.open { display: flex; }
  nav a.l { padding: 14px 14px; border-radius: 12px; font-size: 17px; }
  nav a.l:hover { background: rgba(255,255,255,.06); }
  nav .btn { justify-content: center; padding: 14px 18px; font-size: 16px; margin-top: 4px; }
}

/* hero */
.hero { padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(48px, 7vw, 90px); text-align: center; }
.badge { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; padding: 7px 8px 7px 16px; border: 1px solid var(--stroke); background: var(--card); border-radius: 999px; font-size: 14px; color: var(--blue-p); backdrop-filter: blur(8px); }
.badge em { font-style: normal; font-family: var(--mono); font-size: 12px; background: var(--blue); color: #fff; padding: 4px 10px; border-radius: 999px; }
h1 { font-size: clamp(44px, 8vw, 112px); line-height: 1; font-weight: 700; letter-spacing: -.05em; margin: 28px auto; max-width: 1000px; }
.lead { font-size: clamp(18px, 2vw, 23px); color: var(--muted); max-width: 680px; margin: 0 auto 38px; text-wrap: pretty; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* marquee */
.marq { margin-top: clamp(48px, 7vw, 88px); border-block: 1px solid var(--stroke); padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 56px; width: max-content; animation: scroll 32s linear infinite; font-family: var(--mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.track span { display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; } .track span::after { content: "✦"; color: var(--blue); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; border: 1px solid var(--stroke); border-radius: 24px; background: var(--card); padding: 30px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 250px; transition: border-color .3s, transform .3s; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(127,168,255,.18), transparent 60%); opacity: 0; transition: opacity .3s; z-index: -1; }
.tile:hover { border-color: rgba(127,168,255,.45); transform: translateY(-3px); } .tile:hover::before { opacity: 1; }
.tile .n { font-family: var(--mono); font-size: 13px; color: var(--blue-l); }
.tile h3 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; max-width: 440px; }
.tile .art { margin-top: auto; padding-top: 14px; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
.tile.hl { background: linear-gradient(140deg, #3D63E0 0%, #4C7DF0 45%, #6B4CF0 120%); border-color: rgba(255,255,255,.25); }
.tile.hl p { color: #E8EEFF; } .tile.hl .n { color: #fff; }
.tile.hl { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; min-height: 0; padding: clamp(28px, 4vw, 44px); }
.tile.hl .hl-text { display: flex; flex-direction: column; gap: 12px; flex: 1 1 360px; max-width: 640px; }
.tile.hl h3 { font-size: clamp(26px, 3vw, 36px); }
.tile.hl p { max-width: 560px; }
.tile.hl .btn { flex: 0 0 auto; background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.tile.hl .btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .s2, .s3, .s4, .s6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .s2, .s3, .s4, .s6 { grid-column: auto; } .tile.hl .btn { width: 100%; justify-content: center; } }

/* mini arts */
.wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.wave i { flex: 1; background: linear-gradient(var(--blue-p), var(--blue)); border-radius: 4px; animation: eq 1.4s ease-in-out infinite; height: 20%; }
@keyframes eq { 50% { height: 100%; } }
.bub { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bub span { padding: 9px 14px; border-radius: 16px; max-width: 86%; }
.bub .u { background: rgba(255,255,255,.08); align-self: flex-start; border-bottom-left-radius: 4px; }
.bub .a { background: var(--blue); align-self: flex-end; border-bottom-right-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--blue-p); background: rgba(255,255,255,.03); }
.frame { aspect-ratio: 16/8; border: 1px solid var(--stroke); border-radius: 12px; background: linear-gradient(135deg, rgba(127,168,255,.25), rgba(107,76,240,.2)); position: relative; }
.frame::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; }
.src { font-family: var(--mono); font-size: 12px; color: var(--blue-p); border-left: 2px solid var(--blue); padding-left: 10px; }

/* process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; position: relative; }
.step { border: 1px solid var(--stroke); border-radius: 20px; padding: 28px; background: var(--card); position: relative; display: flex; flex-direction: column; gap: 12px; }
.step .num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; background: linear-gradient(135deg, var(--blue), #6B4CF0); box-shadow: 0 8px 24px -6px rgba(76,125,240,.7); }
.step h3 { font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); text-wrap: pretty; }

/* case */
.case { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; }
.case p { color: var(--muted); font-size: 19px; margin: 18px 0 0; text-wrap: pretty; }
.list { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: baseline; padding: 20px 24px; border: 1px solid var(--stroke); border-radius: 16px; background: var(--card); transition: border-color .2s; }
.row:hover { border-color: rgba(127,168,255,.4); }
.row b { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-l); font-weight: 500; }
.row span { font-size: 17px; }

/* team + contact */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.person { border: 1px solid var(--stroke); border-radius: 24px; padding: 28px; background: var(--card); display: flex; gap: 22px; align-items: center; }
.av { width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; background: conic-gradient(from 200deg, var(--blue), #6B4CF0, var(--blue-l), var(--blue)); display: grid; place-items: center; font-size: 28px; font-weight: 700; letter-spacing: -.05em; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.person h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.person small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-l); margin: 6px 0; }
.person p { margin: 0; color: var(--muted); }

.final { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 36px; padding: clamp(36px, 7vw, 88px); text-align: center; background: linear-gradient(160deg, rgba(76,125,240,.35), rgba(107,76,240,.18) 60%, rgba(27,31,59,.4)); }
.final::before { content: ""; position: absolute; width: 500px; height: 500px; left: 50%; top: -280px; transform: translateX(-50%); background: var(--blue-l); filter: blur(120px); opacity: .35; }
.final > * { position: relative; }
.final h2 { font-size: clamp(38px, 6vw, 80px); letter-spacing: -.05em; }
.final p { color: #D5DEFF; font-size: 20px; max-width: 580px; margin: 20px auto 40px; text-wrap: pretty; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; text-align: left; }
.ct { padding: 22px 24px; border-radius: 18px; background: rgba(18,21,43,.6); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(10px); transition: .25s; }
.ct:hover { background: rgba(18,21,43,.9); border-color: var(--blue-l); transform: translateY(-3px); }
.ct b { font-size: 20px; font-weight: 600; } .ct small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-p); }
.ct code { font-family: var(--mono); font-size: 15px; margin-top: 8px; }

footer { padding: 36px 0 48px; border-top: 1px solid var(--stroke); color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== equipe (4 pessoas) ===== */
.team { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.person { align-items: flex-start; }
.person > div:last-child { min-width: 0; }
.person small { overflow-wrap: anywhere; }
.tasks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tasks span { font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--blue-p); background: rgba(255,255,255,.04); }

/* ===== carrosséis ===== */
.car-sub { margin: 0; color: var(--muted); font-size: 18px; max-width: 620px; text-wrap: pretty; }
.carousel { position: relative; }
.car-track { position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding: 4px 2px 10px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 4px; border-radius: 12px; }
.slide { flex: 0 0 auto; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.slide figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.slide.v { width: calc((100% - 16px) / 2); }
.media { aspect-ratio: 16 / 9; border: 1px solid var(--stroke); border-radius: 20px; overflow: hidden; background: #0B0D1A; position: relative; box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }
.media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, filter .3s; filter: brightness(.82); }
.yt:hover img { transform: scale(1.03); filter: brightness(.95); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; font-size: 24px; color: #fff; background: rgba(27,31,59,.78); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.yt:hover .play { transform: scale(1.08); background: var(--blue); }
.yt:focus-visible { outline: 3px solid var(--blue-l); outline-offset: -4px; }
.slide.a { width: min(250px, 72%); }
.phone { aspect-ratio: 9 / 18; border-radius: 30px; border: 6px solid #0B0D1A; outline: 1px solid var(--stroke); overflow: hidden; background: #0B0D1A; box-shadow: 0 24px 50px -26px rgba(0,0,0,.9); position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.car-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.carousel.fits .car-ui { display: none; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--stroke); background: var(--card); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); transition: background .2s, border-color .2s, opacity .2s; }
.car-btn:hover:not(:disabled) { background: rgba(255,255,255,.12); border-color: rgba(127,168,255,.5); }
.car-btn:disabled { opacity: .3; cursor: default; }
.car-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dot { all: unset; box-sizing: border-box; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); cursor: pointer; transition: width .25s, background .25s; position: relative; }
.dot::after { content: ""; position: absolute; inset: -10px -4px; }
.dot[aria-current="true"] { width: 26px; background: var(--blue-l); }
.dot:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 3px; }

/* ===== botão fixo do WhatsApp ===== */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 16px; border-radius: 999px; background: #25D366; color: #06301A; font-weight: 700; font-size: 16px; letter-spacing: -.01em; box-shadow: 0 12px 34px -8px rgba(37,211,102,.65), 0 4px 14px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: ring 2.6s ease-out infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
.fab svg { width: 28px; height: 28px; flex-shrink: 0; fill: currentColor; }
.fab:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -8px rgba(37,211,102,.8), 0 4px 14px rgba(0,0,0,.4); }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ===== responsividade ===== */
@media (max-width: 900px) { .slide.v { width: 86%; } .car-sub { font-size: 17px; } }
@media (max-width: 760px) {
  section { padding: clamp(48px, 12vw, 72px) 0; }
  header { top: 8px; }
  .hero { padding-top: 48px; }
  .hero .lead { font-size: 18px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .tile { padding: 24px 22px; min-height: 0; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .step, .person { padding: 22px; }
  .ct code { overflow-wrap: anywhere; }
  .final { border-radius: 26px; }
  footer { padding-bottom: 104px; }
  .sec-head { margin-bottom: 36px; }
}
@media (max-width: 560px) {
  .fab { width: 58px; padding: 0; justify-content: center; } .fab span { display: none; }
  .car-btn { width: 44px; height: 44px; }
  .slide.a { width: 68%; }
}
@media (max-width: 420px) { .person { flex-direction: column; align-items: flex-start; } .av { width: 72px; height: 72px; font-size: 24px; } }
@media (max-width: 380px) { h1 { font-size: 38px; } .wrap { padding: 0 16px; } }

.js .reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .7s ease, transform .7s ease, filter .7s ease; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; transform: none; filter: none; } html { scroll-behavior: auto; } }
