/* === PREMIUM LIGHT THEME FOUNDATION === */
:root {
  /* Theme Colors - Light Mode Mandatory */
  --bg-pure: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-accent: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inv: #ffffff;

  /* Brand Colors */
  --accent-primary: #3b82f6;
  --accent-secondary: #6366f1;
  --accent-glow: rgba(59, 130, 246, 0.15);

  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 60px;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.08);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.03);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);

  /* Fonts */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --container-width: 1280px;
  --nav-height: 80px;
}

/* === CSS RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-pure);
  line-height: 1.6;
  overflow-x: clip;
}

/* Moving Background Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  z-index: -1;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(59, 130, 246, 0.02) 0px,
    rgba(59, 130, 246, 0.02) 1px,
    transparent 1px,
    transparent 20px
  );
  animation: move-bg 60s linear infinite;
}

@keyframes move-bg {
  from { transform: translate(0, 0); }
  to { transform: translate(-5%, -5%); }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

section {
  padding: 60px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
}

/* === PREMIUM UI BLOCKS === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

/* Mesh Gradient Animation */
.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
}

/* Split-Color Button Style */
.btn-split {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  font-weight: 700;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  color: white;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--accent-primary);
  z-index: -1;
  transition: 0.4s;
}

.btn-split::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--accent-secondary);
  z-index: -1;
  transition: 0.4s;
}

.btn-split:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.btn-split:hover::before { width: 100%; }
.btn-split:hover::after { width: 0; }

/* Navigation - Floating Pill */
.nav-pill-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 800px;
  z-index: 1000;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.7;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--accent-primary);
}

.nav-cta {
  background: var(--text-main);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-fit {
  padding-top: 120px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-icon:hover {
  transform: scale(1.05) rotate(5deg);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto 20px;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--bg-accent);
}

.hero-stat-item i {
  color: #fbbf24;
}

/* Demo/Showcase */
.showcase-area {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 80px 20px;
  margin-top: 40px;
  overflow: hidden;
}

.device-frame {
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  border: 12px solid #1e293b;
  border-radius: 48px;
  background: #000;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3);
}

.device-frame img {
  border-radius: 36px;
  width: 100%;
}

/* Stats Marquee Ticker */
.marquee-ticker {
  background: var(--text-main);
  padding: 20px 0;
  margin: 40px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-content {
  display: inline-flex;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.ticker-item i {
  color: var(--accent-primary);
  font-size: 1.5rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Features - Interactive Accordion */
.features-accordion {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 0;
}

.accordion-item {
  border-bottom: 1px solid var(--bg-accent);
  margin-bottom: 10px;
}

.accordion-header {
  width: 100%;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  transition: 0.3s;
}

.accordion-header:hover {
  background: var(--bg-subtle);
  padding-left: 30px;
}

.accordion-header i.ph-plus {
  transition: transform 0.4s;
  font-size: 1.2rem;
}

.accordion-item.active .accordion-header i.ph-plus {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-bottom: 30px;
}

.feature-detail {
  display: flex;
  gap: 30px;
  align-items: center;
}

.feature-text {
  flex: 1;
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  background: var(--accent-glow);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 2rem;
}

/* Screenshot Gallery - Immersive Stacked */
.stacked-gallery {
  padding: 100px 0;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-image {
  max-width: 90vw;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.gallery-caption {
  text-align: center;
  max-width: 600px;
}

.gallery-caption h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Reviews - Asymmetric Masonry-style */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.review-card {
  padding: 30px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-accent);
  position: relative;
  transition: transform 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-card.featured {
  grid-column: span 2;
  background: var(--text-main);
  color: white;
}

.review-card.featured i.ph-quotes {
  font-size: 4rem;
  opacity: 0.1;
  position: absolute;
  top: 20px;
  right: 30px;
}

.stars {
  color: #fbbf24;
  margin-bottom: 15px;
  display: flex;
  gap: 4px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.avatar-initial {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-accent);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: var(--bg-subtle);
  border: none;
  text-align: left;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s;
  padding: 0 25px;
  background: white;
}

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

.faq-item.active i {
  transform: rotate(180deg);
}

/* Download CTA - Frosted Glass */
.download-cta-section {
  padding: 100px 20px;
}

.cta-glass-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glass-card h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Newsletter Footer */
.main-footer {
  background: var(--bg-subtle);
  padding: 80px 20px 40px;
  border-top: 1px solid var(--bg-accent);
}

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

.footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 4px;
}

.newsletter-box h4 {
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--bg-accent);
  outline: none;
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--text-main);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.footer-column h4 {
  margin-bottom: 25px;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.footer-column ul li {
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-column ul li:hover {
  opacity: 1;
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--bg-accent);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--bg-accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Reading Time Badge */
.reading-time {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: var(--bg-accent);
  width: 100%;
  margin: 60px 0;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 16px;
  }

  .nav-links {
    display: none; /* Mobile menu logic in JS */
  }

  .hero-title {
    font-size: 2.8rem;
  }

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

  .review-card.featured {
    grid-column: span 1;
  }

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

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

  .feature-detail {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Nav Styles */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 2000;
  transition: 0.5s ease;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-menu-overlay.active {
  right: 0;
}

.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
}
