/* =========================================================================
   CFM Análise AI — landing page styles
   Restrained professional palette: blues / greys / white.
   ========================================================================= */

:root {
  --navy: #0f2c4d;
  --blue: #1e5aa8;
  --blue-light: #3b82c4;
  --accent: #14b8a6;
  --ink: #1a2433;
  --slate: #52627a;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-navy: #0f2c4d;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 44, 77, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-mark.small { width: 30px; height: 30px; font-size: 11px; }
.brand-name { font-size: 18px; }
.brand-accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; margin-left: 40px; }
.nav a { color: var(--slate); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); }

/* Auth actions (right side) — intentional button pair, distinct from plain nav links */
.nav-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-auth {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-auth-outline { color: var(--navy); background: transparent; border: 1px solid var(--line); }
.btn-auth-outline:hover { border-color: var(--blue-light); color: var(--blue); }
.btn-auth-primary { color: #fff !important; background: var(--blue); border: 1px solid var(--blue); }
.btn-auth-primary:hover { background: var(--navy); border-color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.05s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue-light); color: var(--blue); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(30, 90, 168, 0.10), transparent 60%),
    linear-gradient(180deg, #f7fafe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 84px 24px 92px; max-width: 860px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(30, 90, 168, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 700; letter-spacing: -0.5px; }
.subhead { font-size: clamp(17px, 2.2vw, 20px); color: var(--slate); max-width: 720px; }
.subhead-lead { font-size: clamp(18px, 2.6vw, 24px); color: var(--navy); font-weight: 600; max-width: 760px; margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero-note { font-size: 15px; color: var(--slate); font-style: italic; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(24px, 3.4vw, 34px); text-align: center; }
.section-lead {
  text-align: center;
  color: var(--slate);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 44px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f2; }
.card-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(30, 90, 168, 0.10);
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--slate); margin: 0; font-size: 15.5px; }
.card-highlight {
  background: linear-gradient(160deg, #0f2c4d 0%, #1e5aa8 100%);
  border-color: transparent;
}
.card-highlight h3 { color: #fff; }
.card-highlight p { color: #d5e2f2; }
.card-highlight .card-num { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------- Audience ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.audience-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
}
.audience-icon { font-size: 34px; margin-bottom: 12px; }
.audience-item h3 { font-size: 20px; }
.audience-item p { color: var(--slate); margin: 0; font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(900px 400px at 20% 120%, rgba(20, 184, 166, 0.18), transparent 60%),
    var(--bg-navy);
}
.cta-inner { text-align: center; max-width: 720px; }
.cta h2 { color: #fff; font-size: clamp(24px, 3.6vw, 36px); }
.cta p { color: #c8d6e8; font-size: 18px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b2340;
  color: #9fb3ca;
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer-domain { color: var(--accent); font-weight: 500; margin: 0; }
.footer-copy { font-size: 14px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .audience { grid-template-columns: repeat(2, 1fr); }
}
/* Collapse the section links early so brand + auth buttons never overflow/overlap.
   (No hamburger yet — auth actions stay reachable; matches the prior mobile pattern.) */
@media (max-width: 820px) {
  .nav { display: none; }
}
@media (max-width: 640px) {
  .nav-auth { gap: 8px; }
  .btn-auth { padding: 7px 13px; font-size: 13px; }
  .hero-inner { padding: 60px 24px 64px; }
  .section { padding: 56px 0; }
  .cards, .audience { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
}
