/* ============================================================
   MorningAppLabs – Professional Light Theme Stylesheet
   Primary: #4A90E2  |  Text: #1F2937  |  BG: #F9FAFB
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #4A90E2;
  --primary-dark:   #2f6fc0;
  --primary-light:  #e8f1fc;
  --accent:         #f59e0b;
  --bg:             #F9FAFB;
  --surface:        #ffffff;
  --border:         #e5e7eb;
  --text:           #1F2937;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --success:        #10b981;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.12);
  --transition:     .22s cubic-bezier(.4,0,.2,1);
  --max-w:          1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── Utility ──────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section-alt { background: var(--surface); }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.1rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.section-header p  { font-size: 1.08rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,144,226,.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-sm { font-size: .85rem; padding: 9px 18px; }

/* ── NAV ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.nav-logo img { height: 38px; width: auto; border-radius: 8px; }
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-links .btn { margin-left: 8px; }
.nav-links .btn-primary,
.nav-links .btn-primary:hover { color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #f0f7ff 0%, #fafafa 60%, #fff8f0 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,226,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge::before { content: '●'; font-size: .6rem; }

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero p {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat { }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text); }
.hero-stat span   { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

.hero-image {
  position: relative;
}
.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* ── REPLACE with your image ── */
  background: linear-gradient(135deg, #e8f1fc 0%, #dbeafe 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-placeholder {
  text-align: center;
  color: var(--primary);
  padding: 60px 40px;
}
.hero-image-placeholder svg { width: 80px; height: 80px; opacity: .4; margin-bottom: 14px; }
.hero-image-placeholder p   { font-size: .85rem; color: var(--text-muted); }

/* Floating card on hero image */
.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -28px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
}
.hero-float-card .icon { font-size: 1.6rem; }
.hero-float-card strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text); }
.hero-float-card span   { font-size: .76rem; color: var(--text-muted); }

/* ── TRUST STRIP ──────────────────────────────────────────── */
.trust-strip {
  padding: 28px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }

/* ── CARDS (plugin / app) ─────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7fb3f0);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74,144,226,.2);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: var(--primary-light);
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.card p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.card-features {
  list-style: none;
  margin-bottom: 24px;
}
.card-features li {
  font-size: .88rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.card-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.card-cta { margin-top: auto; }

/* ── APP CARDS ────────────────────────────────────────────── */
.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
  margin-bottom: 32px;
  transition: box-shadow var(--transition);
}
.app-card:hover { box-shadow: var(--shadow-lg); }
.app-card.reverse { direction: rtl; }
.app-card.reverse > * { direction: ltr; }

.app-card-content {}
.app-card-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  margin-bottom: 10px;
}
.app-card-content h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.app-card-content p {
  font-size: .96rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.app-features-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-features-list li {
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.app-features-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.app-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.app-card-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  /* ── REPLACE with real screenshot ── */
  background: linear-gradient(135deg, #e8f1fc 0%, #dbeafe 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.app-visual-placeholder {
  text-align: center;
  padding: 40px 28px;
  color: var(--primary);
}
.app-visual-placeholder svg { width: 56px; height: 56px; opacity: .3; margin-bottom: 10px; }
.app-visual-placeholder p { font-size: .8rem; color: var(--text-muted); }

/* Play Store badge */
.playstore-badge {
  display: inline-block;
  transition: transform var(--transition), opacity var(--transition);
}
.playstore-badge:hover { transform: scale(1.04); opacity: .9; }
.playstore-badge img { height: 52px; width: auto; }

/* ── SERVICES / OFFER BANNER ──────────────────────────────── */
.offer-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  border-radius: var(--radius-md);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  color: #fff;
}
.offer-banner h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.offer-banner p  { font-size: 1rem; opacity: .82; max-width: 520px; }
.offer-banner .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
  flex-shrink: 0;
}
.offer-banner .btn-primary:hover {
  background: #f0f7ff;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

/* ── SERVICES GRID (custom dev section) ───────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
}
.service-item:hover {
  border-color: rgba(74,144,226,.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-item .service-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.service-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.service-item p {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p  { color: var(--text-muted); margin-bottom: 32px; font-size: .97rem; line-height: 1.75; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-detail-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: .9rem; font-weight: 700; color: var(--text); }
.contact-detail span   { font-size: .88rem; color: var(--text-muted); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; color: var(--text); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,144,226,.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: #9CA3AF;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { height: 34px; width: auto; border-radius: 6px; }
.footer-logo span { font-size: 1.05rem; font-weight: 800; color: #fff; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: .88rem;
  color: #9CA3AF;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #9CA3AF;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .offer-banner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .site-header { position: relative; }

  /* Hero */
  .hero { padding: 60px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-image { display: none; } /* Hide on mobile */
  .hero-stats { gap: 20px; flex-wrap: wrap; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* App cards */
  .app-card, .app-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 32px 24px;
    gap: 28px;
  }
  .app-card-visual { min-height: 220px; }

  /* Offer */
  .offer-banner { padding: 40px 28px; }
  .offer-banner h2 { font-size: 1.5rem; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .section-header h2 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip-inner { gap: 24px; }
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-delay-1 { animation-delay: .1s; }
.fade-up-delay-2 { animation-delay: .2s; }
.fade-up-delay-3 { animation-delay: .3s; }
