:root {
    --bg-primary: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #b0a0b8;
    --purple: #9b30ff;
    --magenta: #d946a8;
    --glow-purple: 0 0 20px rgba(155, 48, 255, 0.5), 0 0 40px rgba(155, 48, 255, 0.2);
    --glow-magenta: 0 0 20px rgba(217, 70, 168, 0.5), 0 0 40px rgba(217, 70, 168, 0.2);
    --font-display: 'Orbitron', monospace;
    --font-body: 'Inter', -apple-system, sans-serif;
    --radius: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sound-toggle svg {
    width: 22px;
    height: 22px;
}

.sound-toggle:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.sound-toggle.active {
    border-color: var(--purple);
    color: var(--purple);
    box-shadow: var(--glow-purple);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(13, 13, 13, 0.3) 0%,
        rgba(26, 10, 31, 0.5) 50%,
        rgba(13, 13, 13, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-glitch {
    font-family: var(--font-display);
    font-size: clamp(3rem, 14vw, 9rem);
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: var(--glow-purple);
    letter-spacing: 4px;
    position: relative;
    animation: flicker 3s infinite;
}

.hero-glitch::before,
.hero-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

.hero-glitch::before {
    color: var(--purple);
    z-index: -1;
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.hero-glitch::after {
    color: var(--magenta);
    z-index: -2;
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 0); }
    20% { clip-path: inset(50% 0 20% 0); transform: translate(2px, 0); }
    40% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 0); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(1px, 0); }
    80% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); }
    100% { clip-path: inset(60% 0 10% 0); transform: translate(2px, 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(60% 0 20% 0); transform: translate(2px, 0); }
    20% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
    40% { clip-path: inset(80% 0 5% 0); transform: translate(1px, 0); }
    60% { clip-path: inset(20% 0 60% 0); transform: translate(-1px, 0); }
    80% { clip-path: inset(50% 0 20% 0); transform: translate(2px, 0); }
    100% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); }
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.95; }
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(155, 48, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(155, 48, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--magenta);
    border: 2px solid var(--magenta);
    box-shadow: inset 0 0 20px rgba(217, 70, 168, 0.1);
}

.btn-outline:hover {
    background: rgba(217, 70, 168, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--glow-magenta);
}

.btn-full {
    width: 100%;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: #1a0a1f;
    border: 1px solid rgba(155, 48, 255, 0.3);
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 460px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(155, 48, 255, 0.1);
}

.modal-overlay.visible .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--purple);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 10px rgba(155, 48, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

    .modal {
        padding: 28px 20px;
    }
}
