/* ============================================
   MANTRA FOTO — Landing Page Styles
   Matched to app.mantrafoto.com design
   Colors: #A26B35 (sidebar), #F97316 (primary), #F8FAFC (bg)
   Fonts: Comfortaa + Plus Jakarta Sans
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Design Tokens (matched to app) --- */
:root {
  /* Core Brand — same as cloudapp */
  --primary: #F97316;
  --primary-dark: #C2410C;
  --primary-light: #FDBA74;
  --primary-glow: rgba(249, 115, 22, 0.2);
  --sidebar: #A26B35;
  --sidebar-light: #C08A4E;
  --sidebar-dark: #8A5728;

  /* Backgrounds — same as cloudapp */
  --bg: #F8FAFC;
  --bg-warm: linear-gradient(135deg, #A26B35, #8A5728);
  --bg-warm-soft: linear-gradient(135deg, #A26B35, #C08A4E);
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #F1F5F9;
  --border: #E2E8F0;
  --card-bg: #FFFFFF;

  /* Radius — same as cloudapp */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --radius-btn: 12px;
  --radius-full: 9999px;

  /* Shadows — same as cloudapp */
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* Fonts — same as cloudapp */
  --font-heading: 'Comfortaa', cursive;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1140px;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons (matched to cloudapp ui-btn-primary) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-xs);
}

.btn-md {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-btn);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-btn);
  letter-spacing: 0.01em;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(162, 107, 53, 0.97);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(138, 87, 40, 0.3);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-logo-icon img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link:hover {
  color: #fff;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Mobile menu */
.nav-hamburger {
  display: none;
}

.nav-mobile-simple {
  display: none;
  align-items: center;
  gap: 16px;
}

.nav-link-mobile {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
}
.nav-link-mobile:hover {
  color: #fff;
}

.nav-mobile-cta {
  padding: 8px 18px !important;
  font-size: 0.82rem !important;
  border-radius: 20px;
  white-space: nowrap;
}

.nav-mobile {
  display: none;
}

/* --- Hero Section (warm amber gradient, matches sidebar) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #A26B35 0%, #8A5728 40%, #6B4423 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  will-change: transform;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -150px;
  animation: blob-drift 12s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #C08A4E;
  bottom: -100px;
  left: -100px;
  animation: blob-drift 15s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  top: 40%;
  left: 30%;
  animation: blob-drift 10s ease-in-out infinite 2s;
}

/* Subtle grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.02); }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-text-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease) 0.15s both;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-subtitle strong {
  color: #fff;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease) 0.45s both;
}

.hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeInUp 0.8s var(--ease) 0.6s both;
}

/* --- Stats Section --- */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -50px;
  padding: 0 0 60px;
}

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

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Features Section (matches app card style) --- */
.features {
  background: var(--bg);
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249, 115, 22, 0.2);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
  color: var(--primary);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --- How It Works (warm amber, matches sidebar) --- */
.how-it-works {
  background: linear-gradient(160deg, #A26B35, #8A5728);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.how-it-works .section-header h2 {
  color: #fff;
}
.how-it-works .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.3), rgba(255,255,255,0.15));
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sidebar);
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* --- Pain Points --- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  border-left: 3px solid #EF4444;
  box-shadow: var(--shadow);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pain-emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.pain-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* --- Trust Signals --- */
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  font-size: 1.5rem;
}

.trust-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Demo Video Section --- */
.demo-video-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  background: #000;
}

.demo-video {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* --- Pricing Section --- */
.pricing {
  background: var(--bg);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 5vw, 40px) clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg), 0 0 40px var(--primary-glow);
}

.pricing-card.popular:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 700;
  text-align: center;
  width: max-content;
  max-width: 90%;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.pricing-tier-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

.pricing-tier-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-price .amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  color: #22C55E;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-features li.disabled::before {
  content: '✕';
  color: #94A3B8;
}

.pricing-card .btn {
  width: 100%;
}

/* --- Pricing Tabs (mobile only, desktop hidden) --- */
.pricing-tabs {
  display: none;
}

/* --- FAQ Section --- */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow);
}

.faq-item:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  gap: 16px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  font-size: 1.1rem;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-answer-content {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* --- Final CTA (warm amber gradient) --- */
.final-cta {
  background: linear-gradient(160deg, #A26B35, #8A5728);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15), transparent 70%);
}

.final-cta-content {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.final-cta p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.final-cta-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Footer --- */
.footer {
  background: #6B4423;
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .nav-logo {
  font-size: 1.2rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card.popular {
    transform: scale(1.02);
  }
  .pricing-card.popular:hover {
    transform: scale(1.02) translateY(-4px);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }

  /* Pain Points */
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pain-card {
    padding: 20px 16px;
  }

  /* Trust */
  .trust-grid {
    gap: 20px;
  }
  .trust-item {
    flex: 0 0 calc(50% - 10px);
    justify-content: center;
  }
  
  /* Navbar */
  .nav-container {
    padding: 0 16px;
  }
  .nav-logo {
    font-size: 1.1rem;
    gap: 8px;
  }
  .nav-logo-icon {
    width: 32px;
    height: 32px;
  }
  .nav-links {
    display: none;
  }
  .nav-mobile-simple {
    display: flex;
    gap: 12px;
  }
  .nav-link-mobile {
    font-size: 0.8rem;
  }
  .nav-mobile-cta {
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
  }
  
  .navbar {
    padding: 12px 0;
  }
  .navbar.scrolled {
    padding: 8px 0;
  }
  
  /* Hero */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }
  .hero-text-content {
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  .hero-ctas {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }
  .hero-showcase {
    max-width: 100%;
    margin-top: 40px;
  }
  
  /* Stats */
  .stats {
    margin-top: -30px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 24px 16px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 28px 24px;
  }
  
  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid::before {
    display: none;
  }
  
  /* Pricing */
  .pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    background: var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
  }
  .pricing-tab.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: var(--shadow);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card[data-tab] {
    display: none;
  }
  .pricing-card[data-tab].tab-active {
    display: block;
  }
  .pricing-card.popular {
    transform: none;
    order: 0;
  }
  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
  
  /* CTA */
  .final-cta-buttons {
    flex-direction: column;
  }
  .final-cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .pricing-card {
    padding: 32px 20px;
  }
}

/* ============================================
   AI NEURAL PIPELINE ANIMATIONS
   ============================================ */

.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.tech-pipeline-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 600px;
  margin: 0 auto;
}

/* SVG Paths (Vertical Flow) */
.pipeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.base-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
}

.flow-path {
  fill: none;
  stroke: #f97316;
  filter: drop-shadow(0 0 6px #f97316) drop-shadow(0 0 12px #f97316);
  stroke-width: 2;
  stroke-dasharray: 4 30 12 60 6 40;
  stroke-linecap: round;
}

.base-path.p-mainVert {
  animation: cableMain 8s infinite;
}
.base-path.p-out {
  animation: cableOut 8s infinite;
}

.flow-path.p-mainVert {
  animation: cableMain 8s infinite, flowMove 1.5s linear infinite;
}
.flow-path.p-out {
  animation: cableOut 8s infinite, flowMove 1.5s linear infinite;
}

/* Vertical Node Styles */
.step-card-vert {
  position: absolute;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 16px 20px;
  width: 320px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.step-num-v {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  border: 2px solid #111;
  z-index: 3;
}

/* Step 1: Top */
.step-v1 {
  top: 40px;
  animation: step1Anim 8s infinite;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.step-icon-v {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  animation: floatIconV 3s ease-in-out infinite;
}

.step-text-v h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
}


/* Step 2: Middle */
.step-v2 {
  top: 240px;
  animation: step2Anim 8s infinite;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.2) inset, 0 10px 30px rgba(0,0,0,0.5);
}

.magic-core-v {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}
.ai-ring.r1 {
  width: 100%;
  height: 100%;
  border-color: var(--primary);
  border-style: dashed;
  animation: spinSlow 6s linear infinite;
}
.ai-ring.r2 {
  width: 75%;
  height: 75%;
  border-color: rgba(249, 115, 22, 0.4);
  border-style: solid;
  border-top-color: var(--primary);
  border-bottom-color: var(--primary);
  animation: spinSlow 3s linear infinite reverse;
}
.ai-ring.r3 {
  width: 50%;
  height: 50%;
  border-color: var(--primary);
  border-style: dotted;
  animation: spinSlow 4s linear infinite;
}
.ai-dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
  animation: pulseOpacity 1s infinite alternate;
}

.terminal-v {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--primary-light);
  background: rgba(0,0,0,0.3);
  padding: 6px 12px;
  border-radius: 6px;
}

.type-v1 { animation: pulseOpacity 2s infinite; }

/* Step 3: Bottom Container */
.step-v3-container {
  position: absolute;
  top: 490px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  z-index: 2;
}

.num-v3 {
  top: -50px;
  animation: badge3Anim 8s infinite;
}

.format-nodes-v {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.format-item-v {
  flex: 1;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  animation: step3Anim 8s infinite;
}

/* Keyframes */
/* Master Synchronization Keyframes */

@keyframes step1Anim {
  0%, 5% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  10%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  95%, 100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

@keyframes cableMain {
  0%, 10% { opacity: 0; }
  15%, 90% { opacity: 1; }
  95%, 100% { opacity: 0; }
}

@keyframes step2Anim {
  0%, 25% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  30%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  95%, 100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

@keyframes cableOut {
  0%, 35% { opacity: 0; }
  40%, 90% { opacity: 1; }
  95%, 100% { opacity: 0; }
}

@keyframes badge3Anim {
  0%, 48% { opacity: 0; transform: translateX(-50%) scale(0.5); }
  50%, 90% { opacity: 1; transform: translateX(-50%) scale(1); }
  95%, 100% { opacity: 0; transform: translateX(-50%) scale(0.5); }
}

@keyframes step3Anim {
  0%, 50% { opacity: 0; transform: translateY(20px); }
  55%, 90% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(20px); }
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes flowMove {
  0% { stroke-dashoffset: 152; }
  100% { stroke-dashoffset: 0; }
}

@keyframes floatIconV {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spinSlow {
  100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
  0%, 10% { opacity: 0; transform: translateX(-10px); }
  15%, 85% { opacity: 1; transform: translateX(0); }
  95%, 100% { opacity: 0; transform: translateX(-10px); }
}

@keyframes shimmerText {
  to { background-position: 200% center; }
}

@media (max-width: 768px) {
  .hero-visual {
    height: 600px;
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -90px;
  }
  .tech-pipeline-container {
    transform: none;
  }
  .format-item-v {
    padding: 8px 4px;
    font-size: 0.7rem;
  }
  .format-nodes-v {
    gap: 8px;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    transform: scale(0.75);
    margin-bottom: -150px;
  }
}

