/* e-Infaq landing page. Self-contained: no CDN, no framework. */

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --ink-900: #0f172a;
    --ink-600: #475569;
    --ink-500: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --bg: #f8fafc;
    --radius: 1rem;
    --radius-lg: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md: 0 12px 28px -10px rgba(15, 23, 42, .22);
    --nav-h: 4rem;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink-900);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: .5rem; }

.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }

/* Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-nav__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); }
.site-nav__logo { display: inline-flex; align-items: center; }
.site-nav__logo img { height: 2.25rem; width: auto; }
.site-nav__links { display: none; gap: .25rem; }
.nav-link {
    padding: .5rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    color: var(--ink-600);
    transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--blue-50); color: var(--blue-700); }
.site-nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: .75rem;
    background: transparent;
    color: var(--ink-900);
    cursor: pointer;
}
.site-nav__toggle:hover { background: var(--blue-50); }
.site-nav__toggle svg { width: 1.5rem; height: 1.5rem; }
.site-nav__menu { display: none; padding-bottom: 1rem; }
.site-nav__menu.is-open { display: grid; gap: .25rem; }
.site-nav__menu .nav-link { padding: .75rem 1rem; border-radius: .75rem; }
@media (min-width: 768px) {
    .site-nav__links { display: flex; }
    .site-nav__toggle, .site-nav__menu, .site-nav__menu.is-open { display: none; }
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 8.5rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 38%, #0f766e 78%, #15803d 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before {
    width: 32rem; height: 32rem; top: -14rem; left: -10rem;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
}
.hero::after {
    width: 28rem; height: 28rem; bottom: -12rem; right: -8rem;
    background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%);
}
.hero__inner { position: relative; z-index: 1; max-width: 52rem; margin-inline: auto; }
.nowrap { white-space: nowrap; }
.hero h1 {
    margin-bottom: 1.25rem;
    text-wrap: balance;
    font-size: clamp(2.1rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
}
.hero p {
    max-width: 42rem;
    margin: 0 auto 2rem;
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    color: rgba(255, 255, 255, .95);
}
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: 4.5rem; fill: var(--bg); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.9rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 1.2rem; height: 1.2rem; }
.btn--light { background: #fff; color: var(--blue-700); box-shadow: 0 10px 25px -10px rgba(0, 0, 0, .45); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }
.btn--light:active { transform: translateY(0); background: var(--blue-50); }

/* Stats */
.stats { position: relative; z-index: 2; margin-top: -5.75rem; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 40rem; margin-inline: auto; }
.stat {
    position: relative;
    padding: 1.75rem 1rem 1.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.stat::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 3rem;
    height: 4px;
    border-radius: 0 0 4px 4px;
    transform: translateX(-50%);
}
.stat--blue::before { background: var(--blue-600); }
.stat--green::before { background: var(--green-500); }
.stat__value {
    min-height: 1.1em;
    margin-bottom: .4rem;
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.stat--blue .stat__value { color: var(--blue-600); }
.stat--green .stat__value { color: var(--green-600); }
.stat__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.skeleton {
    display: inline-block;
    width: 4rem;
    height: 2rem;
    border-radius: .5rem;
    background: var(--blue-100);
    animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

/* Sections */
.section { padding: 4.5rem 0; scroll-margin-top: var(--nav-h); }
.section--white { background: var(--surface); }
.section__head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section__title { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
.section__title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    margin: .9rem auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue-600), var(--green-500));
}
.section__lead { margin-top: 1.1rem; font-size: 1.05rem; color: var(--ink-600); }

/* Features */
.features { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.feature {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.feature__icon {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 1rem;
    border-radius: .85rem;
    background: var(--blue-50);
    color: var(--blue-600);
}
.feature__icon svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { margin-bottom: .4rem; font-size: 1.1rem; font-weight: 700; }
.feature p { color: var(--ink-600); }
.feature .feature__price { font-size: 1.25rem; font-weight: 800; color: var(--blue-700); }
.feature .feature__note { margin-top: .6rem; font-size: .78rem; font-style: italic; color: var(--ink-500); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 560px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .partners { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; } }
.partner {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    padding: .9rem;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.partner img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.partner img.rounded-full { border-radius: 9999px; }
.partner:hover, .partner:focus-visible { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.partner:hover img, .partner:focus-visible img { transform: scale(1.05); }
.partner__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem .6rem .55rem;
    font-size: .7rem;
    line-height: 1.3;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(15, 23, 42, .92), rgba(15, 23, 42, 0));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
}
.partner__caption strong { display: block; font-weight: 700; }
.partner:hover .partner__caption, .partner:focus-visible .partner__caption { opacity: 1; transform: none; }

/* Footer */
.site-footer { padding: 2.25rem 0; color: #cbd5e1; background: var(--ink-900); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    font-size: .9rem;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    transition: background .2s;
}
.chip:hover { background: rgba(255, 255, 255, .18); }
.chip svg { width: 1.1rem; height: 1.1rem; }
.chip--whatsapp svg { color: #4ade80; }
.site-footer__credit a { font-weight: 700; color: #fff; }
.site-footer__credit a:hover { text-decoration: underline; }
@media (min-width: 900px) {
    .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Small screens */
@media (max-width: 420px) {
    .hero { padding-top: 3.25rem; }
    .stats__grid { gap: .75rem; }
    .stat { padding: 1.25rem .6rem; }
    .section { padding: 3.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
