/* ═══════════════════════════════════════════════════════════
   Halal SuperApp — Theme Stylesheet
   Brand: #16A34A (green)   Dark: #0B1220
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background: #F5F7FA;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s, background .2s, opacity .2s, box-shadow .2s; }
ul, ol { list-style: none; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; border-radius: 12px; cursor: pointer;
    border: 2px solid transparent; transition: all .25s;
    text-align: center; justify-content: center;
    font-family: inherit;
}
.btn svg { flex-shrink: 0; }
.btn-sm   { padding: 8px 18px; font-size: 14px; border-radius: 10px; }
.btn-lg   { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
    background: #16A34A; color: #fff; border-color: #16A34A;
}
.btn-primary:hover { background: #15803D; border-color: #15803D; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(22,163,74,.35); }

.btn-outline {
    background: transparent; color: #16A34A; border-color: #16A34A;
}
.btn-outline:hover { background: #16A34A; color: #fff; }

.btn-white {
    background: #fff; color: #16A34A; border-color: #fff;
}
.btn-white:hover { background: #f0fdf4; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,255,255,.3); }

.btn-outline-white {
    background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #E5E7EB;
    transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.site-logo {
    display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #111827;
}
.logo-icon {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: #16A34A; color: #fff;
    border-radius: 10px; font-size: 18px;
}
.logo-text { letter-spacing: -0.3px; }

.main-nav .nav-list { display: flex; gap: 8px; }
.main-nav .nav-list li a {
    padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #4B5563;
    transition: color .2s, background .2s;
}
.main-nav .nav-list li a:hover,
.main-nav .nav-list li.current-menu-item a {
    color: #16A34A; background: #f0fdf4;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { white-space: nowrap; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: #111827; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav-overlay {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 999; padding: 24px;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-list li a {
    display: block; padding: 14px 16px; border-radius: 10px;
    font-size: 17px; font-weight: 500; color: #111827;
}
.mobile-nav-list li a:hover { background: #f0fdf4; color: #16A34A; }
.mt-2 { margin-top: 20px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 30%, #F5F7FA 70%);
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute; inset: 0; opacity: .04;
    background-image: radial-gradient(circle at 20% 50%, #16A34A 1px, transparent 1px),
                       radial-gradient(circle at 80% 20%, #16A34A 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px; border-radius: 999px;
    background: #e9f7ee; color: #16A34A;
    font-size: 14px; font-weight: 600;
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900; line-height: 1.1;
    color: #111827; letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 18px; color: #4B5563; line-height: 1.7;
    max-width: 520px; margin-bottom: 32px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: #9CA3AF; }

/* Phone Mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
    width: 280px; border-radius: 32px; overflow: hidden;
    background: #111827; padding: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,.18), inset 0 0 0 2px rgba(255,255,255,.1);
    transform: perspective(800px) rotateY(-5deg);
    transition: transform .4s;
}
.phone-mockup:hover { transform: perspective(800px) rotateY(0deg); }
.phone-screen {
    background: #0B1220; border-radius: 22px; overflow: hidden;
    padding: 16px;
}
.phone-status-bar { height: 24px; margin-bottom: 12px; }
.phone-app-header { margin-bottom: 20px; }
.phone-app-name { color: #F9FAFB; font-weight: 700; font-size: 18px; }
.phone-features-list { display: flex; flex-direction: column; gap: 10px; }
.phone-feature-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(255,255,255,.06); color: #F9FAFB;
    font-size: 14px; font-weight: 500;
    transition: background .2s;
}
.phone-feature-item:hover { background: rgba(34,197,94,.15); }
.phone-feature-icon { font-size: 20px; }

/* ── Section Shared ──────────────────────────────────────── */
.section { padding: 80px 0; }
.section--alt { background: #fff; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-badge {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    background: #e9f7ee; color: #16A34A;
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 16px;
}
.badge-green  { background: #e9f7ee; color: #16A34A; }
.badge-orange { background: #FEF3C7; color: #D97706; }
.badge-blue   { background: #DBEAFE; color: #2563EB; }
.badge-purple { background: #EDE9FE; color: #7C3AED; }

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800; line-height: 1.2;
    color: #111827; letter-spacing: -0.8px;
    margin-bottom: 16px;
}
.section-subtitle { font-size: 17px; color: #6B7280; line-height: 1.7; }

/* ── Features Grid ───────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
    padding: 28px; transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: #111827; }
.feature-card p { font-size: 15px; color: #6B7280; line-height: 1.6; margin-bottom: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
    padding-left: 20px; position: relative; font-size: 14px; color: #4B5563;
}
.feature-list li::before {
    content: '✓'; position: absolute; left: 0; color: #16A34A; font-weight: 700;
}

/* ── How It Works ────────────────────────────────────────── */
.how-it-works { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { text-align: center; padding: 32px 24px; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 68px; border-radius: 16px;
    background: #16A34A; color: #fff;
    font-size: 36px; font-weight: 800;
    margin-bottom: 20px;
}
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: #111827; }
.step-card p { font-size: 15px; color: #6B7280; line-height: 1.6; }

/* ── Business CTA ────────────────────────────────────────── */
.business-cta-card {
    display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #C7EBD4; border-radius: 20px;
    padding: 48px;
}
.business-cta-content h2 { font-size: 28px; font-weight: 800; color: #111827; margin-bottom: 16px; }
.business-cta-content p { font-size: 16px; color: #4B5563; line-height: 1.7; margin-bottom: 24px; max-width: 480px; }
.tier-badges { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tier-badge {
    padding: 6px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
}
.tier-free     { background: #F3F4F6; color: #374151; }
.tier-premium  { background: #FEF3C7; color: #92400E; }

.business-icon-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.biz-icon {
    width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
    font-size: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ── Stats ────────────────────────────────────────────────── */
.stats-section { background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
    text-align: center; padding: 32px 16px;
    background: #F5F7FA; border-radius: 16px;
}
.stat-icon { font-size: 32px; margin-bottom: 12px; }
.stat-value { font-size: 28px; font-weight: 800; color: #111827; margin-bottom: 4px; }
.stat-label { font-size: 14px; color: #6B7280; }

/* ── Final CTA ───────────────────────────────────────────── */
.final-cta {
    background: linear-gradient(135deg, #16A34A, #15803D);
    padding: 80px 0;
}
.final-cta-inner {
    text-align: center; max-width: 600px; margin: 0 auto;
}
.final-cta h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.final-cta p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.final-cta .hero-buttons { justify-content: center; }

/* ── Page Hero (Features / About / Contact) ──────────────── */
.page-hero {
    padding: 140px 0 60px; text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #F5F7FA 100%);
}
.page-hero-title {
    font-size: clamp(30px, 4vw, 44px); font-weight: 900;
    color: #111827; letter-spacing: -1px;
    margin-bottom: 16px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.page-hero-subtitle {
    font-size: 17px; color: #6B7280; line-height: 1.7;
    max-width: 580px; margin: 0 auto;
}

/* ── Feature Detail Sections ─────────────────────────────── */
.feature-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.feature-detail-grid--reverse { direction: rtl; }
.feature-detail-grid--reverse > * { direction: ltr; }
.feature-detail--alt { background: #fff; }

.feature-detail-content h2 { font-size: 28px; font-weight: 800; color: #111827; margin-bottom: 12px; }
.feature-detail-content > p { font-size: 16px; color: #6B7280; line-height: 1.7; margin-bottom: 28px; }

.feature-detail-list { display: flex; flex-direction: column; gap: 20px; }
.feature-detail-item { display: flex; gap: 16px; }
.feature-detail-icon { font-size: 36px; flex-shrink: 0; margin-top: 2px; }
.feature-detail-item h4 { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.feature-detail-item p { font-size: 14px; color: #6B7280; line-height: 1.6; }

/* Feature Mockups */
.feature-mockup { display: flex; justify-content: center; }
.mockup-card {
    width: 300px; background: #111827; border-radius: 20px;
    padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.15);
}
.mockup-prayer-row {
    display: flex; justify-content: space-between;
    padding: 14px 16px; border-radius: 10px;
    color: #D1D5DB; font-size: 15px; font-weight: 500;
    margin-bottom: 6px; transition: background .2s;
}
.mockup-prayer-row.mockup-active {
    background: rgba(34,197,94,.2); color: #22C55E;
}
.mockup-card--food, .mockup-card--services { background: #fff; border: 1px solid #E5E7EB; }
.mockup-listing {
    padding: 16px; border-bottom: 1px solid #F3F4F6;
}
.mockup-listing:last-child { border-bottom: none; }
.mockup-listing-badge {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
    background: #e9f7ee; color: #16A34A;
    margin-bottom: 6px;
}
.mockup-listing-name { font-weight: 700; color: #111827; margin-bottom: 4px; }
.mockup-listing-meta { font-size: 13px; color: #9CA3AF; }
.mockup-service-cat {
    padding: 14px 16px; border-bottom: 1px solid #F3F4F6;
    font-size: 15px; color: #374151; font-weight: 500;
}
.mockup-service-cat:last-child { border-bottom: none; }

.mockup-card--community { background: #fff; border: 1px solid #E5E7EB; }
.mockup-post { display: flex; gap: 12px; padding: 16px; }
.mockup-post-avatar { font-size: 28px; }
.mockup-post-name { font-weight: 700; color: #111827; font-size: 14px; margin-bottom: 4px; }
.mockup-post-text { font-size: 14px; color: #374151; line-height: 1.5; margin-bottom: 8px; }
.mockup-post-actions { font-size: 13px; color: #9CA3AF; }

/* ── About Page ──────────────────────────────────────────── */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.about-content h2 { font-size: 28px; font-weight: 800; color: #111827; margin-bottom: 16px; }
.about-content p { font-size: 16px; color: #4B5563; line-height: 1.7; margin-bottom: 16px; }

.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.value-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 14px;
    padding: 24px;
}
.value-icon { font-size: 28px; margin-bottom: 12px; }
.value-card h3 { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: #6B7280; line-height: 1.5; }

.differentiators-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.diff-card {
    background: #F5F7FA; border-radius: 14px; padding: 28px;
    border: 1px solid #E5E7EB;
}
.diff-card h3 { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.diff-card p { font-size: 14px; color: #6B7280; line-height: 1.6; }

/* ── Contact Page ────────────────────────────────────────── */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 14px;
    padding: 24px;
}
.contact-card-icon { font-size: 28px; margin-bottom: 12px; }
.contact-card h3 { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: #6B7280; line-height: 1.6; margin-bottom: 12px; }
.contact-link { color: #16A34A; font-weight: 600; font-size: 15px; }
.contact-link:hover { text-decoration: underline; }
.contact-social-links { display: flex; flex-direction: column; gap: 8px; }
.contact-social-link { color: #16A34A; font-weight: 500; font-size: 14px; }
.contact-social-link:hover { text-decoration: underline; }

.contact-form-area { position: sticky; top: 100px; }
.contact-form-placeholder {
    background: #fff; border: 2px dashed #E5E7EB; border-radius: 14px;
    padding: 40px; text-align: center;
}
.contact-form-placeholder h3 { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 12px; }
.contact-form-placeholder p { font-size: 14px; color: #6B7280; margin-bottom: 8px; }
.contact-form-placeholder a { color: #16A34A; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #0B1220; color: #D1D5DB; padding: 60px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid #1F2937;
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .site-logo .logo-text { color: #F9FAFB; }
.footer-tagline { font-size: 14px; color: #9CA3AF; line-height: 1.6; max-width: 280px; }

.footer-links h4 { color: #F9FAFB; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-nav-list li { margin-bottom: 10px; }
.footer-nav-list li a { color: #9CA3AF; font-size: 14px; transition: color .2s; }
.footer-nav-list li a:hover { color: #22C55E; }

.footer-download h4 { color: #F9FAFB; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-store-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    background: #1F2937; color: #D1D5DB;
    font-size: 14px; font-weight: 500;
    transition: background .2s, color .2s;
    width: fit-content;
}
.store-badge:hover { background: #374151; color: #F9FAFB; }
.store-badge svg { flex-shrink: 0; }

.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link {
    padding: 6px 12px; border-radius: 8px;
    background: #1F2937; color: #9CA3AF; font-size: 13px;
    transition: background .2s, color .2s;
}
.social-link:hover { background: #374151; color: #22C55E; }

.footer-bottom {
    padding: 24px 0; text-align: center;
}
.footer-bottom p { font-size: 13px; color: #6B7280; }

/* ── Generic Page / Post ─────────────────────────────────── */
.page-content, .post-content {
    padding: 120px 0 60px;
}
.page-content .container, .post-content .container { max-width: 800px; }
.page-content h1, .post-content h1 {
    font-size: 32px; font-weight: 800; color: #111827; margin-bottom: 24px;
}
.page-content p, .post-content p { margin-bottom: 16px; }
.entry-content { font-size: 16px; color: #374151; line-height: 1.8; }
.entry-content h2 { font-size: 36px; font-weight: 700; color: #111827; margin: 32px 0 12px; }
.entry-content h3 { font-size: 20px; font-weight: 700; color: #111827; margin: 24px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 8px; list-style: disc; }
.entry-content a { color: #16A34A; text-decoration: underline; }
.entry-content img { border-radius: 12px; margin: 24px 0; }
.entry-content blockquote {
    border-left: 4px solid #16A34A; padding: 16px 24px; margin: 24px 0;
    background: #f0fdf4; border-radius: 0 12px 12px 0;
}

/* ── 404 Page ────────────────────────────────────────────── */
.page-404 {
    min-height: 70vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 140px 0 80px;
}
.page-404 h1 { font-size: 120px; font-weight: 900; color: #E5E7EB; line-height: 1; }
.page-404 h2 { font-size: 28px; font-weight: 700; color: #111827; margin: 16px 0; }
.page-404 p { font-size: 16px; color: #6B7280; margin-bottom: 24px; }

/* ── WordPress specific ──────────────────────────────────── */
.wp-block-image { margin: 24px 0; }
.wp-block-image img { border-radius: 12px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .differentiators-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .burger { display: flex; }
    .header-cta { display: none; }

    .hero { padding: 120px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .phone-mockup { transform: none; width: 240px; }

    .section { padding: 60px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }

    .business-cta-card { grid-template-columns: 1fr; text-align: center; padding: 32px; }
    .business-cta-content p { max-width: none; }
    .tier-badges { justify-content: center; }
    .business-icon-grid { justify-content: center; display: flex; gap: 12px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .feature-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-detail-grid--reverse { direction: ltr; }

    .about-grid { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
    .differentiators-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-area { position: static; }

    .footer-grid { grid-template-columns: 1fr; }
    .page-hero-title { font-size: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 30px; }
    .hero-buttons { flex-direction: column; }
    .btn-lg { padding: 14px 24px; font-size: 15px; width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 20px 12px; }
}
/* ==========================================================================
   HALAL SUPERAPP - PREMIUM DESIGN SYSTEM (V2)
   Apple / Stripe Inspired Aesthetics 
   ========================================================================== */

:root {
    /* Fluid Color Palette */
    --primary: #10B981; /* Premium Emerald */
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    --bg-color: #FAFAF9; /* Soft Off-White */
    --surface: #FFFFFF;
    --text-main: #111827; /* Near Black */
    --text-muted: #6B7280;
    --border-color: rgba(17, 24, 39, 0.08);
    
    /* Premium Shadows (Multi-layered for 3D depth) */
    --shadow-sm: 0 2px 8px -2px rgba(17, 24, 39, 0.05), 0 1px 2px -1px rgba(17, 24, 39, 0.03);
    --shadow-md: 0 12px 24px -6px rgba(17, 24, 39, 0.06), 0 4px 12px -4px rgba(17, 24, 39, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(17, 24, 39, 0.08), 0 12px 24px -8px rgba(17, 24, 39, 0.04);
    
    /* Spring Transitions */
    --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* -- Typography & Smooth Scrolling -- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    letter-spacing: -0.015em;
}

/* -- Global Headings -- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.15;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* -- Navigation (True Glassmorphism) -- */
.site-header {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s var(--spring);
}
.site-header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul li a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}
.main-nav ul li a:hover, .main-nav ul li.current-menu-item a {
    color: var(--text-main);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.btn-download {
    background: var(--text-main);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s var(--spring);
    box-shadow: var(--shadow-md);
}
.btn-download:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: #000;
}

/* -- Hero Section (Mesh Background) -- */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.08), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08), transparent 25%);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right bottom, #111827, #4B5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

/* Spring-loaded Buttons */
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.4s var(--spring);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}
.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -5px rgba(16, 185, 129, 0.4);
    background: var(--primary-hover);
}

/* -- Floating Phone Mockup -- */
.phone-mockup {
    border-radius: 40px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-color);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s var(--spring);
}
.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

/* -- Premium Feature Cards -- */
.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.5s var(--spring);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Expanding Pill Icons */
.feature-icon, .value-icon, .biz-icon, .contact-card-icon, .stat-icon {
    min-width: 68px;
    height: 68px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 36px;
    margin-bottom: 1.5rem;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: transform 0.4s var(--spring);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}
.feature-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* -- Stats & Highlights -- */
.stats {
    background: var(--surface);
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

/* -- Final Call to Action -- */
.final-cta {
    background: var(--text-main);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    max-width: 1200px;
    width: 95%;
    box-shadow: var(--shadow-lg);
}
.final-cta .section-title { color: #fff; }
.final-cta .section-subtitle { color: rgba(255,255,255,0.7); }

/* -- Footer -- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* -- Utility & Animations -- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--spring);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Progress bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--primary), #3B82F6);
    z-index: 9999;
}

/* -- Mobile Optimization -- */
@media (max-width: 768px) {
    .site-header { padding: 1rem; }
    .hero { padding: 6rem 0 4rem; text-align: center; }
    .hero-title { background: none; -webkit-text-fill-color: initial; color: var(--text-main); }
    .hero-subtitle { margin: 0 auto 2rem auto; }
    .phone-mockup { transform: none !important; margin-top: 2rem; }
    
    .main-nav { display: none; /* Provide a hamburger toggle logic in JS */ }
}

