/* ============================================
   MonoParent Connect — Landing Page Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #244B43;
  --primary-dark: #1a3832;
  --accent: #E5935C;
  --accent-hover: #d07e47;
  --emerald: #10B981;
  --background: #FFFFFF;
  --foreground: #162624;
  --muted: #637774;
  --secondary-bg: #F5EFE7;
  --card: #F5F8F7;
  --border: #D5DCDB;

  --font-heading: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);

  --container: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--foreground);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ============================================
   1. NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.938rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(229, 147, 92, 0.35);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(36, 75, 67, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--background) 60%);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1476703993599-0035a21b17a9?w=1200') center/cover no-repeat;
  opacity: 0.08;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-badge i {
  font-size: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 480px;
}

.store-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--foreground);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all 0.25s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary);
}

.store-badge i {
  font-size: 1.5rem;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-text small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-badge-text strong {
  font-size: 0.95rem;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--background);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.stat-icon.purple { background: #8B5CF6; }
.stat-icon.emerald { background: var(--emerald); }
.stat-icon.accent { background: var(--accent); }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(255,255,255,0.1);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--card);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Floating elements around phone */
.hero-visual .floating-badge {
  position: absolute;
  background: var(--background);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
  border: 1px solid var(--border);
}

.floating-badge:nth-child(2) {
  top: 15%;
  right: -20px;
  animation-delay: 0.5s;
}

.floating-badge:nth-child(3) {
  bottom: 25%;
  left: -30px;
  animation-delay: 1s;
}

.floating-badge i {
  font-size: 1.2rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   3. FEATURES
   ============================================ */
.features {
  padding: 100px 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-visual {
  order: 2;
}

.feature-row.reverse .feature-text {
  order: 1;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-phone {
  width: 240px;
  height: 500px;
  background: #000;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.feature-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
}

.feature-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--foreground);
}

.feature-highlight i {
  color: var(--emerald);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================
   4. ALL SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--card);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.service-card h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================
   5. COMMUNITY & TESTIMONIALS
   ============================================ */
.community {
  padding: 100px 0;
  background: var(--background);
}

.community-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.community-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-text h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  color: var(--primary);
}

.community-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.community-counters {
  display: flex;
  gap: 32px;
}

.counter-item {
  text-align: center;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Testimonials */
.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-header h3 {
  font-size: 1.75rem;
  color: var(--primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: #FBBF24;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--foreground);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   6. CTA DOWNLOAD
   ============================================ */
.cta-download {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-download::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-download .container {
  position: relative;
  z-index: 1;
}

.cta-emblem {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

.cta-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cta-download h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta-download p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-download .store-badges {
  justify-content: center;
}

.cta-download .store-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-download .store-badge:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   7. FOOTER
   ============================================ */
.footer {
  background: var(--foreground);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 32px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    order: 2;
  }

  .hero-visual .floating-badge {
    display: none;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .feature-row.reverse .feature-visual,
  .feature-row.reverse .feature-text {
    order: unset;
  }

  .feature-highlights {
    align-items: center;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .community-intro {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .community-counters {
    justify-content: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-height) + 40px) 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .phone-mockup {
    width: 220px;
    height: 460px;
    border-radius: 32px;
    padding: 10px;
  }

  .phone-mockup::before {
    width: 80px;
    height: 24px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .features, .services, .community, .cta-download {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .feature-phone {
    width: 200px;
    height: 420px;
    border-radius: 30px;
  }

  .feature-phone-screen {
    border-radius: 22px;
  }

  .feature-row {
    margin-bottom: 56px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .footer-col ul {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .community-counters {
    flex-direction: column;
    gap: 20px;
  }
}
