/* =========================================================
   Boost Studio — Building websites that move businesses forward.
   Paleta: azul-marinho #010E20 · azul #027AFA · azul profundo #003070
   ========================================================= */

:root {
  --bg: #010e20;
  --bg-2: #04162d;
  --panel: #071d38;
  --panel-2: #0a2547;
  --line: rgba(160, 190, 230, 0.14);
  --line-strong: rgba(160, 190, 230, 0.28);
  --text: #eef4ff;
  --muted: #92a6c4;
  --blue: #027afa;
  --blue-hi: #3d9bff;
  --deep: #003070;
  --paper: #f2f5fa;
  --ink: #04142a;
  --ink-2: #33455f;

  --f-display: "Montserrat", "Poppins", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1260px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --header-h: 84px;
  --r: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --cut: 28px; /* corte diagonal inspirado no "B" */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.4vw, 5.1rem); font-weight: 800; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.45vw, 1.24rem); color: var(--muted); max-width: 56ch; }
.accent { color: var(--blue); }
.outline-word { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-hi); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.light .eyebrow { color: var(--blue); }

.pill {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .86rem; color: var(--muted); background: rgba(7, 29, 56, 0.6); margin-bottom: 28px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(2,122,250,.22); }
.pill b { color: var(--text); font-weight: 600; }
.pill i { font-style: normal; color: var(--blue-hi); }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: .98rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(2,122,250,.7); }
.btn--primary:hover { background: var(--blue-hi); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(2,122,250,.85); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,.06); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); background: var(--paper); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; text-decoration: none; color: var(--text); border-bottom: 1.5px solid var(--blue); padding-bottom: 3px; }
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translate(3px, -3px); }

/* ---------- Cabeçalho ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: rgba(1, 14, 32, 0.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before, body.menu-open .site-header::before { opacity: 1; }
body.menu-open .site-header::before { background: var(--bg); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav .nav-link { display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .2s, background-color .2s; }
.main-nav .nav-link:hover, .main-nav .nav-link[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.header-cta .btn { min-height: 46px; padding: 0 22px; font-size: .92rem; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-extra { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 36px; }
  .menu-toggle { display: block; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 24px var(--gutter) 36px;
    display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav .nav-link { font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; color: var(--text); padding: 16px 0; border-radius: 0; background: none !important; }
  .main-nav .nav-link[aria-current="page"] { color: var(--blue-hi); }
  .mobile-extra { display: grid; gap: 14px; margin-top: 32px; }
  .mobile-extra .btn { width: 100%; }
  .mobile-extra p { margin: 0; color: var(--muted); font-size: .92rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Secções ---------- */
main { display: block; }
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-block: clamp(60px, 8vw, 100px); }
.section--panel { background: var(--bg-2); }
.light { background: var(--paper); color: var(--ink); }
.light .lead { color: var(--ink-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* Grelha de fundo subtil */
.grid-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 900px; height: 900px; right: -200px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(2,122,250,.28), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: 38px; }
.hero-note { margin-top: 30px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-note a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.hero-note a:hover { border-color: var(--blue); }
.hero-note svg { width: 18px; height: 18px; color: var(--blue-hi); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.08; }
.hero-visual .b-mark { position: absolute; inset: 6% -4% auto 8%; width: 96%; color: var(--deep); filter: drop-shadow(0 30px 80px rgba(2,122,250,.25)); }
.hero-visual .b-mark path { fill: url(#bgrad); }
.hero-visual .phones { position: absolute; left: -4%; top: -4%; width: 108%; max-width: none; filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite; }
@media (max-width: 520px) { .pill { font-size: .74rem; gap: 6px; padding: 7px 12px 7px 9px; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-card {
  position: absolute; right: -2%; top: 4%; z-index: 2; max-width: 280px;
  padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line-strong);
  background: rgba(7, 29, 56, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); text-decoration: none; transition: transform .3s var(--ease), border-color .3s;
}
.hero-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.hero-card small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-hi); font-weight: 600; margin-bottom: 4px; }
.hero-card strong { display: block; font-family: var(--f-display); font-size: 1.02rem; letter-spacing: -.01em; }
.hero-card span { font-size: .86rem; color: var(--muted); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; width: 100%; margin: 12px auto 0; }
  .hero-card { position: relative; right: auto; top: auto; display: block; max-width: none; margin-top: 8px; }
  .hero-visual { aspect-ratio: auto; }
  .hero-visual .phones { position: relative; left: -4%; top: 0; }
  .hero-visual .b-mark { inset: 4% -4% auto 8%; }
}

/* Faixa de serviços */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker .track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker .group { display: flex; align-items: center; flex: none; }
.ticker span { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.3rem); letter-spacing: -.03em; padding: 22px 30px; white-space: nowrap; }
.ticker span.o { color: transparent; -webkit-text-stroke: 1.2px var(--muted); }
.ticker svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service {
  position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 38px);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: border-color .3s, transform .4s var(--ease);
}
.service::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(2,122,250,.22), transparent 65%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.service:hover { border-color: rgba(2,122,250,.6); transform: translateY(-4px); }
.service:hover::after { opacity: 1; }
.service .num { font-family: var(--f-display); font-weight: 700; font-size: .85rem; color: var(--blue-hi); letter-spacing: .14em; }
.service .icon { width: 56px; height: 56px; margin: 26px 0 22px; border-radius: 14px; display: grid; place-items: center; background: rgba(2,122,250,.12); border: 1px solid rgba(2,122,250,.35); color: var(--blue-hi); }
.service .icon svg { width: 26px; height: 26px; }
.service h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 12px; }
.service > p { color: var(--muted); font-size: .98rem; }
.service ul { list-style: none; margin: auto 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .95rem; }
.service li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.service li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%, 40% 60%, 0 60%); }
@media (max-width: 960px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Projeto em destaque ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-media { position: relative; display: block; border-radius: calc(var(--r) + 6px); overflow: hidden; border: 1px solid var(--line); clip-path: polygon(calc(var(--cut) * 1.6) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--cut) * 1.6)); }
.feature-media img { width: 100%; transition: transform 1s var(--ease); }
.feature-media:hover img { transform: scale(1.03); }
.feature-media .tag { position: absolute; top: 18px; right: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(1,14,32,.75); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 600; }
.feature-copy h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.03em; margin-bottom: 8px; }
.feature-copy .meta { color: var(--blue-hi); font-weight: 500; font-size: .95rem; margin-bottom: 22px; }
.feature-copy p { color: var(--muted); }
.deliver { list-style: none; padding: 0; margin: 26px 0 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.deliver li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .86rem; color: var(--text); background: rgba(255,255,255,.02); }
@media (max-width: 960px) { .feature { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Processo (fundo claro) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); counter-reset: step; }
.step { position: relative; padding: 30px 26px 10px 0; counter-increment: step; }
.step + .step { padding-left: 26px; border-left: 1px solid rgba(4,20,42,.14); }
.step::before { content: "0" counter(step); display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 5vw, 4.4rem); letter-spacing: -.05em; line-height: 1; color: var(--blue); margin-bottom: 26px; }
.step h3 { margin-bottom: 10px; color: var(--ink); }
.step p { color: var(--ink-2); font-size: .97rem; margin: 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid rgba(4,20,42,.14); margin-top: 20px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid rgba(4,20,42,.14); margin-top: 16px; }
}

/* ---------- Princípios ---------- */
.principles { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.principles-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.principles-sticky p { margin-top: 24px; }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.p-list li:last-child { border-bottom: 1px solid var(--line); }
.p-list .ic { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--blue-hi); transition: background-color .3s, color .3s, border-color .3s; }
.p-list .ic svg { width: 24px; height: 24px; }
.p-list li:hover .ic { background: var(--blue); color: #fff; border-color: var(--blue); }
.p-list h3 { margin: 4px 0 8px; }
.p-list p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .principles { grid-template-columns: minmax(0, 1fr); } .principles-sticky { position: static; } }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; }
.contact .b-bg { position: absolute; right: -6%; bottom: -14%; width: min(720px, 70vw); color: rgba(2,122,250,.07); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy h2 { margin-bottom: 24px; }
.mail-big { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, 2.1vw, 1.5rem); letter-spacing: -.02em; text-decoration: none; word-break: break-all; padding-bottom: 6px; border-bottom: 2px solid var(--blue); }
.mail-big svg { width: 22px; height: 22px; color: var(--blue-hi); flex: none; }
.mail-big:hover { color: var(--blue-hi); }
.contact-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; color: var(--muted); font-size: .97rem; }
.contact-points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.contact-points svg { width: 20px; height: 20px; color: var(--blue-hi); margin-top: 3px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form-panel { min-width: 0; padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--r) + 6px); background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.form-panel h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-panel > p { color: var(--muted); font-size: .96rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 600; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); }
.req { color: var(--blue-hi); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  background: rgba(1, 14, 32, 0.7); border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392a6c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--bg); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(146,166,196,.65); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(160,190,230,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: rgba(1,14,32,.95); box-shadow: 0 0 0 4px rgba(2,122,250,.22); }
.field .error-msg { display: none; font-size: .84rem; color: #ff8a8a; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff6b6b; }
.field.has-error .error-msg { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.chip span:hover { border-color: rgba(160,190,230,.5); color: var(--text); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .88rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.consent a { color: var(--text); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-actions .small { margin: 0; font-size: .84rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-size: .95rem; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34,197,94,.5); color: #c9f7d8; }
.form-status.is-error { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255,107,107,.5); color: #ffd2d2; }
.form-status strong { display: block; font-family: var(--f-display); margin-bottom: 2px; color: #fff; }
.form-status a { color: #fff; font-weight: 600; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-actions .btn { width: 100%; } }

/* ---------- Estudo de caso ---------- */
.case-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.case-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-bottom: 26px; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.case-meta div { padding: 20px 20px 0 0; }
.case-meta div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.case-meta dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.case-meta dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; }
@media (max-width: 760px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-meta div:nth-child(3) { padding-left: 0; border-left: 0; } }

.case-cover { border-radius: calc(var(--r) + 6px); overflow: hidden; border: 1px solid var(--line); }
.case-cover img { width: 100%; }

.case-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.case-split h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.case-split p { color: var(--muted); font-size: 1.05rem; }
.case-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.case-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.case-list li:last-child { border-bottom: 1px solid var(--line); }
.case-list b { font-family: var(--f-display); color: var(--blue-hi); font-size: .9rem; letter-spacing: .1em; padding-top: 3px; }
.case-list h3 { font-size: 1.2rem; margin-bottom: 6px; }
.case-list p { margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .case-split { grid-template-columns: minmax(0, 1fr); } }

.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #0c1a2e; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #0f2240; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3d5c; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 12px; flex: 1; max-width: 340px; padding: 4px 12px; border-radius: 6px; background: rgba(1,14,32,.6); font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.shots .wide { grid-column: 1 / -1; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .shots { grid-template-columns: minmax(0, 1fr); } }

.mobile-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.mobile-pair figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.mobile-pair img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .mobile-pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; border-radius: calc(var(--r) + 10px); padding: clamp(40px, 7vw, 88px); background: var(--blue); color: #fff; isolation: isolate; }
.cta-final .b-bg { position: absolute; right: -40px; top: -40px; height: 130%; width: auto; color: rgba(255,255,255,.12); z-index: -1; }
.cta-final h2 { max-width: 16ch; }
.cta-final p { margin: 22px 0 32px; max-width: 48ch; color: rgba(255,255,255,.88); font-size: 1.1rem; }

/* ---------- Texto legal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 44px 0 12px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--muted); }
.notice { padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(2,122,250,.5); background: rgba(2,122,250,.1); margin-bottom: 30px; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 90px); background: var(--bg); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.footer-top img { height: 46px; width: auto; margin-bottom: 22px; }
.footer-slogan { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; max-width: 20ch; }
.site-footer h4 { font-family: var(--f-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--text); transition: color .2s; }
.site-footer a:hover { color: var(--blue-hi); }
.footer-wordmark { font-family: var(--f-display); font-weight: 800; letter-spacing: -.06em; line-height: .8; font-size: clamp(3.4rem, 11.4vw, 12.5rem); color: transparent; -webkit-text-stroke: 1px var(--line-strong); white-space: nowrap; user-select: none; margin-bottom: -0.12em; text-align: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Animações ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .d1 { transition-delay: .08s; } .js .d2 { transition-delay: .16s; } .js .d3 { transition-delay: .24s; }
.js .hero .reveal { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 404 / obrigado */
.center-page { min-height: 78vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.center-page .big { font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 20vw, 13rem); letter-spacing: -.06em; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--blue); }
.center-page .lead { margin: 18px auto 30px; }
.center-page .btn-row { justify-content: center; }

/* Lançamento (estudo de caso) */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.launch-story { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 50px 90px -40px rgba(2,122,250,.45); transform: rotate(2deg); }
@media (max-width: 760px) { .launch { grid-template-columns: minmax(0, 1fr); } .launch-story { max-width: 320px; margin-inline: auto; transform: none; } }
