/* ============================================
   KILLA LABS - DARK CYBERPUNK THEME
   ============================================ */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Background Colors */
    --bg-main: #000000;
    --bg-card: #0a0a0a;
    --bg-elevated: #050505;

    /* Accent Colors */
    --accent-primary: #FF296A;
    --accent-secondary: #35E3FF;

    /* Text Colors */
    --text-main: #F5F5FF;
    --text-muted: #8B8EA8;

    /* Border Colors */
    --border-subtle: #232739;

    /* Status Colors */
    --status-open: #3B82F6;
    --status-closed: #FF2969;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF296A 0%, #FF6B35 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 41, 106, 0.05) 0%, rgba(53, 227, 255, 0.05) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
    position: relative;
}

/* Global animated background layer - scrolls throughout entire page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: -2;
}

/* Cyan blob - middle of viewport (moves with scroll) */
body::after {
    content: '';
    position: fixed;
    width: 900px;
    height: 900px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + var(--blob-cyan-y, 0px)));
    background: radial-gradient(circle, rgba(53, 227, 255, 0.3) 0%, rgba(53, 227, 255, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat3 25s ease-in-out infinite;
    filter: blur(100px);
    opacity: 0.4;
    will-change: transform;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.1s linear;
}

@keyframes blobFloat3 {
    0%, 100% {
        transform: translate(-50%, calc(-50% + var(--blob-cyan-y, 0px))) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-40%, calc(-60% + var(--blob-cyan-y, 0px))) scale(1.2) rotate(120deg);
    }
    66% {
        transform: translate(-60%, calc(-40% + var(--blob-cyan-y, 0px))) scale(0.85) rotate(240deg);
    }
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
}

.label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.kicker {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    font-weight: 600;
}

/* ===== HEADER ===== */
.header {
    display: none; /* Header removed per client request */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--accent-secondary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.audio-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(53, 227, 255, 0.3);
}

/* ===== FIXED TWITTER LINK ===== */
.fixed-twitter-link {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.fixed-twitter-link:hover {
    background: rgba(53, 227, 255, 0.1);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(53, 227, 255, 0.3);
}

.fixed-twitter-link svg {
    width: 20px;
    height: 20px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem 4rem;
    background: transparent;
    overflow: hidden;
}

/* Animated gradient blob 1 - Purple (moves with scroll) */
.hero::before {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    top: calc(10% + var(--blob-purple-y, 0px));
    right: -100px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, rgba(138, 43, 226, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat1 20s ease-in-out infinite;
    filter: blur(80px);
    opacity: 0.6;
    will-change: transform, top;
    z-index: -1;
    pointer-events: none;
    transition: top 0.1s linear;
}

/* Animated gradient blob 2 - Orange (moves with scroll) */
.hero::after {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    bottom: calc(10% - var(--blob-orange-y, 0px));
    left: -100px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.35) 0%, rgba(255, 107, 53, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat2 18s ease-in-out infinite;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform, bottom;
    z-index: -1;
    pointer-events: none;
    transition: bottom 0.1s linear;
}

@keyframes blobFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-100px, 100px) scale(1.1);
    }
    66% {
        transform: translate(50px, -50px) scale(0.9);
    }
}

@keyframes blobFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -80px) scale(1.15);
    }
    66% {
        transform: translate(-60px, 60px) scale(0.95);
    }
}

/* Network canvas for particle effect - fixed to cover entire page */
#heroCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    margin: 1rem 0;
    color: #FFFFFF;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1.5rem 0 2rem;
    line-height: 1.7;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    margin: 2rem 0;
    font-size: 0.85rem;
}

.status-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.status-value {
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.status-open {
    color: var(--status-open);
    background: rgba(59, 130, 246, 0.1);
}

.status-closed {
    color: var(--status-closed);
    background: rgba(255, 41, 105, 0.1);
}

.countdown {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cta-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(255, 41, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 41, 106, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(53, 227, 255, 0.2);
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== COURSE CARDS ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: var(--bg-card);
    background-image: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 41, 106, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(53, 227, 255, 0.1);
    color: var(--accent-secondary);
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.course-card h3 {
    margin-bottom: 0.5rem;
}

.course-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-card ul {
    list-style: none;
    padding: 0;
}

.course-card li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.7rem;
}

.course-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* ===== ENROLLMENT BUTTONS ===== */
.btn-enrollment {
    display: block; /* Always visible */
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: not-allowed;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-muted);
    opacity: 0.5;
    position: relative;
}

.btn-enrollment::before {
    content: '🔒';
    margin-right: 0.5rem;
}

.btn-enrollment.unlocked {
    cursor: pointer;
    border: none;
    background: var(--gradient-primary);
    color: var(--text-main);
    opacity: 1;
    box-shadow: 0 10px 30px rgba(255, 41, 106, 0.3);
}

.btn-enrollment.unlocked::before {
    content: '🔓';
}

.btn-enrollment.unlocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 41, 106, 0.5);
}

.btn-enrollment:not(.unlocked):hover {
    cursor: not-allowed;
}

/* ===== PORTAL SECTION ===== */
.portal-section {
    background: transparent;
    padding: 6rem 2rem;
    position: relative;
}

.portal-card {
    max-width: 600px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.portal-card.open {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 80px rgba(59, 130, 246, 0.1);
}

.portal-card.closed {
    border-color: rgba(255, 41, 105, 0.3);
}

.portal-status-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.portal-form {
    margin: 2rem 0;
}

.portal-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.portal-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(53, 227, 255, 0.2);
}

.portal-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.portal-form .btn {
    width: 100%;
}

.portal-form .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.portal-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.portal-error {
    color: var(--status-closed);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 41, 105, 0.1);
    border-radius: 8px;
}

/* Portal Content (hidden until unlocked) */
.portal-content {
    display: none;
    text-align: left;
}

.portal-content.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-content h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.portal-links {
    list-style: none;
    padding: 0;
}

.portal-links li {
    margin-bottom: 1rem;
}

.portal-links a {
    display: block;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.portal-links a:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 41, 106, 0.2);
}

/* ===== DISCLAIMER SECTION ===== */
.disclaimer-section {
    padding: 4rem 2rem;
    background: transparent;
    position: relative;
}

.disclaimer-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.disclaimer-card h2 {
    margin-bottom: 1.5rem;
}

.disclaimer-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.disclaimer-card .btn {
    margin-top: 2rem;
}

/* ===== LEGAL PAGE ===== */
.legal-page {
    padding: 8rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h1 {
    margin-bottom: 1rem;
}

.legal-page .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.legal-page h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.legal-page p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(5, 5, 5, 0.8);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-audio-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.footer-audio-toggle:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(53, 227, 255, 0.3);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== LEGAL MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 2px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
    box-shadow: 0 5px 20px rgba(255, 41, 106, 0.5);
}

.modal-body {
    padding: 3rem;
    overflow-y: auto;
    max-height: calc(90vh - 6rem);
}

.modal-body h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.modal-body .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.modal-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

.modal-body p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-body ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body strong {
    color: var(--text-main);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal.active {
        padding: 1rem;
        align-items: flex-start;
    }

    .modal-content {
        max-height: 95vh;
        margin-top: 1rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
        max-height: calc(95vh - 4rem);
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .modal-body h1 {
        font-size: 1.5rem;
        padding-right: 3rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fixed-twitter-link {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .hero {
        min-height: 80vh;
        padding: 3rem 1.5rem 3rem;
    }

    /* Hide star background on mobile */
    #heroCanvas {
        display: none;
    }

    /* Reduce animation intensity on mobile for performance */
    .hero::before {
        animation: gridMove 30s linear infinite;
    }

    .hero::after {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        padding: 2rem;
    }

    .disclaimer-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .course-card {
        padding: 1.5rem;
    }
}
