@font-face {
    font-family: Vazirmatn;
    font-style: normal;
    font-weight: bold;
    src: url("../fonts/Vazir-Bold-FD.woff") format("woff"), url("../fonts/Vazir-Bold-FD.woff2") format("woff2");
}

@font-face {
    font-family: Vazirmatn;
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/Vazir-Medium-FD.woff") format("woff"), url("../fonts/Vazir-Medium-FD.woff2") format("woff2");
}

@font-face {
    font-family: Vazirmatn;
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/Vazir-Light-FD.woff") format("woff"), url("../fonts/Vazir-Light-FD.woff2") format("woff2");
}

@font-face {
    font-family: Vazirmatn;
    font-style: normal;
    font-weight: 200;
    src: url("../fonts/Vazir-Thin-FD.woff") format("woff"), url("../fonts/Vazir-Thin-FD.woff2") format("woff2");
}

@font-face {
    font-family: Vazirmatn;
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/Vazir-Regular-FD.woff") format("woff"), url("../fonts/Vazir-Regular-FD.woff2") format("woff2");
}

@font-face {
    font-family: 'Reem Kufi';
    src: url('../fonts/ReemKufiFun-Bold.woff2') format('woff2'), url('../fonts/ReemKufiFun-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Reem Kufi';
    src: url('../fonts/ReemKufiFun-Medium.woff2') format('woff2'), url('../fonts/ReemKufiFun-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Reem Kufi';
    src: url('../fonts/ReemKufiFun-Regular.woff2') format('woff2'), url('../fonts/ReemKufiFun-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Reem Kufi';
    src: url('../fonts/ReemKufiFun-SemiBold.woff2') format('woff2'), url('../fonts/ReemKufiFun-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0F2E36;
    --bg-deep: #0A2129;
    --cream: #F4EFE1;
    --cream-soft: rgba(244, 239, 225, .72);
    --turquoise: #39B8AC;
    --turquoise-bright: #5FD6C9;
    --turquoise-soft: rgba(57, 184, 172, .28);
    --gold: #D8A857;
    --nav-h: 84px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 50% -10%, rgba(57, 184, 172, .12), transparent 60%), linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    color: var(--cream);
    font-family: 'Vazirmatn', sans-serif;
}

a {
    color: inherit;
}


/* ---------- NAV ---------- */

.nav {
    position: relative;
    height: var(--nav-h);
    flex-shrink: 0;
}

.logo {
    position: absolute;
    right: clamp(20px, 5vw, 64px);
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: .3px;
}

.logo .num {
    color: var(--gold);
}

.auth-btn {
    position: absolute;
    left: clamp(20px, 5vw, 64px);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    padding: 10px 26px;
    border: 1.5px solid var(--turquoise);
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    background: transparent;
    transition: background .25s ease, border-color .25s ease;
}

.auth-btn:hover {
    background: rgba(57, 184, 172, .14);
    border-color: var(--turquoise-bright);
}

.auth-btn:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
}


/* ---------- HERO ---------- */

.hero {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(36px, 6vh, 64px);
    padding: 48px 24px 64px;
    overflow: hidden;
}

.hero-row {
    direction: ltr;
    width: 100%;
    max-width: var(--container);
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr minmax(200px, 280px);
    align-items: center;
    gap: 32px;
}

.features {
    grid-column: 1;
    justify-self: start;
}

.features .eyebrow {
    display: block;
    margin: 0 0 18px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--turquoise);
    letter-spacing: .5px;
}

.features ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--cream-soft);
}

.features .icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.3px solid var(--turquoise-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--turquoise);
}

.features .icon svg {
    width: 16px;
    height: 16px;
}

.hero-center {
    grid-column: 2;
    justify-self: center;
    position: relative;
    text-align: center;
    max-width: 640px;
}

.motif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 560px);
    height: min(90vw, 560px);
    z-index: 0;
    pointer-events: none;
}

.motif .ring {
    fill: none;
    stroke: var(--turquoise);
    stroke-width: 1.4;
}

.motif .ring-outer {
    stroke-opacity: .16;
}

.motif .square {
    stroke-opacity: .22;
}

.motif .core {
    fill: none;
    stroke: var(--gold);
    stroke-opacity: .4;
    stroke-width: 1.8;
}

.motif .points circle {
    fill: var(--gold);
    fill-opacity: .55;
}

.hero-center h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 'Reem Kufi', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 6.4rem);
    line-height: 1;
    letter-spacing: 1px;
}

.hero-center h1 .num {
    color: var(--gold);
}

.tagline {
    position: relative;
    z-index: 1;
    margin: 22px 0 0;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: var(--cream-soft);
}

.cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 52px;
    background: var(--gold);
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 34px rgba(216, 168, 87, .28);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(216, 168, 87, .4);
    filter: brightness(1.05);
}

.cta:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 4px;
}


/* entrance */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo,
.auth-btn,
.features,
.hero-center h1,
.tagline,
.cta {
    animation: rise .8s ease both;
}

.logo {
    animation-delay: .05s;
}

.auth-btn {
    animation-delay: .1s;
}

.hero-center h1 {
    animation-delay: .15s;
}

.tagline {
    animation-delay: .3s;
}

.features {
    animation-delay: .35s;
}

.cta {
    animation-delay: .5s;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo,
    .auth-btn,
    .features,
    .hero-center h1,
    .tagline,
    .cta,
    .motif {
        animation: none;
    }
}


/* ---------- RESPONSIVE ---------- */

@media (max-width:860px) {
    .nav {
        height: 64px;
    }
    .nav .logo {
        right: 20px;
        font-size: 1.15rem;
    }
    .nav .auth-btn {
        left: 20px;
        padding: 8px 20px;
        font-size: .85rem;
    }
    .hero-row {
        grid-template-columns: 1fr;
        row-gap: 44px;
    }
    .features {
        grid-column: 1;
        justify-self: center;
    }
    .features ul {
        align-items: center;
    }
    .features .eyebrow {
        text-align: center;
    }
    .hero-center {
        grid-column: 1;
        justify-self: center;
    }
    .features {
        display: none;
    }
}

@media (max-width:420px) {
    .cta {
        padding: 15px 38px;
        font-size: .95rem;
    }
}