:root {
  --primary-blue: #4FA8F9;
  --secondary-blue: #2389E8;
  --primary-green: #59C9A5;
  --accent-yellow: #FFCB47;
  --accent-purple: #9D74FF;
  --text-dark: #F8FAFC;
  --text-light: #E2E8F0; /* Much brighter slate-200 for better readability */
  --bg-light: #1E293B; /* Lighter dark */
  --bg-white: #334155; /* Even lighter for cards */
  
  --glass-bg: rgba(51, 65, 85, 0.7); /* Adjusted glass bg to match lighter dark */
  --glass-border: rgba(255, 255, 255, 0.15);
  
  --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  --hover-shadow: 0 30px 60px -12px rgba(79, 168, 249, 0.2), 0 4px 10px rgba(0, 0, 0, 0.2);
  
  --border-radius-lg: 32px;
  --border-radius-md: 24px;
  --border-radius-sm: 16px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body.pattern-bg::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../images/pattern.webp');
  background-repeat: repeat;
  background-size: 300px;
  opacity: 0.05;
  filter: grayscale(100%);
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-blue);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

p {
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 100px; /* Pill shape */
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFD166);
  background-size: 200% auto;
  color: white;
  box-shadow: 0 10px 30px -5px rgba(255, 107, 107, 0.6);
  border: 2px solid rgba(255,255,255,0.2);
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px -5px rgba(255, 107, 107, 0.8), 0 0 20px rgba(255, 209, 102, 0.5);
  color: white;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  color: var(--primary-blue);
}

/* Store Buttons (Google Play / App Store) */
.store-btn {
  display: inline-block;
  transition: var(--transition);
  height: 60px;
}
.store-btn img {
  height: 100%;
  width: auto;
  display: block;
}
.store-btn:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

/* Header & Nav (Glassmorphism) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 24px;
  box-shadow: 0 4px 30px -10px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary-blue);
}

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

nav a {
  font-weight: 600;
  color: var(--text-light);
  font-size: 1rem;
}

nav a:hover, nav a.active {
  color: var(--primary-blue);
}

nav a.active {
  background: rgba(79, 168, 249, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
}

/* Hero Section */
.hero {
  margin-top: 80px; /* Push below the fixed header */
  padding: 80px 0 100px; /* Reduced top padding since it no longer sits under the header */
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #2E2869, #4338CA, #2563EB, #1E293B);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Dynamic background gradients */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

/* Hero Background Image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero_bg.webp') center center;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
  animation: bgZoom 20s infinite alternate;
}

@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Floating Elements Animation */
.floating-particle {
  position: absolute;
  font-size: 2rem;
  z-index: 2;
  opacity: 0.8;
  animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.p-1 { left: 10%; animation-duration: 12s; font-size: 3rem; animation-delay: 0s; }
.p-2 { left: 30%; animation-duration: 18s; font-size: 2rem; animation-delay: 2s; }
.p-3 { left: 60%; animation-duration: 14s; font-size: 4rem; animation-delay: 1s; }
.p-4 { left: 80%; animation-duration: 16s; font-size: 2.5rem; animation-delay: 4s; }



.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 16px;
  color: #FFFFFF;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero p {
  max-width: 650px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
}

.hero-content-box {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(20px);
}

.cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.demo-btn-wrapper {
  margin-left: 20px;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-white);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-white);
  padding: 48px 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy hover */
  position: relative;
  overflow: visible;
  z-index: 5;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #FF6B6B, #4FA8F9, #9D74FF, #59C9A5);
  background-size: 400%;
  border-radius: calc(var(--border-radius-lg) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradientBorder 3s linear infinite;
}

@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(79, 168, 249, 0.2);
}

.feature-card:hover h3, 
.feature-card:hover p {
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.feature-card:hover::after {
  opacity: 1;
}

.features-grid .feature-card:nth-child(2) {
  transform: translateY(-20px);
}
.features-grid .feature-card:nth-child(2):hover {
  transform: translateY(-35px) scale(1.03);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(89, 201, 165, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 36px;
  color: var(--primary-green);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(79, 168, 249, 0.1);
  color: var(--primary-blue);
}
.feature-card:nth-child(3) .feature-icon {
  background: rgba(255, 203, 71, 0.15);
  color: var(--accent-yellow);
}

/* Showcase Section */
.showcase {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.mockup-container {
  margin-top: 60px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}
.mockup-container:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Page Layouts (Privacy, Support, Help) */
.page-header {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(79, 168, 249, 0.08), rgba(157, 116, 255, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.page-header h1, 
.page-header h2 {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 0 0 100px;
}

.content-box {
  background: var(--bg-white);
  padding: 60px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--hover-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 4px solid var(--primary-blue);
  max-width: 800px;
  margin: -60px auto 0;
  position: relative;
  z-index: 2;
}

.content-box h2 {
  text-align: left;
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.content-box h2:first-child {
  margin-top: 0;
}
.content-box ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 1.5rem;
}
.content-box ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-light);
}
.content-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* Support Card */
.support-card {
  text-align: center;
  padding: 60px 40px;
}

.support-icon {
  font-size: 72px;
  margin-bottom: 24px;
  display: inline-block;
  padding: 24px;
  background: rgba(79, 168, 249, 0.1);
  border-radius: 50%;
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: var(--bg-white);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 15px -5px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
}

.accordion-header {
  padding: 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}

.accordion-content {
  padding: 0 24px 24px;
  color: var(--text-light);
  display: none;
}
.accordion-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

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

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  position: relative;
  transition: var(--transition);
  /* Hide the text + character */
  font-size: 0;
  color: transparent; 
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-blue);
  border-radius: 2px;
  transition: background-color 0.3s ease;
}
.accordion-icon::before {
  width: 14px;
  height: 2px;
}
.accordion-icon::after {
  width: 2px;
  height: 14px;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--primary-blue);
}
.accordion-item.open .accordion-icon::before,
.accordion-item.open .accordion-icon::after {
  background-color: white;
}

/* Parallax Banners using clip-path */
.parallax-banner {
  width: 100%;
  height: 450px;
  margin: 60px 0;
  background-attachment: fixed; /* Parallax effect */
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
  -webkit-clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

.parallax-banner.right {
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
  -webkit-clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

/* Split Content Sections */
.split-section {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 40px 0;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-content h2 {
  text-align: left;
  font-size: 2.5rem;
}

.split-image {
  flex: 1;
  position: relative;
}

.split-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  padding: 100px 0;
  text-align: center;
  color: white;
  border-radius: var(--border-radius-lg);
  margin: 60px 24px;
  box-shadow: 0 20px 40px rgba(35, 137, 232, 0.3);
}

.final-cta h2 {
  color: white;
}

.final-cta p {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 40px;
}

@media (max-width: 900px) {
  .split-section, .split-section.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .split-content h2 {
    text-align: center;
  }
}
.demo-container {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--hover-shadow);
  background: var(--bg-white);
  border: 8px solid var(--bg-white);
  position: relative;
}

.demo-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 10;
}

/* Screenshots Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  aspect-ratio: 9/19;
  background: var(--bg-light);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Footer */
footer {
  background: var(--bg-white);
  padding: 60px 0;
  text-align: center;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.footer-links a {
  color: var(--text-light);
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 900px) {
  header {
    width: 100%;
    border-radius: 0;
    top: 0;
  }
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    padding: 200px 0 80px;
  }
}

@media (max-width: 600px) {
  .cta-group {
    flex-direction: column;
  }
  .demo-btn-wrapper {
    margin-left: 0;
    margin-top: 10px;
  }
  .content-box {
    padding: 32px 24px;
  }
  .feature-card {
    padding: 32px 24px;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--border-radius-md);
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--primary-blue);
}

/* Scroll Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Vertical Timeline for Story Wizard */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-blue);
  opacity: 0.3;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  right: -12px;
  background-color: var(--primary-blue);
  border: 4px solid var(--bg-dark);
  top: 30px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--primary-blue);
}

.timeline-item.right::after {
  left: -12px;
}

.timeline-content {
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

.timeline-content img {
  width: 100%;
  border-radius: var(--border-radius-md);
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0px;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item.left::after, .timeline-item.right::after {
    left: 8px;
  }
}
