/* FinSys Landing — paleta alineada con PColors */
:root {
  --primary: #0f172a;
  --primary-soft: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --income: #059669;
  --expense: #dc2626;
  --investment: #6d28d9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.16);
  --nav-h: 72px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-muted);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav__brand-logo {
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav__brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: #fff;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.95;
}

.screenshot-card--homescreen {
  max-width: 300px;
  margin-inline: auto;
}

.screenshot-card--homescreen img {
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  background: var(--primary);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(109, 40, 217, 0.12), transparent);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--income);
  box-shadow: 0 0 12px var(--income);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero__title span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* Phone mockup */
.phone {
  position: relative;
  width: min(300px, 100%);
  margin-inline: auto;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.45));
}

.phone__frame {
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  border: 3px solid #333;
}

.phone__screen {
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.hero__phone-back {
  position: absolute;
  right: 0;
  transform: rotate(6deg) scale(0.88);
  opacity: 0.55;
  z-index: 0;
}

.hero__phone-front {
  position: relative;
  z-index: 1;
  transform: rotate(-3deg);
}

/* ── Trust bar ── */
.trust {
  padding: 48px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust__item {
  padding: 16px;
}

.trust__icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.trust__title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.trust__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Sections ── */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--surface);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header .section__lead {
  margin-inline: auto;
}

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse .feature-row__media {
  order: 2;
}

.feature-row--reverse .feature-row__content {
  order: 1;
}

.feature-row__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-row__tag--green { background: #ecfdf5; color: var(--income); }
.feature-row__tag--blue { background: #eff6ff; color: var(--accent); }
.feature-row__tag--purple { background: #f5f3ff; color: var(--investment); }
.feature-row__tag--orange { background: #fff7ed; color: #ea580c; }

.feature-row__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.feature-row__text {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-row__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-row__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
}

.feature-row__list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--income);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.screenshot-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.screenshot-card img {
  width: 100%;
}

.screenshot-card--phone {
  max-width: 280px;
  margin-inline: auto;
}

.screenshot-card--phone img {
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

/* Feature cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.card__icon--blue { background: #eff6ff; }
.card__icon--green { background: #ecfdf5; }
.card__icon--purple { background: #f5f3ff; }
.card__icon--orange { background: #fff7ed; }

.card__title {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Investment showcase */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase__item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.showcase__item:hover {
  transform: scale(1.02);
}

.showcase__item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.showcase__caption {
  padding: 14px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Premium */
.premium {
  background: linear-gradient(160deg, var(--primary) 0%, #1e1b4b 100%);
  color: #fff;
  padding: 96px 0;
}

.premium .section__eyebrow { color: #a78bfa; }
.premium .section__title { color: #fff; }
.premium .section__lead { color: rgba(255,255,255,0.65); }

.premium__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.premium__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s;
}

.premium__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.premium__card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.premium__card-body {
  padding: 20px;
}

.premium__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.premium__card-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* CTA */
.cta {
  padding: 96px 0;
  text-align: center;
}

.cta__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  box-shadow: var(--shadow);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta__text {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-inline: auto;
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 32px;
  font-size: 0.875rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer__links h4 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer__links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Mobile nav */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle,
  .hero__actions,
  .hero__stats {
    justify-content: center;
    margin-inline: auto;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__phones {
    min-height: 420px;
    margin-top: 24px;
  }

  .hero__phone-back {
    display: none;
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row--reverse .feature-row__media,
  .feature-row--reverse .feature-row__content {
    order: unset;
  }

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid,
  .showcase,
  .premium__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    padding: 24px;
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 16px;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__cta-desktop {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 64px 0;
  }

  .cta__box {
    padding: 40px 24px;
  }
}
