:root {
  --bg-body: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #0ea5e9;
  --border: #e2e8f0;
  --nav-bg: #0b0f19;

  /* Layout */
  --nav-h: 80px;
  --container-pad: 24px;
}

[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-alt: #020617;
  --bg-card: #111827;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --border: #1e293b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Inter', sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--container-pad); }
.narrow { max-width: 800px; }

a { color: inherit; }
::selection { background: rgba(59,130,246,0.25); }

/* SEÇÕES */
.section { padding: 120px 0; }
.section.alt-bg { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); }

.section-divider {
  height: 1px; width: 100%; max-width: 800px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* HEADER FIXO */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--nav-bg); z-index: 1000; display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 84px; }
.logo-img { height: 28px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-item { text-decoration: none; color: #e2e8f0; font-weight: 500; font-size: 14px; transition: 0.2s; }
.nav-item:hover { color: #fff; }

.nav-actions { display: inline-flex; align-items: center; gap: 12px; }

.theme-btn {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.12); cursor: pointer;
  padding: 8px; border-radius: 999px; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: 0.2s ease;
}
.theme-btn:hover { background: rgba(255,255,255,0.14); }

.sun-icon { display: block; } .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* Mobile menu button (injetado via JS) */
.menu-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  display: none;
  cursor: pointer;
  transition: 0.2s ease;
}
.menu-btn:hover { background: rgba(255,255,255,0.14); }
.menu-btn:focus { outline: 2px solid rgba(59,130,246,0.55); outline-offset: 2px; }

/* HERO */
.hero { padding: calc(var(--nav-h) + 80px) 0 80px; text-align: center; }
.badge-hero {
  display: inline-block;
  background: rgba(37,99,235,0.10);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(37,99,235,0.18);
}
h1 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -1.6px;
  margin-bottom: 24px;
  line-height: 1.05;
}
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 40px;
}

.hero-btns { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-item strong { font-size: 28px; font-weight: 800; }
.stat-item span { font-size: 12px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; letter-spacing: 0.06em; }

/* GRID */
.grid-balanced, .stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.feature-card, .stack-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); }
.stack-desc { color: var(--text-muted); }
.tags-container { margin-top: 12px; margin-bottom: 10px; }

.check-list { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.check-list li { font-size: 14px; margin-bottom: 8px; position: relative; padding-left: 20px; color: var(--text-main); }
.check-list li::before { content: '✓'; color: var(--primary); position: absolute; left: 0; font-weight: bold; }

.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(2,6,23,0.04);
  border: 1px solid var(--border);
  margin: 0 6px 10px 0;
  display: inline-block;
  white-space: nowrap;
}
[data-theme="dark"] .tech-tag { background: rgba(255,255,255,0.03); }

/* METODOLOGIA */
.steps-row { display: flex; gap: 40px; margin-top: 60px; align-items: stretch; }
.step { flex: 1; text-align: center; }
.step p { color: var(--text-muted); }
.step-num { font-size: 40px; font-weight: 800; color: var(--primary); opacity: 0.3; display: block; margin-bottom: 10px; }
.step-line { width: 1px; background: var(--border); }

/* FAQ */
.faq-list { margin-top: 50px; display: flex; flex-direction: column; gap: 20px; }
.faq-list details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-list summary { padding: 24px; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-list summary::after { content: '+'; color: var(--primary); font-size: 20px; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list p { padding: 0 24px 24px; color: var(--text-muted); }

/* FORMULÁRIO */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10);
}
.contact-info { background: linear-gradient(135deg, var(--bg-body), var(--bg-alt)); padding: 40px; }
.contact-info p { color: var(--text-muted); }
.contact-form-box { padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.pro-form input, .pro-form select, .pro-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: inherit;
}
.pro-form textarea { resize: vertical; min-height: 110px; }
.pro-form input:focus, .pro-form select:focus, .pro-form textarea:focus {
  outline: 2px solid rgba(59,130,246,0.55);
  outline-offset: 1px;
}

/* BOTÕES */
.btn {
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: 0.2s ease;
  white-space: nowrap;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(37,99,235,0.30); }
.btn.secondary { border: 1px solid var(--border); color: var(--text-main); background: transparent; }
.btn.secondary:hover { transform: translateY(-2px); }
.btn.small { padding: 10px 16px; border-radius: 10px; }
.btn.full-width { width: 100%; justify-content: center; }

/* RODAPÉ */
.footer { background: var(--nav-bg); padding: 80px 0 40px; color: #94a3b8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { font-size: 24px; font-weight: 800; color: #fff; display: block; margin-bottom: 16px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 16px; }
.footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 12px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding-top: 30px; text-align: center; font-size: 13px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* RESPONSIVO */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section { padding: 96px 0; }
  .feature-card, .stack-group { padding: 32px; }
  .hero { padding: calc(var(--nav-h) + 70px) 0 70px; }
}

@media (max-width: 900px) {
  :root { --container-pad: 18px; }

  /* header */
  .nav-inner { gap: 10px; }
  .nav-links { gap: 18px; }

  /* layouts */
  .grid-balanced, .stack-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .steps-row { flex-direction: column; gap: 22px; }
  .step-line { display: none; }

  /* hero */
  .lead { font-size: 17px; }
  .hero-stats-row { grid-template-columns: 1fr; gap: 16px; padding-top: 26px; }

  /* cards spacing */
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 72px; --container-pad: 16px; }

  /* Mobile menu */
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding: 18px var(--container-pad);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateY(-120%);
    transition: transform 0.22s ease;
    z-index: 999;
  }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-item { margin-right: 0; font-size: 14px; padding: 8px 6px; }
  .nav-actions { gap: 10px; }

  /* prevent content jump when menu open */
  body.nav-open { overflow: hidden; }

  /* hero/buttons */
  .btn { width: 100%; }
  .hero-btns { width: 100%; }
  .btn.secondary { margin-left: 0; }
}

@media (max-width: 480px) {
  .section-header h2 { font-size: 30px; }
  .feature-card, .stack-group { padding: 26px; border-radius: 14px; }
  .contact-info, .contact-form-box { padding: 26px; }
  .badge-hero { font-size: 11px; }
}

.menu-btn svg { display: block; }
