:root {
    --ink: #3a3228;
    --muted: #7a6d5b;
    --paper: #fdfbf7;
    --gold: #c9a227;
    --gold-deep: #a8861a;
    --gold-soft: #f7f0de;
    --stage: #2b2117;
    --stage-ink: #fffaf0;
    --stage-muted: #e9dcbc;
    --line: #e8dfd0;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ink);
    background: var(--paper);
}

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

.box {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.bot {
    width: 100%;
    position: relative;
    background: #fff;
    line-height: 0;
}

.bot .hero-bg {
    display: block;
    width: 100%;
    height: auto;
}

.bot .hero-bg--mobile {
    display: none;
}

.bot .btn1,
.bot .btn2,
.bot .btn3 {
    height: auto;
}

.bot .btn1 {
    width: 12vw;
    position: absolute;
    top: 20vw;
    left: 15vw;
    cursor: pointer;
}

.bot .btn2 {
    width: 12vw;
    position: absolute;
    top: 20vw;
    left: 29vw;
    cursor: pointer;
}

.bot .btn3 {
    width: 12vw;
    position: absolute;
    top: 20vw;
    left: 43vw;
    cursor: pointer;
}

.top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 88px;
    padding: 36px 24px;
    background: #fff;
    border-bottom: 1px solid #f0e9dc;
}

.nav-item {
    position: relative;
    padding: 8px 4px;
    font-size: 28px;
    font-weight: 600;
    color: #8a8178;
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--gold-deep);
}

.nav-item.is-active {
    color: var(--ink);
}

.nav-item.is-active:after {
    content: "";
    position: absolute;
    left: calc(50% - 12px);
    bottom: -4px;
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}

/* Community — Kabli stage layout */
.community {
    padding: 72px 28px 80px;
    background:
        radial-gradient(
            ellipse at 50% 0,
            rgba(201, 162, 39, 0.12),
            transparent 60%
        ),
        linear-gradient(180deg, #faf5ea 0%, var(--paper) 100%);
}

.container {
    max-width: 1160px;
    margin: auto;
}

.stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 72px 48px 68px;
    border-radius: 28px;
    text-align: center;
    color: var(--stage-ink);
    background:
        radial-gradient(
            ellipse 60% 80% at 50% -10%,
            rgba(232, 196, 92, 0.35),
            transparent 70%
        ),
        radial-gradient(
            ellipse 40% 60% at 100% 100%,
            rgba(201, 162, 39, 0.18),
            transparent 70%
        ),
        linear-gradient(160deg, #3d2f20 0%, var(--stage) 55%, #1f1810 100%);
    box-shadow: 0 24px 60px rgba(43, 33, 23, 0.18);
}

.stage:after {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: -1;
    border: 1px solid rgba(232, 196, 92, 0.22);
    border-radius: 20px;
    pointer-events: none;
}

.stage-mark {
    position: absolute;
    right: -20px;
    bottom: -70px;
    z-index: -1;
    font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", serif;
    font-size: 260px;
    line-height: 1;
    color: rgba(232, 196, 92, 0.08);
    pointer-events: none;
    user-select: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 26px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #e8c45c;
}

.eyebrow-line {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8c45c);
}

.eyebrow-line:last-child {
    background: linear-gradient(90deg, #e8c45c, transparent);
}

.stage h1 {
    margin: 0 0 24px;
    font-weight: 750;
}

.brand-name {
    display: block;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1.05;
    letter-spacing: -2px;
    background: linear-gradient(100deg, #fff4cf 0%, #e8c45c 55%, #c9a227 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-sep {
    margin: 0 0.08em;
    opacity: 0.7;
}

.brand-ar {
    font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", serif;
    letter-spacing: 0;
}

.brand-tagline {
    display: block;
    margin-top: 14px;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--stage-ink);
}

.intro-text {
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: var(--stage-muted);
}

.explore {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas:
        "head list"
        "signin list";
    grid-template-rows: auto 1fr;
    column-gap: 72px;
    row-gap: 32px;
    margin-top: 80px;
}

.explore-head {
    grid-area: head;
}

.explore-head h2 {
    font-size: 44px;
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.explore-head h2 span {
    color: var(--gold-deep);
}

.explore-head h2:after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 22px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), #e8c45c);
}

.features {
    grid-area: list;
    border-top: 1px solid var(--line);
}

.feature {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 48px;
    grid-template-areas:
        "num title icon"
        "num desc icon";
    column-gap: 20px;
    align-items: center;
    padding: 28px 12px 28px 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left 0.25s;
}

.feature:before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 28px;
    width: 3px;
    border-radius: 3px;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.25s;
}

.feature:hover {
    padding-left: 18px;
}

.feature:hover:before {
    opacity: 1;
}

.number {
    grid-area: num;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: transparent;
    -webkit-text-stroke: 1.2px var(--gold);
    font-variant-numeric: tabular-nums;
}

.icon-box {
    grid-area: icon;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 50%;
    color: var(--gold-deep);
    transition:
        background 0.25s,
        color 0.25s;
}

.feature:hover .icon-box {
    background: var(--gold);
    color: #fff;
}

.feature h3 {
    grid-area: title;
    align-self: end;
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.4px;
}

.feature p {
    grid-area: desc;
    align-self: start;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}

.signin {
    grid-area: signin;
    align-self: start;
    padding: 28px 26px 26px;
    border-radius: 22px;
    color: var(--stage-ink);
    background:
        radial-gradient(
            ellipse 80% 60% at 100% 0,
            rgba(232, 196, 92, 0.28),
            transparent 70%
        ),
        linear-gradient(160deg, #3d2f20 0%, var(--stage) 100%);
}

.google-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fff;
}

.signin h2 {
    margin: 0 0 10px;
    font-size: 18px;
    letter-spacing: -0.2px;
}

.signin p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--stage-muted);
}

.text-link {
    color: #e8c45c;
    text-decoration: underline;
    text-decoration-color: rgba(232, 196, 92, 0.5);
    text-underline-offset: 4px;
}

.text-link:hover {
    color: #fff4cf;
}

/* Footer */
.site-footer {
    padding: 32px 28px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.footer-top {
    max-width: 1160px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 26px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -1px;
    color: var(--ink);
}

.footer-dot {
    color: var(--gold);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
}

.footer-contact strong {
    font-size: 12px;
    font-weight: 600;
}

.footer-contact a {
    font-size: 12px;
    color: var(--muted);
}

.footer-contact a:hover {
    color: var(--gold-deep);
}

.footer-links {
    display: flex;
    gap: 25px;
    font-size: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: rgba(168, 134, 26, 0.4);
    text-underline-offset: 4px;
}

.footer-links a:hover {
    color: var(--gold-deep);
}

.copyright {
    max-width: 1160px;
    margin: auto;
    padding-top: 20px;
    border-top: 1px solid #f0e9dc;
    font-size: 10px;
    color: #8a7d6b;
    text-align: center;
    letter-spacing: 0.1px;
}

/* Shared toast (used by js/site.js) */
#site-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1000;
    max-width: min(90vw, 320px);
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(43, 33, 23, 0.92);
    color: var(--stage-ink);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

#site-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 1000px) {
    .explore {
        grid-template-columns: 240px minmax(0, 1fr);
        column-gap: 40px;
    }

    .explore-head h2 {
        font-size: 36px;
    }

    .feature {
        grid-template-columns: 72px minmax(0, 1fr) 44px;
    }

    .number {
        font-size: 44px;
    }
}

@media (max-width: 700px) {
    .bot .hero-bg--desktop {
        display: none;
    }

    .bot .hero-bg--mobile {
        display: block;
    }

    .top {
        gap: 28px;
        padding: 20px 16px;
    }

    .nav-item {
        font-size: 16px;
        white-space: nowrap;
    }

    .bot .btn1,
    .bot .btn2,
    .bot .btn3 {
        width: 40vw;
        left: 5vw;
    }

    .bot .btn1 {
        top: 60vw;
    }

    .bot .btn2 {
        top: 80vw;
    }

    .bot .btn3 {
        top: 100vw;
    }

    .community {
        padding: 36px 16px 48px;
    }

    .stage {
        padding: 48px 22px 44px;
        border-radius: 22px;
    }

    .stage:after {
        inset: 10px;
        border-radius: 16px;
    }

    .stage-mark {
        right: -10px;
        bottom: -40px;
        font-size: 150px;
    }

    .eyebrow {
        gap: 10px;
        margin-bottom: 20px;
        font-size: 10px;
        letter-spacing: 1.8px;
    }

    .eyebrow-line {
        width: 22px;
    }

    .brand-name {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .brand-tagline {
        margin-top: 10px;
        font-size: 19px;
    }

    .intro-text {
        font-size: 14px;
    }

    .explore {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "list"
            "signin";
        grid-template-rows: auto;
        row-gap: 24px;
        margin-top: 48px;
    }

    .explore-head h2 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .explore-head h2 br {
        display: none;
    }

    .explore-head h2:after {
        margin-top: 16px;
    }

    .feature {
        grid-template-columns: 52px minmax(0, 1fr) 38px;
        column-gap: 14px;
        padding: 22px 0;
    }

    .feature:hover {
        padding-left: 0;
    }

    .feature:hover:before {
        opacity: 0;
    }

    .number {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .icon-box {
        width: 38px;
        height: 38px;
    }

    .icon-box svg {
        width: 18px;
        height: 18px;
    }

    .feature h3 {
        font-size: 16px;
    }

    .feature p {
        font-size: 12px;
    }

    .signin {
        padding: 22px 20px;
        border-radius: 18px;
    }

    .google-mark {
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
    }

    .signin p {
        font-size: 12px;
    }

    .site-footer {
        padding: 28px 23px 22px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding-bottom: 22px;
    }

    .footer-brand {
        font-size: 22px;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        gap: 28px;
    }
}
