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

:root {
  /* LIGHT THEME MANDATORY */
  --bg-base: #f8f8fc;
  --bg-sidebar: #ffffff;
  --text-main: #1a1a1e;
  --text-muted: #64748b;

  /* ACCENT COLOR (Fruit Inspired - Vibrant Orange/Red) */
  --accent: #ff4d4d;
  --accent-secondary: #ff9f43;
  --accent-glow: rgba(255, 77, 77, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);

  --container-max: 1240px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --tear-path: polygon(0% 0%, 5% 2%, 10% 0%, 15% 3%, 20% 0%, 25% 2%, 30% 0%, 35% 3%, 40% 0%, 45% 2%, 50% 0%, 55% 3%, 60% 0%, 65% 2%, 70% 0%, 75% 3%, 80% 0%, 85% 2%, 90% 0%, 95% 3%, 100% 0%, 100% 100%, 0% 100%);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  font-size: 18px;
  overflow-x: hidden;
  color: var(--text-main);
  background: var(--bg-base);
  background-attachment: fixed;
}

/* HEADINGS - Playfair Display */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-main);
}

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

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

/* === BACKGROUND ANIMATION === */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(-45deg, #f8f8fc, #fff0f0, #f0f4ff, #f8f8fc);
  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%; }
}

/* === LAYOUT: SIDEBAR + CONTENT (Desktop) === */
.page-wrapper {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .page-wrapper {
    flex-direction: row;
  }

  .sidebar-column {
    width: 32%;
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    padding: 3rem;
    z-index: 100;
  }

  .main-scrolling-content {
    width: 68%;
  }
}

/* === NAVIGATION (Classic Fixed Top Bar) === */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
}

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

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

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

  .nav-links a.active, .nav-links a:hover {
    color: var(--accent);
  }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* === BUTTONS (Split-Color) === */
.btn-split {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: white;
  transition: var(--transition);
  box-shadow: 0 10px 20px -5px var(--accent-glow);
  border: none;
  cursor: pointer;
}

.btn-split .left {
  background: var(--accent);
  padding: 0.8rem 1rem 0.8rem 1.5rem;
}

.btn-split .right {
  background: var(--accent-secondary);
  padding: 0.8rem 1.5rem 0.8rem 1rem;
}

.btn-split:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -8px var(--accent-glow);
}

/* === SECTIONS === */
section {
  padding: 80px 0;
  position: relative;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* PAPER TEAR DIVIDER */
.section-divider {
  width: 100%;
  height: 40px;
  background: var(--bg-base);
  clip-path: var(--tear-path);
  margin-top: -39px;
  position: relative;
  z-index: 5;
}

/* === HERO SECTION === */
.fancy-hero {
  text-align: center;
  padding: 140px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: 160px;
  height: 160px;
  border-radius: 40px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15);
  margin-bottom: 2.5rem;
  aspect-ratio: 1/1;
}

.fancy-hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ff4d4d, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.rating-badge {
  background: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.rating-badge i {
  color: #ffbc00;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* === HOW IT WORKS (Zigzag) === */
.zigzag-step {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}

@media (min-width: 768px) {
  .zigzag-step {
    flex-direction: row;
  }

  .zigzag-step.reverse {
    flex-direction: row-reverse;
  }

  .zigzag-content, .zigzag-visual {
    flex: 1;
  }
}

.zigzag-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.zigzag-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0,0,0,0.05);
  margin-bottom: -1.5rem;
  display: block;
}

.zigzag-visual img {
  max-width: 320px;
  border-radius: 40px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.1);
  margin: 0 auto;
}

/* === FEATURES BENTO GRID === */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-item.featured {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-item.featured {
    grid-column: span 2;
  }
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}

.glass-panel:hover {
  transform: translateY(-10px) rotate(2deg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px -5px var(--accent-glow);
}

/* === SCREENSHOT GALLERY (Immersive Stacked) === */
.stacked-gallery {
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-items: center;
  padding: 100px 0;
}

.gallery-item {
  width: 100%;
  max-width: 90vw;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem;
  border-radius: 50px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.2);
}

.gallery-caption {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

/* === REVIEWS (App Store Cards) === */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reviewer-info h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stars {
  color: #ffbc00;
  margin-bottom: 1rem;
}

/* === DOWNLOAD CTA (Centered Dramatic) === */
.vivid-cta {
  background: linear-gradient(135deg, #ff4d4d, #ff9f43);
  padding: 100px 0;
  color: white;
  text-align: center;
}

.vivid-cta h2 {
  font-size: 4rem;
  color: white;
  margin-bottom: 1rem;
}

.vivid-cta p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* === FOOTER (CTA Footer) === */
.footer-cta-block {
  background: white;
  margin-top: -50px;
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  text-align: center;
  margin-bottom: 4rem;
}

.footer-main {
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 1.5rem;
}

/* MOBILE NAV TOGGLE */
.mobile-toggle {
  display: block;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* HAMBURGER MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: white;
  z-index: 2000;
  padding: 5rem 2rem;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 2rem;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
}

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