:root {
    --bg-color: #050505;
    --text-color: #FFFFFF;
    --accent-color: #E53935;
    --secondary-color: #8B0000;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --font-mono: 'Space Mono', 'Roboto Mono', monospace;
    --mesh-gradient: radial-gradient(at 0% 0%, hsla(0, 100%, 15%, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(0, 100%, 15%, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, hsla(0, 0%, 5%, 1) 0px, transparent 100%);
}

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

body,
html {
    background-color: var(--bg-color);
    background-image: var(--mesh-gradient);
    color: var(--text-color);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: none;
    }

    20% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 var(--accent-color);
    }

    40% {
        transform: translate(-2px, -2px);
        text-shadow: -2px 0 #00ffff;
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 5px var(--accent-color));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--accent-color));
    }

    100% {
        filter: drop-shadow(0 0 5px var(--accent-color));
    }
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
    animation: fadeIn 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo-text {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.85;
    text-transform: uppercase;
}

.rule-text {
    color: var(--accent-color);
    animation: pulse-glow 4s infinite;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: 0.4;
    max-width: 400px;
    margin-bottom: 3.5rem;
    animation: fadeIn 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Futuristic Shapes */
.shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

.ring {
    width: 250px;
    height: 250px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    top: 15%;
    left: 10%;
    animation: rotate 20s linear infinite;
}

.ring::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    top: -10px;
    left: 50%;
}

.arc {
    width: 300px;
    height: 300px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    animation: rotate 15s linear infinite reverse;
}

.small-circle {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 50%;
    bottom: 30%;
    left: 20%;
    opacity: 0.1;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1.2rem 3rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    animation: fadeIn 1.5s ease-out;
    border: 1px solid white;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-card:hover {
    border-color: var(--accent-color);
    background: rgba(229, 57, 53, 0.05);
    transform: scale(1.02);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    width: 20px;
}

.waveform .bar {
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.waveform.playing .bar {
    animation: wave 1s ease-in-out infinite;
    background: linear-gradient(to top, var(--accent-color), #ff5252);
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.5);
}

.waveform.playing .bar:nth-child(2) {
    animation-delay: 0.1s;
}

.waveform.playing .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.waveform.playing .bar:nth-child(4) {
    animation-delay: 0.3s;
}

.waveform:not(.playing) .bar {
    height: 2px !important;
    opacity: 0.5;
}

@keyframes wave {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 16px;
    }
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Legal Pages (Dark Version) */
.legal-content {
    padding: 8rem 0;
    max-width: 700px;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.2rem;
    margin-top: 3rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-content p {
    font-size: 1rem;
    opacity: 0.6;
}

footer {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.5;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Cursor Glow Layer */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    max-width: 80vw;
    max-height: 80vh;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* Language Switcher & Music Control */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 1.2rem;
    padding: 0;
}

.music-btn:hover {
    border-color: var(--accent-color);
    background: rgba(229, 57, 53, 0.2);
    box-shadow: 0 0 15px var(--accent-color);
    transform: translateY(-2px);
}

.lang-select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0 16px;
    height: 44px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
    appearance: none;
    outline: none;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lang-select:hover {
    border-color: var(--accent-color);
    background: rgba(229, 57, 53, 0.2);
    box-shadow: 0 0 15px var(--accent-color);
    transform: translateY(-2px);
}

.lang-select option {
    background: #000;
    color: white;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .logo-text {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .container {
        padding: 0 1.5rem;
    }

    header {
        height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .shape {
        opacity: 0.1 !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .lang-switcher {
        top: 1rem;
        right: 1rem;
        gap: 8px;
    }

    .music-btn,
    .lang-select {
        height: 40px;
        padding: 0 12px;
    }

    .music-btn {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 2.8rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
    }
}