/* ============================================================
   ALVO SST — Design System v1
   ============================================================ */

:root {
  --navy: #102A43;
  --navy-800: #1E3A5F;
  --mint: #19C37D;
  --mint-dark: #0F9D63;
  --white: #F8FAFC;
  --text: #0F172A;
  --text-secondary: #64748B;
  --surface: #F1F5F9;
  --surface-2: #E2E8F0;
  --info: #2563EB;
  --warning: #F59E0B;
  --danger: #DC2626;
  --border: rgba(16, 42, 67, 0.10);
  --border-strong: rgba(16, 42, 67, 0.18);

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.08);
  --shadow-lg: 0 24px 64px rgba(16, 42, 67, 0.14);

  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-800); }

.btn-mint {
  background: var(--mint);
  color: var(--navy);
}
.btn-mint:hover { background: var(--mint-dark); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); }

.btn-small { padding: 9px 18px; font-size: 13px; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(16, 42, 67, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-wordmark span {
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-link:hover { background: var(--surface); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
}
.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-toggle span::before { position: absolute; top: -6px; }
.mobile-toggle span::after { position: absolute; top: 6px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { text-align: left; }
.mobile-menu .header-actions { flex-direction: column; align-items: stretch; margin-top: 10px; gap: 8px; }

/* ============================================================
   Logo mark
   ============================================================ */

.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 52px;
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--mint-dark);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* Dashboard mockup */
.dash-mock {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.dash-mock::before {
  content: "demonstração";
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 10.5px;
  color: rgba(248, 250, 252, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dash-inner {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
}
.dash-greeting {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.metric-card.mint .metric-value { color: var(--mint-dark); }
.metric-card.warn .metric-value { color: var(--warning); }

.dash-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 10px;
}
.dash-bar-fill {
  height: 100%;
  background: var(--mint);
  border-radius: 999px;
}

/* ============================================================
   Converging animation section
   ============================================================ */

.converge-section {
  background: var(--navy);
  padding: 96px 0;
  color: var(--white);
  text-align: center;
}
.converge-section .eyebrow { color: var(--mint); }
.converge-section .eyebrow::before { background: var(--mint); }
.converge-section h2 {
  color: var(--white);
  font-size: 34px;
  margin: 14px 0 12px;
}
.converge-section p.lead {
  color: rgba(248, 250, 252, 0.65);
  max-width: 480px;
  margin: 0 auto 48px;
  font-size: 16px;
}

.converge-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 260px;
  margin: 0 auto;
}

.converge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(25, 195, 125, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.converge-center::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint);
}

.converge-tag {
  position: absolute;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.14);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.85);
  animation: converge 4.5s ease-in-out infinite;
}

@keyframes converge {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
  55%  { transform: translate(var(--tx), var(--ty)) scale(0.55); opacity: 0.15; }
  56%  { transform: translate(0, 0) scale(1); opacity: 0; }
  70%  { opacity: 0.9; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
}

.tag-1 { top: 6%;  left: 4%;  --tx: 220px; --ty: 90px; animation-delay: 0s; }
.tag-2 { top: 4%;  left: 58%; --tx: -80px; --ty: 100px; animation-delay: 0.4s; }
.tag-3 { top: 40%; left: 82%; --tx: -220px; --ty: 10px; animation-delay: 0.8s; }
.tag-4 { top: 78%; left: 68%; --tx: -160px; --ty: -70px; animation-delay: 1.2s; }
.tag-5 { top: 82%; left: 18%; --tx: 120px; --ty: -80px; animation-delay: 1.6s; }
.tag-6 { top: 42%; left: 0%;  --tx: 230px; --ty: -10px; animation-delay: 2s; }
.tag-7 { top: 20%; left: 30%; --tx: 90px; --ty: 60px; animation-delay: 2.4s; }

.converge-final {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .converge-tag { animation: none; opacity: 0.85; }
}

/* ============================================================
   Sections generic
   ============================================================ */

section { padding: 96px 0; }
.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: 34px;
  margin: 14px 0 14px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 16.5px;
}

.section-alt { background: var(--surface); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.product-icon svg { width: 22px; height: 22px; }
.product-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.product-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Alvos de hoje */
.alvos-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.alvos-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.alvos-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.alvos-panel-head h4 {
  font-size: 16px;
}
.alvos-panel-head span {
  font-size: 12px;
  color: var(--text-secondary);
}

.alvo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--border);
}
.alvo-item:first-of-type { border-top: none; }
.alvo-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.alvo-dot.warn { background: var(--warning); }
.alvo-dot.danger { background: var(--danger); }
.alvo-dot.info { background: var(--info); }
.alvo-dot.mint { background: var(--mint); }
.alvo-text { font-size: 14.5px; flex: 1; }
.alvo-text strong { font-weight: 600; }
.alvo-count {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 3px 9px;
  border-radius: 999px;
}

.alvos-demo-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-top: 14px;
  display: block;
}

/* Alvo score */
.score-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.score-ring-wrap {
  display: flex;
  justify-content: center;
}
.score-ring {
  position: relative;
  width: 220px;
  height: 220px;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring-value .num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
}
.score-ring-value .lbl {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.score-breakdown { display: flex; flex-direction: column; gap: 14px; }
.score-row { display: grid; grid-template-columns: 140px 1fr 44px; align-items: center; gap: 12px; }
.score-row .name { font-size: 14px; font-weight: 500; }
.score-row .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.score-row .bar-fill { height: 100%; border-radius: 999px; background: var(--mint); }
.score-row .pct { font-size: 13px; color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-cover {
  height: 150px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  position: relative;
}
.blog-cover span {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-body { padding: 20px 20px 22px; }
.blog-body h3 { font-size: 16.5px; margin-bottom: 8px; line-height: 1.35; }
.blog-body p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; }
.blog-meta { font-size: 12px; color: var(--text-secondary); display: flex; gap: 10px; }

/* Final CTA */
.final-cta {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
}
.final-cta h2 { color: var(--white); font-size: 32px; margin-bottom: 14px; }
.final-cta p { color: rgba(248, 250, 252, 0.7); max-width: 460px; margin: 0 auto 32px; }
.final-cta .hero-ctas { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 14px 0 20px;
  max-width: 240px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { background: var(--white); border-color: var(--navy); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--navy); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }

/* Newsletter (footer) */
.newsletter-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-box h4 { font-size: 17px; margin-bottom: 4px; }
.newsletter-box p { font-size: 13.5px; color: var(--text-secondary); }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 380px; min-width: 260px; }
.newsletter-form input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--mint); }

/* WhatsApp float button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; color: var(--navy); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .alvos-layout, .score-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .final-cta { padding: 44px 24px; }
  .newsletter-box { flex-direction: column; align-items: stretch; }
}
