/* ─── Caderno Vivo — página de apresentação ─── */

:root {
  --cv-purple:        #7c3aed;
  --cv-indigo:        #4f46e5;
  --cv-purple-dim:    rgba(124, 58, 237, 0.14);
  --cv-purple-border: rgba(124, 58, 237, 0.28);
  --cv-purple-glow:   rgba(124, 58, 237, 0.22);
  --cv-text:          #e2e8f0;
  --cv-text-muted:    #94a3b8;
  --cv-surface:       rgba(255, 255, 255, 0.035);
  --cv-surface-hov:   rgba(255, 255, 255, 0.055);
  --cv-border:        rgba(255, 255, 255, 0.07);
}

/* ── HERO ── */
.cv-hero {
  position: relative;
  padding: 7rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
  background: #08080f;
}

.cv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%,  rgba(124, 58, 237, 0.35), transparent),
    radial-gradient(ellipse 40% 30% at 80% 80%,  rgba(79, 70, 229, 0.18), transparent);
  pointer-events: none;
}

.cv-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cv-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--cv-purple-border), 0 12px 40px var(--cv-purple-glow);
}

.cv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--cv-purple-dim);
  border: 1px solid var(--cv-purple-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cv-hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #f1f5f9;
  margin: 0;
}

.cv-hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--cv-text-muted);
  max-width: 540px;
  margin: 0;
}

.cv-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cv-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--cv-purple);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.cv-btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 4px 20px var(--cv-purple-glow);
}

.cv-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--cv-border);
  color: var(--cv-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.cv-btn-secondary:hover {
  border-color: var(--cv-purple-border);
  color: #a78bfa;
}

/* ── CONTEXT (the honest bit) ── */
.cv-context {
  background: #08080f;
  padding: 0 1.5rem 5rem;
}

.cv-context-inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--cv-surface);
  border: 1px solid var(--cv-purple-border);
  border-radius: 1.25rem;
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.cv-context-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cv-purple), var(--cv-indigo));
}

.cv-context-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 1rem;
}

.cv-context-inner h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 1.2rem;
  line-height: 1.25;
}

.cv-context-inner p {
  color: var(--cv-text-muted);
  line-height: 1.75;
  font-size: 1rem;
  margin: 0 0 0.9rem;
}

.cv-context-inner p:last-child {
  margin-bottom: 0;
}

.cv-context-inner strong {
  color: var(--cv-text);
}

/* ── FEATURES ── */
.cv-features {
  background: #06060c;
  padding: 5rem 1.5rem;
}

.cv-features-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 5rem;
}

.cv-features-header span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}

.cv-features-header h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.2;
}

.cv-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto 6rem;
}

.cv-feature-row:last-child {
  margin-bottom: 0;
}

.cv-feature-row.reverse {
  direction: rtl;
}

.cv-feature-row.reverse > * {
  direction: ltr;
}

.cv-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.1em;
}

.cv-feature-copy h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.25;
}

.cv-feature-copy p {
  color: var(--cv-text-muted);
  line-height: 1.75;
  font-size: 0.97rem;
  margin: 0;
}

.cv-feature-copy strong {
  color: var(--cv-text);
}

.cv-screenshot-wrap {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--cv-purple-border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 60px var(--cv-purple-glow);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.cv-screenshot-wrap:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 28px 80px rgba(0,0,0,0.55),
    0 0 80px rgba(124, 58, 237, 0.32);
}

.cv-screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── STACK ── */
.cv-stack {
  background: #08080f;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--cv-border);
}

.cv-stack-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.cv-stack-inner span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}

.cv-stack-inner h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 2.5rem;
}

.cv-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cv-stack-item {
  background: var(--cv-surface);
  border: 1px solid var(--cv-border);
  border-radius: 0.9rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.2s, background 0.2s;
}

.cv-stack-item:hover {
  border-color: var(--cv-purple-border);
  background: var(--cv-surface-hov);
}

.cv-stack-item-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.cv-stack-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.cv-stack-item p {
  font-size: 0.78rem;
  color: var(--cv-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── CTA FOOTER ── */
.cv-cta {
  background: #08080f;
  padding: 5rem 1.5rem;
  text-align: center;
}

.cv-cta-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cv-cta h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.2;
}

.cv-cta p {
  color: var(--cv-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .cv-feature-row,
  .cv-feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .cv-stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv-context-inner {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .cv-stack-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cv-hero {
    padding: 5rem 1.25rem 4rem;
  }
}
