/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== TOKENS (matching app.suelta.pe) ===== */
:root {
  --bg:           #0a0a0a;
  --bg-elevated:  #1a1a1a;
  --bg-surface:   #111111;
  --accent:       #ccff00;
  --accent-fg:    #4d7a00;
  --accent-hover: #b8eb00;
  --accent-muted: rgba(204,255,0,0.08);
  --accent-ring:  rgba(204,255,0,0.2);
  --text-primary: #ededed;
  --text-secondary:#a0a0a0;
  --text-muted:   #686868;
  --border:       #2a2a2a;
  /* warm light theme (for section-warm) */
  --warm-bg:       #fafaf5;
  --warm-surface:  #f2f0e8;
  --warm-border:   #e0ddd6;
  --warm-text:     #110e08;
  --warm-sub:      #6b6050;
  --warm-muted:    #9e9080;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'SFMono-Regular', Menlo, monospace;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
  z-index: 200;
  pointer-events: none;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 2px;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== BRAND ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #110e08;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.brand-mark--sm {
  width: 20px;
  height: 20px;
  font-size: 11px;
  border-radius: 5px;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ===== BUTTONS ===== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.btn-pill:active { transform: scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: #110e08;
  font-size: 14px;
  padding: 8px 18px;
}

.btn-accent:hover { opacity: 0.9; }

.btn-dark {
  background: #110e08;
  color: var(--accent);
  font-size: 15px;
  padding: 13px 28px;
}

.btn-dark:hover {
  opacity: 0.9;
  box-shadow: 0 8px 28px rgba(204,255,0,0.18);
}

.btn-lg {
  font-size: 15px;
  padding: 13px 28px;
}

.btn-accent.btn-lg {
  font-size: 15px;
  padding: 13px 28px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 58px);
  display: flex;
  align-items: center;
}

.ambient-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204,255,0,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 16s ease-in-out infinite;
}

.ambient-glow--2 {
  top: auto;
  bottom: -20%;
  right: auto;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(204,255,0,0.06) 0%, transparent 65%);
  animation-delay: -7s;
  animation-duration: 20s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
  background: var(--accent-muted);
  color: var(--accent-fg);
  border: 1px solid var(--accent-ring);
}

/* display headline — matches .t-display from app */
.t-display {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text-primary);
}

.text-accent { color: var(--accent); }
.text-accent-fg { color: var(--accent-fg); }

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== APP CARD MOCKUPS ===== */
.hero-cards {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: absolute;
}

.card-topline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--accent) 50%, transparent 90%);
  opacity: 0.3;
}

.card-main {
  width: 268px;
  padding: 20px;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  z-index: 2;
  animation: cardFloat 5s ease-in-out infinite;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.card-secondary {
  width: 240px;
  padding: 18px;
  right: 0;
  top: 50%;
  transform: translateY(-65%) rotate(4deg);
  z-index: 1;
  animation: cardFloat 6s ease-in-out infinite;
  animation-delay: -2s;
  opacity: 0.85;
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-muted);
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-expense {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.expense-label {
  font-size: 12px;
  color: var(--text-muted);
}

.expense-amount {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-elevated);
}

.my-share {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.my-share span {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.card-seen {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.seen-dots {
  display: flex;
  gap: 4px;
}

.seen-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.seen-dot--on {
  background: var(--accent);
}

/* ===== SECTIONS ===== */
.section-dark {
  background: var(--bg);
  padding: 96px 0;
}

.section-warm {
  background: var(--warm-bg);
  padding: 96px 0;
}

.section-cta {
  background: var(--accent);
  padding: 96px 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.eyebrow--dark {
  color: var(--accent-fg);
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-title--dark {
  color: var(--warm-text);
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-card {
  flex: 1;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-elevated);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-spring);
}

.step-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-4px);
}

.step-connector {
  flex-shrink: 0;
  width: 32px;
  margin-top: 40px;
  border-top: 1px dashed var(--border);
  align-self: flex-start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.step-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-muted);
  border: 1px solid var(--accent-ring);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.2s ease;
}

.step-card:hover .step-icon-wrap {
  background: rgba(204,255,0,0.15);
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--warm-border);
  border: 1px solid var(--warm-border);
  border-radius: 16px;
  overflow: hidden;
}

.benefit {
  background: var(--warm-bg);
  padding: 36px 32px;
  position: relative;
}

.benefit-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--warm-muted);
  margin-bottom: 20px;
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-fg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-fg) 20%, transparent);
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--warm-text);
  margin-bottom: 8px;
}

.benefit-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--warm-sub);
}

/* ===== AUDIENCES ===== */
.audiences {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.audience {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: padding-left 0.25s var(--ease-spring);
}

.audience:hover {
  padding-left: 8px;
}

.audience:hover .audience-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.audience-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.audience-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.audience:hover .audience-title {
  color: var(--accent);
}

.audience-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.audience-arrow {
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-spring);
  flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #110e08;
  margin-bottom: 14px;
}

.cta-sub {
  font-size: 15px;
  color: rgba(17,14,8,0.6);
  margin-bottom: 36px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--text-primary); }

.footer-copy {
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease-spring),
    transform 0.65s var(--ease-spring);
  transition-delay: var(--d, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ANIMATIONS ===== */
.animate-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s var(--ease-spring) var(--d, 0ms) both;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.06); }
  66%       { transform: translate(-20px, 25px) scale(0.94); }
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50%       { translate: 0 -10px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 24px 48px;
    gap: 48px;
  }

  .hero-cards {
    height: 300px;
  }

  .card-main  { width: 220px; }
  .card-secondary { width: 190px; }

  .steps {
    flex-direction: column;
    gap: 12px;
  }

  .step-connector { display: none; }
  .step-card { width: 100%; }

  .section-dark,
  .section-warm,
  .section-cta { padding: 72px 0; }

  .audience {
    grid-template-columns: 40px 1fr;
  }

  .audience-arrow { display: none; }

  .footer-brand { margin-right: 0; }
}

@media (max-width: 480px) {
  .t-display { font-size: 2.8rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .hero-cards { display: none; }
}
