/* ==========================================================================
   Cataliza — design tokens
   ========================================================================== */
:root {
  --bg: #0a0a0f;
  --surface: #15141c;
  --surface-2: #1c1b26;
  --border: rgba(255,255,255,0.08);
  --text: #f3f1ec;
  --text-muted: #a29dae;
  --orange: #ff7a3d;
  --violet: #a855f7;
  --gradient: linear-gradient(120deg, var(--orange), var(--violet));

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 18px;
}

* { 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.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.logo .spark { color: var(--orange); }
.logo--small { font-size: 1.15rem; }

.main-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
}
.main-nav a { color: var(--text-muted); transition: color .2s ease; }
.main-nav a:hover { color: var(--text); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient);
  color: #100a08;
}
.btn-primary:hover { box-shadow: 0 8px 28px -8px rgba(255,122,61,0.55); transform: translateY(-1px); }

.btn-outline {
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.6em 1.3em;
  font-size: 0.88rem;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.btn-block { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 5rem);
  overflow: hidden;
}

#spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 1.1em;
}
.eyebrow--light { color: #ffd9c2; }

.hero h1 {
  font-size: clamp(2.3rem, 2rem + 2.8vw, 4rem);
  font-weight: 700;
}
.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 em { font-style: normal; color: var(--text-muted); }

.hero-sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.hero-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 20px 60px -25px rgba(0,0,0,0.6);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Sections generic
   ========================================================================== */
.section { padding: var(--space-section) 0; }
.section--accent {
  background: linear-gradient(180deg, rgba(255,122,61,0.07), rgba(168,85,247,0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  max-width: 18ch;
  margin-bottom: 2.2rem;
}

/* ==========================================================================
   Problema — bento
   ========================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.problem-card--big {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background: var(--surface-2);
}
.problem-index {
  font-family: var(--font-display);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.8;
}
.problem-card h3 { margin-top: 0.6rem; font-size: 1.2rem; }
.problem-card p { margin-bottom: 0; }

/* ==========================================================================
   Recurso / Form
   ========================================================================== */
.recurso-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.recurso-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.recurso-list li {
  padding-left: 1.6em;
  position: relative;
  color: var(--text);
}
.recurso-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: sticky;
  top: 100px;
}
.lead-form h3 { margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  padding: 0.75em 0.9em;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,122,61,0.18);
}
.form-note {
  font-size: 0.78rem;
  text-align: center;
  margin: 0.9rem 0 0;
  color: var(--text-muted);
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.25);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.step p { margin: 0; max-width: 60ch; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final { text-align: center; }
.cta-final-inner h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.6vw, 2.6rem);
  max-width: 20ch;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy { font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stat-card { max-width: 320px; }
  .recurso-inner { grid-template-columns: 1fr; }
  .lead-form { position: static; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card--big { grid-column: 1; grid-row: auto; }
}

@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .step { grid-template-columns: 56px 1fr; }
  .step-number { font-size: 2rem; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
    gap: 1rem;
  }
}
