:root {
    --navy: #020c28;
    --navy-deep: #010921;
    --white: #f8f9ff;
    --muted: #a9afc0;
    --blue: #1879ee;
    --cyan: #0ca8f4;
    --line: rgba(113, 149, 226, .22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--white);
    background: var(--navy-deep);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: relative;
    z-index: 20;
    height: 116px;
    background: rgba(2, 12, 40, .96);
    border-bottom: 1px solid rgba(106, 139, 208, .18);
}

.header-shell {
    height: 100%;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 184px 1fr 250px;
    align-items: center;
}

.brand {
    justify-self: end;
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 138px;
    height: auto;
}

.main-nav {
    justify-self: center;
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(42px, 4.35vw, 73px);
}

.main-nav a {
    position: relative;
    padding: 45px 0 39px;
    color: rgba(255,255,255,.9);
    font-size: 17px;
    font-weight: 400;
    white-space: nowrap;
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fff;
}

.main-nav a.is-active::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 29px;
    width: 8px;
    height: 8px;
    background: #176cef;
    border-radius: 50%;
    transform: translateX(50%);
    box-shadow: 0 0 16px rgba(23,108,239,.85);
}

.header-action {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 49px;
    direction: ltr;
}

.action-divider {
    width: 1px;
    height: 37px;
    background: rgba(161, 177, 216, .35);
}

.consult-link {
    direction: rtl;
    width: 201px;
    height: 59px;
    border: 1px solid rgba(93, 133, 242, .85);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 17px;
    font-weight: 500;
    transition: background .2s ease, transform .2s ease;
}

.consult-link:hover {
    background: rgba(21, 87, 221, .12);
    transform: translateY(-1px);
}

.consult-link svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: calc(100vh - 116px);
    height: 825px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 67% 38%, rgba(4, 38, 98, .15), transparent 37%),
        linear-gradient(111deg, #020d2e 0%, #020c29 53%, #010923 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 86% 37%, rgba(12, 58, 141, .13) 0 1px, transparent 2px),
        radial-gradient(circle at 92% 17%, rgba(74, 143, 255, .7) 0 1px, transparent 2px);
    background-size: 100% 100%, 100% 100%;
}

.hero-orbit {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(25, 97, 208, .18);
    border-radius: 50%;
}

.hero-orbit-one {
    width: 980px;
    height: 285px;
    right: 375px;
    bottom: -235px;
    transform: rotate(-4deg);
}

.hero-orbit-two {
    width: 1260px;
    height: 365px;
    right: 245px;
    bottom: -325px;
    border-color: rgba(25, 97, 208, .11);
}

.hero-shell {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 900px;
    direction: rtl;
}

.hero-copy {
    position: relative;
    z-index: 3;
    min-width: 0;
    width: 638px;
    justify-self: center;
    align-self: start;
    padding-top: 104px;
    text-align: right;
}

.eyebrow {
    width: max-content;
    min-width: 339px;
    height: 50px;
    margin-right: auto;
    border: 1px solid rgba(78, 121, 211, .24);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 20px;
    color: #c4c9d8;
    font-size: 17px;
    font-weight: 300;
    white-space: nowrap;
}

.eyebrow svg {
    width: 18px;
    fill: rgba(101, 180, 255, .22);
    stroke: #66aefa;
    stroke-width: 1.5;
}

.eyebrow i {
    width: 1px;
    height: 19px;
    background: rgba(194, 204, 227, .38);
}

.hero h1 {
    margin: 18px 0 17px;
    color: #fbfbff;
    font-size: 49px;
    font-weight: 900;
    line-height: 1.66;
    letter-spacing: -1.9px;
    white-space: nowrap;
}

.hero h1 span {
    color: #0aabf5;
}

.hero-lead {
    margin: 0;
    color: #aeb3c3;
    font-size: 20px;
    font-weight: 300;
    line-height: 2.05;
    white-space: nowrap;
}

.hero-actions {
    margin-top: 45px;
    display: grid;
    grid-template-columns: 260px 260px;
    gap: 34px;
}

.button {
    height: 66px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    font-size: 19px;
    font-weight: 500;
    transition: transform .2s ease, filter .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.button svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-primary {
    color: white;
    background: linear-gradient(140deg, #1a6df2, #0a43cc);
    box-shadow: 0 14px 35px rgba(5, 61, 194, .18);
}

.button-ghost {
    border: 1px solid #638cec;
    color: #f4f6ff;
    background: rgba(2, 14, 47, .28);
}

.button-ghost svg {
    color: #4a8df9;
}

.hero-features {
    margin-top: 60px;
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: space-between;
}

.feature-pill {
    width: 168px;
    height: 54px;
    padding: 0 15px;
    border: 1px solid rgba(90, 127, 203, .38);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cbd0df;
    background: rgba(3, 14, 47, .28);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.feature-pill:nth-of-type(2) {
    width: 204px;
}

.feature-pill svg {
    width: 23px;
    fill: none;
    stroke: #1b8bf2;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8793ae;
    opacity: .8;
}

.hero-art {
    position: relative;
    min-width: 0;
    direction: ltr;
    width: 900px;
    height: auto;
    overflow: visible;
    align-self: center;
    justify-self: start;
}

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 1450px) {
    .header-shell {
        padding: 0 36px;
        grid-template-columns: 160px 1fr 220px;
    }

    .main-nav {
        gap: 40px;
    }

    .hero-shell {
        grid-template-columns: minmax(540px, 1fr) 760px;
    }

    .hero-art {
        width: 760px;
    }

    .hero-copy {
        width: 560px;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions {
        grid-template-columns: 245px 245px;
        gap: 25px;
    }

    .hero-features {
        gap: 13px;
    }

    .feature-pill {
        flex: 1;
    }
}

@media (max-width: 1537px) and (min-width: 1451px) {
    .hero-shell {
        grid-template-columns: minmax(0, 1fr) 830px;
    }

    .hero-art {
        width: 830px;
    }

    .hero-copy {
        width: 590px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-lead {
        font-size: 18px;
    }
}

@media (max-width: 1299px) and (min-width: 1181px) {
    .hero {
        height: auto;
        min-height: calc(100svh - 116px);
        padding: 70px 30px 44px;
    }

    .hero-shell {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-copy {
        order: 1;
        width: min(100%, 680px);
        padding: 0;
        text-align: center;
    }

    .eyebrow {
        margin: 0 auto;
    }

    .hero h1,
    .hero-lead {
        white-space: normal;
    }

    .hero-lead br {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        margin-top: 42px;
    }

    .hero-art {
        order: 2;
        width: min(900px, 100%);
        height: auto;
        margin: 20px 0 0;
    }
}

@media (max-width: 1180px) {
    .site-header {
        height: 88px;
    }

    .header-shell {
        padding: 0 26px;
        display: flex;
        justify-content: space-between;
    }

    .brand img {
        width: 124px;
    }

    .header-action {
        display: none;
    }

    .menu-toggle {
        order: 2;
        width: 45px;
        height: 45px;
        padding: 11px;
        border: 1px solid rgba(82, 126, 219, .5);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        border-radius: 5px;
        transition: transform .2s ease, opacity .2s ease;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: 87px;
        right: 18px;
        left: 18px;
        height: auto;
        padding: 15px;
        border: 1px solid rgba(78, 121, 211, .3);
        border-radius: 18px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        background: rgba(2, 12, 40, .98);
        box-shadow: 0 30px 70px rgba(0,0,0,.38);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: .2s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 13px 15px;
        border-radius: 10px;
        text-align: center;
    }

    .main-nav a:hover {
        background: rgba(24, 121, 238, .12);
    }

    .main-nav a.is-active::after {
        display: none;
    }

    .hero {
        height: auto;
        min-height: calc(100svh - 88px);
        padding: 70px 24px 40px;
    }

    .hero-shell {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-copy {
        order: 1;
        width: min(100%, 680px);
        padding: 0;
        text-align: center;
    }

    .eyebrow {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(34px, 5.5vw, 49px);
        white-space: normal;
    }

    .hero-lead {
        white-space: normal;
    }

    .hero-lead br {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        margin-top: 42px;
    }

    .hero-art {
        order: 2;
        width: min(900px, 100%);
        height: auto;
        margin: 20px 0 0;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 45px 18px 24px;
    }

    .eyebrow {
        min-width: 0;
        width: fit-content;
        max-width: 100%;
        height: 44px;
        padding: 0 13px;
        gap: 7px;
        border-radius: 13px;
        font-size: 13px;
    }

    .hero h1 {
        margin-top: 18px;
        font-size: clamp(28px, 8.2vw, 38px);
        line-height: 1.7;
        letter-spacing: -1px;
    }

    .hero h1 br {
        display: none;
    }

    .hero h1 span {
        white-space: nowrap;
    }

    .hero-lead {
        font-size: 15px;
        line-height: 2;
    }

    .hero-actions {
        margin-top: 32px;
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .button {
        width: 100%;
        height: 58px;
        gap: 45px;
        font-size: 16px;
    }

    .hero-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-pill,
    .feature-pill:nth-of-type(2) {
        width: 100%;
        height: 50px;
        justify-content: center;
        gap: 14px;
    }

    .feature-dot {
        display: none;
    }

    .hero-art {
        width: 100%;
        margin: 20px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
