:root {
  --color-primary: #5a3bee;
  --color-secondary: #06b6d4;
  --color-dark: #0f172a;
  --color-text: #1f2937;
  --color-muted: #64748b;
  --color-light: #f8fafc;
  --color-white: #ffffff;
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 40%, #ffffff 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.logo img {
  height: 48px;
  width: auto;
  display: inline-block;
}

.sr-only {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.nav-links a,
.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px; /* uniform height for alignment */
  padding: 0 0.6rem;
  text-decoration: none;
}

.nav-links a {
  color: var(--color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.nav-links .nav-cta {
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(90, 59, 238, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-links .nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(90, 59, 238, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(90, 59, 238, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(90, 59, 238, 0.35);
}

.btn-outline {
  border: 1px solid rgba(90, 59, 238, 0.25);
  color: var(--color-primary);
  background: rgba(90, 59, 238, 0.05);
}

.btn-outline:hover {
  border-color: rgba(90, 59, 238, 0.45);
  background: rgba(90, 59, 238, 0.12);
  transform: translateY(-3px);
}

.hero {
  padding: 7.5rem 0 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3.5rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

/* Mobile promo above App móvil - make it as prominent as hero title */
.mobile-promo {
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .mobile-promo {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    text-align: center;
  }
}

.hero-text p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(90, 59, 238, 0.1);
  color: var(--color-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.metric-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
}

.metric-label {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.card-dashboard {
  width: clamp(280px, 32vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--color-dark);
}

.status {
  font-size: 0.85rem;
  color: var(--color-secondary);
}

.chart-placeholder {
  height: 160px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(90, 59, 238, 0.12), rgba(6, 182, 212, 0.12));
  position: relative;
  overflow: hidden;
}

.chart-placeholder .chart-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chart-placeholder::before,
.chart-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(90, 59, 238, 0.35), rgba(6, 182, 212, 0.35));
  transform: skewY(-12deg);
  opacity: 0.35;
}

.chart-placeholder::after {
  inset: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  opacity: 0.5;
}

.stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stats-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.value {
  font-weight: 600;
  color: var(--color-dark);
}

.highlight {
  color: var(--color-primary);
}

.floating-badge {
  position: absolute;
  bottom: -32px;
  right: -24px;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.3);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.floating-badge .icon {
  font-size: 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section.alt {
  background: linear-gradient(135deg, rgba(90, 59, 238, 0.05), rgba(6, 182, 212, 0.05));
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefit-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.benefit-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(90, 59, 238, 0.06), rgba(6, 182, 212, 0.06));
}

.benefit-icon img.icon-svg {
  width: 36px;
  height: 36px;
  display: block;
}

.benefit-icon img {
  display: block;
  max-width: 100%;
  height: auto;
}

.benefit-card h3 {
  color: var(--color-dark);
}

.benefit-card p {
  color: var(--color-muted);
}

.billing-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.billing-copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.billing-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: var(--color-muted);
}

.billing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.billing-list li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('../assets/icons/check.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 0.1rem; /* aligns the icon with multi-line text */
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pricing-header h3 {
  font-size: 1.8rem;
  margin-top: 0.75rem;
}

.pricing-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
}

.price-note {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.price-row {
  display: flex;
  align-items: baseline; /* align monthly and annual on same baseline */
  gap: 1rem;
  flex-wrap: wrap;
}

.price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-left: 0.25rem;
}

.price-annual {
  color: var(--color-muted);
  font-size: 1rem; /* noticeably smaller than monthly */
  font-weight: 600;
  background: rgba(15,23,42,0.04); /* subtle pill to separate visually */
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  align-self: baseline;
  line-height: 1;
}

.price-annual span {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-left: 0.25rem;
  opacity: 0.95;
}

@media (max-width: 480px) {
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .price {
    font-size: 2rem;
  }
  .price-annual {
    font-size: 0.95rem;
  }
}

.pricing-features {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  color: var(--color-text);
}

.pricing-features li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.7rem;
  background-image: url('../assets/icons/auto-update.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-muted);
}

.badge-soft {
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--color-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(90, 59, 238, 0.2), rgba(6, 182, 212, 0.2));
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.demo-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}

.demo-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo-tags span {
  background: rgba(90, 59, 238, 0.1);
  color: var(--color-primary);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.demo-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.demo-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.app-screenshot {
  width: 100%;
  max-width: 620px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15,23,42,0.04);
}

.caption {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.sale-date {
  margin: 0.6rem 0 0.6rem;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 1rem;
}

.sale-date #sale-date {
  color: var(--color-primary);
  font-weight: 700;
}

/* Mobile app section */
.mobile-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.mobile-screenshot {
  width: 100%;
  max-width: 290px;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(15,23,42,0.14);
  border: 1px solid rgba(15,23,42,0.06);
}

.mobile-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.mobile-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin: 1rem 0 0.6rem;
}

.mobile-buttons .btn {
  padding: 0.6rem 1rem;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(90,59,238,0.05);
}

.mobile-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: center;
  /* ensure the right-side copy is vertically centered next to the image */
}
.mobile-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center the copy next to the image */
}
.mobile-screenshot {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0; /* keep it left-aligned inside its grid column */
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(15,23,42,0.14);
  border: 1px solid rgba(15,23,42,0.06);
  object-fit: cover;
}

.demo-form input,
.demo-form textarea {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--color-text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: rgba(90, 59, 238, 0.6);
  box-shadow: 0 0 0 4px rgba(90, 59, 238, 0.15);
}

.demo-form small {
  color: var(--color-muted);
}

.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.76);
  padding-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}

.footer .logo {
  color: var(--color-white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1024px) {
  .hero-content,
  .billing-section,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .mobile-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-visual {
    order: -1;
  }

  .floating-badge {
    right: 12px;
    bottom: -24px;
  }
}

@media (max-width: 768px) {
  .nav-content {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .card-dashboard {
    width: 100%;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.95rem;
  }
}
