/* ==========================================================================
   Savusco — Landing page estática
   Design: dark tech, mobile-first
   ========================================================================== */

:root {
  --bg: #0b0d14;
  --bg-alt: #0f121b;
  --surface: #141824;
  --surface-2: #1b2130;
  --border: #262c3d;
  --border-soft: #1e2434;

  --text: #eef0f6;
  --text-muted: #a6adc2;
  --text-faint: #6b7284;

  --accent: #6c5ce7;
  --accent-2: #8b7bff;
  --accent-soft: #241f47;
  --success: #34d399;
  --warning: #fbbf24;

  --gradient: linear-gradient(135deg, #6c5ce7 0%, #4facfe 100%);

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

  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 60px -20px rgba(0, 0, 0, 0.6);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --container-w: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(108, 92, 231, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(108, 92, 231, 0.7); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent-2); background: var(--surface); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 0.9rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-family: var(--font-mono);
  flex-shrink: 0;
}
.logo-text { letter-spacing: -0.01em; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li { border-bottom: 1px solid var(--border-soft); }
  .nav-link { display: block; padding: 0.85rem 0.25rem; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 1rem; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(108, 92, 231, 0.35), transparent 60%),
    radial-gradient(50% 50% at 85% 10%, rgba(79, 172, 254, 0.25), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(108, 92, 231, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 3rem;
}

/* ---- Hero panel (fake product window) ---- */
.hero-panel { max-width: 980px; margin: 0 auto; }
.panel-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.panel-title {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.panel-body { padding: 1.75rem 1.25rem; overflow-x: auto; }

.flow-track {
  display: flex;
  gap: 0.5rem;
  min-width: 720px;
}
.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 1px;
  background: var(--border);
}
.flow-icon { font-size: 1rem; color: var(--text-faint); }
.flow-step.done .flow-icon { color: var(--success); }
.flow-step.active .flow-icon { color: var(--accent-2); }
.flow-label { font-weight: 700; font-size: 0.88rem; }
.flow-gate { font-size: 0.72rem; color: var(--text-faint); line-height: 1.4; }
.flow-step.done { border-color: rgba(52, 211, 153, 0.35); }
.flow-step.active { border-color: rgba(139, 123, 255, 0.5); background: var(--accent-soft); }

/* ---- Stat strip ---- */
.stat-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 2.25rem 0;
}
.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 720px) {
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Sections ---- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0.75rem 0 1rem;
}
.section-lead { color: var(--text-muted); font-size: 1.02rem; }

/* ---- Timeline (como funciona) ---- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0;
  counter-reset: item;
}
.timeline-item {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.timeline-marker {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.timeline-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.75rem; }
.gate-tag {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ---- Stack compare ---- */
.stack-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.stack-card {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.stack-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.stack-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.stack-card-list li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.stack-card-list li:first-child { border-top: none; }
.stack-vs {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.agent-card:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.agent-icon { font-size: 1.6rem; display: block; margin-bottom: 0.75rem; }
.agent-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.agent-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.price-card-highlight {
  border-color: var(--accent-2);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 40%);
  box-shadow: var(--shadow-md);
}
.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.75rem;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.price-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.price-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; min-height: 44px; }
.price-features { margin-bottom: 1.75rem; flex-grow: 1; }
.price-features li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.price-features li:first-child { border-top: none; }
.price-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---- Trust / security ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-top: 3px solid var(--accent);
}
.trust-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---- CTA final ---- */
.cta-final {
  padding: 5rem 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(108, 92, 231, 0.18), transparent 70%);
  border-top: 1px solid var(--border-soft);
}
.cta-final-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-final-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.cta-final-inner p { color: var(--text-muted); margin-bottom: 2rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.9rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); margin-bottom: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p { color: var(--text-faint); font-size: 0.8rem; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
