/* ===== TOKENS (tema claro) ===== */
:root {
  --bg: #f6f8fd;
  --bg-alt: #eef3fc;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #1b2440;
  --text-dim: #5d6b85;
  --primary: #3d7bf2;
  --primary-2: #56c2f0;
  --accent: #2bb6a3;
  --border: rgba(27, 36, 64, 0.10);
  --grad: linear-gradient(120deg, #5a8af5 0%, #56c2f0 100%);
  --grad-soft: linear-gradient(120deg, rgba(108,124,240,.12), rgba(86,194,240,.12));
  --hero-bg: linear-gradient(160deg, #eef0fb 0%, #e6eefb 40%, #dfeefb 100%);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(60, 90, 160, .14);
  --shadow-sm: 0 8px 24px rgba(60, 90, 160, .10);
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; font-weight: 700; color: var(--text); }

a { color: inherit; text-decoration: none; }

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

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(61,123,242,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(61,123,242,.45); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(60,90,160,.07);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.logo { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk'; font-size: 1.2rem; font-weight: 700; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(61,123,242,.35);
}
.logo-text { color: var(--text); }
.logo-text strong { color: var(--primary); font-weight: 700; }
.logo-img { height: 42px; width: auto; display: block; }
.footer-brand .logo-img { height: 46px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--grad); color: #fff !important; padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(61,123,242,.32);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; background: var(--hero-bg); }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at 80% 20%, rgba(86,194,240,.35), transparent 60%),
    radial-gradient(500px circle at 15% 80%, rgba(122,108,235,.22), transparent 60%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }

.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: .85rem;
  background: rgba(255,255,255,.7); border: 1px solid var(--border); color: var(--primary);
  font-weight: 600; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; color: var(--text-dim); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }

.hero-steps { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 18px; justify-content: start; }
.hero-step {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.7); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.hero-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hs-icon { font-size: 1.05rem; line-height: 1; }
.hs-label { font-weight: 600; font-size: .95rem; color: var(--text); }
.hs-check {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; margin-left: 2px;
}

/* hero visual — janela de código escura para contraste */
.hero-visual { position: relative; }
.code-card {
  background: #0f1426; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; position: relative; z-index: 2;
}
.code-dots { display: flex; gap: 7px; margin-bottom: 16px; }
.code-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.code-dots i:nth-child(1){ background:#ff5f56; } .code-dots i:nth-child(2){ background:#ffbd2e; } .code-dots i:nth-child(3){ background:#27c93f; }
.code-card pre { font-family: 'Space Grotesk', monospace; font-size: .95rem; line-height: 1.7; color: #cdd6f4; overflow-x: auto; }
.c-key { color: #c792ea; } .c-fn { color: #82aaff; } .c-var { color: #f78c6c; }

.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 12px; font-size: .85rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow); z-index: 3; animation: float 4s ease-in-out infinite;
}
.chip-1 { top: -22px; left: -10px; } .chip-2 { bottom: 40px; left: -40px; animation-delay: 1.3s; }
.chip-3 { top: 50%; right: -30px; animation-delay: .6s; }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ===== TRUST ===== */
.trust { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust-label { text-align: center; color: var(--text-dim); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; }
.trust-list span { font-family: 'Space Grotesk'; font-weight: 600; color: var(--text-dim); font-size: 1.05rem; transition: color .2s; }
.trust-list span:hover { color: var(--primary); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }
.section h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.section p { color: var(--text-dim); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--grad); color: #fff; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* values */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s, border-color .3s, box-shadow .3s; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(61,123,242,.4); box-shadow: var(--shadow); }
.value-icon { font-size: 1.8rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { font-size: .92rem; }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .3s, border-color .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .3s; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(86,194,240,.5); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { font-size: .95rem; }

/* cases */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 50px; }
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s, border-color .3s, box-shadow .3s; }
.case-card:hover { transform: translateY(-8px); border-color: rgba(43,182,163,.4); box-shadow: var(--shadow); }
.case-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent); background: rgba(43,182,163,.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.case-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.case-card p { font-size: .95rem; margin-bottom: 18px; }
.case-metric { font-size: .9rem; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 16px; }
.case-metric strong { font-family: 'Space Grotesk'; font-size: 1.5rem; color: var(--primary); display: block; }
.case-card.featured { border-color: rgba(61,123,242,.45); box-shadow: var(--shadow); }
.case-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; color: var(--primary); transition: gap .2s; }
.case-link:hover { gap: 12px; }

.testimonial { max-width: 760px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.testimonial p { font-size: 1.25rem; color: var(--text); font-family: 'Space Grotesk'; margin-bottom: 16px; }
.testimonial footer { color: var(--primary); font-weight: 600; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: relative; }
.step-num { font-family: 'Space Grotesk'; font-size: 2.4rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .9rem; }

/* modelos de contratação (bloco destacado) */
.models { margin-top: 64px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.models::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.models-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.models-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0; }
.models-head p { color: var(--text-dim); font-size: 1.02rem; }
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 26px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.model-card:hover { transform: translateY(-6px); border-color: rgba(61,123,242,.4); box-shadow: var(--shadow-sm); }
.model-icon { font-size: 1.9rem; margin-bottom: 12px; }
.model-card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.model-card p { font-size: .92rem; color: var(--text-dim); line-height: 1.55; }

/* orçamento */
.orcamento-wrap { align-items: start; }
.contact-info { margin-top: 28px; display: grid; gap: 10px; }
.contact-info a:hover { color: var(--primary); }

.quote-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: #f7f9fd; color: var(--text); font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa6c0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(61,123,242,.15); }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #e0466b;
  border-width: 2px;
  background: #fff5f7;
  box-shadow: 0 0 0 4px rgba(224,70,107,.18);
}
.field.invalid input:focus, .field.invalid select:focus, .field.invalid textarea:focus {
  border-color: #e0466b;
  box-shadow: 0 0 0 4px rgba(224,70,107,.30);
}
.field.invalid label { color: #e0466b; }
.form-msg { margin-top: 14px; font-size: .9rem; text-align: center; min-height: 20px; }
.form-msg.success { color: var(--accent); }
.form-msg.error { color: #e0466b; }

/* ===== FOOTER ===== */
.footer { background: #fff; border-top: 1px solid var(--border); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-dim); margin-top: 14px; max-width: 320px; font-size: .95rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: .92rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom p { color: var(--text-dim); font-size: .85rem; text-align: center; }

/* whatsapp float */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  transition: transform .25s; animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== CONSENTIMENTO (LGPD) ===== */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--text-dim); margin-bottom: 18px; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.consent a { color: var(--primary); font-weight: 600; }

/* ===== ACESSIBILIDADE ===== */
:focus-visible { outline: 3px solid rgba(61,123,242,.55); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::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; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner, .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
  .services-grid, .cases-grid, .steps, .models-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 74px; right: 0; width: 75%; max-width: 320px; height: calc(100vh - 74px);
    flex-direction: column; align-items: flex-start; gap: 22px; padding: 32px 28px;
    background: #fff; border-left: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2){ opacity: 0; }
  .nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .services-grid, .cases-grid, .steps, .values-grid, .footer-inner, .field-row, .models-grid { grid-template-columns: 1fr; }
  .hero-steps { grid-template-columns: 1fr; }
  .models { padding: 30px 22px; }
  .section { padding: 70px 0; }
}
