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

:root {
  /* Premium Light Theme Tokens */
  --bg: #FDFEFE;
  --bg-subtle: #F1F5F9;
  --text: #0F172A;
  --text-muted: #475569;
  --accent: #E11D48; /* Machinal Instinct Red/Pink Brand Color */
  --accent-light: #FEE2E2;
  --accent-gradient: linear-gradient(135deg, #E11D48 0%, #F43F5E 100%);
  --secondary: #2563EB;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 100px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --container-max: 1240px;
}

@font-face {
  font-family: 'Righteous';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/righteous/v17/1bPUMzW_tXECu6S9S-InUPr_WpS6.woff2) format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLEj6Z1xlEA.woff2) format('woff2');
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
}

/* Background Texture Animation */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(225, 29, 72, 0.02) 0px,
    rgba(225, 29, 72, 0.02) 1px,
    transparent 1px,
    transparent 20px
  );
  animation: move-bg 60s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes move-bg {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

h1, h2, h3 {
  font-family: 'Righteous', cursive;
  line-height: 1.2;
}

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

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

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

section {
  padding: 5rem 0;
  position: relative;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* === PREMIUM UI BLOCKS === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px -10px var(--accent);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 30px -10px var(--accent);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translate(-30%, -30%); }
  100% { transform: translate(30%, 30%); }
}

/* === NAV: Floating Pill Nav === */
header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 1rem;
}

.nav-pill {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Righteous', cursive;
  font-size: 1.25rem;
  color: var(--accent);
}

.nav-brand .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: none;
}

.btn-nav {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 500;
  }
  .nav-link:hover { color: var(--accent); }
}

/* === HERO: App Showcase Hero === */
.hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #FEE2E2 0%, #F1F5F9 40%, var(--bg) 100%);
}

.hero-gradient-text {
  font-size: clamp(3rem, 10vw, 6.5rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border: 1px solid var(--accent-light);
  color: #E11D48;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

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

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--text);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  text-align: left;
  transition: all 0.3s ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.store-btn i { font-size: 1.8rem; }
.store-btn .btn-text-small { font-size: 0.7rem; opacity: 0.8; display: block; }
.store-btn .btn-text-large { font-size: 1.1rem; font-weight: 600; }

.hero-visual {
  position: relative;
  margin-top: 2rem;
}

.hero-phone {
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25);
  z-index: 2;
  position: relative;
}

.hero-accents {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  z-index: 1;
  pointer-events: none;
}

/* === FEATURES: Interactive Accordion === */
.feature-section {
  background: var(--bg-subtle);
}

.section-h {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.section-p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  color: var(--text-muted);
}

.accordion-container {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.accordion-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Righteous', cursive;
  font-size: 1.25rem;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.accordion-title i {
  color: var(--accent);
  font-size: 1.8rem;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 2rem;
}

.accordion-item.active {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-light);
}

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

.accordion-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .accordion-inner { grid-template-columns: 1fr 200px; }
}

.accordion-text {
  font-size: 1rem;
  color: var(--text-muted);
}

.accordion-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* === HOW IT WORKS: Vertical Timeline === */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-light);
  border-radius: 4px;
}

.timeline-step {
  position: relative;
  padding-bottom: 4rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-gradient);
  border: 4px solid var(--bg);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.step-card {
  display: flex;
  gap: 1.5rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.step-info h3 { margin-bottom: 0.5rem; }

/* === SCREENSHOT GALLERY: Horizontal Scroll === */
.gallery-wrap {
  width: 100%;
  padding: 1rem 0;
}

.gallery-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 250px;
}

.gallery-item img {
  height: 450px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

@media (min-width: 768px) {
  .gallery-item { width: 320px; }
  .gallery-item img { height: 570px; }
}

/* === STATS: Counter Bar === */
.stats-bar {
  background: var(--text);
  color: #fff;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  text-align: center;
}

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

.stat-num {
  font-family: 'Righteous', cursive;
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* === REVIEWS: Asymmetric Layout === */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.featured-review {
  background: var(--accent-light);
  padding: 4rem;
  border-radius: var(--radius-lg);
  position: relative;
}

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

.stars {
  color: #FBBF24;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-circle {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.sub-reviews {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--bg-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* === DOWNLOAD CTA: Frosted Glass === */
.cta-section {
  padding: 8rem 0;
  background: radial-gradient(circle at top right, #FEE2E2 0%, #2563EB11 50%, #F1F5F9 100%);
}

.cta-glass {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-glass h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-glass p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* === MEGA FOOTER === */
footer {
  background: #F8FAFC;
  padding: 5rem 0 2rem;
  border-top: 1px solid #E2E8F0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Righteous', cursive;
  font-size: 1.5rem;
  color: var(--accent);
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-family: 'Righteous', cursive;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  padding: 0.8rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  flex: 1;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.socials { display: flex; gap: 1.5rem; }
.socials i { font-size: 1.25rem; transition: color 0.3s; }
.socials a:hover { color: var(--accent); }

/* Decorative divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4rem 0;
  gap: 2rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  border-bottom: 2px dashed #E2E8F0;
}

.divider-mark i {
  color: var(--accent);
  font-size: 1.5rem;
  opacity: 0.3;
}

/* Privacy/Terms specific styling */
.legal-body {
  padding-top: 8rem;
  background: var(--bg);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.legal-content h1 { margin-bottom: 2rem; color: var(--accent); font-size: 3rem; }
.legal-content h2 { margin-top: 3rem; margin-bottom: 1rem; border-bottom: 2px solid var(--accent-light); padding-bottom: 0.5rem; }
.legal-content p { margin-bottom: 1.5rem; color: var(--text-muted); }
.legal-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-muted); }
.legal-content li { margin-bottom: 0.5rem; }

.reading-time {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--accent);
}
