:root {
  --bg: #060911;
  --bg-soft: #0b1020;
  --card: rgba(15, 22, 38, .72);
  --card-strong: #0f1729;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #f7f9fc;
  --muted: #97a2b8;
  --cyan: #4ae7ff;
  --blue: #6c63ff;
  --green: #5ef0b0;
  --shadow: 0 30px 90px rgba(0,0,0,.35);
  --radius: 28px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.ambient-1 { top: -180px; right: -80px; background: var(--blue); }
.ambient-2 { left: -260px; top: 45%; background: var(--cyan); opacity: .08; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 17, .72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav-wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: var(--cyan);
  font-size: 14px;
  box-shadow: inset 0 0 20px rgba(74,231,255,.05);
}
.dot { color: var(--cyan); }

.desktop-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}
.desktop-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: .2s ease;
}
.desktop-nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 42px; padding: 0 18px; border-radius: 12px; }
.btn-primary {
  color: #071016;
  background: linear-gradient(135deg, #a8f7ff, var(--cyan));
  box-shadow: 0 12px 30px rgba(74,231,255,.16);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(74,231,255,.24); }
.btn-outline, .btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.btn-outline:hover, .btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.24);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: .2s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 78px 0 0;
  background: rgba(6, 9, 17, .98);
  padding: 36px 20px;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font: 600 22px 'Space Grotesk', sans-serif;
}

.hero {
  padding: 104px 0 30px;
  min-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.023) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
  z-index: -2;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
  gap: 48px;
  align-items: center;
}
.eyebrow, .section-kicker {
  color: #b6c0d5;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 11px;
  font-weight: 800;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(94,240,176,.08);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 5px rgba(94,240,176,.08); }
  50% { box-shadow: 0 0 0 9px rgba(94,240,176,.02); }
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
h1 {
  margin: 24px 0 28px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -4px;
  max-width: 760px;
  padding-bottom: .12em;
  overflow: visible;
}
.gradient-text {
  display: block;
  line-height: 1.08;
  padding-bottom: .12em;
  margin-bottom: -.02em;
  overflow: visible;
  background: linear-gradient(95deg, var(--cyan), #8d8bff 60%, #f1f4ff);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}
.hero-tags span, .mini-tags span {
  color: #9ca8bd;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
}

.hero-visual { position: relative; }
.code-window {
  position: relative;
  min-height: 470px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(14,20,35,.96), rgba(8,13,24,.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-window::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  top: 80px; right: -80px;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(90px);
  opacity: .15;
}
.window-bar {
  height: 55px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #68758f;
  font-size: 10px;
}
.dots, .browser-dots { display: flex; gap: 6px; }
.dots i, .browser-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2c3445;
}
.code-content { padding: 65px 42px 40px; }
.line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  color: #b5c0d6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 2.25;
}
.line .ln { color: #3e4960; user-select: none; }
.line b { color: #8c88ff; font-weight: 600; }
.line em { color: #62e5c0; font-style: normal; }
.active-line {
  margin-top: 6px;
  padding: 0 10px;
  margin-left: -10px;
  width: calc(100% + 20px);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.cursor {
  display: inline-block; width: 7px; height: 16px;
  background: var(--cyan); margin-left: 6px; vertical-align: -3px;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  display: flex; gap: 10px; align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(94,240,176,.13);
  background: rgba(94,240,176,.045);
  border-radius: 12px;
  color: #9facc0;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.terminal-prefix { color: var(--green); }

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  min-width: 180px;
  border: 1px solid var(--line-strong);
  background: rgba(10,16,29,.88);
  backdrop-filter: blur(14px);
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  animation: float 5s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 12px; }
.floating-card small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.mini-icon {
  width: 31px; height: 31px; display: grid; place-items: center;
  border-radius: 9px; background: rgba(74,231,255,.08); color: var(--cyan);
}
.float-a { left: 18px; top: 68px; }
.float-b { right: 18px; bottom: 82px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.strip {
  margin-top: 100px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #59647a;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 800;
}
.strip i { width: 4px; height: 4px; border-radius: 50%; background: #2b3343; }

.section { padding: 130px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
}
.section-head h2, .process-copy h2, .cta-box h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -2.6px;
}
.section-head > p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.section-head.centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: block;
}
.section-head.centered p { margin: 18px auto 0; max-width: 620px; }

.project-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15,22,38,.82), rgba(9,14,25,.7));
  border-radius: var(--radius);
  overflow: hidden;
}
.project-main {
  min-height: 610px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.project-info { padding: 58px 50px; }
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.project-number { color: #556177; font: 600 12px 'Space Grotesk', sans-serif; letter-spacing: 1.4px; }
.project-status {
  display: inline-flex; align-items: center; gap: 7px;
  color: #91a0b9; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.project-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.project-info h3, .small-info h3 { margin: 34px 0 18px; font-size: 40px; letter-spacing: -1.8px; }
.project-lead, .small-info p {
  color: var(--muted); line-height: 1.75; margin: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 32px 0 42px;
}
.feature-grid span {
  position: relative;
  padding-left: 17px;
  color: #b1bbcd;
  font-size: 12px;
}
.feature-grid span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  position: absolute; left: 0; top: 6px;
  box-shadow: 0 0 10px rgba(74,231,255,.45);
}
.project-link {
  display: inline-flex; gap: 11px; align-items: center;
  padding: 0;
  border: 0;
  color: #e9edf7;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.project-link span { color: var(--cyan); transition: transform .2s; }
.project-link:hover span { transform: translate(3px, -3px); }

.project-preview {
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  padding: 44px 0 44px 44px;
  overflow: hidden;
}
.cnh-preview {
  background:
    radial-gradient(circle at 75% 35%, rgba(108,99,255,.16), transparent 30%),
    linear-gradient(145deg, rgba(74,231,255,.04), transparent 45%);
}
.browser-shell {
  width: 720px;
  max-width: 110%;
  min-height: 430px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #0b1120;
  box-shadow: -20px 30px 80px rgba(0,0,0,.38);
  transform: translateX(50px) rotateY(-3deg);
  overflow: hidden;
}
.browser-top {
  height: 38px;
  padding: 0 14px;
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--line);
}
.url-bar {
  width: 210px; height: 21px; border-radius: 6px;
  background: rgba(255,255,255,.035);
  display: flex; align-items: center; padding-left: 12px;
  color: #46536b; font-size: 8px;
}



.browser-shell-real {
  width: 780px;
  max-width: 115%;
}

.real-shot-wrap {
  background: #081324;
  padding: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
}

.real-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  transform: none;
  transform-origin: top left;
}

@media (max-width: 590px) {
  .browser-shell-real {
    width: 580px;
    max-width: none;
    transform: translateX(95px) scale(.86);
  }

  .real-shot-wrap {
    padding: 6px;
  }

  .real-shot {
    width: 100%;
    transform: none;
  }
}

.mock-app { display: grid; grid-template-columns: 56px 1fr; min-height: 390px; }
.mock-sidebar {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.mock-logo {
  width: 29px; height: 29px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: grid; place-items: center; color: #071016; font-size: 8px; font-weight: 900;
  margin-bottom: 10px;
}
.mock-sidebar > span {
  width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.04);
}
.mock-sidebar > span.active { background: rgba(74,231,255,.12); border: 1px solid rgba(74,231,255,.12); }
.mock-content { padding: 25px 28px; }
.mock-greeting { display: flex; justify-content: space-between; align-items: center; }
.mock-greeting small { color: #596780; font-size: 7px; display: block; margin-bottom: 5px; }
.mock-greeting strong { font-size: 13px; }
.mock-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(145deg, #242e43, #151c2c); }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 23px; }
.mock-stats > div {
  min-height: 78px; padding: 12px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.mock-stats span { display: block; color: #66738b; font-size: 7px; }
.mock-stats strong { display: block; margin-top: 8px; font-size: 17px; }
.mock-stats i { display: block; color: var(--green); font-size: 6px; font-style: normal; margin-top: 5px; }
.mock-panels { display: grid; grid-template-columns: 1.5fr .8fr; gap: 10px; margin-top: 10px; }
.mock-calendar, .mock-sidepanel {
  border: 1px solid var(--line); background: rgba(255,255,255,.015); border-radius: 9px; padding: 13px;
}
.calendar-head { display: flex; justify-content: space-between; color: #6d7890; font-size: 7px; }
.calendar-head strong { color: #cdd4e3; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-top: 14px; }
.calendar-grid i { height: 22px; border-radius: 3px; background: rgba(255,255,255,.025); }
.calendar-grid i.event { background: rgba(74,231,255,.12); border: 1px solid rgba(74,231,255,.1); }
.calendar-grid i.event-alt { background: rgba(108,99,255,.14); border-color: rgba(108,99,255,.15); }
.mock-sidepanel strong { font-size: 7px; }
.mock-sidepanel > div { display: flex; gap: 6px; margin-top: 13px; align-items: center; }
.mock-sidepanel > div i { width: 18px; height: 18px; border-radius: 5px; background: rgba(94,240,176,.08); }
.mock-sidepanel > div span { height: 5px; border-radius: 3px; background: #29334a; flex: 1; }

.project-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.project-small { display: grid; grid-template-rows: 430px 1fr; }
.small-preview { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.small-info { padding: 34px 36px 38px; }
.small-info h3 { font-size: 29px; margin: 24px 0 14px; }
.small-info p { min-height: 78px; font-size: 14px; }
.mini-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 30px; }

.budget-preview {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 25%, rgba(74,231,255,.11), transparent 45%);
}
.doc-sheet {
  width: 220px; height: 255px; border-radius: 10px; padding: 25px;
  background: #f4f6fb; color: #0f1729;
  box-shadow: 0 25px 60px rgba(0,0,0,.28);
  transform: rotate(-4deg);
}
.doc-brand { width: 40px; height: 9px; border-radius: 10px; background: #121b2d; }
.doc-title { width: 95px; height: 12px; border-radius: 3px; background: #1a2940; margin-top: 24px; }
.doc-lines { margin-top: 18px; display: grid; gap: 7px; }
.doc-lines i { height: 5px; border-radius: 3px; background: #cfd5df; }
.doc-lines i:nth-child(2) { width: 80%; }
.doc-lines i:nth-child(3) { width: 62%; }
.doc-table { margin-top: 22px; padding: 9px; border: 1px solid #d3d9e3; border-radius: 4px; display: grid; gap: 7px; }
.doc-table i { height: 6px; background: #d7dde6; border-radius: 2px; }
.doc-total { margin: 18px 0 0 auto; width: 50px; height: 22px; border-radius: 4px; display: grid; place-items: center; background: #142038; color: white; font-size: 8px; font-weight: 800; }
.action-chip, .security-chip {
  position: absolute;
  padding: 10px 13px; border: 1px solid rgba(94,240,176,.15);
  background: rgba(9,22,21,.88); backdrop-filter: blur(12px);
  color: #8ce8c5; border-radius: 11px; font-size: 9px; font-weight: 700;
  box-shadow: 0 15px 35px rgba(0,0,0,.28);
}
.action-chip { right: 55px; bottom: 45px; }

.contract-preview {
  background: radial-gradient(circle at 70% 15%, rgba(108,99,255,.13), transparent 38%);
}
.contract-flow {
  position: absolute; left: 35px; top: 35px;
  display: flex; align-items: center;
}
.flow-node { text-align: center; }
.flow-node b {
  width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center;
  margin: auto; border: 1px solid var(--line-strong); background: #0c1424; color: #60708a; font-size: 8px;
}
.flow-node span { display: block; color: #5e6b82; font-size: 7px; margin-top: 6px; }
.flow-node.active b { color: #071016; background: var(--cyan); border-color: var(--cyan); }
.flow-node.active span { color: #b6c0d4; }
.flow-line { width: 50px; height: 1px; background: var(--line-strong); margin: -13px 8px 0; }
.contract-document {
  position: absolute; width: 205px; height: 245px; right: 70px; top: 28px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: linear-gradient(145deg, #131d30, #0d1422);
  box-shadow: 0 25px 55px rgba(0,0,0,.35); padding: 26px;
  transform: rotate(4deg);
}
.contract-document strong { font-size: 10px; letter-spacing: 1.7px; }
.contract-document > i { display: block; height: 5px; border-radius: 3px; background: #27334a; margin-top: 12px; }
.contract-document > i:nth-of-type(2) { width: 78%; }
.contract-document > i:nth-of-type(3) { width: 88%; }
.contract-document > i:nth-of-type(4) { width: 60%; }
.signature { display: flex; gap: 15px; margin-top: 45px; }
.signature span { width: 65px; height: 1px; background: #47536b; }
.security-chip { left: 48px; bottom: 42px; }


/* Prints reais dos projetos de orçamento e contratos */
.screenshot-preview {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-browser {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: #0b1120;
  box-shadow: 0 22px 55px rgba(0,0,0,.32);
}

.mini-browser-top {
  height: 38px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7,11,20,.96);
}

.mini-browser-top span {
  color: #65728a;
  font-size: 8px;
  letter-spacing: .3px;
}

.mini-shot-wrap {
  height: calc(100% - 38px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.dark-shot {
  background: #0d1013;
}

.light-shot {
  background: #eef1f5;
}

.project-shot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
  border-radius: 8px;
}

.budget-preview {
  background:
    radial-gradient(circle at 50% 15%, rgba(74,231,255,.10), transparent 42%),
    rgba(255,255,255,.008);
}

.contract-preview {
  background:
    radial-gradient(circle at 55% 15%, rgba(108,99,255,.10), transparent 42%),
    rgba(255,255,255,.008);
}

.solutions { background: linear-gradient(to bottom, transparent, rgba(255,255,255,.012), transparent); }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
}
.solution-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.018);
  border-radius: 20px;
  position: relative;
  transition: transform .25s, border-color .25s, background .25s;
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74,231,255,.18);
  background: rgba(74,231,255,.025);
}
.solution-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line);
  color: var(--cyan); background: rgba(74,231,255,.04);
  font-size: 19px;
}
.solution-card h3 { margin: 42px 0 14px; font-size: 20px; }
.solution-card p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.solution-card > span {
  position: absolute; right: 23px; bottom: 21px;
  color: #30394b; font: 700 10px 'Space Grotesk', sans-serif;
}

.process-grid {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px;
}
.process-copy { position: sticky; top: 130px; align-self: start; }
.process-copy p { color: var(--muted); line-height: 1.75; max-width: 440px; }
.process-list { border-top: 1px solid var(--line); }
.process-item {
  display: grid; grid-template-columns: 55px 1fr; gap: 25px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.process-item > span { color: var(--cyan); font: 700 10px 'Space Grotesk', sans-serif; padding-top: 4px; }
.process-item h3 { margin: 0 0 9px; font-size: 20px; }
.process-item p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 13px; }

.cta-section { padding: 40px 0 120px; }
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 90px 25px;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(16,24,41,.88), rgba(9,14,25,.92));
}
.cta-glow {
  position: absolute; width: 430px; height: 250px;
  left: 50%; top: -150px; transform: translateX(-50%);
  border-radius: 50%; background: var(--cyan); filter: blur(100px); opacity: .12;
}
.cta-box h2 { position: relative; margin-top: 18px; }
.cta-box p { color: var(--muted); max-width: 600px; margin: 20px auto 0; line-height: 1.7; }
.cta-actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.contact-hint { display: block; color: #505b70; margin-top: 22px; font-size: 10px; }
.contact-hint strong { color: #7c899f; }

footer { border-top: 1px solid var(--line); }
.footer-wrap {
  min-height: 115px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
}
.footer-wrap p { color: var(--muted); font-size: 12px; margin: 0; }
.footer-wrap > span { justify-self: end; color: #58647a; font-size: 11px; }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 300;
}
.modal.open { display: grid; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,5,10,.78);
  backdrop-filter: blur(10px);
}
.modal-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  z-index: 2;
  padding: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #0b1120;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text);
  cursor: pointer; font-size: 20px;
}
.modal-dialog h2 { font-size: 38px; margin: 12px 0 16px; letter-spacing: -1.5px; }
.modal-dialog > p { color: var(--muted); line-height: 1.75; }
.modal-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px;
}
.modal-features span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.02);
  color: #b2bdd0;
  font-size: 12px;
}
.modal-note {
  margin-top: 24px; padding: 15px 16px; border-radius: 12px;
  border: 1px solid rgba(74,231,255,.09);
  background: rgba(74,231,255,.035);
  color: #8fa0b8; font-size: 11px; line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .18s; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { max-width: 720px; width: 100%; margin: 20px auto 0; }
  .float-a { left: 12px; }
  .float-b { right: 12px; }
  .project-main { grid-template-columns: 1fr; }
  .project-preview { min-height: 520px; padding-left: 0; }
  .browser-shell { transform: translateX(30px); }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { gap: 55px; }
}

@media (max-width: 820px) {
  .desktop-nav, .desktop-cta { display: none; }
  .menu-button { display: block; }
  .mobile-menu.open { display: flex; }
  .hero { padding-top: 70px; }
  h1 { letter-spacing: -3px; }
  .strip { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .strip span { white-space: nowrap; }
  .section { padding: 95px 0; }
  .section-head { display: block; }
  .section-head > p { margin-top: 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-copy { position: static; }
  .footer-wrap { grid-template-columns: 1fr 1fr; padding: 30px 0; }
  .footer-wrap p { display: none; }
}

@media (max-width: 590px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-wrap { height: 68px; }
  .mobile-menu { inset: 68px 0 0; }
  .hero { min-height: auto; padding-top: 58px; }
  h1 { font-size: 48px; line-height: 1.12; letter-spacing: -2.8px; padding-bottom: .14em; overflow: visible; }
  .hero-text { font-size: 15px; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .code-window { min-height: 390px; }
  .code-content { padding: 45px 20px; }
  .line { grid-template-columns: 24px 1fr; gap: 9px; font-size: 10px; }
  .floating-card { display: none; }
  .terminal { left: 15px; right: 15px; bottom: 15px; font-size: 9px; }
  .strip { margin-top: 65px; }
  .section-head h2, .process-copy h2, .cta-box h2 { font-size: 38px; letter-spacing: -2px; }
  .project-info { padding: 38px 28px; }
  .project-info h3 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .project-preview { min-height: 390px; }
  .browser-shell { width: 560px; max-width: none; transform: translateX(105px) scale(.82); }
  .project-small { grid-template-rows: 360px 1fr; }
  .small-info { padding: 30px 26px 34px; }
  .small-info p { min-height: auto; }
  .contract-document { right: 28px; }
  .contract-flow { left: 24px; transform: scale(.88); transform-origin: left; }
  .security-chip { left: 22px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 250px; }
  .cta-box { padding: 65px 20px; border-radius: 24px; }
  .modal-dialog { padding: 38px 25px 28px; }
  .modal-features { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; }
  .footer-wrap > span { justify-self: start; }
}


/* Ampliação dos prints dos projetos */
.image-zoom-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  color: inherit;
}

.image-zoom-trigger:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.image-zoom-trigger .real-shot,
.image-zoom-trigger .project-shot {
  transition: transform .25s ease, filter .25s ease;
}

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(5,9,17,.78);
  backdrop-filter: blur(12px);
  color: #eef5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  opacity: .86;
  transition: opacity .2s ease, transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .image-zoom-trigger:hover .real-shot,
  .image-zoom-trigger:hover .project-shot {
    transform: scale(1.015);
    filter: brightness(.9);
  }

  .image-zoom-trigger:hover .zoom-hint {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 28px;
}

.image-lightbox.open {
  display: grid;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,5,10,.92);
  backdrop-filter: blur(12px);
}

.image-lightbox-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(96vw, 1800px);
  height: min(92vh, 1100px);
}

.image-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: #080d16;
  box-shadow: 0 35px 100px rgba(0,0,0,.62);
}

.image-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(12,18,30,.94);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0,0,0,.38);
}

.image-lightbox-close:hover {
  background: #182238;
}

.image-lightbox-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 590px) {
  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox-dialog {
    width: 100%;
    height: 88vh;
  }

  .image-lightbox-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .zoom-hint {
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
  }
}


.projects .section-head h2 .projects-title-line {
  display: block;
  white-space: nowrap;
}


@media (max-width: 590px) {
  .projects .section-head h2 .projects-title-line {
    white-space: normal;
  }
}


/* Identidade visual Camargos.dev */
.brand-logo-link {
  line-height: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 310px;
  object-fit: contain;
}

.footer-logo {
  height: 38px;
}

@media (max-width: 590px) {
  .site-logo {
    height: 39px;
    max-width: 250px;
  }

  .footer-logo {
    height: 32px;
  }
}


/* Sobre */
.about {
  position: relative;
  background:
    radial-gradient(circle at 18% 50%, rgba(23,135,255,.08), transparent 26%),
    linear-gradient(to bottom, transparent, rgba(255,255,255,.012), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  gap: 90px;
  align-items: center;
}

.about-mark {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(15,22,38,.78), rgba(7,12,22,.68));
  overflow: hidden;
  position: relative;
}

.about-mark::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: #167FFF;
  filter: blur(95px);
  opacity: .11;
}

.about-mark img {
  position: relative;
  z-index: 2;
  width: min(58%, 250px);
  height: auto;
  filter: drop-shadow(0 18px 44px rgba(23,135,255,.15));
}

.about-copy h2 {
  margin: 12px 0 24px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -2.6px;
}

.about-copy p {
  max-width: 680px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.about-principles span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #b3bfd2;
  font-size: 11px;
  font-weight: 700;
}


/* QA responsivo final */
.hero-grid > *,
.project-main > *,
.project-grid > *,
.process-grid > *,
.about-grid > *,
.section-head > * {
  min-width: 0;
}

h1, h2, h3, p, a, span {
  overflow-wrap: break-word;
}

.site-logo {
  max-width: min(310px, 38vw);
}

@media (max-width: 1050px) {
  .about-grid {
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-mark {
    min-height: 300px;
  }

  .about-mark img {
    width: min(42%, 210px);
  }
}

@media (max-width: 590px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    gap: 12px;
  }

  .site-logo {
    height: 36px;
    max-width: 215px;
  }

  .hero-grid,
  .project-main,
  .project-grid,
  .process-grid,
  .about-grid {
    width: 100%;
  }

  .project-preview {
    min-height: 330px;
    padding: 20px 14px;
  }

  .browser-shell,
  .browser-shell-real {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    transform: none;
  }

  .browser-top {
    min-width: 0;
  }

  .url-bar {
    width: min(210px, 65%);
    overflow: hidden;
    white-space: nowrap;
  }

  .real-shot-wrap {
    padding: 6px;
  }

  .real-shot {
    width: 100%;
    height: auto;
  }

  .screenshot-preview {
    padding: 14px;
  }

  .project-small {
    grid-template-rows: 310px 1fr;
  }

  .mini-browser-top {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .mini-browser-top > span {
    justify-self: end;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .small-info {
    padding: 28px 22px 32px;
  }

  .small-info h3 {
    font-size: 26px;
  }

  .about-mark {
    min-height: 250px;
  }

  .about-copy h2 {
    font-size: 36px;
    letter-spacing: -1.8px;
  }

  .cta-box {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-wrap {
    min-width: 0;
  }
}

@media (max-width: 370px) {
  h1 {
    font-size: 43px;
  }

  .site-logo {
    height: 33px;
    max-width: 190px;
  }

  .project-info {
    padding-left: 22px;
    padding-right: 22px;
  }

  .project-small {
    grid-template-rows: 280px 1fr;
  }
}


/* Mini cases dos projetos */
.case-summary {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.case-summary > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.case-summary > div:last-child {
  border-bottom: 1px solid var(--line);
}

.case-summary dt {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-summary dd {
  margin: 0;
  color: #aeb9cb;
  font-size: 12px;
  line-height: 1.6;
}

.case-summary-compact {
  margin: 22px 0 18px;
}

.case-summary-compact > div {
  grid-template-columns: 66px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.case-summary-compact dd {
  font-size: 11px;
}

.case-resources-label {
  display: block;
  margin-bottom: 15px;
  color: #68758d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 26px 0 10px;
}

.modal-case > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.modal-case strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-case span {
  color: #aeb9cb;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .project-main {
    grid-template-columns: 1fr;
  }

  .project-preview {
    padding: 28px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-small {
    grid-template-rows: 390px 1fr;
  }

  .modal-case {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 590px) {
  .mobile-menu {
    overflow-y: auto;
    padding-bottom: max(36px, env(safe-area-inset-bottom));
  }

  .hero {
    padding-top: 46px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
  }

  .section {
    padding: 82px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .projects .section-head h2 .projects-title-line {
    white-space: normal;
  }

  .project-info {
    padding: 34px 22px;
  }

  .project-info h3 {
    margin-top: 26px;
  }

  .case-summary > div,
  .case-summary-compact > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .case-summary dd,
  .case-summary-compact dd {
    font-size: 12px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .project-preview {
    min-height: 0;
    padding: 16px 12px 20px;
  }

  .browser-shell-real {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .real-shot-wrap {
    height: auto;
    overflow: visible;
  }

  .image-zoom-trigger {
    height: auto;
  }

  .real-shot {
    width: 100%;
    height: auto;
    transform: none;
  }

  .project-small {
    grid-template-rows: 300px 1fr;
  }

  .mini-shot-wrap {
    padding: 6px;
  }

  .project-shot {
    object-fit: contain;
    object-position: top center;
  }

  .zoom-hint {
    font-size: 9px;
  }

  .solution-card {
    min-height: auto;
  }

  .modal-dialog {
    max-height: calc(100vh - 24px);
  }

  .image-lightbox-dialog {
    height: auto;
    max-height: calc(100vh - 28px);
  }

  .image-lightbox-dialog img {
    max-height: calc(100vh - 40px);
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 44px;
    letter-spacing: -2.4px;
  }

  .hero-text {
    font-size: 14px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .project-small {
    grid-template-rows: 270px 1fr;
  }

  .small-info h3 {
    font-size: 24px;
  }

  .about-copy h2,
  .process-copy h2,
  .section-head h2,
  .cta-box h2 {
    font-size: 34px;
  }
}


/* Performance e acessibilidade */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f7f9fc;
  color: #071016;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.menu-button {
  min-width: 44px;
  min-height: 44px;
}

.project-link {
  min-height: 44px;
  padding: 8px 2px;
}

.image-zoom-trigger picture {
  display: block;
  width: 100%;
  height: 100%;
}

.strip,
.project-number,
.footer-wrap > span,
.contact-hint {
  color: #7b879d;
}

.contact-hint strong {
  color: #a9b4c7;
}

.url-bar,
.window-bar,
.mini-browser-top span {
  color: #7b879d;
}

/* Evita custo de renderização antecipado nas seções abaixo da dobra. */
.projects,
.about,
.solutions,
.process,
.cta-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 590px) {
  .image-zoom-trigger picture {
    height: auto;
  }
}


/* Título principal em três linhas controladas */
.hero-title {
  width: 100%;
  max-width: 100%;
  font-size: clamp(44px, 4.35vw, 58px);
  line-height: 1.04;
  letter-spacing: -3.2px;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.gradient-inline,
.hero-title .gradient-text {
  background: linear-gradient(95deg, var(--cyan), #8d8bff 72%, #f1f4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-inline {
  display: inline;
}

.hero-title .gradient-text {
  line-height: inherit;
  padding-bottom: .10em;
  margin-bottom: 0;
}


@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(46px, 6.2vw, 64px);
  }
}

@media (max-width: 590px) {
  .hero-title {
    font-size: 38px;
    line-height: 1.07;
    letter-spacing: -2.2px;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 34px;
    letter-spacing: -1.8px;
  }
}


/* Microanimações do hero — comportamento visual da versão original */
.floating-card {
  animation-name: heroFloat !important;
  animation-duration: 5s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-fill-mode: both !important;
  will-change: transform;
}

.float-a {
  animation-delay: 0s !important;
}

.float-b {
  animation-delay: -2.5s !important;
}

.cursor {
  animation-name: heroCursorBlink !important;
  animation-duration: 1s !important;
  animation-timing-function: steps(1, end) !important;
  animation-iteration-count: infinite !important;
  will-change: opacity;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes heroCursorBlink {
  0%, 48% {
    opacity: 1;
  }

  49%, 100% {
    opacity: 0;
  }
}

/*
  Mantém apenas essas duas microanimações mesmo quando o navegador informa
  prefers-reduced-motion. As demais animações do site continuam reduzidas.
*/
@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation-name: heroFloat !important;
    animation-duration: 6s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
  }

  .cursor {
    animation-name: heroCursorBlink !important;
    animation-duration: 1.2s !important;
    animation-timing-function: steps(1, end) !important;
    animation-iteration-count: infinite !important;
  }
}


/* ============================================================
   Ajustes finais — menu mobile e rodapé
   ============================================================ */

.footer-wrap {
  min-height: 132px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0;
  text-align: center;
}

.footer-wrap .brand-logo-link {
  margin: 0 auto;
}

.footer-wrap p {
  display: block !important;
  margin: 0;
  text-align: center;
}

.footer-wrap > span {
  justify-self: auto;
  margin: 0;
  text-align: center;
}

@media (max-width: 820px) {
  .mobile-menu {
    top: 78px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100dvh - 78px);
    max-height: calc(100dvh - 78px);
    padding:
      clamp(10px, 2.5dvh, 22px)
      24px
      max(clamp(10px, 2.5dvh, 22px), env(safe-area-inset-bottom));
    gap: 0;
    justify-content: center;
    overflow: hidden;
  }

  .mobile-menu a {
    flex: 0 0 auto;
    width: 100%;
    padding: clamp(9px, 1.8dvh, 14px) 0;
    font-size: clamp(18px, 2.8dvh, 22px);
    line-height: 1.15;
  }

  .footer-wrap {
    grid-template-columns: none;
    padding: 28px 0;
  }
}

@media (max-width: 590px) {
  .mobile-menu {
    top: 68px;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
  }

  .footer-wrap {
    min-height: 150px;
    padding: 30px 0;
  }

  .footer-wrap .footer-logo {
    margin: 0 auto;
  }

  .footer-wrap > span {
    justify-self: auto;
  }
}

/*
  Em aparelhos extremamente baixos ou com zoom de acessibilidade,
  permitimos rolagem como fallback para não esconder opções.
*/
@media (max-width: 820px) and (max-height: 430px) {
  .mobile-menu {
    justify-content: flex-start;
    overflow-y: auto;
  }
}


/* Modal de contato por e-mail */
.email-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.email-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.email-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 12, .82);
  backdrop-filter: blur(10px);
}

.email-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 38px;
  border: 1px solid rgba(129, 154, 199, .25);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(43, 124, 255, .12), transparent 38%),
    #090e18;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.email-modal-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.email-modal-dialog h2 {
  margin: 0 42px 12px 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
  letter-spacing: -1.4px;
}

.email-modal-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.email-modal-address {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(129, 154, 199, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: #eaf2ff;
  font-family: "Space Grotesk", sans-serif;
  word-break: break-word;
}

.email-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.email-modal-actions .btn {
  flex: 1 1 190px;
  justify-content: center;
  min-height: 48px;
}

.email-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 154, 199, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #dce7f8;
  font-size: 24px;
  cursor: pointer;
}

.email-modal-feedback {
  display: block;
  min-height: 20px;
  margin-top: 14px;
  color: #6ff0ba;
}

@media (max-width: 590px) {
  .email-modal {
    padding: 16px;
  }

  .email-modal-dialog {
    padding: 30px 20px 22px;
    border-radius: 20px;
  }

  .email-modal-actions {
    flex-direction: column;
  }

  .email-modal-actions .btn {
    flex-basis: auto;
    width: 100%;
  }
}


/* Quebras de títulos refinadas para mobile */
.mobile-break-title .title-line {
  display: block;
}

@media (min-width: 821px) {
  .mobile-break-title .title-line {
    display: inline;
  }

  .mobile-break-title .title-line + .title-line::before {
    content: " ";
  }
}

@media (max-width: 820px) {
  .projects-heading h2 {
    max-width: 12ch;
  }

  .mobile-break-title-dev,
  .mobile-break-title-cta {
    max-width: 12ch;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 590px) {
  .projects-heading h2 {
    max-width: 10.6ch;
  }

  .mobile-break-title-dev {
    max-width: 11.1ch;
  }

  .mobile-break-title-cta {
    max-width: 10.8ch;
  }
}


/* ============================================================
   Quebras exatas dos títulos no mobile
   ============================================================ */
@media (max-width: 590px) {
  .projects .section-head h2.projects-mobile-title,
  .section-head.centered h2.mobile-break-title-dev,
  .cta-box h2.mobile-break-title-cta {
    width: 100%;
    max-width: none;
    font-size: 29px;
    line-height: 1.08;
    letter-spacing: -2px;
  }

  .projects .section-head h2.projects-mobile-title .projects-title-line,
  .mobile-break-title-dev .title-line,
  .mobile-break-title-cta .title-line {
    display: block;
    white-space: nowrap !important;
  }

  .mobile-break-title-dev,
  .mobile-break-title-cta {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* Mesmo com CSS antigo parcialmente carregado, o atributo hidden prevalece. */
.email-modal[hidden] {
  display: none !important;
}


/* ============================================================
   Microanimações do mockup no mobile
   ============================================================ */
@media (max-width: 820px) {
  .code-window .floating-card {
    display: flex !important;
    animation-name: mobileHeroFloat !important;
    -webkit-animation-name: mobileHeroFloat !important;
    animation-duration: 4.8s !important;
    -webkit-animation-duration: 4.8s !important;
    animation-timing-function: ease-in-out !important;
    -webkit-animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    -webkit-animation-iteration-count: infinite !important;
    animation-fill-mode: both !important;
    -webkit-animation-fill-mode: both !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }

  .code-window .float-a {
    animation-delay: 0s !important;
    -webkit-animation-delay: 0s !important;
  }

  .code-window .float-b {
    animation-delay: -2.4s !important;
    -webkit-animation-delay: -2.4s !important;
  }
}

@media (max-width: 590px) {
  .code-window .floating-card {
    min-width: 0;
    padding: 10px 12px;
    gap: 9px;
  }

  .code-window .floating-card strong {
    font-size: 11px;
  }

  .code-window .floating-card small {
    font-size: 8px;
  }

  .code-window .floating-card .mini-icon {
    width: 29px;
    height: 29px;
  }

  .code-window .float-a {
    left: 14px;
    top: 62px;
  }

  .code-window .float-b {
    right: 14px;
    bottom: 78px;
  }
}

@keyframes mobileHeroFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -9px, 0);
  }
}

@-webkit-keyframes mobileHeroFloat {
  0%, 100% {
    -webkit-transform: translate3d(0, 0, 0);
  }

  50% {
    -webkit-transform: translate3d(0, -9px, 0);
  }
}

/* Mantém esta microanimação do hero ativa no celular. */
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .code-window .floating-card {
    animation-name: mobileHeroFloat !important;
    -webkit-animation-name: mobileHeroFloat !important;
    animation-duration: 5.8s !important;
    -webkit-animation-duration: 5.8s !important;
    animation-iteration-count: infinite !important;
    -webkit-animation-iteration-count: infinite !important;
  }
}


/* ============================================================
   Layout do mockup no mobile — evita sobreposição dos cards
   ============================================================ */
@media (max-width: 590px) {
  .code-window {
    min-height: 470px;
  }

  .code-window .code-content {
    padding: 108px 20px 86px;
  }

  .code-window .line {
    grid-template-columns: 24px 1fr;
    gap: 9px;
    font-size: 10px;
    line-height: 2.15;
  }

  .code-window .float-a {
    left: 14px;
    top: 62px;
  }

  .code-window .float-b {
    right: 14px;
    bottom: 76px;
  }

  .code-window .terminal {
    left: 15px;
    right: 15px;
    bottom: 15px;
    font-size: 9px;
  }
}


/* ============================================================
   Mockup do hero no mobile — proporção mais equilibrada
   ============================================================ */
@media (max-width: 590px) {
  .hero-visual {
    max-width: 100%;
  }

  .code-window {
    min-height: 418px;
    border-radius: 24px;
  }

  .code-window .window-bar {
    height: 50px;
    padding: 0 16px;
  }

  .code-window .code-content {
    padding: 86px 18px 74px;
  }

  .code-window .line {
    grid-template-columns: 22px 1fr;
    gap: 8px;
    font-size: 9.5px;
    line-height: 2.05;
  }

  .code-window .active-line {
    margin-top: 4px;
    padding: 0 8px;
    margin-left: -8px;
    width: calc(100% + 16px);
  }

  .code-window .floating-card {
    min-width: 0;
    padding: 9px 11px;
    gap: 8px;
    border-radius: 14px;
  }

  .code-window .floating-card strong {
    font-size: 10px;
  }

  .code-window .floating-card small {
    font-size: 7px;
    margin-top: 2px;
  }

  .code-window .floating-card .mini-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 13px;
  }

  .code-window .float-a {
    left: 14px;
    top: 56px;
  }

  .code-window .float-b {
    right: 14px;
    bottom: 68px;
  }

  .code-window .terminal {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 11px 13px;
    font-size: 8.5px;
    border-radius: 11px;
  }
}


/* ============================================================
   Ajuste fino do mockup mobile — cards mais próximos do conteúdo
   ============================================================ */
@media (max-width: 590px) {
  .code-window {
    min-height: 408px;
  }

  .code-window .code-content {
    padding: 80px 18px 68px;
  }

  .code-window .line {
    line-height: 1.95;
  }

  .code-window .float-a {
    left: 14px;
    top: 58px;
  }

  .code-window .float-b {
    right: 14px;
    bottom: 58px;
  }

  .code-window .terminal {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}


/* ============================================================
   Ajuste fino 2 do mockup mobile — cards ainda mais próximos
   ============================================================ */
@media (max-width: 590px) {
  .code-window {
    min-height: 396px;
  }

  .code-window .code-content {
    padding: 68px 18px 62px;
  }

  .code-window .line {
    line-height: 1.92;
  }

  .code-window .float-a {
    left: 14px;
    top: 58px;
  }

  .code-window .float-b {
    right: 14px;
    bottom: 92px;
  }

  .code-window .terminal {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}


/* ============================================================
   Ajuste fino 3 do mockup mobile — cards bem próximos do código
   ============================================================ */
@media (max-width: 590px) {
  .code-window {
    min-height: 396px;
  }

  .code-window .code-content {
    padding: 68px 18px 62px;
  }

  /* Desce o card superior até ficar bem perto da primeira linha. */
  .code-window .float-a {
    left: 14px;
    top: 66px;
  }

  /* Sobe o card inferior, mantendo uma pequena margem durante a animação. */
  .code-window .float-b {
    right: 14px;
    bottom: 106px;
  }
}


/* ============================================================
   Modo Dark / Light
   Dark é o padrão da Camargos.dev.
   ============================================================ */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #edf2f8;
  --card: rgba(255, 255, 255, .84);
  --card-strong: #ffffff;
  --line: rgba(16, 35, 61, .10);
  --line-strong: rgba(16, 35, 61, .17);
  --text: #101827;
  --muted: #5a687d;
  --cyan: #087ff5;
  --blue: #6258ef;
  --green: #09875d;
  --shadow: 0 28px 80px rgba(27, 50, 84, .13);
}

/* Transição sem interferir nas animações do hero. */
body,
.site-header,
.mobile-menu,
.project-card,
.solution-card,
.about-mark,
.cta-box,
.modal-dialog,
.email-modal-dialog,
.btn-outline,
.btn-ghost,
.hero-tags span,
.mini-tags span,
.about-principles span {
  transition:
    background-color .28s ease,
    background .28s ease,
    color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

/* Base clara */
html[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="light"] .noise {
  opacity: .018;
}

html[data-theme="light"] .ambient {
  opacity: .08;
}

html[data-theme="light"] .ambient-2 {
  opacity: .055;
}

html[data-theme="light"] .site-header {
  background: rgba(247, 250, 253, .82);
}

html[data-theme="light"] .mobile-menu {
  background: rgba(247, 250, 253, .985);
}

/* A logo aprovada tem texto branco. Mantemos a arte intacta sobre fundo escuro. */
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .section-kicker {
  color: #52627a;
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .hero-tags span,
html[data-theme="light"] .mini-tags span,
html[data-theme="light"] .about-principles span,
html[data-theme="light"] .btn-outline,
html[data-theme="light"] .btn-ghost {
  background: rgba(16, 35, 61, .035);
}

html[data-theme="light"] .btn-outline:hover,
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(8, 127, 245, .07);
  border-color: rgba(8, 127, 245, .22);
}

html[data-theme="light"] .hero-tags span,
html[data-theme="light"] .mini-tags span,
html[data-theme="light"] .about-principles span {
  color: #516078;
}

html[data-theme="light"] .gradient-text,
html[data-theme="light"] .gradient-inline {
  background: linear-gradient(95deg, #0587d9, #6258ef 62%, #24334d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .strip,
html[data-theme="light"] .project-number,
html[data-theme="light"] .footer-wrap > span,
html[data-theme="light"] .contact-hint {
  color: #68768b;
}

html[data-theme="light"] .strip i {
  background: #a8b3c3;
}

/* Cards e seções */
html[data-theme="light"] .project-card {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,248,253,.96));
  box-shadow: 0 22px 65px rgba(31, 55, 88, .08);
}

html[data-theme="light"] .project-status {
  color: #65758d;
}

html[data-theme="light"] .feature-grid span,
html[data-theme="light"] .case-summary dd,
html[data-theme="light"] .modal-case span {
  color: #55657d;
}

html[data-theme="light"] .case-resources-label {
  color: #738197;
}

html[data-theme="light"] .project-link {
  color: #18233a;
}

html[data-theme="light"] .budget-preview,
html[data-theme="light"] .contract-preview {
  background:
    radial-gradient(circle at 50% 15%, rgba(8,127,245,.08), transparent 42%),
    rgba(16,35,61,.012);
}

html[data-theme="light"] .solutions {
  background: linear-gradient(to bottom, transparent, rgba(16,35,61,.018), transparent);
}

html[data-theme="light"] .solution-card {
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 42px rgba(31, 55, 88, .045);
}

html[data-theme="light"] .solution-card:hover {
  background: rgba(8,127,245,.045);
  border-color: rgba(8,127,245,.18);
}

html[data-theme="light"] .solution-card > span {
  color: #8a97a8;
}

html[data-theme="light"] .about {
  background:
    radial-gradient(circle at 18% 50%, rgba(8,127,245,.075), transparent 26%),
    linear-gradient(to bottom, transparent, rgba(16,35,61,.012), transparent);
}

html[data-theme="light"] .about-mark {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,245,252,.90));
  box-shadow: 0 20px 60px rgba(31, 55, 88, .07);
}

html[data-theme="light"] .cta-box {
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(238,244,251,.96));
  box-shadow: 0 24px 70px rgba(31, 55, 88, .09);
}

html[data-theme="light"] .contact-hint strong {
  color: #52637c;
}

/* O mockup e os frames de screenshot continuam escuros de propósito. */
html[data-theme="light"] .code-window {
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(14,20,35,.98), rgba(8,13,24,.96));
}

html[data-theme="light"] .code-window .window-bar,
html[data-theme="light"] .browser-top,
html[data-theme="light"] .mini-browser-top {
  border-color: rgba(255,255,255,.09);
}

html[data-theme="light"] .code-window .floating-card {
  color: #f7f9fc;
  border-color: rgba(255,255,255,.15);
  background: rgba(10,16,29,.90);
}

html[data-theme="light"] .code-window .floating-card small {
  color: #97a2b8;
}

html[data-theme="light"] .browser-shell,
html[data-theme="light"] .mini-browser {
  border-color: rgba(255,255,255,.13);
}

html[data-theme="light"] .url-bar,
html[data-theme="light"] .mini-browser-top {
  border-color: rgba(255,255,255,.08);
}

/* Modais */
html[data-theme="light"] .modal-dialog {
  background: #ffffff;
}

html[data-theme="light"] .modal-close {
  background: rgba(16,35,61,.04);
  color: var(--text);
}

html[data-theme="light"] .modal-features span,
html[data-theme="light"] .modal-case > div {
  background: rgba(16,35,61,.025);
  color: #55657d;
}

html[data-theme="light"] .modal-note {
  color: #5b6a80;
}

html[data-theme="light"] .email-modal-dialog {
  border-color: rgba(16,35,61,.14);
  background:
    radial-gradient(circle at 85% 0%, rgba(8,127,245,.08), transparent 38%),
    #ffffff;
  box-shadow: 0 30px 80px rgba(25, 48, 80, .22);
}

html[data-theme="light"] .email-modal-address {
  border-color: rgba(16,35,61,.12);
  background: rgba(16,35,61,.035);
  color: #18233a;
}

html[data-theme="light"] .email-modal-close {
  border-color: rgba(16,35,61,.13);
  background: rgba(16,35,61,.04);
  color: #18233a;
}

/* ============================================================
   Controle de tema — implementação final e isolada
   ============================================================ */

/* Logos sempre transparentes e sem filtros de cor. */
.brand-logo-link,
.brand-logo-link:hover,
.brand-logo-link:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-logo,
.theme-logo {
  display: block;
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Base comum dos dois controles. */
.theme-control {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;

  padding: 0;
  margin: 0;

  border: 1px solid var(--line-strong);
  border-radius: 50%;

  background: rgba(255, 255, 255, .045);
  color: var(--cyan);

  line-height: 0;
  cursor: pointer;
  overflow: hidden;

  align-items: center;
  justify-content: center;

  box-shadow:
    0 10px 28px rgba(0, 0, 0, .20),
    inset 0 0 16px rgba(74, 231, 255, .035);

  transition:
    transform .18s ease,
    background-color .25s ease,
    border-color .25s ease,
    color .25s ease,
    box-shadow .25s ease;
}

.theme-control:hover {
  border-color: rgba(74, 231, 255, .36);
}

.theme-control:active {
  transform: scale(.94);
}

.theme-control:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Ícones SVG. */
.theme-control-icon {
  display: none;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.theme-control-moon {
  fill: currentColor;
  stroke: none;
}

/* Dark = mostra Sol, porque o clique vai para Light. */
html[data-theme="dark"] .theme-control-sun {
  display: block;
}

html[data-theme="dark"] .theme-control-moon {
  display: none;
}

/* Light = mostra Lua, porque o clique volta para Dark. */
html[data-theme="light"] .theme-control {
  background: rgba(255, 255, 255, .97);
  color: #64748b;
  border-color: rgba(16, 35, 61, .16);
  box-shadow: 0 10px 28px rgba(25, 48, 80, .16);
}

html[data-theme="light"] .theme-control-sun {
  display: none;
}

html[data-theme="light"] .theme-control-moon {
  display: block;
}

/* ------------------------------------------------------------
   DESKTOP
   Apenas um botão, flutuante e totalmente fora do header.
   ------------------------------------------------------------ */
@media (min-width: 821px) {
  .theme-control-mobile {
    display: none !important;
  }

  .theme-control-desktop {
    position: fixed !important;
    right: 26px !important;
    bottom: 26px !important;
    top: auto !important;
    left: auto !important;

    z-index: 9999 !important;

    display: inline-flex !important;

    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;

    flex: 0 0 52px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .theme-control-desktop .theme-control-icon {
    width: 21px !important;
    height: 21px !important;
    flex-basis: 21px !important;
  }
}

/* ------------------------------------------------------------
   MOBILE / TABLET
   Apenas um botão dentro do header.
   ------------------------------------------------------------ */
@media (max-width: 820px) {
  .theme-control-desktop {
    display: none !important;
  }

  .theme-control-mobile {
    position: static !important;
    display: inline-flex !important;

    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;

    flex: 0 0 46px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .theme-control-mobile .theme-control-icon {
    width: 19px !important;
    height: 19px !important;
    flex-basis: 19px !important;
  }
}

@media (max-width: 590px) {
  .theme-control-mobile {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;

    flex: 0 0 44px !important;
  }

  .theme-control-mobile .theme-control-icon {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }
}



/* ============================================================
   CNH Udi no mobile: preview antes das informações
   ============================================================ */
@media (max-width: 590px) {
  .project-main > .cnh-preview {
    order: 1;
  }

  .project-main > .project-info {
    order: 2;
  }

  .project-main > .cnh-preview {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}



/* ============================================================
   Números das etapas — maiores e centralizados
   ============================================================ */
.process-item {
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: center;
}

.process-item > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
}

@media (max-width: 820px) {
  .process-item {
    grid-template-columns: 58px 1fr;
    gap: 18px;
  }

  .process-item > span {
    font-size: 17px;
  }
}

@media (max-width: 590px) {
  .process-item {
    grid-template-columns: 52px 1fr;
    gap: 14px;
  }

  .process-item > span {
    font-size: 16px;
  }
}



/* ============================================================
   Botão primário no Light — correção das quinas no Safari/iOS
   ============================================================ */
html[data-theme="light"] .btn-primary {
  border-color: transparent;
  background:
    linear-gradient(135deg, #a8f7ff, var(--cyan)) padding-box;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;

  overflow: hidden;
  isolation: isolate;

  /* Evita artefatos de antialias nas quinas arredondadas do Safari/iOS. */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);

  box-shadow:
    0 12px 30px rgba(8, 127, 245, .13);
}

html[data-theme="light"] .btn-primary:hover {
  box-shadow:
    0 15px 36px rgba(8, 127, 245, .18);
}
