@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--navy-900); }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— Topbar ——— */
.site-topbar {
  background: var(--navy-950);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-topbar .inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  padding: 8px 0;
  min-height: 32px;
}
.site-topbar a {
  color: #cbd5e1;
  text-decoration: none;
}
.site-topbar a:hover { color: #fff; }
.site-topbar__sep { opacity: 0.35; user-select: none; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none !important;
  color: inherit;
}
.logo:hover .logo__emp { text-decoration: none; }
.logo__row {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: 1.35rem;
}
.logo__meu {
  color: var(--brand-orange);
  font-weight: 800;
}
.logo__emp {
  color: var(--navy-900);
  position: relative;
  padding-bottom: 2px;
  margin-left: 1px;
}
.logo__emp::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-soft));
  border-radius: 2px;
  opacity: 0.85;
}
.logo__sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-top: 4px;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.nav-main > a:not(.nav-cta) {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-main > a:not(.nav-cta):hover,
.nav-main > a:not(.nav-cta).active {
  background: var(--blue-100);
  color: var(--navy-900);
  text-decoration: none;
}
.nav-main .nav-cta--ghost {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}
.nav-main .nav-cta--ghost:hover {
  border-color: #cbd5e1;
  background: #fafafa;
  color: var(--navy-900);
}
.nav-main .nav-cta--primary {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, var(--blue-500) 0%, #153ead 100%);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
  text-decoration: none;
}
.nav-main .nav-cta--primary:hover {
  filter: brightness(1.06);
  color: #fff;
  text-decoration: none;
}

.hamburger {
  display: none;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--navy-900);
}
@media (max-width: 960px) {
  .hamburger { display: inline-flex; }
  .nav-main { display: none; width: 100%; order: 3; }
  .nav-main.open { display: flex; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .site-header .row { flex-wrap: wrap; }
}

/* Botões (compat + novo) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  font-family: inherit; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary {
  background: linear-gradient(160deg, var(--blue-500) 0%, #1d4ed8 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; color: #fff; }
.btn-secondary {
  background: #fff; border-color: var(--color-border); color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: #fafafa; text-decoration: none; color: var(--navy-900); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; color: #fff; }
.btn-ribbon {
  background: #fff; color: var(--navy-900); font-weight: 700; border: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.btn-ribbon:hover { color: var(--navy-900); filter: none; }

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  color: #e8eef5;
  padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 6vw, 88px);
  background:
    linear-gradient(145deg, rgba(6, 13, 24, 0.92) 0%, rgba(19, 35, 55, 0.88) 50%, #0a1628 100%),
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(232, 93, 4, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(37, 99, 235, 0.2) 0%, transparent 45%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4V4H0V2h4v-4h2v4h4v2H6v4H4v2h4v2H6zM6 4V0H4v4H0V2h4V0h2v4h-4v2H6V4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #94a3b8; margin: 0 0 20px;
}
.hero .kicker::before {
  content: "";
  width: 28px; height: 1px; background: linear-gradient(90deg, var(--brand-orange), transparent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 18ch;
  color: #f8fafc;
}
.hero .lead {
  font-size: 1.1rem; line-height: 1.65;
  max-width: 46ch; margin: 0 0 28px;
  color: #94a3b8; font-weight: 450;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .hero h1 { max-width: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero__trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #94a3b8;
  letter-spacing: 0.02em;
}
.hero__trust span strong { color: #e2e8f0; font-weight: 700; }

/* mock painel (CSS) */
.hero-mock {
  background: linear-gradient(180deg, #1a2740 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.2);
  overflow: hidden;
  min-height: 280px;
}
.hero-mock__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-mock__dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-mock__dot--r { background: #ef4444; }
.hero-mock__dot--y { background: #f59e0b; }
.hero-mock__dot--g { background: #10b981; }
.hero-mock__title { font-size: 11px; color: #64748b; margin-left: 8px; font-weight: 600; }
.hero-mock__body { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-mock__kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.hero-mock__kpi b { display: block; font-size: 1.25rem; color: #f1f5f9; font-weight: 800; letter-spacing: -0.02em; }
.hero-mock__kpi small { color: #64748b; font-size: 11px; font-weight: 600; }
.hero-mock__kpi--accent b { color: #34d399; }
.hero-mock__kpi--warn b { color: #fbbf24; }
.hero-mock__chart {
  grid-column: 1 / -1; height: 64px; display: flex; align-items: flex-end; gap: 4px; padding: 4px 0;
}
.hero-mock__barcol {
  flex: 1; background: linear-gradient(180deg, rgba(37, 99, 235, 0.8), rgba(37, 99, 235, 0.15));
  border-radius: 4px 4px 2px 2px; min-height: 12px;
  animation: barPulse 2.2s var(--ease-out) infinite;
}
.hero-mock__barcol:nth-child(2) { animation-delay: 0.2s; }
.hero-mock__barcol:nth-child(3) { animation-delay: 0.4s; }
@keyframes barPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

.trial-ribbon {
  position: relative;
  background: linear-gradient(100deg, #1e3a5f 0%, var(--blue-500) 45%, #1a56d8 100%);
  color: #f8fafc; padding: 16px 0;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(30, 79, 212, 0.25);
}
.trial-ribbon .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.trial-ribbon .inner > span, .trial-ribbon .inner > strong { font-weight: 600; }
.trial-ribbon .inner > span { color: #cbd5e1; }

.section { padding: 80px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600);
  margin: 0 0 8px;
}
.section h2, .section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px; color: var(--navy-900);
}
.section__intro {
  color: var(--color-ink-muted);
  max-width: 60ch; margin: 0 0 32px; font-size: 1.05rem; line-height: 1.65;
}

.muted { color: var(--color-ink-muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

/* Cards ——— */
.card-site, .card-pro {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s, transform 0.25s;
}
.card-pro:hover, .card-site:hover {
  box-shadow: var(--shadow-md);
  border-color: #e0e4ea;
  transform: translateY(-2px);
}
.card-pro h3, .card-site h3 {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--navy-900);
}
.card-pro p, .card-site p { margin: 0; color: var(--color-ink-soft); font-size: 15px; line-height: 1.6; }
.card-pro__icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-600);
  font-size: 20px; line-height: 1;
}
.card-pro__icon--teal { background: rgba(13, 148, 136, 0.12); color: var(--success); }
.card-pro__icon--orange { background: rgba(232, 93, 4, 0.12); color: var(--brand-orange); }

/* Logo strip */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px;
  padding: 20px; margin-top: 8px; border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: #fafbfc;
}
.logo-strip__label { width: 100%; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-ink-muted); }
.logo-strip__item {
  font-size: 13px; font-weight: 700; color: var(--color-ink-soft);
  padding: 8px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--color-border);
}

/* CTA block */
.section-cta {
  position: relative;
  padding: 64px 0; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, #0f2744 100%);
  color: #e2e8f0;
  text-align: center;
}
.section-cta h2 { color: #fff; margin: 0 0 10px; font-size: 1.65rem; }
.section-cta p { margin: 0 0 24px; color: #94a3b8; max-width: 50ch; margin-left: auto; margin-right: auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 28px; align-items: start;
}
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid var(--color-border); border-radius: 18px; background: #fff; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.25s, transform 0.25s;
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card .head { padding: 22px 22px 20px; background: linear-gradient(180deg, #0f2347 0%, #152a4a 100%); color: #fff; }
.price-card .head h3 { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.price-card .head .v { font-size: 1.85rem; font-weight: 800; margin-top: 6px; letter-spacing: -0.03em; }
.price-card ul { list-style: none; padding: 0 0 0 22px; margin: 0; color: #475569; font-size: 14px; }
.price-card li { padding: 10px 18px 10px 0; border-bottom: 1px solid #f1f5f9; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: -18px; color: var(--success); font-weight: 800; font-size: 12px; }
.price-card .foot { padding: 0 20px 22px; }
.price-card.featured { border-color: var(--brand-orange); box-shadow: 0 8px 40px rgba(232, 93, 4, 0.2); }
.price-card.featured .head { background: linear-gradient(160deg, #c2410c 0%, #ea580c 100%); }
.price-card .foot .btn { width: 100%; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.site-footer {
  background: var(--navy-950);
  color: #94a3b8; margin-top: 0; padding: 48px 0 28px; font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.site-footer h4 { color: #f1f5f9; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 8px; line-height: 1.5; }
.site-footer .cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; gap: 32px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer__brand {
  font-weight: 800; color: #fff; font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 10px;
}
.divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 32px 0 20px; }
.site-footer__legal { margin: 0; font-size: 12px; line-height: 1.5; color: #64748b; max-width: 80ch; }

/* Page inner hero */
.page-hero {
  background: linear-gradient(120deg, #0f1f36 0%, #1a3a5c 100%);
  color: #f8fafc; padding: 40px 0 44px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -20%; top: 0; width: 50%; height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(232, 93, 4, 0.2), transparent 55%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .bc { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.page-hero h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 1.4rem; }

/* Util */
.u-mt-0 { margin-top: 0; }
