/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* LIGHT THEME MANDATORY */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #fb7185; /* Vibrant rose/pink accent from app icon */
  --accent-secondary: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.05);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --container-width: 1200px;
}

body {
  font-family: 'Lora', serif;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip; /* As per spec */
  color: var(--text);
  background: var(--bg);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(251, 113, 133, 0.03) 40px, rgba(251, 113, 133, 0.03) 80px);
  background-size: 200% 200%;
  animation: move-bg 60s linear infinite;
}

@keyframes move-bg {
  0% { background-position: 0 0; }
  100% { background-position: 200px 0; }
}

h1, h2, h3, h4, .nav-logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.1;
}

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

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

ul { list-style: none; }

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

section {
  padding: 6.25rem 0; /* 100px scaling */
  position: relative;
}

/* === NAVIGATION (Tabbed Top Nav) === */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

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

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 1px;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
}

.nav-tab {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(0,0,0,0.02);
}

.nav-tab.active {
  color: var(--accent);
  background: var(--bg-alt);
  border-bottom: 3px solid var(--accent);
}

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

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-tabs {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-tabs.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav-tab {
    border-radius: var(--radius-sm);
    border-bottom: none;
  }
  .nav-tab.active {
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
  }
}

/* === BUTTONS (Split-color buttons) === */
.btn-split {
  display: inline-flex;
  position: relative;
  padding: 1rem 2.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.btn-split span {
  position: relative;
  z-index: 2;
}

.btn-split:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px var(--accent);
}

/* === HERO SECTION (Giant Headline) === */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Multi-stop radial gradient hero */
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 40%, #e2e8f0 70%, #cbd5e1 100%);
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.hero-headline {
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 0.9;
  text-transform: uppercase;
  max-width: 1000px;
}

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

.hero-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3rem;
  font-size: 1.25rem;
}

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

/* === GLASS PANEL === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
}

/* === SECTION DIVIDERS (Diagonal slant) === */
.slant-divider {
  height: 100px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  margin-top: -100px;
  pointer-events: none;
}

.slant-divider-bottom {
  height: 100px;
  background: var(--bg-alt);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  margin-bottom: -100px;
  position: relative;
  z-index: 5;
}

/* === FEATURES (Icon Grid Cards) === */
.features-section {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.feature-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* === STATS (Floating Cards) === */
.stats-section {
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 3rem 2rem;
  border-bottom: 4px solid var(--accent);
}

.stat-card:nth-child(2) { border-color: #3b82f6; }
.stat-card:nth-child(3) { border-color: #8b5cf6; }
.stat-card:nth-child(4) { border-color: #10b981; }

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: 'Cinzel', serif;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === REVIEWS (Featured + Supporting) === */
.reviews-section {
  background: var(--bg-alt);
}

.reviews-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 991px) {
  .reviews-container {
    grid-template-columns: 1fr;
  }
}

.review-featured {
  padding: 4rem;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 4rem;
  opacity: 0.1;
  color: var(--accent);
}

.review-stars {
  color: #ffb800;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.review-text {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.review-author {
  font-weight: 700;
  font-family: 'Cinzel', serif;
}

.reviews-supporting {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.review-small {
  padding: 2rem;
}

/* === SCREENSHOT GALLERY (Floating Collage) === */
.gallery-section {
  min-height: 700px;
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-areas:
    "img1 img2 img3"
    "img1 img4 img5"
    "img6 img4 img5";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-areas:
      "img1"
      "img2"
      "img3"
      "img4"
      "img5"
      "img6";
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.gallery-item:nth-child(odd) { transform: rotate(-2deg); }
.gallery-item:nth-child(even) { transform: rotate(2deg); }

.gallery-item:hover {
  transform: rotate(0) scale(1.05);
  z-index: 10;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gi-1 { grid-area: img1; height: 500px; }
.gi-2 { grid-area: img2; height: 350px; }
.gi-3 { grid-area: img3; height: 350px; }
.gi-4 { grid-area: img4; height: 500px; }
.gi-5 { grid-area: img5; height: 500px; }
.gi-6 { grid-area: img6; height: 350px; }

/* === FAQ SECTION === */
.faq-section {
  background: var(--bg-alt);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-md);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 2rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.5rem 2rem;
}

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

/* === DOWNLOAD CTA === */
.download-section {
  text-align: center;
  background: var(--bg);
}

.download-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.download-tagline {
  font-size: 2rem;
  font-family: 'Cinzel', serif;
  margin-bottom: 3rem;
}

/* === FOOTER (Glassmorphism) === */
.site-footer {
  background: linear-gradient(rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.8)), url('images/app-screen-1.jpg');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(20px);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.footer-col h5 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  color: var(--text);
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
}

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

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

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

/* Decorative bg typography */
.bg-text {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  font-size: 15vw;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  -webkit-text-stroke: 1px rgba(0,0,0,0.03);
  color: transparent;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  z-index: -1;
  text-transform: uppercase;
}
