/* ============================================================
   ComCode Tecnologia — Estilos
   Paleta: fundo claro, azul escuro, azul vibrante, cinza suave
   ============================================================ */

:root {
  --navy: #0a1f44;        /* azul escuro */
  --blue: #2f6bff;        /* azul vibrante (principal) */
  --blue-600: #1f55e0;
  --blue-soft: #eaf0ff;
  --ink: #0f172a;
  --gray: #64748b;        /* cinza suave */
  --gray-light: #94a3b8;
  --line: #e6ebf5;
  --bg: #ffffff;
  --bg-alt: #f6f8fd;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 12px 40px rgba(15, 23, 42, .10);
  --shadow-blue: 0 14px 40px rgba(47, 107, 255, .28);

  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-600); }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: 1.18; color: var(--navy); font-weight: 700; letter-spacing: -.02em; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  cursor: pointer; border: 2px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Eyebrow / títulos de seção ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow-light { color: #bcd0ff; background: rgba(255,255,255,.08); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-intro { color: var(--gray); font-size: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; color: var(--navy); font-weight: 700; }
.brand:hover { color: var(--navy); }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm);
}
.brand-text strong { color: var(--blue); }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a { color: var(--navy); font-weight: 500; font-size: 15px; }
.nav-menu a:hover { color: var(--blue); }
.nav-menu .nav-cta {
  background: var(--blue); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: var(--shadow-blue);
}
.nav-menu .nav-cta:hover { background: var(--blue-600); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 480px at 85% -10%, var(--blue-soft), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, #f0f4ff, transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-copy h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 22px; }
.hero-copy .lead { font-size: 19px; color: var(--gray); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; color: var(--gray); font-size: 14px; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span { color: #16a34a; font-weight: 800; }

/* Visual */
.hero-visual { position: relative; }
.hero-stage { position: relative; display: grid; place-items: center; padding: 20px; }
.hero-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,.35), transparent 65%);
  filter: blur(8px); z-index: 0; animation: pulse-glow 4s ease-in-out infinite;
}
.hero-logo {
  position: relative; z-index: 1; width: min(320px, 80%); height: auto;
  border-radius: 30px; box-shadow: 0 30px 70px rgba(10,31,68,.30);
  animation: float 6s ease-in-out infinite;
}
@keyframes pulse-glow { 0%,100% { transform: scale(.95); opacity: .8; } 50% { transform: scale(1.05); opacity: 1; } }

.hero-card-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 15px; font-size: 13px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow);
}
.hero-card-float .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-green { background: #16a34a; } .dot-blue { background: var(--blue); }
.card-1 { top: 8%; right: -4%; animation: float 5s ease-in-out infinite; }
.card-2 { bottom: 10%; left: -6%; animation: float 5.5s ease-in-out .6s infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   SOBRE A COMCODE — cards de dados
   ============================================================ */
.company-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.company-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.company-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd9f5; }
.company-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.company-value { font-size: 18px; font-weight: 700; color: var(--navy); word-break: break-word; }
.company-value a { color: var(--navy); }
.company-value a:hover { color: var(--blue); }

/* ============================================================
   CARDS DE FEATURE (Cody)
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cdd9f5; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
  transition: background .28s var(--ease), color .28s var(--ease);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card:hover .feature-icon { background: var(--blue); color: #fff; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 15.5px; }

/* ============================================================
   BENEFÍCIOS
   ============================================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit-icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  background: var(--blue-soft); font-size: 24px; margin-bottom: 16px;
  transition: transform .35s var(--ease);
}
.benefit:hover .benefit-icon { transform: scale(1.12) rotate(-6deg); }
.benefit h3 { font-size: 18px; margin-bottom: 7px; }
.benefit p { color: var(--gray); font-size: 15px; }

/* ============================================================
   SEGURANÇA
   ============================================================ */
.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, #102a5c 100%);
  color: #dbe6ff; position: relative; overflow: hidden;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(47,107,255,.35), transparent 60%);
  pointer-events: none;
}
.security-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.security-copy h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.security-copy p { color: #b9c8ec; font-size: 18px; margin-bottom: 24px; max-width: 540px; }
.security-list { display: grid; gap: 14px; }
.security-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #e6eeff; }
.security-list span { font-size: 20px; }

.security-visual { display: grid; place-items: center; }
.shield {
  width: 200px; height: 200px; border-radius: 50%;
  display: grid; place-items: center; color: #8fb4ff;
  background: rgba(47,107,255,.12); border: 1px solid rgba(143,180,255,.25);
  box-shadow: inset 0 0 60px rgba(47,107,255,.2);
  animation: pulse 3.5s ease-in-out infinite;
}
.shield svg { width: 96px; height: 96px; }
@keyframes pulse { 0%,100% { box-shadow: inset 0 0 60px rgba(47,107,255,.2), 0 0 0 0 rgba(47,107,255,.25); } 50% { box-shadow: inset 0 0 60px rgba(47,107,255,.3), 0 0 0 22px rgba(47,107,255,0); } }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; text-align: left; }
.contact-info .section-intro { text-align: left; margin-bottom: 30px; }

.contact-channels { display: grid; gap: 16px; }
.contact-channels li { display: flex; align-items: center; gap: 14px; }
.channel-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 18px; font-weight: 700;
}
.channel-label { display: block; font-size: 13px; color: var(--gray); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15.5px; color: var(--ink); background: #fbfcff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.12); background: #fff;
}
.field textarea { resize: vertical; }
.field input:invalid:not(:placeholder-shown) { border-color: #ef4444; }
.form-feedback { display: block; margin-top: 14px; font-size: 14.5px; font-weight: 600; text-align: center; min-height: 20px; }
.form-feedback.success { color: #16a34a; }
.form-feedback.error { color: #ef4444; }

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer { background: var(--navy); color: #aebede; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: #93a6cf; font-size: 15px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: #aebede; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-data li { font-size: 15px; line-height: 1.5; }
.footer-data span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6f84b3; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bottom p { font-size: 14px; color: #8295bd; text-align: center; }

/* ============================================================
   PÁGINAS LEGAIS (política / termos)
   ============================================================ */
.legal-page { padding: 64px 0 88px; background: var(--bg); }
.legal-page .container { max-width: 820px; }
.legal-head { margin-bottom: 40px; }
.legal-head h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.legal-head .updated { color: var(--gray); font-size: 15px; }
.legal-content h2 { font-size: 22px; margin: 38px 0 12px; color: var(--navy); }
.legal-content h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-content p, .legal-content li { color: #334155; font-size: 16.5px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 7px; }
.legal-content a { font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-weight: 600; }

/* ============================================================
   ANIMAÇÃO DE REVEAL (scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-illustration, .hero-card-float, .shield { animation: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy .lead { max-width: none; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .security-grid { grid-template-columns: 1fr; gap: 36px; }
  .security-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .company-cards { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 14px 24px; }
  .nav-menu .nav-cta { margin: 8px 24px; text-align: center; box-shadow: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .cards-grid, .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
