.side-brand {
    position: absolute;
    top: 38px;
    left: calc(10% - 92px);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(17, 24, 39, 0.12);
    user-select: none;
    pointer-events: none;
}

/* Hero */

.hero-box {
    width: 80%;
    margin: 24px auto 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        #d9f3ff;
    background-size: 42px 42px;
    border-radius: 34px;
    padding: 46px 34px 46px;
    overflow: hidden;
}

.hero {
    padding-top: 42px;
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    align-items: center;
    gap: 54px;
    direction: ltr;
}

.hero-content {
    max-width: 950px;
    text-align: right;
    direction: rtl;
    position: relative;
    z-index: 4;
}

.hero-title {
    position: relative;
    height: 205px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-title span {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    font-size: 72px;
    line-height: 1.45;
    font-weight: 900;
    letter-spacing: -3px;
    color: #111827;
    opacity: 0;
    transform: translateY(30px);
    animation: changeText 40s infinite;
}

.hero-title span:nth-child(1) {
    animation-delay: 0s;
}

.hero-title span:nth-child(2) {
    animation-delay: 8s;
}

.hero-title span:nth-child(3) {
    animation-delay: 16s;
}

.hero-title span:nth-child(4) {
    animation-delay: 24s;
}

.hero-title span:nth-child(5) {
    animation-delay: 32s;
}

@keyframes changeText {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    5% {
        opacity: 1;
        transform: translateY(0);
    }

    18% {
        opacity: 1;
        transform: translateY(0);
    }

    23% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.hero-text {
    font-size: 24px;
    color: #334155;
    line-height: 2;
    margin-bottom: 28px;
    font-weight: 500;
}

.choice-box {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.choice-btn {
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 18px 34px;
    background: #374151;
    color: #ffffff;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 800;
    font-family: "Vazirmatn", sans-serif;
    box-shadow: 0 14px 30px rgba(55, 65, 81, 0.22);
    transition: 0.3s;
}

.choice-btn:hover {
    background: #111827;
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.28);
}

.choice-btn::after {
    content: "";
    position: absolute;
    top: -70%;
    right: -90%;
    width: 38%;
    height: 240%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.38),
        transparent
    );
    transform: rotate(25deg);
    animation: buttonShine 7s infinite ease-in-out;
}

@keyframes buttonShine {
    0% {
        right: -90%;
    }

    28% {
        right: 130%;
    }

    100% {
        right: 130%;
    }
}

/* Guide / dynamic text */

.choice-message {
    max-width: 760px;
    min-height: 38px;
    padding: 0;
    background: transparent;
    border: none;
    color: #475569;
    font-size: 17px;
    font-weight: 700;
    line-height: 2;
    transition: 0.3s;
}

.choice-message.typing {
    color: #475569;
}

.typing-text {
    display: inline;
}

.typing-caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-right: 6px;
    vertical-align: middle;
    background: #2563eb;
    border-radius: 4px;
    animation: blinkCaret 0.8s infinite;
}

@keyframes blinkCaret {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

.choice-message.active {
    margin-top: 4px;
    color: #334155;
    font-size: 18px;
    font-weight: 600;
    line-height: 2;
}

.choice-message p {
    margin-bottom: 18px;
}

.phone-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.phone-input {
    width: 280px;
    padding: 17px 20px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    font-family: "Vazirmatn", sans-serif;
    outline: none;
    direction: ltr;
    text-align: left;
    color: #111827;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.04);
    transition: 0.3s;
}

.phone-input::placeholder {
    color: #94a3b8;
}

.phone-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.phone-btn {
    border: none;
    cursor: pointer;
    padding: 17px 30px;
    background: #bbf7d0;
    color: #14532d;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    font-family: "Vazirmatn", sans-serif;
    transition: 0.3s;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(20, 83, 45, 0.14);
}

.phone-error {
    display: none;
    width: fit-content;
    margin-top: 14px;
    padding: 12px 18px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 14px;
    color: #dc2626;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.phone-error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    background: #dc2626;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.phone-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

/* Hero Orbit Animation */

.hero-visual {
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    position: relative;
}

.orbit-scene {
    --scene-size: 480px;
    --outer-radius: 210px;
    --middle-radius: 150px;

    position: relative;
    width: var(--scene-size);
    height: var(--scene-size);
    border-radius: 50%;
    filter: drop-shadow(0 26px 45px rgba(15, 23, 42, 0.08));
}

.orbit-scene::before,
.orbit-scene::after {
    display: none;
    content: none;
}

.orbit-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(15, 23, 42, 0.10);
    pointer-events: none;
}

.orbit-ring::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    border: 1.5px dashed rgba(37, 99, 235, 0.10);
    animation: ringDashSpin 24s linear infinite;
}

.orbit-ring-outer {
    width: 430px;
    height: 430px;
}

.orbit-ring-middle {
    width: 310px;
    height: 310px;
}

.orbit-ring-inner {
    width: 178px;
    height: 178px;
}

@keyframes ringDashSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Center icon only */

.orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 8;
    width: 118px;
    height: 118px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.orbit-core-svg {
    width: 88px;
    height: 88px;
    display: block;
    filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.16));
}

.orbit-track {
    --orbit-speed: 28s;

    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: 50%;
    animation: orbitSpin var(--orbit-speed) linear infinite;
    will-change: transform;
}

.orbit-track-middle {
    --orbit-speed: 22s;
    animation-direction: reverse;
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tech-node {
    --size: 76px;
    --radius: var(--outer-radius);
    --angle-reverse: calc(var(--angle) * -1);

    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--size);
    height: var(--size);
    margin-left: calc(var(--size) / -2);
    margin-top: calc(var(--size) / -2);
    transform:
        rotate(var(--angle))
        translateX(var(--radius))
        rotate(var(--angle-reverse));
}

.tech-node span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    animation: nodeCounter var(--orbit-speed) linear infinite reverse;
}

.tech-node svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 14px 20px rgba(15, 23, 42, 0.18));
}

.tech-js svg,
.tech-ts svg {
    width: 76%;
    height: 76%;
    border-radius: 12px;
}

.tech-php svg {
    width: 92%;
    height: 92%;
}

.tech-python svg {
    width: 88%;
    height: 88%;
}

.tech-java svg {
    width: 86%;
    height: 86%;
}

.tech-go svg {
    width: 96%;
    height: 96%;
}

.orbit-track-middle .tech-node {
    --size: 70px;
    --radius: var(--middle-radius);
}

.orbit-track-middle .tech-node span {
    border-radius: 0;
    animation-direction: normal;
}

@keyframes nodeCounter {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-glow {
    position: absolute;
    z-index: 1;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(34px);
    opacity: 0.35;
    pointer-events: none;
}

.orbit-glow-one {
    right: 10px;
    top: 88px;
    background: rgba(37, 99, 235, 0.18);
}

.orbit-glow-two {
    left: 32px;
    bottom: 58px;
    background: rgba(236, 72, 153, 0.14);
}

/* Success Popup */

.popup-open {
    overflow: hidden;
}

.lead-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.28s ease;
}

.lead-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lead-popup {
    position: relative;
    width: min(440px, 100%);
    padding: 34px 30px 30px;
    border-radius: 30px;
    text-align: center;
    direction: rtl;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        linear-gradient(135deg, rgba(187, 247, 208, 0.36), rgba(219, 234, 254, 0.36));
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.22),
        inset 0 0 0 1px rgba(15, 23, 42, 0.03);
    transform: translateY(18px) scale(0.96);
    transition: 0.28s ease;
}

.lead-popup-overlay.show .lead-popup {
    transform: translateY(0) scale(1);
}

.lead-popup-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: 0.25s;
}

.lead-popup-close:hover {
    background: rgba(15, 23, 42, 0.10);
    transform: rotate(8deg);
}

.lead-popup-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    background: #bbf7d0;
    color: #14532d;
    box-shadow: 0 18px 35px rgba(20, 83, 45, 0.13);
}

.lead-popup-icon svg {
    width: 42px;
    height: 42px;
}

.lead-popup h3 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.6;
}

.lead-popup p {
    margin: 12px auto 24px;
    max-width: 340px;
    color: #475569;
    font-size: 17px;
    font-weight: 600;
    line-height: 2;
}

.lead-popup-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 16px 22px;
    border-radius: 18px;
    background: #374151;
    color: #ffffff;
    font-family: "Vazirmatn", sans-serif;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(55, 65, 81, 0.22);
    transition: 0.25s;
}

.lead-popup-btn:hover {
    background: #111827;
    transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 1300px) {
    .hero-box {
        width: 88%;
    }

    .side-brand {
        left: 10px;
    }

    .hero {
        grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
        gap: 34px;
    }

    .hero-title span {
        font-size: 60px;
    }

    .orbit-scene {
        --scene-size: 410px;
        --outer-radius: 178px;
        --middle-radius: 128px;
    }

    .orbit-ring-outer {
        width: 366px;
        height: 366px;
    }

    .orbit-ring-middle {
        width: 264px;
        height: 264px;
    }

    .orbit-ring-inner {
        width: 154px;
        height: 154px;
    }

    .orbit-core {
        width: 100px;
        height: 100px;
    }

    .orbit-core-svg {
        width: 78px;
        height: 78px;
    }

    .tech-node {
        --size: 68px;
    }

    .orbit-track-middle .tech-node {
        --size: 62px;
    }
}

@media (max-width: 900px) {
    .side-brand {
        display: none;
    }

    .hero-box {
        width: calc(100% - 28px);
        margin-top: 18px;
        padding: 38px 16px;
        border-radius: 28px;
    }

    .hero {
        padding-top: 28px;
        display: block;
        direction: rtl;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        height: 160px;
    }

    .hero-title span {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-text {
        font-size: 20px;
    }
}

@media (max-width: 620px) {
    .hero-title {
        height: 132px;
    }

    .hero-title span {
        font-size: 36px;
        line-height: 1.55;
    }

    .hero-text {
        font-size: 17px;
    }

    .choice-box {
        flex-direction: column;
    }

    .choice-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }

    .choice-message {
        width: 100%;
        font-size: 15px;
        min-height: 32px;
    }

    .phone-box {
        flex-direction: column;
        align-items: stretch;
    }

    .phone-input,
    .phone-btn {
        width: 100%;
    }

    .lead-popup {
        padding: 30px 22px 24px;
        border-radius: 26px;
    }

    .lead-popup h3 {
        font-size: 24px;
    }

    .lead-popup p {
        font-size: 15px;
    }
}