/**
 * GLAX-style mobile homepage
 * Top-right organic waves · moon straddling white/waves · designed plan cards
 */

:root {
    --gx-ink: #14102e;
    --gx-ink-soft: #4a4668;
    --gx-bg: #f3eefc;
    --gx-bg-soft: #ebe4f8;
    --gx-surface: #faf8ff;
    --gx-purple-deep: #1e0a45;
    --gx-purple: #3f21b5;
    --gx-purple-mid: #5b3fe8;
    --gx-blue: #5e72e4;
    --gx-blue-light: #8aa4ff;
    --gx-moon-a: #ffe14a;
    --gx-moon-b: #f7971e;
    --gx-shadow: 0 16px 36px rgba(30, 10, 69, 0.12);
    --gx-shell: 430px;
    --gx-font: "Manrope", sans-serif;
    --gx-urdu: "Noto Nastaliq Urdu", serif;
}

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

html {
    scroll-behavior: smooth;
    margin: 0;
    background: #e4dcf5;
}

body.gx-app {
    margin: 0;
    font-family: var(--gx-font);
    color: var(--gx-ink);
    background: #e4dcf5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.gx-shell {
    position: relative;
    width: 100%;
    max-width: var(--gx-shell);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--gx-bg);
    box-shadow: 0 0 0 1px rgba(30, 10, 69, 0.06), 0 28px 70px rgba(30, 10, 69, 0.14);
    overflow: hidden;
}

/* ─── Nav ─── */
.gx-nav {
    position: relative;
    z-index: 30;
    padding: max(16px, env(safe-area-inset-top)) 20px 6px;
}

.gx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gx-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 8px 18px rgba(30, 10, 69, 0.1);
    flex-shrink: 0;
}

.gx-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-brand__fallback {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gx-purple);
}

.gx-brand__name {
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gx-ink);
}

/* ─── Hero ─── */
.gx-hero {
    position: relative;
    z-index: 5;
    min-height: auto;
    padding: 8px 18px 12px;
    overflow: hidden;
}

.gx-hero__copy {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: none;
    padding-top: 8px;
    text-align: center;
}

.gx-eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6a6688;
}

.gx-title {
    margin: 0;
    font-size: clamp(1.7rem, 7.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #100c28;
}

/* Urdu — full width blue glass, centered */
.gx-urdu {
    margin-top: 16px;
    width: 100%;
    background: rgba(49, 46, 129, 0.22);
    border: 1px solid rgba(34, 197, 94, 0.85);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(94, 114, 228, 0.12);
}

.gx-urdu p {
    margin: 0;
    font-family: var(--gx-urdu);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 2.15;
    color: #1e1b4b;
    text-align: center;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 2px rgba(255, 255, 255, 0.9),
        1px 1px 0 rgba(255, 255, 255, 0.75),
        -1px -1px 0 rgba(255, 255, 255, 0.75);
}

.gx-urdu__halal {
    display: block;
    margin: 12px 0 0;
    font-family: var(--gx-urdu);
    font-size: 0.9rem;
    font-weight: 700;
    color: #16a34a;
    text-align: center;
}

.gx-cta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0;
    width: max-content;
}

.gx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--gx-font);
    font-size: 0.92rem;
    font-weight: 800;
    transition: transform 0.18s ease;
    white-space: nowrap;
}

.gx-btn:active { transform: scale(0.97); }

.gx-btn--ghost {
    min-width: 108px;
    background: #fff;
    color: #100c28;
    box-shadow: 0 0 0 1px rgba(94, 114, 228, 0.14), 0 12px 26px rgba(30, 10, 69, 0.12);
}

.gx-btn--primary {
    min-width: 120px;
    color: #fff;
    background: linear-gradient(135deg, #5b4cdb 0%, #7b5cff 55%, #5e72e4 100%);
    box-shadow: 0 14px 28px rgba(91, 76, 219, 0.38);
}

/* ─── Static waves — top-right only (~40vh) ─── */
.gx-waves {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 40vh;
    max-height: 280px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.gx-blob {
    position: absolute;
    display: block;
}

.gx-blob--a {
    top: -20%;
    right: -10%;
    width: 95%;
    height: 85%;
    border-radius: 62% 38% 48% 52% / 42% 58% 42% 58%;
    background: linear-gradient(145deg, #ddd6fe 0%, #a78bfa 45%, #7c3aed 100%);
    opacity: 0.55;
    box-shadow: -18px 22px 50px rgba(76, 29, 149, 0.18);
}

.gx-blob--b {
    top: -8%;
    right: -18%;
    width: 100%;
    height: 95%;
    border-radius: 58% 42% 55% 45% / 48% 52% 38% 62%;
    background: linear-gradient(160deg, #c4b5fd 0%, #8b5cf6 42%, #5b21b6 100%);
    box-shadow: -22px 28px 55px rgba(76, 29, 149, 0.28);
}

.gx-blob--c {
    top: 8%;
    right: -22%;
    width: 92%;
    height: 90%;
    border-radius: 52% 48% 42% 58% / 55% 40% 60% 45%;
    background: linear-gradient(170deg, #a78bfa 0%, #6d28d9 50%, #4c1d95 100%);
    box-shadow: -16px 20px 40px rgba(46, 16, 101, 0.3);
}

.gx-blob--d {
    top: 22%;
    right: -26%;
    width: 85%;
    height: 88%;
    border-radius: 48% 52% 38% 62% / 50% 45% 55% 50%;
    background: linear-gradient(175deg, #7c3aed 0%, #4c1d95 55%, #2e1065 100%);
    box-shadow: -12px 16px 32px rgba(30, 10, 69, 0.35);
}

/* ─── Plans ─── */
.gx-plans {
    position: relative;
    z-index: 8;
    padding: 8px 18px 24px;
    background: linear-gradient(180deg, var(--gx-bg) 0%, var(--gx-bg-soft) 40%, #e4dcf5 100%);
}

.gx-plans__head {
    text-align: center;
    margin-bottom: 12px;
}

.gx-plans__head h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #100c28;
    letter-spacing: -0.02em;
}

.gx-plan-grid {
    display: grid;
    gap: 16px;
}

.gx-plan {
    background: var(--gx-surface);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--gx-shadow);
}

.gx-plan__scene {
    position: relative;
    height: 168px;
    background: #f3eefc;
    overflow: hidden;
}

.gx-plan__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.gx-plan__badge {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 4;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #100c28;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(30, 10, 69, 0.12);
}

.gx-plan__body {
    padding: 14px 16px 16px;
}

.gx-plan__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(30, 10, 69, 0.06);
    font-size: 0.9rem;
}

.gx-plan__row:last-of-type { border-bottom: 0; }

.gx-plan__row span {
    color: #5a5678;
    font-weight: 600;
}

.gx-plan__row strong {
    color: #100c28;
    font-weight: 800;
}

.gx-plan__link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    min-height: 44px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #5b4cdb, #7b5cff);
    box-shadow: 0 10px 20px rgba(91, 76, 219, 0.3);
}

.gx-empty {
    padding: 24px;
    text-align: center;
    color: #5a5678;
    background: var(--gx-surface);
    border-radius: 20px;
    font-weight: 600;
}

.gx-footer {
    padding: 10px 20px max(24px, env(safe-area-inset-bottom));
    text-align: center;
    background: #e4dcf5;
}

.gx-footer p {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6a6688;
}

@media (max-width: 360px) {
    .gx-brand__name { font-size: 0.66rem; }
    .gx-waves { width: 62%; max-height: 240px; }
}

@media (min-width: 431px) {
    body.gx-app { padding: 24px 0; }
    .gx-shell {
        border-radius: 28px;
        min-height: calc(100dvh - 48px);
    }
}
