:root {
    --primary: #6366f1;
    /* Electric Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #22d3ee;
    /* Neon Cyan */
    --secondary-glow: rgba(34, 211, 238, 0.4);
    --accent: #f59e0b;
    --bg-dark: #020617;
    /* Deep Obsidian */
    --bg-card: rgba(15, 23, 42, 0.4);
    --bg-gloss: rgba(255, 255, 255, 0.03);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --neon-border: rgba(34, 211, 238, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(34, 211, 238, 0.1) 0%, transparent 40%);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow);
    }
}

.animate-slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(2, 6, 23, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.logo-img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -5px var(--secondary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.btn-outline {
    border: 1px solid var(--neon-border);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary-glow);
    border-color: var(--secondary);
    color: white;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-icon:hover {
    color: var(--secondary);
    border-color: var(--secondary);
    background: rgba(34, 211, 238, 0.05);
}

.btn-lg {
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.25;
    border-radius: 50%;
}

.blob-1 {
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: var(--primary);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    width: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--neon-border);
    border-radius: 100px;
    color: var(--secondary);
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 650px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.trust-badges {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item i {
    color: var(--secondary);
}

/* Glass Cards */
.glass-card {
    background: var(--bg-gloss);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.card-main {
    position: relative;
    z-index: 10;
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--glass-border);
    min-width: 360px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.bg-green {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.bg-purple {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.bg-amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.value.sm {
    font-size: 1.35rem;
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    height: 140px;
    padding-bottom: 1rem;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar.active {
    background: linear-gradient(to top, var(--primary), var(--secondary));
    box-shadow: 0 10px 20px var(--primary-glow);
}

.card-floating {
    position: absolute;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    z-index: 20;
    border-radius: 20px;
}

.card-1 {
    bottom: -30px;
    right: -40px;
    animation: float 6s ease-in-out infinite reverse;
}

/* Features */
.features {
    padding: 10rem 0;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--bg-gloss);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--secondary-glow), transparent 70%);
    opacity: 0;
    transition: 0.5s;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--secondary);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::after {
    opacity: 0.2;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: white;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 10rem 0;
}

.cta-box {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border: 1px solid var(--neon-border);
    border-radius: 48px;
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6), 0 0 40px var(--secondary-glow);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, var(--primary-glow) 0%, transparent 60%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-box h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: white;
}

.cta-box p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 6rem 0 3rem;
    background: rgba(2, 6, 23, 0.9);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.5rem;
}

.footer-logo img {
    height: 32px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Luminous Glows */
.luminous {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.15;
}

.luminous-cyan {
    background: var(--secondary);
}

.luminous-indigo {
    background: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    html[dir="rtl"] .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        order: 1 !important;
    }

    .hero-visual {
        order: 2 !important;
        margin-top: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-cta,
    .trust-badges {
        justify-content: center;
    }

    .card-main {
        margin: 0 auto;
        max-width: 400px;
        transform: none;
    }

    .card-floating {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0 0.35rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        /* Reduced from 3rem */
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {

    /* Navbar Optimizations for Small Screens */
    .nav-actions .btn span,
    .btn-icon .lang-text {
        display: none;
        /* Hide text, show only icons if available */
    }

    .nav-actions .btn {
        padding: 0.5rem;
        /* Square buttons for icons */
        border-radius: 0.5rem;
    }

    /* Ensure Join Now button keeps text if essential, or hide 'Login' text only */
    /* Let's try to keep "Join Now" text if possible, but for now specific hiding is safer */

    .hero h1 {
        font-size: 2rem;
        /* Further reduced */
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        /* Full width buttons on mobile */
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .card-main {
        min-width: unset;
        width: 100%;
        max-width: 340px;
        /* Prevent it from being too wide on small phones */
    }

    .value {
        font-size: 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}