:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #eef4fb;
  --text: #0f172a;
  --muted: #5b6b82;
  --primary: #0d63d6;
  --primary-strong: #094db8;
  --border: #dbe5f0;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 45%, #eef4fb 100%);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247,249,252,0.86);
  border-bottom: 1px solid rgba(219,229,240,0.9);
}
.nav {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); }
.nav-links a { font-weight: 600; }
.lang-switcher {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--border);
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
}
.lang-switcher button {
  border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font-weight: 700; color: var(--muted);
}
.lang-switcher button.active { background: var(--primary); color: #fff; }

.hero {
  padding: 54px 0 28px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 0.97; letter-spacing: -0.05em; margin: 0 0 18px;
}
.hero-copy p {
  font-size: 1.1rem; line-height: 1.65; color: var(--muted); margin: 0 0 24px; max-width: 56ch;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-weight: 700;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px;
  border-radius: 999px; font-weight: 800; border: 1px solid transparent; transition: 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); }
.hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  border: 1px solid rgba(219,229,240,0.85); box-shadow: var(--shadow); border-radius: var(--radius-xl);
  padding: 18px; position: relative;
}
.phone-frame {
  width: min(100%, 360px); margin: 0 auto; border-radius: 36px; padding: 10px; background: #0d1726;
  box-shadow: 0 24px 60px rgba(13,99,214,0.18);
}
.phone-frame img { border-radius: 28px; width: 100%; height: auto; }
.image-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.95rem; }

.section { padding: 56px 0; }
.section-head { margin-bottom: 24px; max-width: 680px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 3rem); margin: 0 0 12px; letter-spacing: -0.04em; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }
.icon {
  width: 44px; height: 44px; border-radius: 14px; background: rgba(13,99,214,0.12); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px;
}
.cta-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.panel {
  padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 10px; font-size: 1.35rem; }
.panel p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.panel a { color: var(--primary); font-weight: 800; }

.simple-content {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow);
  padding: 28px;
}
.simple-content h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.04em; margin: 0 0 8px; }
.simple-content .updated { color: var(--muted); margin-bottom: 22px; }
.simple-content h2 { font-size: 1.3rem; margin: 26px 0 10px; }
.simple-content p, .simple-content li {
  color: var(--muted); line-height: 1.75;
}
.simple-content ul { padding-left: 20px; margin: 10px 0 0; }
.simple-content strong { color: var(--text); }

.site-footer {
  padding: 28px 0 40px; border-top: 1px solid var(--border); margin-top: 28px;
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); }
.footer-contact { color: var(--muted); }

[data-lang] { display: none; }
body.lang-pt [data-lang="pt"], body.lang-en [data-lang="en"] { display: block; }
body.lang-pt [data-lang-inline="pt"], body.lang-en [data-lang-inline="en"] { display: inline; }
[data-lang-inline] { display: none; }

@media (max-width: 920px) {
  .hero-grid, .cards-3, .cta-panel { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; padding: 12px 0; }
  .nav-links { order: 3; width: 100%; overflow: auto; padding-bottom: 4px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero-copy h1 { font-size: 2.5rem; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
}
