/* madeaze · site público
   Paleta e tipografia do mockup "madeaze · Site"; marca do "Logo refinement com monograma". */

:root {
  --navy: #1A2332;
  --navy-2: #232E40;
  --navy-3: #111823;
  --navy-4: #0D131C;
  --line-dark: #2C384B;
  --border-dark: #3A475C;
  --coral: #FF6B4A;
  --coral-text: #D9492A;
  --coral-soft: #FFF0EC;
  --paper: #F5F4F1;
  --white: #FFFFFF;
  --border: #E6E3DC;
  --border-soft: #EFECE6;
  --gray: #5A6272;
  --gray-2: #6B7280;
  --gray-light: #C3CAD6;
  --gray-mid: #A7B0BF;
  --gray-footer: #8490A3;
  --gray-line: #5C6A80;
  --field-bg: #FAFAF8;
  --error: #C0392B;

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --gutter: 80px;
  --max-width: 1440px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.theme-dark { background: var(--navy); color: var(--white); }

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--coral); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

.mobile-only { display: none; }

/* ---------- Marca ---------- */

.lockup { display: inline-flex; align-items: center; gap: 14px; }
.lockup-text {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 14px; border-left: 1px solid var(--border);
}
.lockup-name { font-family: 'JetBrains Mono', var(--mono); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.lockup-tagline { font-family: 'JetBrains Mono', var(--mono); font-weight: 700; font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap; color: var(--gray-2); }
.lockup-dark .lockup-text { border-left-color: var(--border-dark); }
.lockup-dark .lockup-tagline { color: var(--gray-mid); }
.brand-badge { flex-shrink: 0; }

.brand-watermark { position: absolute; pointer-events: none; opacity: 0.05; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-navy .arrow { color: var(--coral); font-family: var(--mono); }
.btn-coral { background: var(--coral); color: var(--navy); font-weight: 700; }
.btn-coral:hover { background: #FF8166; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline .arrow { color: var(--coral); }
.btn-outline-light { border-color: var(--border-dark); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); }
.theme-dark .site-header { background: var(--navy); border-bottom-color: var(--line-dark); }
.site-header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter);
  height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header-brand { display: inline-flex; }
.site-header-brand:hover { color: inherit; }
.site-nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.site-nav a.active { color: var(--coral-text); }
.theme-dark .site-nav a.active { color: var(--coral); }
.site-header-cta-menu { display: none; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 14px;
  background: var(--navy); color: var(--white); align-items: center; justify-content: center; cursor: pointer;
}
.theme-dark .menu-toggle { background: var(--navy-2); }
.site-header-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* ---------- Idioma ---------- */

/* Controle segmentado PT | EN: os dois idiomas sempre visíveis, o atual preenchido. */
.lang-switch {
  display: inline-flex; align-items: center; padding: 3px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 999px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.lang-switch a {
  min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--gray);
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active, .lang-switch a.active:hover { background: var(--navy); color: var(--white); }
.theme-dark .lang-switch, .site-footer .lang-switch { border-color: var(--border-dark); }
.theme-dark .lang-switch a, .site-footer .lang-switch a { color: var(--gray-mid); }
.theme-dark .lang-switch a:hover, .site-footer .lang-switch a:hover { color: var(--white); }
.theme-dark .lang-switch a.active, .site-footer .lang-switch a.active { background: var(--coral); color: var(--navy); }

/* Sugestão discreta para quem tem o navegador em outro idioma (nunca redireciona sozinha). */
.lang-hint { background: var(--navy-3); color: var(--white); font-size: 14px; }
.lang-hint-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.lang-hint p { display: flex; align-items: center; gap: 10px; color: var(--gray-light); }
.lang-hint-icon { font-family: var(--mono); font-size: 12px; color: var(--coral); }
.lang-hint-actions { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.lang-hint-switch { font-weight: 700; color: var(--coral); }
.lang-hint-switch:hover { color: var(--white); }
.lang-hint-dismiss { color: var(--gray-mid); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Seções ---------- */

.section { padding: 110px 0; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-dark { background: var(--navy); color: var(--white); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.section-title { font-size: 52px; line-height: 1.05; font-weight: 700; letter-spacing: -1.5px; max-width: 720px; margin-top: 16px; }
.section-intro { font-size: 18px; line-height: 1.6; color: var(--gray); max-width: 420px; }
.section-dark .section-intro { color: var(--gray-light); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--coral-text);
}
.eyebrow-coral { color: var(--coral); }
.eyebrow-navy { color: var(--navy); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }

.label { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--gray); }
.label-light { color: var(--gray-mid); }

.page-title { font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -2.5px; }
.code-highlight { color: var(--coral); font-family: var(--mono); letter-spacing: -0.05em; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 96px 0 110px; }
.hero-watermark { width: 520px; right: -60px; bottom: -120px; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 64px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero-text .eyebrow { letter-spacing: 2px; }
.hero-title { font-size: 76px; line-height: 1.02; font-weight: 700; letter-spacing: -2.5px; }
.hero-sub { font-size: 21px; line-height: 1.55; color: var(--gray-light); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero-stats { display: flex; gap: 40px; padding-top: 36px; margin-top: 20px; border-top: 1px solid var(--line-dark); }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt { font-family: var(--mono); font-size: 32px; font-weight: 700; }
.hero-stats dd { font-size: 14px; color: var(--gray-mid); }

.hero-visual { position: relative; padding-top: 12px; }
.code-window {
  background: var(--navy-3); border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.code-window-bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--navy-4); border-bottom: 1px solid var(--line-dark); }
.window-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-dark); }
.window-dot-coral { background: var(--coral); }
.code-window-file { margin-left: 14px; font-family: var(--mono); font-size: 13px; color: var(--gray-footer); }
.code-window-body {
  margin: 0; padding: 28px 30px; font-family: var(--mono); font-size: 16px; line-height: 1.9;
  color: #E7EAF0; white-space: pre; overflow-x: auto;
}
.code-window-body .ln { color: var(--gray-line); }
.code-window-body .kw { color: var(--coral); }
.code-window-body .str { color: #9FD6B6; }
.code-window-body .fn { color: #7FA7E8; }
.toast-deploy {
  position: absolute; left: -36px; bottom: 40px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--white); color: var(--navy); border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}
.toast-deploy strong { display: block; font-size: 15px; }
.toast-deploy small { display: block; font-size: 13px; color: var(--gray); }
.toast-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: var(--navy); display: flex; align-items: center; justify-content: center; }

/* ---------- Tecnologias ---------- */

.stack { background: var(--white); border-bottom: 1px solid var(--border); }
.stack-inner { min-height: 120px; display: flex; align-items: center; gap: 56px; }
.stack-title { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); width: 180px; flex-shrink: 0; }
.stack-list { flex-grow: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-family: var(--mono); font-size: 20px; font-weight: 500; }

/* ---------- Serviços ---------- */

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px; min-height: 220px;
}
.service-top { display: flex; justify-content: space-between; align-items: center; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; }
.service-num { font-family: var(--mono); font-size: 13px; color: #8A8F99; }
.service-title { font-size: 22px; font-weight: 700; }
.service-text { font-size: 16px; line-height: 1.55; color: var(--gray); }
.service-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.service-dark .service-icon { background: var(--coral); color: var(--navy); }
.service-dark .service-num { color: var(--gray-mid); }
.service-dark .service-text { color: var(--gray-light); }

/* ---------- Vitrine (catálogo na home) ---------- */

.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.showcase-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.showcase-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.showcase-title { font-size: 24px; font-weight: 700; }
.showcase-text { font-size: 15px; line-height: 1.55; color: var(--gray); flex-grow: 1; }
.showcase-footer, .product-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; }
.price { display: flex; flex-direction: column; gap: 2px; }
.price small { font-size: 13px; color: var(--gray); }
.price strong { font-family: var(--mono); font-size: 22px; font-weight: 700; }

/* Ilustrações em CSS (mini-interfaces do mockup). */
.illustration { height: 250px; padding: 28px 28px 0; display: flex; background: var(--paper); }
.illustration-ecommerce { background: var(--coral); }
.illustration-systems, .illustration-data, .illustration-apps { background: var(--navy); }
.ilu-window { flex-grow: 1; background: var(--white); border-radius: 12px 12px 0 0; border: 1px solid var(--border); border-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.ilu-bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border-soft); }
.ilu-bar i { width: 7px; height: 7px; border-radius: 50%; background: #D8D4CC; }
.ilu-bar i:first-child { background: var(--coral); }
.ilu-bar-navy i:first-child { background: var(--navy); }
.ilu-site { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ilu-site b { height: 14px; background: var(--navy); border-radius: 4px; }
.ilu-site i { height: 8px; background: var(--border); border-radius: 4px; }
.ilu-site em { height: 22px; width: 90px; background: var(--coral); border-radius: 999px; margin-top: 6px; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.ilu-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ilu-three span { height: 44px; background: var(--paper); border-radius: 6px; }
.ilu-products { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ilu-products div { display: flex; flex-direction: column; gap: 6px; }
.ilu-products b { height: 72px; background: var(--paper); border-radius: 8px; }
.ilu-products i { height: 7px; width: 80%; background: var(--border); border-radius: 4px; }
.ilu-products em { height: 9px; width: 50%; background: var(--navy); border-radius: 4px; }
.ilu-panel { flex-direction: row; background: var(--navy-2); border: 0; }
.ilu-sidebar { width: 56px; background: var(--navy-3); display: flex; flex-direction: column; gap: 10px; padding: 14px 0; align-items: center; }
.ilu-sidebar i { width: 22px; height: 6px; background: var(--border-dark); border-radius: 3px; }
.ilu-sidebar i.on { background: var(--coral); }
.ilu-content { flex-grow: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ilu-kpis, .ilu-kpis4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ilu-kpis4 { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ilu-kpis i { height: 42px; background: var(--line-dark); border-radius: 6px; }
.ilu-kpis4 i { height: 56px; background: var(--line-dark); border-radius: 8px; }
.ilu-kpis i.on, .ilu-kpis4 i.on { background: var(--coral); }
.ilu-bars { height: 100px; background: var(--line-dark); border-radius: 6px; display: flex; align-items: flex-end; gap: 8px; padding: 10px; }
.ilu-bars i { width: 14px; background: var(--gray-line); border-radius: 2px; }
.ilu-bars i.on { background: var(--coral); }
.b30 { height: 30%; } .b35 { height: 35%; } .b40 { height: 40%; } .b45 { height: 45%; } .b55 { height: 55%; }
.b60 { height: 60%; } .b70 { height: 70%; } .b75 { height: 75%; } .b90 { height: 90%; }

/* ---------- Cases ---------- */

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case {
  position: relative; background: var(--navy-2); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 22px; min-height: 520px;
}
.case-screen { flex-grow: 1; min-height: 260px; background: var(--paper); border-radius: 14px; padding: 22px; display: flex; overflow: hidden; }
.case-screen-data { background: var(--navy-3); }
.case-screen-photo { padding: 0; background: var(--navy-3); }
.case-screen-photo img { width: 100%; height: 100%; object-fit: cover; }
.case-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.case-info > div { display: flex; flex-direction: column; gap: 8px; }
.case-title { font-size: 26px; font-weight: 700; }
.case-text { font-size: 15px; color: var(--gray-light); }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { color: var(--white); }
.case:hover .btn-round { transform: translate(2px, -2px); }
.btn-round {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--coral); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 20px; font-weight: 700;
  transition: transform .15s;
}

.ilu-showcase { flex-grow: 1; display: flex; flex-direction: column; gap: 14px; }
.ilu-showcase-top { display: flex; justify-content: space-between; align-items: center; }
.ilu-showcase-top b { height: 14px; width: 120px; background: var(--navy); border-radius: 4px; }
.ilu-showcase-top span { display: flex; gap: 10px; }
.ilu-showcase-top i { height: 8px; width: 40px; background: #D8D4CC; border-radius: 4px; }
.ilu-showcase-grid { flex-grow: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ilu-showcase-grid div { background: var(--white); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.ilu-showcase-grid span { flex-grow: 1; min-height: 90px; background: #C9CFD9; }
.ilu-showcase-grid div:nth-child(2) span { background: #B6BECB; }
.ilu-showcase-grid b { height: 8px; width: 70%; margin: 10px 10px 6px; background: var(--navy); border-radius: 4px; }
.ilu-showcase-grid em { height: 10px; width: 50%; margin: 0 10px 10px; background: var(--coral); border-radius: 4px; }
.ilu-dash { flex-grow: 1; display: flex; flex-direction: column; gap: 14px; }
.ilu-dash-bottom { flex-grow: 1; display: flex; gap: 12px; }
.ilu-bars-lg { flex-grow: 2; height: auto; background: var(--navy); padding: 16px; gap: 10px; }
.ilu-bars-lg i { width: auto; flex-grow: 1; border-radius: 3px; }
.ilu-donut { flex-grow: 1; background: var(--navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.ilu-donut span { width: 110px; height: 110px; border-radius: 50%; border: 18px solid var(--coral); border-right-color: var(--border-dark); border-bottom-color: var(--border-dark); }

.cases-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.cases-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding: 0 28px; border: 1px solid var(--line-dark); border-radius: 16px;
  font-size: 17px; font-weight: 600;
}
.cases-list a:hover { border-color: var(--coral); color: var(--white); }
.cases-list .muted { color: var(--gray-mid); font-weight: 400; }
.cases-list .arrow { font-family: var(--mono); color: var(--coral); }

/* ---------- Processo ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 52px; counter-reset: none; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 3px solid var(--navy); }
.step-active { border-top-color: var(--coral); }
.step-num { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.step-active .step-num { color: var(--coral-text); }
.step h3 { font-size: 22px; font-weight: 700; }
.step p { font-size: 16px; line-height: 1.55; color: var(--gray); }

/* ---------- Contato (home) ---------- */

.section-contact { background: var(--paper); padding: 40px 0 80px; }
.contact-card {
  position: relative; overflow: hidden; background: var(--coral); color: var(--navy);
  border-radius: 32px; padding: 64px; display: flex; gap: 64px;
}
.contact-braces { position: absolute; right: 30px; top: -60px; font-family: var(--mono); font-weight: 700; font-size: 300px; line-height: 1; color: var(--navy); opacity: .07; pointer-events: none; }
.contact-text { position: relative; width: 520px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-title { font-size: 56px; line-height: 1.02; font-weight: 700; letter-spacing: -2px; }
.contact-sub { font-size: 18px; line-height: 1.55; }
.contact-links { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.contact-links a { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.contact-links a:hover { color: var(--white); }
.icon-round { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-actions-mobile { display: none; }
.contact-form { position: relative; flex-grow: 1; min-width: 0; }

/* ---------- Formulário ---------- */

.form { background: var(--white); color: var(--navy); border-radius: 22px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form-full { border-radius: 28px; padding: 48px; gap: 20px; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.form-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.form-interest { font-size: 14px; color: var(--gray); }
.form-interest .mono { color: var(--coral-text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 10px; }
.optional { font-weight: 400; color: var(--gray); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; min-height: 52px; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 0 16px; font-size: 16px; background: var(--field-bg); color: var(--navy);
  transition: border-color .15s, background-color .15s;
}
.field textarea { padding: 14px 16px; min-height: 96px; resize: vertical; line-height: 1.5; }
.form-full .field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.field [aria-invalid=true] { border-color: var(--error); background: #FFF6F4; }
.field-error { font-size: 13px; font-weight: 500; color: var(--error); }
.field-hint { font-size: 13px; color: var(--gray); }
.counter { align-self: flex-end; font-family: var(--mono); font-size: 12px; color: var(--gray); margin-top: -4px; }
.counter.near-limit { color: var(--coral-text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chips-budget { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--white);
  font-size: 14px; font-weight: 600; text-align: center; transition: all .15s;
}
.chips-grid .chip span { min-height: 52px; border-radius: 12px; font-size: 15px; }
.chip-budget { flex: 1 1 140px; }
.chip-budget span { min-height: 48px; }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip-budget input:checked + span { background: var(--coral-soft); border-color: var(--coral); color: var(--navy); }
.chip input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }

.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.form-home .form-footer { flex-direction: column; align-items: stretch; }
.consent { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400 !important; color: var(--gray); cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--navy); flex-shrink: 0; }

.honeypot { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.alert-error { background: #FFF0EC; color: #8E2A14; border: 1px solid #F6C3B5; }

.form-success { align-items: flex-start; gap: 18px; }
.form-success p { font-size: 17px; line-height: 1.6; color: var(--gray); }

/* ---------- Catálogo ---------- */

.catalog-head { padding: 88px 0 48px; }
.catalog-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin: 22px 0 36px; }
.catalog-head .page-title { font-size: 68px; line-height: 1.02; max-width: 760px; }
.search {
  display: flex; align-items: center; gap: 12px; width: 380px; flex-shrink: 0; height: 56px;
  padding: 0 20px; background: var(--white); border: 1.5px solid var(--border); border-radius: 999px; color: var(--gray);
}
.search:focus-within { border-color: var(--navy); }
.search input { border: 0; outline: none; flex-grow: 1; min-width: 0; font-size: 16px; background: transparent; color: var(--navy); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--white); font-size: 15px; font-weight: 600;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.catalog-list { padding-bottom: 72px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.product:target { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral); }
.product[hidden] { display: none; }
.product-thumb { height: 170px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 54px; font-weight: 700; letter-spacing: -2px; }
.theme-paper { background: var(--paper); color: var(--navy); }
.theme-paper-coral { background: var(--paper); color: var(--coral-text); }
.theme-coral { background: var(--coral); color: var(--navy); }
.theme-navy { background: var(--navy); color: var(--white); }
.theme-navy-coral { background: var(--navy); color: var(--coral); }
.product-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--gray); }
.product-name { font-size: 23px; font-weight: 700; }
.product-text { font-size: 15px; line-height: 1.5; color: var(--gray); flex-grow: 1; }
.product .price strong { font-size: 20px; }
.catalog-empty { padding: 48px 0; font-size: 18px; color: var(--gray); text-align: center; }
.catalog-empty a { color: var(--coral-text); text-decoration: underline; }

.catalog-cta { padding-bottom: 80px; }
.cta-band {
  position: relative; overflow: hidden; background: var(--navy); color: var(--white); border-radius: 28px;
  padding: 56px 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band > * { position: relative; }
.cta-band-mark { position: absolute !important; right: 360px; top: -70px; font-family: var(--mono); font-weight: 700; font-size: 300px; line-height: 1; opacity: .04; pointer-events: none; }
.cta-band-title { font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.cta-band-text { font-size: 18px; color: var(--gray-light); margin-top: 12px; }

/* ---------- Página de contato ---------- */

.contact-page { position: relative; overflow: hidden; padding: 100px 0 120px; }
.contact-watermark { width: 560px; left: -60px; bottom: -160px; opacity: .035; }
.contact-grid { position: relative; display: flex; gap: 80px; align-items: flex-start; }
.contact-aside { width: 520px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; }
.contact-aside-sub { font-size: 19px; line-height: 1.6; color: var(--gray-light); }
.channels { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--navy-2); border-radius: 16px; border: 1px solid transparent; }
.channel:hover { border-color: var(--coral); color: var(--white); }
.channel-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--white); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.channel-icon-coral { background: var(--coral); }
.channel-text { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.channel-text small { font-size: 13px; color: var(--gray-mid); }
.channel-text strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.channel .arrow { font-family: var(--mono); color: var(--coral); }
.service-area { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--gray-mid); padding-top: 8px; }
.contact-main { flex-grow: 1; min-width: 0; }

/* ---------- Página de case ---------- */

.case-page-head { padding: 72px 0 80px; }
.case-page-head .container { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.case-page-head .page-title { font-size: 64px; max-width: 900px; }
.case-page-summary { font-size: 20px; line-height: 1.55; color: var(--gray-light); max-width: 720px; }
.back-link { font-family: var(--mono); font-size: 14px; color: var(--gray-mid); }
.case-page-body { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 56px; }
.case-page-image img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.long-text { max-width: 760px; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: #33404F; }

/* ---------- 404 ---------- */

.error-page { position: relative; overflow: hidden; padding: 120px 0 160px; }
.error-page .container { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ---------- Rodapé ---------- */

.site-footer { background: var(--navy-3); color: var(--white); padding: 72px 0 40px; }
.site-footer-top { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 56px; }
.site-footer-brand { display: flex; align-items: center; gap: 16px; align-self: flex-start; }
.site-footer-brand:hover { color: var(--white); }
.site-footer-brand .lockup-text { border-left: 0; padding-left: 0; }
.site-footer-brand .lockup-name { font-size: 26px; }
.site-footer-brand .lockup-tagline { font-size: 10px; color: var(--gray-mid); }
.site-footer-columns { display: flex; gap: 80px; font-size: 15px; }
.site-footer-column { display: flex; flex-direction: column; gap: 12px; }
.site-footer-column a { color: #E7EAF0; }
.site-footer-column a:hover { color: var(--coral); }
.site-footer-title { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-footer); }
.site-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--gray-footer); }
.site-footer-lang { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }

/* ================= Responsivo ================= */

@media (max-width: 1240px) {
  :root { --gutter: 48px; }
  .site-nav { gap: 24px; }
  .hero-title { font-size: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; }
  .code-window-body { font-size: 14px; }
  .contact-text { width: 420px; }
  .contact-aside { width: 440px; }
  .page-title { font-size: 60px; }
}

/* Com o seletor de idioma no cabeçalho, o menu completo só cabe acima de ~1180px. */
@media (max-width: 1180px) {
  .site-nav, .site-header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav.open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 40px rgba(26, 35, 50, .12);
  }
  .theme-dark .site-nav.open { background: var(--navy); border-bottom-color: var(--line-dark); }
  .site-nav.open a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--border); }
  .theme-dark .site-nav.open a { border-bottom-color: var(--line-dark); }
  .site-nav.open .site-header-cta-menu { display: flex; margin-top: 16px; border: 0; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .toast-deploy { left: auto; right: 16px; bottom: -20px; }
  .services, .showcase, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .contact-card { flex-direction: column; padding: 48px; gap: 40px; }
  .contact-text { width: auto; }
  .contact-grid { flex-direction: column; gap: 56px; }
  .contact-aside { width: auto; max-width: 640px; }
  .contact-main { width: 100%; }
  .catalog-row { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .site-footer-top { flex-direction: column; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stack-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px var(--gutter); }
  .stack-title { width: auto; }
  .stack-list { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --radius: 20px; }
  html { scroll-padding-top: 80px; }
  .desktop-only { display: none; }
  .mobile-only { display: inline; }

  .site-header-inner { height: 72px; gap: 12px; }
  .site-header-tools { gap: 10px; }
  .lang-switch a { min-width: 36px; height: 32px; padding: 0 8px; }
  .lang-hint-inner { padding-top: 12px; padding-bottom: 12px; }
  .lockup { gap: 10px; }
  .lockup .brand-badge { width: 40px; height: 40px; }
  .lockup-text { border-left: 0; padding-left: 0; }
  .lockup-name { font-size: 19px; }
  .site-header .lockup-tagline { display: none; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: 34px; line-height: 1.08; letter-spacing: -1px; }
  .section-intro { display: none; }
  .eyebrow { font-size: 12px; letter-spacing: 2.5px; }
  .page-title, .catalog-head .page-title, .case-page-head .page-title { font-size: 40px; letter-spacing: -1.5px; line-height: 1.04; }

  .hero { padding: 48px 0 40px; }
  .hero-watermark { width: 240px; right: -40px; bottom: -40px; }
  .hero-text { gap: 20px; }
  .hero-text .eyebrow { font-size: 11px; letter-spacing: 1.5px; }
  .hero-title { font-size: 44px; line-height: 1.04; letter-spacing: -1.5px; }
  .hero-sub { font-size: 17px; }
  .hero-actions { flex-direction: column; padding-top: 6px; gap: 10px; }
  .hero-actions .btn { width: 100%; min-height: 56px; }
  .hero-stats { justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 8px; }
  .hero-stats dt { font-size: 22px; }
  .hero-stats dd { font-size: 13px; }
  .hero-visual { display: none; }

  .stack-list { font-size: 16px; gap: 8px 20px; }

  /* Serviços viram linhas compactas, como no mockup mobile. */
  .services { grid-template-columns: 1fr; gap: 10px; }
  .service { min-height: 0; padding: 18px; border-radius: 16px; display: grid; grid-template-columns: 28px 1fr auto; column-gap: 14px; row-gap: 3px; align-items: center; }
  .service-top { display: contents; }
  .service-icon { display: none; }
  .service-num { grid-column: 1; grid-row: 1 / span 2; color: var(--coral-text); }
  .service-dark .service-num { color: var(--coral); }
  .service-title { grid-column: 2; font-size: 18px; }
  .service-text { grid-column: 2; font-size: 14px; }
  .service::after { content: '→'; grid-column: 3; grid-row: 1 / span 2; font-family: var(--mono); }
  .service-dark::after { color: var(--coral); }

  /* Catálogo da home vira carrossel horizontal. */
  #catalogo .container { padding-right: 0; }
  #catalogo .section-head { padding-right: 16px; }
  #catalogo .section-head .btn { display: none; }
  .showcase { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-right: 16px; scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .showcase-card { flex: 0 0 290px; scroll-snap-align: start; }
  .illustration { height: 160px; padding: 18px 18px 0; }
  .showcase-body { padding: 20px; gap: 8px; }
  .showcase-title { font-size: 20px; }
  .showcase-text { font-size: 14px; }
  .price strong { font-size: 15px; white-space: nowrap; }
  .btn-sm { white-space: nowrap; padding: 0 14px; }

  .case { padding: 18px; gap: 14px; min-height: 0; border-radius: 18px; }
  .case-screen { min-height: 130px; padding: 12px; border-radius: 10px; }
  .ilu-showcase-top, .ilu-kpis4 { display: none; }
  .ilu-showcase-grid span { min-height: 60px; }
  .ilu-showcase-grid b, .ilu-showcase-grid em { display: none; }
  .ilu-donut { display: none; }
  .case-title { font-size: 20px; }
  .case-text { display: none; }
  .btn-round { width: 44px; height: 44px; }
  .cases-list { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .cases-list a { min-height: 60px; padding: 0 18px; font-size: 15px; border-radius: 14px; }

  .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }

  .section-contact { padding: 24px 0; }
  .contact-card { padding: 28px 22px; border-radius: 24px; gap: 16px; }
  .contact-braces { font-size: 160px; top: -20px; right: 0; }
  .contact-title { font-size: 34px; letter-spacing: -1px; line-height: 1.05; }
  .contact-sub { font-size: 16px; }
  .contact-links { display: none; }
  .contact-actions-mobile { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
  .contact-form { display: none; }

  .form, .form-full { padding: 24px 20px; border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .chips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer .btn { width: 100%; }

  .catalog-head { padding: 48px 0 28px; }
  .catalog-row { margin: 16px 0 24px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; min-height: 44px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-thumb { height: 140px; font-size: 46px; }
  .cta-band { padding: 32px 22px; border-radius: 24px; }
  .cta-band-title { font-size: 28px; }
  .cta-band-mark { font-size: 160px; right: -20px; top: -20px; }
  .cta-band .btn { width: 100%; }

  .contact-page { padding: 48px 0 64px; }
  .contact-aside { gap: 20px; }
  .contact-aside-sub { font-size: 17px; }
  .channel { padding: 16px; }
  .channel-text strong { font-size: 16px; }

  .case-page-head { padding: 40px 0 48px; }
  .case-page-summary { font-size: 17px; }
  .long-text { font-size: 17px; }

  .site-footer { padding: 40px 0 28px; }
  .site-footer-top { gap: 28px; padding-bottom: 28px; }
  .site-footer-brand .brand-badge { width: 52px; height: 52px; }
  .site-footer-brand .lockup-name { font-size: 20px; }
  .site-footer-columns { flex-direction: column; gap: 24px; }
  .site-footer-bottom { flex-direction: column; }
}
