/* 🚫 ANTI-OVERFLOW FIXES */
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0315;
    color: #e0d0ff;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0721;
}
::-webkit-scrollbar-thumb {
    background: #7a3ef8;
    border-radius: 4px;
}

/* Logo Style */
.logo {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(90deg, #7a3ef8, #00f5d4, #ff2a6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 8px rgba(122, 62, 248, 0.5));
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5%;
    gap: 50px;
    background: radial-gradient(circle at top right, #1a0d3e 0%, #0a0315 70%);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(122, 62, 248, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(to right, #e0d0ff, #7a3ef8, #00f5d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: #b9a2ff;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(122, 62, 248, 0.3);
    border: 1px solid rgba(122, 62, 248, 0.2);
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #7a3ef8, #ff2a6d);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(122, 62, 248, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(122, 62, 248, 0.6);
}

/* Features Section */
.features {
    padding: 120px 5%;
    text-align: center;
    background: #0d051d;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7a3ef8, #00f5d4, transparent);
}

.features h2 {
    font-size: 3rem;
    margin-bottom: 70px;
    background: linear-gradient(to right, #7a3ef8, #00f5d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(25, 10, 50, 0.5);
    padding: 50px 30px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(122, 62, 248, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(122, 62, 248, 0.2);
    border-color: rgba(122, 62, 248, 0.6);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #ff2a6d, #7a3ef8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.feature-card p {
    color: #b9a2ff;
    font-size: 1.05rem;
}

/* CTA Section */
.cta-section {
    padding: 120px 5%;
    text-align: center;
    background: linear-gradient(135deg, #0f0721, #1a0d3e);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(122, 62, 248, 0.1), transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

.cta-section h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, #00f5d4, #ff2a6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section p {
    font-size: 1.3rem;
    color: #b9a2ff;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .small {
    font-size: 0.95rem;
    color: #7a3ef8;
    margin-top: 25px;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    padding: 60px 5% 40px;
    text-align: center;
    background: #070210;
    position: relative;
    border-top: 1px solid rgba(122, 62, 248, 0.2);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

footer p {
    margin-bottom: 25px;
    color: #7a3ef8;
    font-size: 1.1rem;
}

.footer-links a {
    color: #b9a2ff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00f5d4;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 80px 5%;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .features h2,
    .cta-section h2 {
        font-size: 2.3rem;
    }

    .feature-card {
        padding: 40px 20px;
    }

    .logo {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .logo {
        font-size: 2.2rem;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .hero,
    .features,
    .cta-section {
        padding-left: 4%;
        padding-right: 4%;
    }
}