/* =====================================================================
   MOSLINK — Tovuti ya Umma (Public marketing site)
   Design system + components. Standalone, no external requests.
   Palette: Energetic & local — light base, orange primary, green accent.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Brand */
    --orange: #f97316;
    --orange-strong: #ea580c;
    --orange-soft: #fff1e8;
    --green: #22c55e;
    --green-strong: #16a34a;
    --green-soft: #e9f9ef;
    --ink: #0f172a;
    --navy: #0b1a2b;

    /* Neutrals */
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-soft: #eef2f7;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-soft: #475569;
    --white: #ffffff;

    /* Accents used sparingly */
    --blue: #2563eb;

    /* Typography */
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-orange: 0 12px 28px rgba(249, 115, 22, 0.28);

    /* Layout */
    --container: 1140px;
    --header-h: 72px;

    --focus: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

/* ---------- Self-hosted Inter (optional) ----------
   Drop Inter woff2 files in assets/fonts/ to enable. The @font-face
   below is commented out so the site renders instantly with the system
   stack and makes ZERO network requests until you add the files.

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/Inter-Variable.woff2") format("woff2");
}
------------------------------------------------------------------- */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.2;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.section {
    padding: var(--space-9) 0;
}
.section--tight { padding: var(--space-8) 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--navy); color: #cbd5e1; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head {
    max-width: 640px;
    margin: 0 auto var(--space-7);
    text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: var(--space-3) 0 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-strong);
    background: var(--orange-soft);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.text-green { color: var(--green-strong); }
.text-orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    padding: 15px 26px;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
        background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--orange);
    color: #fff;
    box-shadow: var(--shadow-orange);
}
.btn--primary:hover { background: var(--orange-strong); transform: translateY(-2px); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-alt); }

.btn--green {
    background: var(--green-strong);
    color: #fff;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.26);
}
.btn--green:hover { background: #128a3e; transform: translateY(-2px); }

.btn--light {
    background: #fff;
    color: var(--ink);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--block { width: 100%; }
.btn--sm { padding: 11px 18px; font-size: 0.92rem; }
.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--orange), var(--orange-strong));
    color: #fff;
    font-weight: 900;
    box-shadow: var(--shadow-orange);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.nav__links a {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-soft);
    padding: 6px 0;
    position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-9) 0 var(--space-8);
    background:
        radial-gradient(60% 80% at 85% 0%, rgba(249, 115, 22, 0.10), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(34, 197, 94, 0.10), transparent 55%),
        var(--bg);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-8);
    align-items: center;
}
.hero__title { margin-top: var(--space-4); }
.hero__title .hl {
    color: var(--orange);
    position: relative;
    white-space: nowrap;
}
.hero__lead {
    font-size: 1.2rem;
    color: var(--text-soft);
    margin: var(--space-5) 0 var(--space-6);
    max-width: 32ch;
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-7);
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
}
.trust-chip svg { width: 20px; height: 20px; color: var(--green-strong); flex-shrink: 0; }

/* Hero visual card */
.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
}
.hero-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
}
.hero-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}
.hero-card__wifi {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
}
.hero-card__wifi svg { width: 26px; height: 26px; color: var(--green-strong); }
.pill-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green-strong);
    background: var(--green-soft);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}
.pill-live .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-card__speed {
    text-align: center;
    padding: var(--space-4) 0;
}
.hero-card__speed .num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
}
.hero-card__speed .unit { color: var(--text-muted); font-weight: 600; }
.hero-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px dashed var(--border);
    font-size: 0.95rem;
}
.hero-card__row span:first-child { color: var(--text-muted); }
.hero-card__row span:last-child { font-weight: 700; color: var(--ink); }

/* ---------- Feature cards ---------- */
.grid {
    display: grid;
    gap: var(--space-5);
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: var(--space-4);
    background: var(--orange-soft);
    color: var(--orange-strong);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature__icon.is-green { background: var(--green-soft); color: var(--green-strong); }
.feature__icon.is-blue { background: #e8f0fe; color: var(--blue); }
.feature__icon.is-ink { background: var(--bg-soft); color: var(--ink); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* ---------- Pricing cards ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.is-popular {
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
}
.price-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-orange);
    white-space: nowrap;
}
.price-card__name {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}
.price-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: var(--space-3) 0 var(--space-2);
}
.price-card__price .cur { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); }
.price-card__price .amt { font-size: 2.6rem; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.price-card__dur {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--green-strong);
    background: var(--green-soft);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    align-self: flex-start;
}
.price-card__list {
    margin: var(--space-5) 0;
    display: grid;
    gap: 12px;
}
.price-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.95rem;
}
.price-card__list svg { width: 20px; height: 20px; color: var(--green-strong); flex-shrink: 0; margin-top: 1px; }
.price-card .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    padding-top: var(--space-7);
}
.step__num {
    position: absolute;
    top: -22px;
    left: var(--space-6);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-strong));
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: var(--shadow-orange);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- Coverage ---------- */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
}
.area {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text-soft);
}
.area svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    text-align: center;
}
.stat__num {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
}
.stat__num .text-orange { color: var(--orange); }
.stat__label { color: #94a3b8; font-weight: 600; font-size: 0.95rem; }

/* ---------- Testimonial ---------- */
.quote {
    max-width: 760px;
    margin: var(--space-7) auto 0;
    text-align: center;
}
.quote p {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.5;
}
.quote__who { color: var(--text-muted); font-weight: 600; }

/* ---------- Support / CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--orange), var(--orange-strong));
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 48ch; margin-inline: auto; }
.cta-band .btn-row {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    margin-bottom: var(--space-3);
    overflow: hidden;
}
.faq__q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
    padding: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    cursor: pointer;
}
.faq__q svg { width: 22px; height: 22px; color: var(--orange); transition: transform 0.2s ease; flex-shrink: 0; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.faq__a-inner { padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: #94a3b8;
    padding: var(--space-8) 0 var(--space-6);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--space-6);
}
.site-footer .brand { color: #fff; }
.site-footer h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; font-size: 0.95rem;
}
.footer-contact svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.footer-bottom {
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 0.9rem;
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    box-shadow: 0 -6px 24px rgba(15,23,42,0.08);
}
.mobile-cta .btn { flex: 1; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
    background:
        radial-gradient(50% 100% at 100% 0%, rgba(249,115,22,0.10), transparent 60%),
        var(--bg-alt);
    padding: var(--space-8) 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 52ch; margin: var(--space-4) auto 0; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.hide-mobile { display: initial; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 940px) {
    .hero__grid { grid-template-columns: 1fr; gap: var(--space-7); }
    .hero__visual { order: -1; }
    .hero__lead { max-width: none; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .nav__links,
    .nav .btn { display: none; }
    .nav-toggle { display: inline-flex; }

    /* Mobile drawer */
    .nav__links.is-open {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: var(--space-3) var(--space-5) var(--space-5);
    }
    .nav__links.is-open a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 1.05rem;
    }
    .nav__links.is-open .btn {
        display: inline-flex;
        margin-top: var(--space-4);
    }

    .section { padding: var(--space-8) 0; }
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { justify-content: center; text-align: center; }
    .cta-band { padding: var(--space-6); }

    .mobile-cta { display: flex; }
    body { padding-bottom: 76px; }
    .site-footer { padding-bottom: var(--space-8); }
}

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