
/* LahzaPay Design System — Craft-floor compliant */

:root {
    /* Palette: Restrained — dark neutrals + one blue accent */
    --ink: #0b1120;
    --surface: #111827;
    --surface-raised: #1a2332;
    --border: rgba(255,255,255,0.07);
    --border-accent: rgba(33,150,243,0.25);
    --blue: #2196F3;
    --blue-deep: #1565C0;
    --blue-light: #42A5F5;
    --white: #f1f5f9;
    --white-2: rgba(241,245,249,0.6);
    --white-3: rgba(241,245,249,0.35);
    --green: #22c55e;
    --red: #ef4444;
    --vodafone: #e60000;
    --orange: #ff6600;
    --etisalat: #009639;
    --we: #003580;
    --r: 12px;
    --r-lg: 16px;
    --ease: cubic-bezier(0.4,0,0.2,1);
}

/* Reset */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family: 'Cairo', sans-serif;
    background: var(--ink);
    color: var(--white);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
/* Subtle radial atmosphere — not decoration, scene-setting */
body::before {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 50% 40% at 15% 5%, rgba(33,150,243,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 85% 90%, rgba(33,150,243,0.035) 0%, transparent 50%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Skip link */
.skip-link {
    position: absolute; top: -100%; left: 16px; z-index: 9999;
    background: var(--blue); color: #fff; padding: 8px 16px;
    border-radius: 0 0 8px 8px; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px; border-radius: 999px; font-weight: 700;
    font-size: 1rem; border: none; cursor: pointer;
    transition: all 0.25s var(--ease); text-decoration: none;
    font-family: inherit;
}
.btn .material-symbols-rounded { font-size: 20px; }
.btn-primary {
    background: var(--blue); color: #fff;
    box-shadow: 0 2px 8px rgba(33,150,243,0.3), 0 1px 2px rgba(0,0,0,0.2);
}
.btn-primary:hover {
    background: var(--blue-deep);
    box-shadow: 0 4px 16px rgba(33,150,243,0.35), 0 2px 4px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent; color: var(--blue-light);
    border: 1.5px solid rgba(33,150,243,0.3);
}
.btn-outline:hover {
    background: rgba(33,150,243,0.08);
    border-color: var(--blue);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-xl { padding: 18px 44px; font-size: 1.1rem; }

/* ── Container ───────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(11,17,32,0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1100px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid rgba(33,150,243,0.2);
    transition: transform 0.2s var(--ease);
}
.logo-link:hover .logo-img { transform: scale(1.05); }
.logo-text { font-size: 1.2rem; font-weight: 800; }
.logo-hl { color: var(--blue); }
.nav-desktop { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 18px; border-radius: 999px; font-weight: 600;
    font-size: 0.9rem; color: var(--white-2); transition: all 0.2s var(--ease);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-link--cta { color: var(--blue-light); }
.nav-link--cta:hover { background: rgba(33,150,243,0.08); }

/* ════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════ */
.hero {
    min-height: calc(100vh - 72px); display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 80px 24px 48px;
}
.hero-inner { max-width: 660px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245,158,11,0.1); color: #f59e0b;
    padding: 6px 16px; border-radius: 999px; font-size: 0.85rem;
    font-weight: 600; margin-bottom: 28px; border: 1px solid rgba(245,158,11,0.15);
}
.hero-eyebrow .material-symbols-rounded { font-size: 18px; }
.hero-title {
    font-size: 2.8rem; font-weight: 800; line-height: 1.25;
    margin-bottom: 16px; letter-spacing: -0.02em;
}
.hero-title em {
    font-style: normal; color: var(--blue);
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--white-2); margin-bottom: 36px;
    line-height: 1.8; max-width: 520px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section-title {
    font-size: 1.9rem; font-weight: 800; text-align: center; margin-bottom: 8px;
}
.section-desc {
    text-align: center; color: var(--white-2); font-size: 1rem;
    max-width: 480px; margin: 0 auto 40px;
}

/* ════════════════════════════════════════════════════════════════════
   FEATURE CARDS
   ════════════════════════════════════════════════════════════════════ */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 20px;
}
.card {
    background: var(--surface); padding: 28px 24px; border-radius: var(--r-lg);
    text-align: center; transition: all 0.25s var(--ease);
    border: 1px solid var(--border); position: relative;
}
/* Top accent line on hover — subtle, not decoration */
.card::after {
    content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
    background: var(--blue); border-radius: 0 0 2px 2px;
    opacity: 0; transition: opacity 0.25s;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 1px rgba(33,150,243,0.08);
}
.card:hover::after { opacity: 1; }
.card-icon {
    width: 48px; height: 48px; margin: 0 auto 16px; display: flex;
    align-items: center; justify-content: center; border-radius: 12px;
    background: rgba(33,150,243,0.1); color: var(--blue);
}
.card-icon .material-symbols-rounded { font-size: 24px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card-text { color: var(--white-2); font-size: 0.9rem; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════════════
   WALLET CARDS
   ════════════════════════════════════════════════════════════════════ */
.wallet-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 16px; margin-bottom: 20px;
}
.wallet {
    padding: 22px; border-radius: var(--r); text-align: center;
    font-weight: 700; font-size: 0.95rem; transition: all 0.25s var(--ease);
    border: 1px solid var(--border); background: var(--surface);
}
.wallet:hover { transform: translateY(-2px); border-color: var(--border-accent); }
.wallet--vf { color: var(--vodafone); }
.wallet--or { color: var(--orange); }
.wallet--et { color: var(--etisalat); }
.wallet--we { color: var(--we); }
.wallet-note { text-align: center; color: var(--white-3); font-size: 0.85rem; }

/* ════════════════════════════════════════════════════════════════════
   STEPS
   ════════════════════════════════════════════════════════════════════ */
.step-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
}
.step {
    text-align: center; padding: 32px 20px; background: var(--surface);
    border-radius: var(--r-lg); border: 1px solid var(--border);
    transition: all 0.25s var(--ease);
}
.step:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.step-num {
    width: 44px; height: 44px; margin: 0 auto 14px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    background: var(--blue); color: #fff; font-size: 1.15rem; font-weight: 800;
    box-shadow: 0 2px 8px rgba(33,150,243,0.25);
}
.step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step-text { color: var(--white-2); font-size: 0.9rem; }

/* ════════════════════════════════════════════════════════════════════
   CTA BOX
   ════════════════════════════════════════════════════════════════════ */
.cta-box {
    text-align: center; padding: 56px 24px; margin-top: 56px;
    background: rgba(33,150,243,0.06); border: 1px solid rgba(33,150,243,0.1);
    border-radius: var(--r-lg);
}
.cta-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.cta-text { color: var(--white-2); margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════════════
   APP PAGE
   ════════════════════════════════════════════════════════════════════ */
.app-hero {
    min-height: calc(100vh - 72px); display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 80px 24px;
}
.app-inner { max-width: 520px; }
.app-title { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.app-subtitle { color: var(--white-2); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.8; }
.app-buttons { display: flex; flex-direction: column; gap: 14px; max-width: 340px; margin: 0 auto 36px; }
.app-store-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 16px 24px; border-radius: var(--r-lg); font-weight: 700; font-size: 1rem;
    transition: all 0.25s var(--ease); border: 1px solid var(--border);
    background: var(--surface); color: var(--white);
}
.app-store-btn:hover {
    transform: translateY(-2px); border-color: var(--border-accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.app-store-btn .material-symbols-rounded { font-size: 26px; }
.app-store-btn small { display: block; font-size: 0.75rem; color: var(--white-3); font-weight: 500; margin-top: 2px; }
.app-features { text-align: right; margin-top: 28px; }
.app-features h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.app-features li {
    color: var(--white-2); padding: 5px 0; display: flex;
    align-items: center; gap: 8px; font-size: 0.9rem;
}
.app-features li .material-symbols-rounded { color: var(--green); font-size: 18px; }
.app-note { margin-top: 20px; color: var(--white-3); font-size: 0.8rem; }

/* ════════════════════════════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════════════════════════════ */
.contact-hero {
    min-height: calc(100vh - 72px); display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 80px 24px;
}
.contact-methods {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 16px; max-width: 680px; margin: 28px auto;
}
.contact-card {
    background: var(--surface); padding: 28px 20px; border-radius: var(--r-lg);
    text-align: center; border: 1px solid var(--border); transition: all 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--border-accent); }
.contact-card-icon {
    width: 48px; height: 48px; margin: 0 auto 12px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
}
.contact-card-icon .material-symbols-rounded { font-size: 24px; }
.contact-card-icon--phone { background: var(--blue); color: #fff; }
.contact-card-icon--wa { background: rgba(34,197,94,0.12); color: var(--green); }
.contact-card-icon--fb { background: rgba(66,103,178,0.12); color: #4267B2; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.contact-card p { color: var(--white-2); font-size: 0.85rem; margin-bottom: 10px; }
.contact-card a { color: var(--blue); font-weight: 600; font-size: 0.9rem; }
.contact-card a:hover { color: var(--blue-deep); }

.info-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 14px; max-width: 720px; margin: 36px auto 0;
}
.info-item {
    background: var(--surface); padding: 20px; border-radius: var(--r);
    text-align: center; border: 1px solid var(--border);
}
.info-item .material-symbols-rounded { font-size: 24px; color: var(--blue); margin-bottom: 6px; display: block; }
.info-item h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.info-item p { color: var(--white-2); font-size: 0.8rem; }

/* ════════════════════════════════════════════════════════════════════
   INSTRUCTIONS PAGE
   ════════════════════════════════════════════════════════════════════ */
.page-header { text-align: center; padding: 100px 24px 40px; }
.page-title { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.page-subtitle { color: var(--white-2); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.service-list { display: flex; flex-direction: column; gap: 10px; max-width: 580px; margin: 0 auto 48px; }
.service-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--surface); border-radius: var(--r);
    border: 1px solid var(--border); transition: all 0.2s var(--ease);
    font-size: 0.9rem;
}
.service-row:hover { border-color: var(--border-accent); background: var(--surface-raised); }
.service-row .material-symbols-rounded {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--blue); color: #fff; font-size: 18px; flex-shrink: 0;
}

/* FAQ */
.faq { max-width: 660px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; padding: 16px 0; background: none; border: none; color: var(--white);
    font-size: 0.95rem; font-weight: 600; text-align: right; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-family: inherit;
}
.faq-q .material-symbols-rounded { color: var(--blue); font-size: 20px; transition: transform 0.2s; }
.faq-item.open .faq-q .material-symbols-rounded { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 0 16px; color: var(--white-2); font-size: 0.9rem; line-height: 1.8; }

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */
.footer {
    position: relative; z-index: 1; background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border); padding: 44px 24px 20px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.footer-logo { width: 32px; height: 32px; border-radius: 50%; }
.footer-brand-name { font-weight: 800; font-size: 1rem; }
.footer-tag { color: var(--white-3); font-size: 0.85rem; }
.footer-heading { font-size: 0.8rem; font-weight: 700; color: var(--white-3); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links nav { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--white-2); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }
.footer-contact .phone-link { color: var(--white); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.footer-contact .phone-link:hover { color: var(--blue); }
.social-row { display: flex; gap: 8px; }
.social-icon {
    width: 36px; height: 36px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.2s var(--ease); border: 1px solid var(--border);
    background: var(--surface); color: var(--white-2);
}
.social-icon:hover { transform: translateY(-1px); color: var(--white); border-color: var(--border-accent); }
.social-icon .material-symbols-rounded { font-size: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 14px; text-align: center; }
.copyright { color: var(--white-3); font-size: 0.8rem; }

/* ════════════════════════════════════════════════════════════════════
   MOBILE NAV
   ════════════════════════════════════════════════════════════════════ */
.mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: rgba(11,17,32,0.94); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.mobile-nav-inner { max-width: 400px; margin: 0 auto; display: flex; justify-content: space-around; }
.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 10px; color: var(--white-3); font-size: 0.65rem; font-weight: 600;
    text-decoration: none; transition: color 0.2s; border-radius: 10px;
    position: relative; min-width: 52px;
}
.mobile-nav-item .material-symbols-rounded { font-size: 20px; }
.mobile-nav-item:hover { color: var(--blue-light); }
.mobile-nav-item.active { color: var(--blue); }
.mobile-nav-item.active::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 2.5px; background: var(--blue); border-radius: 99px;
}

/* ════════════════════════════════════════════════════════════════════
   ERROR PAGE
   ════════════════════════════════════════════════════════════════════ */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-inner { max-width: 380px; }
.error-inner .material-symbols-rounded { font-size: 52px; color: var(--blue); opacity: 0.5; margin-bottom: 12px; }
.error-code { font-size: 4.5rem; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.error-text { color: var(--white-2); font-size: 1rem; margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-nav { display: block; }
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section { padding: 56px 0; }
    .section-title { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .app-title { font-size: 1.9rem; }
    .page-title { font-size: 1.9rem; }
    body { padding-bottom: 64px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .card-grid { grid-template-columns: 1fr; }
    .wallet-grid { grid-template-columns: repeat(2, 1fr); }
    .step-grid { grid-template-columns: 1fr; }
    .btn-lg, .btn-xl { padding: 14px 28px; font-size: 0.95rem; }
}
