/* ApoloNF — design system */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #eff5ff;
  --ink: #0a0a0a;
  --ink-2: #1d2939;
  --ink-3: #475467;
  --ink-4: #98a2b3;
  --line: #eaecf0;
  --line-2: #f2f4f7;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-3: #1e40af;
  --blue-soft: #dbeafe;
  --blue-glow: rgba(37, 99, 235, 0.35);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.06), 0 12px 24px -4px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 8px 16px -4px rgba(16, 24, 40, 0.06), 0 24px 48px -12px rgba(16, 24, 40, 0.12);
  --shadow-blue: 0 24px 48px -12px rgba(37, 99, 235, 0.28);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== Layout ===== */
.wrap { width: min(1200px, 92vw); margin: 0 auto; }
section { position: relative; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: all 320ms var(--easing);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(234, 236, 240, 0.6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-icon { width: 32px; height: 32px; object-fit: contain; }
.brand-title { height: 22px; object-fit: contain; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color 200ms;
}
.nav-links a:hover { color: var(--blue-2); }
.nav-links a.nav-download {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-2); font-weight: 600;
  transition: all 200ms var(--easing);
}
.nav-links a.nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -8px var(--blue-glow);
}
.nav-links a.nav-download svg { transition: transform 240ms var(--easing); }
.nav-links a.nav-download:hover svg { transform: translateY(-1px); }
.nav-cta {
  display: flex; gap: 10px; align-items: center;
}
@media (max-width: 760px) { .nav-links { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  transition: all 240ms var(--easing);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover {
  background: var(--blue-2); transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px var(--blue-glow);
}
.btn-blue {
  background: var(--blue); color: white;
  box-shadow: 0 8px 24px -10px var(--blue-glow);
}
.btn-blue:hover {
  background: var(--blue-2); transform: translateY(-1px);
  box-shadow: 0 16px 32px -8px var(--blue-glow);
}
.btn-ghost {
  color: var(--ink-2);
}
.btn-ghost:hover { border: 5px, white; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-arrow { transition: transform 240ms var(--easing); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  padding: 160px 0 80px;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(37,99,235,0.10) 0%, transparent 60%),
    radial-gradient(50% 40% at 0% 30%, rgba(37,99,235,0.06) 0%, transparent 65%);
  pointer-events: none; z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-3);
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

h1.headline {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98; letter-spacing: -0.035em;
  font-weight: 800; margin: 22px 0 18px;
  text-wrap: balance;
}
h1.headline .accent {
  background: linear-gradient(110deg, var(--blue) 0%, var(--blue-3) 55%, #6366f1 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}
.lede {
  font-size: 19px; line-height: 1.55; color: var(--ink-3);
  max-width: 540px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 28px; margin-top: 40px;
  font-size: 13px; color: var(--ink-3);
}
.hero-meta .item { display: flex; align-items: center; gap: 8px; }
.check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-3);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}

/* ===== Hero visual: invoice mockup ===== */
.hero-visual {
  position: relative;
  perspective: 1400px;
}
.invoice {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 28px;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: floatY 1s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(50); }
  50% { transform: rotateY(-10deg) rotateX(4deg) translateY(-20px); }
}
.invoice-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 18px; border-bottom: 1px dashed var(--line);
}
.invoice-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-soft); color: var(--blue-3);
  padding: 5px 10px; border-radius: 7px; font-size: 11px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.invoice-num { font-size: 12px; color: var(--ink-4); font-family: 'JetBrains Mono', monospace; }
.invoice-title { font-size: 17px; font-weight: 700; margin-top: 14px; letter-spacing: -0.02em; }
.invoice-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.invoice-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}
.invoice-row:last-of-type { border-bottom: none; }
.invoice-row .lbl { color: var(--ink-3); }
.invoice-row .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.invoice-rows { margin-top: 14px; }
.invoice-total {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.invoice-total .label { font-size: 13px; color: var(--ink-3); }
.invoice-total .amount {
  font-size: 26px; font-weight: 800; letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.invoice-foot {
  margin-top: 18px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-3) 100%);
  color: white; padding: 12px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 24px -10px var(--blue-glow);
}
.invoice-foot .icon-circle {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.22); display: grid; place-items: center;
}

/* floating chips */
.chip-float {
  position: absolute; background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  animation: floatChip 5s ease-in-out infinite;
  z-index: 20;
}
.chip-float .ico {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-3);
}
.chip-float .sub {  font-size: 12px; color: var(--ink-3); font-weight: 500;}
.chip-1 { top: 7%; left: -10%; animation-delay: -1.5s; }
.chip-2 { bottom: 16%; right: -8%; animation-delay: -2.5s; }
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

/* Big number ticker bar */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: white;
  padding: 36px 0;
  margin-top: -80px;
}
.ticker-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
@media (max-width: 760px) { .ticker-grid { grid-template-columns: repeat(2, 1fr); } }
.ticker-val {
  font-size: 36px; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.ticker-lbl { font-size: 13px; color: var(--ink-3); margin-top: 4px; font-weight: 500; }

/* ===== Section pattern ===== */
.section { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue-2);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
h2.title {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 800;
  text-wrap: balance;
}
.sub {
  margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--ink-3);
  text-wrap: pretty; max-width: 600px;
}

/* ===== Features grid ===== */
.features {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
  grid-auto-rows: minmax(280px, auto);
}
@media (max-width: 980px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative; overflow: hidden;
  transition: all 360ms var(--easing);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-soft);
}
.feature h3 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 10px; margin-top: 8px;
}
.feature p { font-size: 15px; color: var(--ink-3); line-height: 1.55; max-width: 360px; }
.feature .ic-block {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue-3);
  display: grid; place-items: center;
}
.feature.big { grid-column: span 2; }
.feature.tall { grid-row: span 2; }
@media (max-width: 980px) { .feature.big, .feature.tall { grid-column: span 1; grid-row: span 1; } }
.feature-visual { margin-top: 24px; }

/* NFe / NFCe split */
.nfe-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.nfe-card {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 18px; border: 1px solid var(--line);
  transition: all 240ms var(--easing);
}
.nfe-card:hover {
  background: white; border-color: var(--blue-soft);
  transform: translateY(-2px);
}
.nfe-card .tag {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 700; color: var(--blue-3);
  padding: 4px 8px; background: white; border-radius: 6px;
  display: inline-block; margin-bottom: 10px;
  border: 1px solid var(--blue-soft);
}
.nfe-card h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.nfe-card p { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

/* Stock visual */
.stock-list { display: grid; gap: 8px; margin-top: 20px; }
.stock-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px;
  align-items: center;
  background: var(--bg-soft); border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  border: 1px solid transparent;
  transition: all 240ms;
}
.stock-row:hover { background: white; border-color: var(--blue-soft); }
.stock-row .name { font-weight: 600; }
.stock-row .name .sku {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-4); font-weight: 500; margin-left: 8px;
}
.stock-bar {
  width: 80px; height: 5px; border-radius: 99px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.stock-bar span {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--blue); border-radius: 99px;
  animation: fillBar 1.4s var(--easing) forwards;
  transform-origin: left;
}
.stock-bar.low span { background: #f97316; }
.stock-bar.crit span { background: #ef4444; }
@keyframes fillBar {
  from { transform: scaleX(0); }
}
.qty { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }

/* Counter visual */
.counter-box {
  margin-top: 24px;
  background: linear-gradient(160deg, #2563eb 0%, #1e3a8a 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative; overflow: hidden;
}
.counter-box::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 70%; height: 200%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.4) 0%, transparent 60%);
  filter: blur(20px); pointer-events: none;
}
.counter-num {
  font-size: 56px; font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.counter-lbl { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 4px; position: relative; }
.counter-tick { font-size: 11px; color: #93c5fd; font-family: 'JetBrains Mono', monospace; margin-top: 16px; position: relative; }

/* ===== Showcase ===== */
.showcase {
  background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
  padding: 120px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dashboard-mock {
  margin-top: 64px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: translateY(40px);
  opacity: 0;
  transition: all 800ms var(--easing);
}
.dashboard-mock.in {
  transform: translateY(0); opacity: 1;
}
.dash-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.dash-bar .dots { display: flex; gap: 6px; }
.dash-bar .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.dash-bar .url {
  flex: 1; background: white; border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3);
}
.dash-body { display: grid; grid-template-columns: 220px 1fr; min-height: 480px; }
@media (max-width: 780px) { .dash-body { grid-template-columns: 1fr; } .dash-side { display: none; } }
.dash-side {
  background: var(--bg-soft); padding: 20px 14px;
  border-right: 1px solid var(--line);
}
.dash-side .item {
  padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-3);
  font-weight: 500; margin-bottom: 2px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: all 200ms;
}
.dash-side .item:hover { background: white; color: var(--ink); }
.dash-side .item.active {
  background: var(--blue); color: white;
  box-shadow: 0 8px 16px -8px var(--blue-glow);
}
.dash-side .item .ic { width: 16px; height: 16px; opacity: 0.9; }
.dash-side .group-label {
  font-size: 11px; color: var(--ink-4); padding: 14px 12px 6px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.dash-main { padding: 28px; }
.dash-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.dash-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.kpi {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
}
.kpi .lab { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .v { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12px; color: #047857; font-weight: 600; margin-top: 2px; }
.dash-chart {
  margin-top: 18px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; height: 200px; position: relative;
}
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dash-chart-head .t { font-size: 13px; font-weight: 700; }
.dash-chart-head .pill {
  font-size: 11px; padding: 4px 10px; border-radius: 99px;
  background: var(--blue-soft); color: var(--blue-3); font-weight: 600;
}

/* ===== Pricing ===== */
.pricing { padding: 120px 0; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 64px;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: relative;
  transition: all 360ms var(--easing);
}
.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-soft);
}
.plan.featured {
  background: linear-gradient(160deg, #2563eb 0%, #1e3a8a 100%);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
  overflow: hidden;
}
.plan.featured::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.plan.featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -12px rgba(37, 99, 235, 0.5);
}
.plan-tag {
  position: absolute; top: 24px; right: 24px;
  background: var(--blue); color: white;
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 8px 16px -8px var(--blue-glow);
}
.plan-name { font-size: 34px; font-weight: 900; color: var(--blue-2); }
.plan.featured .plan-name { color: #bfdbfe; }
.plan-desc { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.plan.featured .plan-desc { color: rgba(255,255,255,0.6); }
.plan-price {
  display: flex; align-items: baseline; gap: 6px; margin-top: 24px;
}
.plan-price .currency { font-size: 18px; color: var(--ink-3); font-weight: 600; }
.plan.featured .plan-price .currency { color: rgba(255,255,255,0.7); }
.plan-price .num {
  font-size: 64px; font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.plan-price .cent { font-size: 24px; font-weight: 700; color: var(--ink-3); margin-left: -2px; }
.plan.featured .plan-price .cent { color: rgba(255,255,255,0.7); }
.plan-price .per { font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.plan.featured .plan-price .per { color: rgba(255,255,255,0.6); }
.plan-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }
.plan-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.45;
}
.plan-list .checkmark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-3);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  margin-top: 1px;
}
.plan.featured .plan-list .checkmark { background: rgba(255,255,255,0.18); color: white; }
.plan-list .x {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-4);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  margin-top: 1px;
}
.plan-list li.muted { color: var(--ink-4); }
.plan-cta {
  width: 100%; justify-content: center;
  margin-top: 8px;
}
.plan.featured .plan-cta.btn-primary { background: white; color: var(--blue-2); }
.plan.featured .plan-cta.btn-primary:hover { background: #dbeafe; color: var(--blue-3); }
.plan-note { font-size: 12px; color: var(--ink-4); text-align: center; margin-top: 14px; }
.plan.featured .plan-note { color: rgba(255,255,255,0.5); }

/* ===== FAQ ===== */
.faq { padding: 80px 0 120px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }
.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 0;
  transition: all 280ms var(--easing);
}
.faq-item[open] {
  background: var(--bg-soft);
  border-color: var(--blue-soft);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 16px; letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-3);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 600;
  transition: transform 300ms var(--easing);
  flex: none; margin-left: 16px;
}
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--blue); color: white; }
.faq-item .answer {
  padding: 0 24px 22px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink-3);
}

/* ===== Final CTA ===== */
.cta {
  margin: 0 auto 80px;
  width: min(1200px, 92vw);
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 80% 50%, rgba(37,99,235,0.4) 0%, transparent 60%),
    radial-gradient(30% 30% at 20% 80%, rgba(99,102,241,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(34px, 4.5vw, 56px); line-height: 1; letter-spacing: -0.03em;
  font-weight: 800; position: relative;
  text-wrap: balance;
}
.cta p {
  position: relative; margin-top: 18px;
  font-size: 17px; color: rgba(255,255,255,0.7);
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-actions {
  position: relative;
  display: flex; gap: 12px; justify-content: center; margin-top: 32px;
}
.cta .btn-primary { background: white; color: var(--ink); }
.cta .btn-primary:hover { background: var(--blue); color: white; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 13px; color: var(--ink-3);
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid ul a { color: var(--ink-3); transition: color 200ms; }
.foot-grid ul a:hover { color: var(--blue-2); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 800ms var(--easing), transform 800ms var(--easing);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }

/* Hero items pop on load */
.hero .reveal-h {
  opacity: 0; transform: translateY(24px);
  animation: heroIn 900ms var(--easing) forwards;
}
.hero .reveal-h.h1 { animation-delay: 60ms; }
.hero .reveal-h.h2 { animation-delay: 160ms; }
.hero .reveal-h.h3 { animation-delay: 280ms; }
.hero .reveal-h.h4 { animation-delay: 400ms; }
.hero .reveal-h.h5 { animation-delay: 540ms; }
.hero .reveal-h.hv { animation-delay: 240ms; }
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* ===== Tweaks panel ===== */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  background: white; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 16px; width: 260px;
  font-size: 13px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h6 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks h6 button { color: var(--ink-4); font-size: 14px; }
.tweaks .row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .swatch {
  width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid transparent; cursor: pointer; transition: all 200ms;
}
.tweaks .swatch.active { border-color: var(--ink); }

/* ===== Invoice Auth Card (Reference Design + 3D Hover) ===== */
.invoice-auth {
  background: var(--bg);
  border-radius: 12px; /* Um pouco mais arredondado para ficar bonito no 3D, mas fiel à foto */
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  width: 820px;
  max-width: 820px; /* Mantém a proporção exata da foto */
  margin: 0 auto;
  font-family: 'Manrope', ui-sans-serif, sans-serif;
  position: relative;
  z-index: 10;
  margin-bottom: 20%;
  
  /* Efeito 3D e Animação original recuperados */
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: floatAuth 6s ease-in-out infinite;
}

/* Animação de flutuação mantendo o ângulo 3D */
@keyframes floatAuth {
  0%, 100% { 
    transform: rotateY(-8deg) rotateX(4deg) translateY(0); 
    box-shadow: var(--shadow-lg);
  }
  50% { 
    transform: rotateY(-8deg) rotateX(4deg) translateY(-15px); 
    box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.15); /* Sombra expande quando sobe */
  }
}

.auth-header {
  background-color: #2563eb ; 
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.auth-body {
  padding: 40px 48px;
  text-align: center;
  background-color: white;
}

.auth-body h2 {
  color: #313f4f; 
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.auth-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 32px 0;
}

.auth-key-section {
  text-align: left;
}

.auth-key-label {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.auth-key-box {
  background-color: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  color: #2563eb ;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 17.6px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
}

.auth-footer {
  background-color: #f1f5f9; 
  padding: 24px 48px;
  display: flex;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.btn-action {
  background-color: #2563eb ;
  color: white;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 200ms var(--easing);
}

.btn-action:hover {
  background-color: #2b8acb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(63, 160, 230, 0.35);
}

/* ========================================================
   CSS DO DASHBOARD APOLO (Réplica exata da imagem)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.apolo-dashboard-container {
  border: 1px solid #eeeeee;
  border-radius: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #ffffff; /* Fundo cinza/azulado bem claro */
  color: #1e293b;
}

.apolo-dashboard-container * {
  
  box-sizing: border-box;
}

/* --- Filtros Superiores --- */
.dash-top-filters {
  
  display: inline-flex;
  background: white;
  padding: 8px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  gap: 4px;
  margin-bottom: 24px;
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover:not(.active) {
  background: #f1f5f9;
}

.filter-btn.active {
  background: #2563eb;
  color: white;
}

/* --- Grid de KPIs --- */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.kpi-box {
  background: white;
  border-radius: 12px;
  padding: 20px 20px 0 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kpi-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.kpi-value span { font-size: 18px; font-weight: 700; }

.kpi-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.kpi-chart {
  margin: 16px -20px -5px -20px;
  height: 45px;
}
.kpi-chart svg {
  width: 100%;
  height: 100%;
}

/* --- Gráficos Principais --- */
.dash-main-charts {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.dash-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card-header-flex h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.subtitle { font-size: 12px; color: #64748b; display: flex; align-items: center; }
.blue-dash { display: inline-block; width: 12px; height: 3px; background: #2563eb; border-radius: 2px; margin-right: 6px; }

.header-right { text-align: right; }
.big-val { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.badge-solid-green { display: inline-block; font-size: 11px; font-weight: 700; background: #dcfce7; color: #166534; padding: 4px 10px; border-radius: 20px; }

/* Gráfico de Linha */
.chart-wrapper {
  position: relative;
  height: 220px;
  padding-left: 30px;
  margin-bottom: 24px;
}

.y-axis {
  position: absolute;
  left: 0; top: 0; bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.svg-container {
  width: 100%;
  height: 180px;
  border-bottom: 1px solid #2563eb; /* Linha de base da foto */
}
.svg-container svg { width: 100%; height: 100%; }

.x-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 8px;
}

/* Área de Meta */
.goal-section { padding-top: 20px; }
.goal-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.goal-label { font-size: 13px; color: #64748b; }
.goal-stats { font-size: 13px; color: #0f172a; display: flex; align-items: center; gap: 8px;}
.btn-outline-blue { background: transparent; border: 1px solid #bfdbfe; color: #2563eb; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.goal-track { width: 100%; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.goal-fill { height: 100%; background: #2563eb; border-radius: 4px; }
.goal-footer-link { text-align: right; font-size: 12px; color: #2563eb; font-weight: 700; margin-top: 16px; cursor: pointer; }

/* Gráfico Donut */
.subtitle-right { font-size: 12px; color: #94a3b8; }
.donut-container { position: relative; width: 180px; height: 180px; margin: 30px auto; }
.donut-container svg { width: 100%; height: 100%; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.dc-val { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1; }
.dc-lbl { font-size: 12px; color: #64748b; font-weight: 500; margin-top: 2px;}

.legend-item { margin-bottom: 16px; }
.legend-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
.leg-left { display: flex; align-items: center; gap: 8px; }
.pill { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px; color: white; }
.pill-cyan { background: #06b6d4; }
.pill-blue { background: #2563eb; }
.leg-name { color: #64748b; }
.leg-right { color: #94a3b8; }
.leg-right strong { color: #0f172a; font-weight: 800;}
.leg-track { width: 100%; height: 4px; background: #f1f5f9; border-radius: 2px; }
.leg-fill { height: 100%; border-radius: 2px; }
.bg-cyan { background: #06b6d4; }
.bg-blue { background: #2563eb; }

/* --- Linha Inferior --- */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bordered-bottom {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.bottom-row-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.block-content {
  flex-direction: column;
  align-items: stretch;
}

.btm-label { font-size: 13px; color: #64748b; font-weight: 600; }
.btm-val-group strong { font-size: 14px; color: #0f172a; }
.text-green { color: #10b981; font-weight: 700; font-size: 12px; margin-left: 8px; }

.prod-info-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.prod-name { font-weight: 700; color: #0f172a; }
.prod-qtd { color: #94a3b8; }
.prod-pct { text-align: right; font-size: 11px; font-weight: 800; color: #0f172a; margin-top: 6px; }

/* Responsividade básica */
@media (max-width: 1024px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-main-charts { grid-template-columns: 1fr; }
  .dash-bottom-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   ANIMAÇÕES DOS GRÁFICOS APOLO
   ======================================================== */

/* 1. Animação das linhas dos gráficos (KPIs e Gráfico Principal) */
.kpi-chart path,
.svg-container path[stroke] {
  /* Criamos um traço gigante e escondemos ele empurrando o offset */
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* 2. Efeito de subida no preenchimento do gráfico principal (Gradiente) */
.svg-container path[fill="url(#areaGradient)"] {
  transform-origin: bottom;
  animation: fadeUpArea 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUpArea {
  0% { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* 3. Animação do Gráfico de Rosca (Donut) */
/* Círculo Ciano (NFCe) */
.donut-container circle:nth-child(2) {
  animation: drawCyan 1.5s ease-out forwards;
}

@keyframes drawCyan {
  0% { stroke-dasharray: 0 251.2; }
  100% { stroke-dasharray: 188.4 251.2; }
}

/* Círculo Azul (NFe) */
.donut-container circle:nth-child(3) {
  animation: drawBlue 1.5s ease-out forwards;
}

@keyframes drawBlue {
  0% { stroke-dasharray: 0 251.2; stroke-dashoffset: -188.4; }
  100% { stroke-dasharray: 62.8 251.2; stroke-dashoffset: -188.4; }
}

/* 4. Animação de preenchimento das barras (Metas e Legendas) */
.goal-fill, 
.leg-fill {
  transform-origin: left;
  animation: growBar 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes growBar {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}



/* ============================================
   Downloads page
   ============================================ */
/* ==========================================================
   ApoloNF — Downloads page styles (uses styles.css tokens)
   ========================================================== */

/* ===== Hero ===== */
.dl-hero {
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.dl-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 80% 10%, rgba(37,99,235,0.12) 0%, transparent 60%),
    radial-gradient(45% 40% at 0% 30%, rgba(37,99,235,0.07) 0%, transparent 65%);
  pointer-events: none; z-index: -1;
}
.dl-hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 980px) { .dl-hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.dl-headline {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 22px 0 18px;
  text-wrap: balance;
}
.dl-headline .accent {
  background: linear-gradient(110deg, var(--blue) 0%, var(--blue-3) 55%, #6366f1 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

.dl-meta {
  display: flex; flex-wrap: wrap; gap: 20px 24px;
  margin-top: 36px;
}
.dl-meta-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-3); font-weight: 500;
}
.dl-meta-item svg { color: var(--blue-2); flex: none; }

/* ===== Hero logo card ===== */
.dl-hero-art {
  position: relative;
  display: grid; place-items: center;
}
.dl-logo-card {
  position: relative;
  width: 100%; max-width: 460px; aspect-ratio: 4 / 3;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
}
.dl-logo-card img {
  position: relative; z-index: 2;
  width: 78%; max-width: 360px; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(37,99,235,0.18));
}
.dl-logo-rings {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.dl-logo-rings .ring {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 50%;
  animation: ringPulse 4s ease-out infinite;
}
.dl-logo-rings .ring.r1 { width: 50%; height: 50%; animation-delay: 0s; }
.dl-logo-rings .ring.r2 { width: 50%; height: 50%; animation-delay: -1.3s; }
.dl-logo-rings .ring.r3 { width: 50%; height: 50%; animation-delay: -2.6s; }
@keyframes ringPulse {
  0%   { transform: scale(0.9); opacity: 0.7; border-width: 2px; }
  100% { transform: scale(2.2); opacity: 0; border-width: 1px; }
}

/* ===== Download cards ===== */
.dl-section { padding: 100px 0; }

.dl-cards {
  gap: 24px; margin-top: 56px;
}

.dl-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all 360ms var(--easing);
  overflow: hidden;
}
.dl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-soft);
}
.dl-card.primary {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-blue);
}
.dl-card.primary:hover {
  box-shadow: 0 32px 64px -12px rgba(37, 99, 235, 0.32);
}
.dl-card-glow {
  position: absolute; top: -40%; right: -20%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.18) 0%, transparent 65%);
  filter: blur(20px); pointer-events: none;
}

.dl-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; position: relative;
}
.dl-os-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-3) 100%);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 16px 32px -12px var(--blue-glow);
}
.dl-os-icon.dim {
  background: var(--bg-soft);
  color: var(--ink-2);
  box-shadow: none;
  border: 1px solid var(--line);
}

.dl-badge {
  font-size: 11px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
  background: var(--blue); color: white;
  letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 8px 16px -8px var(--blue-glow);
}
.dl-badge.ghost {
  background: var(--bg-soft); color: var(--ink-3);
  box-shadow: none; border: 1px solid var(--line);
}

.dl-card h3 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 8px; position: relative;
}
.dl-card-desc {
  font-size: 15px; color: var(--ink-3); line-height: 1.55;
  margin-bottom: 24px; position: relative;
  max-width: 380px;
}

.dl-specs {
  list-style: none; padding: 0; margin: 0 0 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.dl-card.primary .dl-specs {
  background: white;
  border-color: rgba(37, 99, 235, 0.18);
}
.dl-specs li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.dl-specs li:last-child { border-bottom: none; }
.dl-specs .lbl { color: var(--ink-3); font-weight: 500; }
.dl-specs .val { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.dl-cta {
  width: 100%; justify-content: center;
  position: relative;
}
.dl-hash {
  display: block; text-align: center;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.02em;
  position: relative;
}

/* ===== Install steps ===== */
.dl-steps-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dl-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
@media (max-width: 880px) { .dl-steps { grid-template-columns: 1fr; } }

.dl-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 320ms var(--easing);
}
.dl-step:hover {
  transform: translateY(-4px);
  border-color: var(--blue-soft);
  box-shadow: var(--shadow-md);
}
.dl-step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue);
  color: white;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px -10px var(--blue-glow);
}
.dl-step h4 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.dl-step p {
  font-size: 14.5px; color: var(--ink-3); line-height: 1.55;
}

/* ===== History ===== */
.dl-history-section { padding: 100px 0; }
.dl-history-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px; gap: 24px; flex-wrap: wrap;
}

.dl-history-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dl-history-row {
  display: grid;
  grid-template-columns: 140px 200px 1fr auto;
  gap: 24px; align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 200ms;
}
.dl-history-row:last-child { border-bottom: none; }
.dl-history-row:hover { background: var(--bg-soft); }
@media (max-width: 880px) {
  .dl-history-row { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
}

.dl-history-version { display: flex; align-items: center; gap: 8px; }
.version-pill {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-2);
}
.version-tag {
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase;
}
.version-tag.current { background: var(--blue-soft); color: var(--blue-3); }

.dl-history-meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.dl-history-notes { font-size: 14px; color: var(--ink-2); }

.dl-history-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all 200ms;
}
.dl-history-btn:hover {
  background: var(--blue); color: white; border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -8px var(--blue-glow);
}

/* ===== Requirements ===== */
.dl-req-section {
  border-top: 1px solid var(--line);
}
.dl-req-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 64px; align-items: start;
}
@media (max-width: 880px) {
  .dl-req-grid { grid-template-columns: 1fr; gap: 32px; }
}
.dl-req-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dl-req-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 24px; padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.dl-req-row:last-child { border-bottom: none; }
.dl-req-label { color: var(--ink-3); font-weight: 600; }
.dl-req-val { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .dl-req-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ===== Toast ===== */
.dl-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--blue-2);
  color: white;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 14px;
  font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: all 360ms var(--easing);
  z-index: 1000;
}
.dl-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.dl-toast-ic {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: white;
  display: grid; place-items: center;
  flex: none;
}
.dl-toast-title { font-weight: 700; }
.dl-toast-sub { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }


/* ===== Container do Vídeo Demonstrativo (Bordas e Brilho) ===== */
/* Wrapper externo: segura o transform 3D, o float e o GLOW que sai para fora */
.video-glow-wrapper {
  position: relative;
  width: 200%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: floatY 6s ease-in-out infinite, travelGlow 2.5s linear infinite;
}

.video-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

/* Feixe de luz fino que gira criando a borda brilhante */
.video-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    transparent 10%,
    var(--blue) 25%,
    var(--blue-soft) 35%,
    transparent 50%
  );
  animation: spinGlow 2.5s linear infinite;
  z-index: 1;
}

/* Máscara branca que cobre tudo exceto a borda de 3px */
.video-container::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: calc(var(--radius-xl) - 3px);
  z-index: 2;
}

.video-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 6px);
  display: block;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.1);
  transform-origin: center top;
}

@keyframes spinGlow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ponto de brilho suave que viaja pelas bordas em sincronia com a linha */
@keyframes travelGlow {
  0%   { box-shadow: 14px 0   30px 2px rgba(37,99,235,0.22), 0 0 35px -10px rgba(37,99,235,0.08); }
  25%  { box-shadow: 0   14px 30px 2px rgba(37,99,235,0.22), 0 0 35px -10px rgba(37,99,235,0.08); }
  50%  { box-shadow: -14px 0  30px 2px rgba(37,99,235,0.22), 0 0 35px -10px rgba(37,99,235,0.08); }
  75%  { box-shadow: 0  -14px 30px 2px rgba(37,99,235,0.22), 0 0 35px -10px rgba(37,99,235,0.08); }
  100% { box-shadow: 14px 0   30px 2px rgba(37,99,235,0.22), 0 0 35px -10px rgba(37,99,235,0.08); }
}

@media (max-width: 980px) {
  .video-glow-wrapper {
    animation: none;
    transform: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
  }
  .video-container::before,
  .video-container::after {
    display: none;
  }
  .video-container {
    border: 1px solid var(--line);
    padding: 10px;
  }
  .video-wrapper {
    border-radius: calc(var(--radius-xl) - 10px);
  }
}