:root {
  --blue: #3B8DE8;
  --blue-deep: #0F2A47;
  --blue-pale: #EAF3FE;
  --ink: #10202F;
  --ink-soft: #5A6B7D;
  --white: #FFFFFF;
  --line: #DCE7F3;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 46px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(59,141,232,0.25));
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-fallback { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--blue-deep); }
.topbar-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.topbar-nav a { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.topbar-nav a:hover, .topbar-nav a.active { color: var(--blue-deep); }
.topbar-cta {
  background: var(--blue-deep);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.topbar-cta:hover { background: var(--blue); }

.btn-primary {
  background: var(--blue-deep);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-block;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-secondary {
  border: 1.5px solid var(--line);
  color: var(--blue-deep);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-block;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-secondary:hover { border-color: var(--blue); background: var(--blue-pale); }
.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Home hero ---------- */
.home-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 32px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.home-eyebrow { font-size: 0.9rem; color: var(--blue); font-weight: 600; margin: 0 0 18px; }
.home-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 22px;
}
.home-title-accent { color: var(--blue); }
.home-sub { font-size: 1.03rem; line-height: 1.65; color: var(--ink-soft); max-width: 48ch; margin: 0 0 32px; }
.home-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.home-hero-panel {
  background: var(--blue-deep);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "dot label" ". value";
  column-gap: 12px;
  row-gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.panel-row:last-child { border-bottom: none; padding-bottom: 0; }
.panel-dot { grid-area: dot; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 6px; }
.panel-label { grid-area: label; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.55); }
.panel-value { grid-area: value; font-size: 0.98rem; color: var(--white); font-weight: 500; }

/* ---------- Diferenciais ---------- */
.diff { max-width: 1140px; margin: 0 auto; padding: 88px 32px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--blue-deep);
  text-align: center;
  margin: 0 0 56px;
  font-weight: 600;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.diff-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.diff-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.diff-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.diff-card h3 { font-family: var(--font-display); font-size: 1.08rem; color: var(--blue-deep); margin: 0 0 10px; font-weight: 600; }
.diff-card p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ---------- Process ---------- */
.process { background: var(--blue-pale); padding: 96px 32px; }
.process-title { color: var(--blue-deep); }
.process-track {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding-bottom: 36px;
  position: relative;
}
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.process-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  z-index: 1;
}
.process-body h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--blue-deep); margin: 6px 0 8px; font-weight: 600; }
.process-body p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ---------- Portfolio teaser ---------- */
.portfolio-teaser { max-width: 900px; margin: 0 auto; padding: 96px 32px; text-align: center; }
.portfolio-teaser-inner h2 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin: 0 0 16px;
  font-weight: 700;
}
.portfolio-teaser-inner p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto 28px;
}

/* ---------- CTA ---------- */
.home-cta { background: var(--blue-deep); text-align: center; padding: 96px 32px; }
.home-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--white);
  margin: 0 0 14px;
  font-weight: 700;
}
.home-cta-sub { color: rgba(255,255,255,0.75); margin: 0 0 32px; font-size: 1.02rem; }
.home-cta .btn-primary { background: var(--blue); }
.home-cta .btn-primary:hover { background: var(--white); color: var(--blue-deep); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 32px 28px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--blue-deep); }
.footer-tagline { color: var(--ink-soft); font-size: 0.9rem; margin: 10px 0 0; max-width: 30ch; }
.footer-links, .footer-legal { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-legal a { color: var(--ink-soft); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover, .footer-legal a:hover { color: var(--blue-deep); }
.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar-nav { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
