body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 28px;
}

/* Hero Visual Animation */
.hero-visual {
    flex: 1;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--text-color);
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.i1 { top: 20%; left: 20%; animation-delay: 0s; font-size: 3rem; opacity: 0.5; }
.i2 { top: 40%; right: 20%; animation-delay: 2s; font-size: 5rem; }
.i3 { bottom: 20%; left: 40%; animation-delay: 4s; font-size: 3.5rem; opacity: 0.6; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
}

.dark-mode .feature-card {
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-color); }

/* Footer */
footer { text-align: center; padding: 3rem 1rem; border-top: 1px solid var(--border-color); margin-top: auto; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-color); }

/* Fullscreen 404 Overlay */
#client-404 {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

#client-404.light {
    background: radial-gradient(circle at top, #ffffff, #e9e9e9 70%);
    color: #111;
}

#client-404.dark {
    background: radial-gradient(circle at top, #1b1b1b, #000000 70%);
    color: #ffffff;
}

.error-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    animation: fadeUp 0.45s ease forwards;
}

.error-wrap h1 {
    font-size: clamp(6rem, 22vw, 14rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
    opacity: 0.9;
}

.error-wrap .title {
    font-size: 1.3rem;
    margin-top: 6px;
    opacity: 0.85;
}

.error-wrap .path {
    margin-top: 18px;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.08);
    word-break: break-all;
}

#client-404.dark .path {
    background: rgba(255, 255, 255, 0.1);
}

.error-wrap button {
    margin-top: 32px;
    padding: 12px 40px;
    border-radius: 28px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: #6cf2c2;
    color: #000;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        width: 100%;
        height: 250px;
        order: -1; /* Show visual on top for mobile */
    }

    /* Adjust floating icons for smaller screens */
    .i1 { left: 10%; top: 10%; font-size: 2.5rem; }
    .i2 { right: 10%; top: 30%; font-size: 4rem; }
    .i3 { left: 35%; bottom: 10%; font-size: 3rem; }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}