:root {
    --bg-color: #050505;
    --text-primary: #fff;
    --accent-red: #d30000;
    --accent-dark: #660000;
    --tape-yellow: #f1c40f;
    --bass: 0;
    --mid: 0;
    --treble: 0;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at center, transparent 0%, #000 100%),
        repeating-linear-gradient(45deg, rgba(20,20,20,0.5) 0%, rgba(20,20,20,0.5) 2px, transparent 2px, transparent 10px);
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    filter: grayscale(100%) contrast(150%) opacity(0.3) blur(2px);
    pointer-events: none;
}

h1, h2, h3, .logo {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#overlay h1 {
    font-size: 6rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

#start-btn {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    font-size: 2.5rem;
    font-family: 'Anton', sans-serif;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: transform 0.2s, background 0.2s, filter 0.2s;
}

#start-btn:hover {
    background: white;
    color: var(--accent-red);
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--accent-red));
}

/* Sound Panel */
#sound-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 300px;
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--accent-red);
    border-radius: 4px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

#sound-panel.minimized .panel-body {
    display: none;
}

.panel-header {
    background: var(--accent-red);
    color: white;
    padding: 0.5rem 1rem;
    font-family: 'Anton', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.panel-header button {
    background: none; border: none; color: white; cursor: pointer; font-size: 1.8rem; line-height: 1;
}

.panel-body {
    padding: 1rem;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ctrl-btn {
    background: #222; color: white; border: 1px solid #444; padding: 0.5rem 1rem; cursor: pointer;
    font-family: 'Oswald', sans-serif; font-weight: bold; width: 80px;
} .ctrl-btn:hover { background: var(--accent-red); }

#volume { width: 100%; cursor: pointer; accent-color: var(--accent-red); }

#visualizer-canvas {
    width: 100%; height: 60px; background: #000; border: 1px solid #333; margin-bottom: 0.5rem;
}

.freq-data {
    display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--tape-yellow); font-family: 'Oswald', sans-serif;
}

/* Ring Ropes Background Elements */
.rope {
    position: fixed;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent 0%, #111 20%, #333 50%, #111 80%, transparent 100%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.9);
    z-index: -1;
    transform: skewY(-2deg);
    filter: blur(1px);
    opacity: 0.7;
}

.top-rope { top: 20%; transform: skewY(2deg); }
.mid-rope { top: 50%; height: 12px; }
.bottom-rope { top: 80%; transform: skewY(-2deg); }

/* Main VFX Container synced to music */
.vfx-container {
    transform: scale(calc(1 + var(--bass) * 0.08)) translate(var(--shake-x, 0px), var(--shake-y, 0px));
    filter: drop-shadow(0 0 calc(var(--bass) * 30px) rgba(211, 0, 0, calc(var(--bass) * 0.5)))
            saturate(calc(100% + var(--treble) * 100%));
    transition: transform 0.05s, filter 0.05s;
    min-height: 100vh;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
}

.logo {
    font-size: 2.5rem;
    color: white;
    text-shadow: calc(var(--mid) * 5px) calc(var(--mid) * 5px) 0 var(--accent-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.slanted-btn {
    background: white;
    color: black;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    font-family: 'Archivo Black', sans-serif;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
    transition: all 0.2s;
    display: inline-block;
}

.slanted-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* Hero */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.impact-text {
    font-size: 10vw;
    line-height: 0.9;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 2px white;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVQIW2NkYGD4z8DAwMgAI0AMCKcCBXY0M+UAAAAASUVORK5CYII=) repeat;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 
        calc(var(--bass) * 20px) calc(var(--bass) * 20px) 0 var(--accent-red),
        calc(var(--bass) * -10px) calc(var(--bass) * -10px) 0 #fff;
}

.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: calc(var(--treble) * 0.8);
    z-index: -1;
}
.glitch-text::before {
    left: calc(var(--treble) * 8px);
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
}
.glitch-text::after {
    left: calc(var(--treble) * -8px);
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
}

.tape-strip {
    background: var(--tape-yellow);
    color: black;
    font-family: 'Archivo Black', sans-serif;
    font-size: 2rem;
    padding: 0.5rem 3rem;
    transform: rotate(-3deg) scale(calc(1 + var(--mid) * 0.2));
    margin-top: 2rem;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    border: 2px solid black;
    transition: transform 0.1s;
}

.action-btn {
    margin-top: 4rem;
    background: transparent;
    color: white;
    border: 4px solid var(--accent-red);
    padding: 1.5rem 4rem;
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    cursor: pointer;
    box-shadow: 
        inset 0 0 0 rgba(211, 0, 0, 0),
        0 0 calc(var(--bass) * 50px) var(--accent-red);
    transition: 0.2s, background 0.2s;
    background: rgba(102, 0, 0, 0.5);
}

.action-btn:hover {
    background: var(--accent-red);
    color: black;
    border-color: white;
}

/* Sections */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 3px 3px 0 var(--accent-red);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.gritty-card, .standard-item {
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}
.magnetic {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.gritty-card {
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid #333;
    padding: 3rem 2rem;
    position: relative;
    border-top: 5px solid var(--accent-red);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.gritty-card h3 {
    font-size: 2.5rem; margin-bottom: 1rem; color: var(--tape-yellow);
    transform: translateZ(30px);
}
.gritty-card p {
    font-size: 1.2rem; color: #ccc; font-family: 'Archivo Black', sans-serif;
    transform: translateZ(20px);
}

.standards-list { display: flex; flex-direction: column; gap: 2rem; }
.standard-item {
    display: flex; align-items: center; background: rgba(26, 0, 0, 0.9);
    border-left: 10px solid var(--accent-red); padding: 2rem; position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); backdrop-filter: blur(5px);
}
.standard-item .num {
    font-family: 'Anton', sans-serif; font-size: 5rem; color: rgba(255,255,255,0.05);
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateZ(10px);
}
.standard-content { transform: translateZ(30px); }
.standard-content strong {
    font-family: 'Anton', sans-serif; font-size: 2.5rem; display: block; color: white; text-shadow: 2px 2px 0 var(--accent-red);
}
.standard-content p { font-family: 'Oswald', sans-serif; font-size: 1.4rem; color: #bbb; }

/* VIP FROSPALL SECTION */
.vip-section {
    padding-top: 4rem;
    padding-bottom: 8rem;
}

.vip-container {
    background: rgba(10, 0, 0, 0.9);
    border: 1px solid var(--accent-red);
    padding: 4rem;
    box-shadow: 0 0 calc(var(--mid) * 40px) rgba(255, 0, 0, 0.4);
    border-radius: 4px;
    align-items: center;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.vip-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--tape-yellow);
    box-shadow: 0 0 10px var(--tape-yellow);
}

.vip-name {
    color: var(--tape-yellow);
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
    font-family: 'Archivo Black', sans-serif;
}

.cyber-badge {
    border-left: 5px solid var(--accent-red);
    padding-left: 2rem;
    margin-top: 2rem;
    position: relative;
}

.badge-header {
    background: var(--accent-red);
    color: white;
    display: inline-block;
    padding: 0.3rem 1rem;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.vip-stats {
    list-style: none;
    margin-bottom: 1.5rem;
}

.vip-stats li {
    font-size: 1.4rem;
    color: #ccc;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 0.5rem;
}

.vip-stats strong {
    color: white;
    margin-right: 0.5rem;
}

.vip-bio {
    font-size: 1.2rem;
    color: #999;
    line-height: 1.6;
    font-style: italic;
}

.vip-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-box {
    width: 250px;
    height: 250px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(200,0,0,0.15), transparent);
    box-shadow: inset 0 0 20px rgba(255,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-scan {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0; left: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.5));
    transform-origin: bottom left;
    animation: radar 2s linear infinite;
}

@keyframes radar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.target-lock {
    font-family: 'Anton', sans-serif;
    color: var(--accent-red);
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    z-index: 2;
    text-shadow: 2px 2px 0 black;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border: 1px solid var(--accent-red);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(0,0,0,0.9);
    border-top: 2px solid #333;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

footer h2 {
    font-size: 4vw;
    color: var(--tape-yellow);
    letter-spacing: 2px;
    filter: drop-shadow(0 0 calc(var(--treble) * 20px) var(--accent-red));
}
