/* ==========================================================================
   CYBERPUNK VIP EVENT — PREMIUM REDESIGN
   ========================================================================== */

:root {
    --bg: #030305;
    --text-main: #e8e8ec;
    --text-dim: #5a5a6e;
    --accent-cyan: #00e5ff;
    --accent-magenta: #e040fb;
    --accent-cyan-glow: rgba(0, 229, 255, 0.35);
    --accent-magenta-glow: rgba(224, 64, 251, 0.3);

    --font-body: 'Space Grotesk', sans-serif;
    --font-display: 'Syncopate', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   OVERLAYS
   ========================================================================== */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

.noise-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   UI FRAME
   ========================================================================== */
.ui-frame {
    position: fixed;
    background: var(--bg);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-top { top: 0; left: 0; width: 100%; height: 36px; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0 16px; }
.ui-bottom { bottom: 0; left: 0; width: 100%; height: 36px; border-top: 1px solid rgba(255,255,255,0.06); padding: 0 16px; }
.ui-left { top: 0; left: 0; width: 36px; height: 100%; border-right: 1px solid rgba(255,255,255,0.06); }
.ui-right { top: 0; right: 0; width: 36px; height: 100%; border-left: 1px solid rgba(255,255,255,0.06); }

@media (max-width: 768px) { .ui-left, .ui-right { display: none; } }

.ui-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.status-online { display: flex; align-items: center; gap: 6px; }

.online-dot {
    width: 5px; height: 5px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ==========================================================================
   CURSOR
   ========================================================================== */
.tech-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px var(--accent-cyan-glow);
}

.cursor-ring {
    position: absolute;
    width: 32px; height: 32px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    opacity: 0.6;
}

body.hovering .cursor-ring {
    width: 55px; height: 55px;
    background: rgba(0, 229, 255, 0.08);
}

@media (max-width: 768px) {
    .tech-cursor { display: none; }
    * { cursor: auto; }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.scroll-wrapper { padding: 36px; }
@media (max-width: 768px) { .scroll-wrapper { padding: 36px 0; } }

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
}

@media (max-width: 900px) { .grid-2col { grid-template-columns: 1fr; } }

.center { text-align: center; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 5vw;
}

.hero-content { position: relative; z-index: 10; }

.glitch-wrapper { overflow: hidden; }

.glitch {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 12rem);
    line-height: 0.85;
    color: var(--text-main);
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch1 4s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch2 4s infinite linear alternate-reverse;
}

@keyframes glitch1 {
    0% { clip: rect(10px, 9999px, 83px, 0); } 20% { clip: rect(61px, 9999px, 14px, 0); }
    40% { clip: rect(93px, 9999px, 92px, 0); } 60% { clip: rect(32px, 9999px, 45px, 0); }
    80% { clip: rect(6px, 9999px, 81px, 0); } 100% { clip: rect(48px, 9999px, 2px, 0); }
}
@keyframes glitch2 {
    0% { clip: rect(65px, 9999px, 100px, 0); } 20% { clip: rect(8px, 9999px, 12px, 0); }
    40% { clip: rect(45px, 9999px, 66px, 0); } 60% { clip: rect(90px, 9999px, 34px, 0); }
    80% { clip: rect(21px, 9999px, 78px, 0); } 100% { clip: rect(56px, 9999px, 44px, 0); }
}

.cyber-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    margin: 2rem 0;
    box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.subtitle {
    font-size: 0.9rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.access-code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.code-glow {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-bg {
    position: absolute;
    top: 0; right: 0;
    width: 55%; height: 100%;
    z-index: 1;
    overflow: hidden;
}

@media (max-width: 900px) { .hero-bg { width: 100%; opacity: 0.2; } }

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.3) brightness(0.5);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 50%, rgba(3,3,5,0.5) 100%);
}

/* ==========================================================================
   BRIEFING
   ========================================================================== */
.briefing { padding: 15vh 5vw; }

.data-tag {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.brief-heading {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.25;
    text-transform: uppercase;
    font-weight: 500;
}

.brief-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5rem;
}

.stat-block {
    border-left: 2px solid var(--accent-cyan);
    padding-left: 1.5rem;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* ==========================================================================
   VIP PASS
   ========================================================================== */
.vip-section {
    padding: 10vh 5vw;
}

.vip-pass-wrapper {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
    perspective: 1000px;
}

.vip-pass {
    width: 380px;
    height: 240px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #0a0a14, #12121f);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.pass-holographic {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 229, 255, 0.08) 0%,
        rgba(224, 64, 251, 0.08) 25%,
        rgba(0, 229, 255, 0.12) 50%,
        rgba(224, 64, 251, 0.06) 75%,
        rgba(0, 229, 255, 0.1) 100%
    );
    background-size: 200% 200%;
    animation: holoShift 4s ease infinite;
    pointer-events: none;
}

@keyframes holoShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.pass-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pass-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.2rem 0.6rem;
}

.pass-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.pass-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 4px;
}

.pass-event {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-magenta);
    letter-spacing: 2px;
}

.pass-footer {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

.pass-barcode {
    display: flex;
    gap: 2px;
    margin-top: 0.75rem;
}

.bar {
    width: 3px;
    height: 20px;
    background: rgba(255,255,255,0.15);
}

.bar:nth-child(odd) { height: 25px; }
.bar:nth-child(3n) { background: rgba(0, 229, 255, 0.2); }

@media (max-width: 480px) {
    .vip-pass { width: 100%; max-width: 340px; height: 210px; }
}

/* ==========================================================================
   LOCATION + RADAR
   ========================================================================== */
.location {
    padding: 10vh 5vw;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.location-grid { align-items: center; }

.loc-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.loc-desc {
    color: var(--text-dim);
    margin-bottom: 1rem;
    max-width: 400px;
    line-height: 1.6;
}

.time-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: rgba(255,255,255,0.06);
    display: inline-block;
    padding: 0.35rem 0.8rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.cyber-btn {
    display: inline-block;
    position: relative;
    padding: 0.9rem 2rem;
    border: 1px solid var(--accent-cyan);
    background: transparent;
    color: var(--accent-cyan);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s;
}

.cyber-btn:hover {
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 20px var(--accent-cyan-glow), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.btn-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s, opacity 0.4s;
}

.cyber-btn:hover .btn-glow {
    width: 300px; height: 300px;
    opacity: 0.03;
}

.radar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#radar-canvas {
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ==========================================================================
   MARQUEE / PROTOCOL
   ========================================================================== */
.protocol { padding: 10vh 0; }

.marquee-strip {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    color: var(--bg);
    padding: 0.8rem 0;
    font-family: var(--font-display);
    font-size: 1rem;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-track span { padding-right: 0; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.protocol-content {
    padding: 10vh 5vw;
    align-items: center;
}

.protocol-img-wrap {
    filter: grayscale(100%) contrast(1.1);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem;
    transition: filter 0.5s;
}

.protocol-img-wrap:hover { filter: grayscale(50%); }

.protocol-img { width: 100%; display: block; }

.protocol-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 450px;
}

.neon-text {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   TERMINAL
   ========================================================================== */
.terminal-section {
    padding: 10vh 5vw 20vh;
    display: flex;
    justify-content: center;
}

.terminal {
    width: 100%;
    max-width: 700px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #06060a;
    border-radius: 8px;
    overflow: hidden;
}

.terminal-bar {
    background: #0e0e14;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 6px;
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.term-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 300px;
}

.term-line {
    color: #4ade80;
    margin-bottom: 0.4rem;
    min-height: 1.3em;
}

.term-form { margin-top: 1.5rem; }

.term-input {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.prompt {
    color: var(--accent-cyan);
    margin-right: 8px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.term-input input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    caret-color: var(--accent-cyan);
}

.term-input input::placeholder { color: var(--text-dim); }

.term-submit { margin-top: 1.5rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.vip-footer {
    text-align: center;
    padding: 4rem 0;
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.hub-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.75rem;
}

.hub-link:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* Keep decorative animation inside the mobile viewport. */
html { overflow-x: clip; }

@media (max-width: 768px) {
    .hero-content { min-width: 0; max-width: 100%; }
    .glitch { font-size: clamp(2rem, 10vw, 4rem); }
    .term-input input { min-width: 0; }
}
