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

:root {
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7c3aed;
    --purple-800: #6b21a8;
    --purple-900: #581c87;

    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;

    --dark-950: #030014;
    --dark-900: #0a0118;
    --dark-800: #120820;
    --dark-700: #1a1030;
    --dark-600: #251845;

    --white: #ffffff;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;

    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Cairo', 'Space Grotesk', sans-serif;

    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--dark-950);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.rtl {
    font-family: var(--font-arabic);
    direction: rtl;
}

body.no-scroll {
    overflow: hidden;
}

.entrance {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-950) 0%, #050025 50%, var(--dark-950) 100%);
    transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}

.entrance.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.entrance__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.entrance__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.entrance__logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border-radius: 16px;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

.entrance__logo-text {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, var(--blue-400), var(--white), var(--blue-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.entrance__tagline {
    font-size: 1rem;
    color: var(--gray-400);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.entrance__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border: none;
    border-radius: 100px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.4);
}

.entrance__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.6);
}

.entrance__btn:focus {
    outline: none;
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.6), 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.entrance__btn:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 2px;
}

.entrance__btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out);
}

.entrance__btn:hover svg {
    transform: translateX(4px);
}

.rtl .entrance__btn:hover svg {
    transform: translateX(-4px) scaleX(-1);
}

.rtl .entrance__btn svg {
    transform: scaleX(-1);
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.7), 0 0 100px rgba(59, 130, 246, 0.4); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.main {
    position: relative;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out) 0.3s;
}

.main.visible {
    opacity: 1;
}

.main > canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(3, 0, 20, 0.95), transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
}

.header__logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.header__logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: none;
}

.header__lang {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header__lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: var(--gray-400);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.header__lang-btn:hover {
    color: var(--gray-200);
}

.header__lang-btn:focus {
    outline: none;
}

.header__lang-btn:focus-visible {
    outline: 2px solid var(--purple-400);
    outline-offset: 2px;
}

.header__lang-btn.active {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    color: var(--white);
}

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple-400);
    margin-bottom: 2rem;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--purple-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
    margin-bottom: 1.5rem;
}

.hero__title-line {
    display: block;
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero__title-line--gradient {
    background: linear-gradient(135deg, var(--purple-400), var(--purple-500), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    max-width: 540px;
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.hero__tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-300);
    transition: all 0.3s var(--ease-out);
}

.hero__tag:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--purple-300);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn--primary {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn--primary:focus {
    outline: none;
}

.btn--primary:focus-visible {
    outline: 2px solid var(--purple-400);
    outline-offset: 2px;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:focus {
    outline: none;
}

.btn--outline:focus-visible {
    outline: 2px solid var(--purple-400);
    outline-offset: 2px;
}

.btn--full {
    width: 100%;
}

.values {
    padding: 4rem 1.5rem;
}

.values__grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.values__card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(59, 130, 246, 0.03));
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out);
}

.values__card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.values__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.values__icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.values__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.values__text {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.quote {
    padding: 4rem 1.5rem;
}

.quote__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 24px;
    position: relative;
}

.quote__content::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--purple-500);
    opacity: 0.3;
    line-height: 1;
}

.quote__content p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    line-height: 1.8;
    color: var(--gray-200);
    position: relative;
    z-index: 1;
}

.contact {
    padding: 4rem 1.5rem 6rem;
}

.contact__wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.contact__info {
    text-align: center;
}

.contact__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--purple-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact__desc {
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.contact__trust {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.contact__email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    color: var(--purple-300);
    font-weight: 500;
}

.contact__email svg {
    width: 18px;
    height: 18px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__row {
    display: grid;
    gap: 1rem;
}

.contact__field input,
.contact__field textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
    resize: none;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
    color: var(--gray-500);
}

.contact__field input:focus,
.contact__field textarea:focus {
    outline: none;
    border-color: var(--purple-500);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.form-status {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.form-status--visible {
    opacity: 1;
    transform: translateY(0);
}

.form-status--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-status--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn--loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn--loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__logo-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.footer__logo-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer__text {
    text-align: center;
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer__tagline {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .header {
        padding: 1.5rem 2rem;
    }

    .header__logo-text {
        display: block;
    }

    .hero {
        padding: 8rem 2rem 6rem;
    }

    .hero__desc {
        font-size: 1.125rem;
    }

    .hero__actions {
        flex-direction: row;
        max-width: none;
        width: auto;
    }

    .values {
        padding: 6rem 2rem;
    }

    .values__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact__row {
        grid-template-columns: 1fr 1fr;
    }

    .quote {
        padding: 6rem 2rem;
    }

    .quote__content {
        padding: 4rem 3rem;
    }

    .contact {
        padding: 6rem 2rem 8rem;
    }
}

@media (min-width: 768px) {
    .entrance__logo-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        border-radius: 20px;
    }

    .hero__badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .hero__tags {
        gap: 0.75rem;
    }

    .hero__tag {
        padding: 0.625rem 1.25rem;
    }

    .contact__wrapper {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
        gap: 4rem;
    }

    .contact__info {
        text-align: left;
        position: sticky;
        top: 120px;
    }

    .rtl .contact__info {
        text-align: right;
    }

    .contact__desc {
        margin-left: 0;
        margin-right: 0;
    }

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer__text {
        text-align: right;
    }

    .rtl .footer__text {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .header {
        padding: 1.5rem 4rem;
    }

    .hero {
        padding: 10rem 4rem 8rem;
    }

    .values {
        padding: 8rem 4rem;
    }

    .values__card {
        padding: 2.5rem;
    }

    .quote {
        padding: 8rem 4rem;
    }

    .contact {
        padding: 8rem 4rem 10rem;
    }

    .footer {
        padding: 2rem 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
