/* ===================================
   MANÁ — Apple-Style Landing Page
   Premium Dark Theme | Golden Accents
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  /* Light Blue Theme (from intro) */
  --black: #0A2540;
  --bg-deep: #5BABEE;
  --bg-gradient: linear-gradient(180deg, #7DC8F8 0%, #4A9DE8 100%);
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #FFFFFF;
  --surface: #FFFFFF;
  --border: rgba(255, 255, 255, 0.35);
  --border-glow: rgba(255, 255, 255, 0.8);

  /* Accent — white / deep blue instead of gold */
  --accent: #FFFFFF;
  --accent-soft: rgba(255, 255, 255, 0.85);
  --accent-deep: #0A2540;

  /* Feature Accents - all unified to white now */
  --accent-sage: #FFFFFF;
  --accent-terracotta: #FFFFFF;
  --accent-orange: #FFFFFF;
  --accent-indigo: #FFFFFF;

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-tertiary: rgba(255, 255, 255, 0.7);

  --card-text: #0A2540;
  --card-text-muted: #475569;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-padding: clamp(80px, 12vh, 160px);
  --content-width: 1200px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

/* ── Utility ── */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.5;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(74, 157, 232, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
  padding: 0 24px;
}

.nav.scrolled {
  background: rgba(42, 120, 200, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  background: var(--text-primary);
  color: var(--black);
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

.nav-cta:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-deep), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 980px;
  color: #FFFFFF;
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 50%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 4s linear infinite;
}

@keyframes text-shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 36px;
  background: #FFFFFF;
  color: var(--accent-deep);
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: default;
  transition: background 0.3s, transform 0.2s;
  opacity: 0.7;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-mockup {
  position: relative;
  z-index: 2;
  max-width: 380px;
  margin: 0 auto;
  animation: floatMockup 6s ease-in-out infinite;
}

.hero-mockup img {
  border-radius: 20px;
}

/* Floating animation for mockups */
@keyframes floatMockup {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ── STATS BAR ── */
.stats-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 500;
}

/* ── FEATURE SECTIONS ── */
.feature-section {
  padding: var(--section-padding) 0;
  position: relative;
}

.feature-section:nth-child(even) {
  background: var(--bg-deep);
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-layout.reversed {
  direction: rtl;
}

.feature-layout.reversed>* {
  direction: ltr;
}

.feature-text {
  max-width: 520px;
}

.feature-text .feature-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
}

.feature-list {
  list-style: none;
  margin-top: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-secondary);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #FFFFFF;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual img {
  max-width: 380px;
  border-radius: 20px;
  animation: floatMockup 6s ease-in-out infinite;
  animation-delay: 1s;
  /* Slight offset so they don't all float in perfect sync */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-visual img:hover {
  animation-play-state: paused;
}

.mockup-placeholder {
  width: 320px;
  height: 600px;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

/* Heroes Grid Styles */
.heroes-grid-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 16px;
  width: 100%;
  max-width: 450px;
  padding: 20px;
  align-items: end;
  /* Align bottoms */
}

.hero-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 160px;
  /* Fixed height so all heroes match size */
  transform: translateY(20px);
  opacity: 0;
  animation: floatUpFade 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: calc(0.5s + var(--delay));
  transition: transform 0.3s ease;
}

.hero-img-wrapper:hover {
  transform: translateY(-8px) scale(1.08);
  z-index: 10;
}

.hero-img-wrapper img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* Ensures the whole character fits in the 160px height */
  display: block;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 8px 16px rgba(10, 37, 64, 0.1));
  /* Very subtle, barely visible premium shadow */
}

.hero-img-wrapper:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 30px rgba(10, 37, 64, 0.2));
}

@keyframes floatUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-visual:hover img,
.feature-visual:hover .mockup-placeholder {
  transform: scale(1.03);
}

/* ── FEATURE GRID (for smaller features) ── */
.features-grid-section {
  padding: var(--section-padding) 0;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.feature-card {
  background: #FFFFFF;
  color: var(--card-text);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: left;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-card .card-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 15px;
  color: var(--card-text-muted);
  line-height: 1.6;
}

/* ── PREMIUM SECTION ── */
.premium-section {
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
}

.premium-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 64px auto 0;
}

.church-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 64px auto 0;
}

.plan-card {
  background: var(--bg-card);
  color: var(--card-text);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: left;
  position: relative;
  transition: transform 0.4s, box-shadow 0.4s;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.plan-card.popular {
  border-color: var(--border-glow);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.plan-card .plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #FFFFFF;
  border-radius: 980px;
}

.plan-card .plan-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.plan-card .plan-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.plan-card .plan-price {
  font-size: 16px;
  color: var(--card-text-muted);
  margin-bottom: 24px;
}

.plan-card .plan-price span {
  font-size: 40px;
  font-weight: 800;
  color: #0A2540;
  letter-spacing: -0.03em;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--card-text-muted);
}

.plan-features li .check {
  color: #0A2540;
  font-size: 14px;
}

.plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.plan-cta.gold {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #FFFFFF;
}

.plan-cta.outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.plan-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

/* ── CHURCH SECTION ── */
.church-section {
  padding: var(--section-padding) 0;
  background: var(--bg-deep);
}

.church-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.church-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.church-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s, border-color 0.3s;
}

.church-card:hover {
  transform: translateX(4px);
  border-color: var(--border-glow);
}

.church-card .church-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.church-card .church-icon.starter {
  background: rgba(141, 163, 143, 0.15);
}

.church-card .church-icon.pro {
  background: rgba(198, 123, 92, 0.15);
}

.church-card .church-icon.max {
  background: rgba(212, 175, 55, 0.15);
}

.church-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--card-text);
  margin-bottom: 4px;
}

.church-card p {
  font-size: 14px;
  color: var(--card-text-muted);
}

/* ── TESTIMONIAL / CTA SECTION ── */
.final-cta {
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.final-cta .section-subtitle {
  margin: 0 auto 48px;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.95);
  color: #0A2540;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.app-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.app-badge svg {
  width: 28px;
  height: 28px;
  fill: #0A2540;
}

/* ── FOOTER ── */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #0F172A;
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--gold);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {

  .feature-layout,
  .church-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .feature-layout.reversed {
    direction: ltr;
  }

  .feature-text {
    max-width: 100%;
  }

  .feature-list li {
    justify-content: center;
    text-align: left;
  }

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

  .plans-grid,
  .church-plans-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: clamp(60px, 10vh, 120px);
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 64px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-mockup {
    max-width: 300px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .app-badges {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    padding: 28px 24px;
  }
}