* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #030712;
    --bg-card: #111827;
    --bg-header: rgba(3, 7, 18, 0.88);
    --accent-cyan: #06b6d4;
    --accent-violet: #8b5cf6;
    --accent-rose: #f43f5e;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1f2937;
    --border-hover: #334155;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(6, 182, 212, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.7);
    }

    100% {
        box-shadow: 0 0 5px rgba(6, 182, 212, 0.3);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-header);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    direction: ltr;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.5), 0 0 5px rgba(6, 182, 212, 0.6);
    color: #fff;
    flex-shrink: 0;
    padding: 6px;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-text {
    font-weight: 800;
    font-size: 1.08rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    white-space: nowrap;
}

.brand-pipe {
    color: var(--text-muted);
    font-weight: 400;
}

.brand-highlight {
    color: var(--accent-cyan);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
    color: #030712;
    padding: 0.4rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    animation: glowPulse 3s infinite;
}

.btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.6);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.35rem;
    cursor: pointer;
    font-size: 16px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 0 0.5rem;
}

section {
    margin-bottom: 4rem;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 92vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    will-change: transform;
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left,
            rgba(3, 7, 18, 0.7) 0%,
            rgba(3, 7, 18, 0.4) 20%,
            transparent 50%,
            transparent 100%);
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

[dir="rtl"] .hero-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.hero {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 100%;
    margin: 36px !important;
    padding: 4rem 0 4rem 0 !important;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background: transparent;
    animation: fadeInUp 1s ease-out 0.2s both;
    margin-inline-start: 12px !important;
}

@media (min-width: 1024px) {
    .hero {
        margin-inline-start: 12px !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.08);
    backdrop-filter: blur(8px);
    margin-bottom: 1rem;
    margin-right: 0;
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    max-width: 100%;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.01em;
    margin-right: 0;
    padding-right: 0;
    text-align: right;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 0.96rem;
    color: var(--text-secondary);
    max-width: 26rem;
    margin: 0 0 1.4rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
    margin-right: 0;
    padding-right: 0;
    text-align: right;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
    width: 100%;
    margin-right: 0;
    padding-right: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.82rem 1.75rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
    color: #030712;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.45);
    transition: transform 0.15s, box-shadow 0.15s;
    animation: glowPulse 3s infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.65);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(17, 24, 39, 0.85);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.06);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

.hero-scroll i {
    font-size: 0.9rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 0;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.35rem 1.2rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.feat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 0.65rem;
}

.feat-title {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.feat-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.section-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3.5vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.pyramid-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
}

.pyramid-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.video-card {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #0a0f1a;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 0.7rem 0.95rem 0.85rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.video-info-icon {
    color: var(--accent-rose);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.video-text-wrap {
    min-width: 0;
}

.video-tag {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    font-weight: 600;
    display: block;
    line-height: 1.3;
}

.video-name {
    font-size: 0.86rem;
    font-weight: 700;
    display: block;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.telegram-cta {
    text-align: center;
    padding: 2rem 0;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 2.1rem;
    border-radius: 999px;
    border: 2px solid #0088cc;
    background: rgba(0, 136, 204, 0.08);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 136, 204, 0.3);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-telegram:hover {
    background: rgba(0, 136, 204, 0.18);
    box-shadow: 0 0 28px rgba(0, 136, 204, 0.5);
    transform: translateY(-2px);
}

.policies-wrap {
    max-width: 62rem;
    margin: 0 auto;
}

.policy-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.policy-tab {
    padding: 0.38rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.policy-tab.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
}

.policy-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.35rem 1.4rem;
    min-height: 16rem;
}

.policy-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.policy-box p,
.policy-box li {
    font-size: 0.87rem;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.policy-box ul {
    padding-right: 1.1rem;
}

.policy-box li {
    margin-bottom: 0.3rem;
}

.policy-box strong {
    color: var(--text-primary);
}

.final-download {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}

.final-download h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.final-download p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 1.4rem 0 1.8rem;
    text-align: center;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    direction: ltr;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu.open {
        display: flex;
    }

    .features-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .hero-wrapper {
        min-height: 100svh;
    }

    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(3, 7, 18, 0.5) 0%, rgba(3, 7, 18, 0.7) 50%, rgba(3, 7, 18, 0.98) 100%);
    }

    .hero-bg img {
        object-position: 30% top;
    }

    [dir="rtl"] .hero-wrapper {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero {
        margin: 0 !important;
        padding: 2rem 0.75rem 2rem 0.75rem !important;
        width: 100%;
        max-width: 100%;
        text-align: center;
        align-items: center;
        margin-inline-start: 0 !important;
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 6vw, 2rem);
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-badge,
    .hero h1,
    .hero-desc,
    .hero-btns {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.5rem 1.5rem 0.5rem !important;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-outline {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}