/* ==========================================================================
   Stop Killing Myths – September 2025 Archive Version
   ========================================================================== */

/* ROOT & DESIGN TOKENS */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --danger: #dc2626;
    --bg-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 16px;
    --radius-lg: 24px;
}

/* RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 100%);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 198, 255, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(0.5deg); }
    66% { transform: translateY(-10px) rotate(-0.5deg); }
}

/* WAYBACK BANNER */
.wayback-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wayback-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wayback-banner-icon {
    font-size: 1.5rem;
    color: #fff;
}

.wayback-banner-text {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.wayback-banner-text strong {
    font-size: 0.9rem;
}

.wayback-banner-text span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.wayback-exit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wayback-exit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

/* LOGO & BANNER PLACEHOLDERS */
.logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.05em;
    transition: all 0.3s ease;
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.logo-fallback {
    display: none;
}

.banner-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.hero-banner {
    margin-bottom: 2rem;
}

/* NAVIGATION */
.nav {
    position: sticky;
    top: 52px; /* Account for wayback banner */
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-white);
}

.brand-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

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

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.025em;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* HEADER / HERO */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    position: relative;
    margin-top: 52px; /* Account for wayback banner */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white) 0%, #e2e8f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* COUNTDOWN */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 500px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.countdown:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
    border-color: rgba(220, 38, 38, 0.5);
}

.countdown.critical {
    animation: urgentPulse 2s infinite;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(239, 68, 68, 0.25) 100%);
    border-color: var(--danger);
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 40px rgba(220, 38, 38, 0.5);
    }
}

.countdown-item {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--radius);
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.countdown-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: #ff6b6b;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.countdown-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.deadline-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* MAIN CONTENT */
.main {
    padding: 3rem 0;
    position: relative;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.card {
    position: relative;
    z-index: 10;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.card-body {
    padding: 2.5rem;
    color: var(--text-primary);
}

/* FORMS */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: var(--error);
    animation: shake 0.5s ease-in-out;
}

.form-input.success {
    border-color: var(--success);
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--text-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ALERTS */
.alert {
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

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

.alert-error {
    background: rgba(254, 242, 242, 0.95);
    color: #991b1b;
    border-left-color: var(--error);
}

.alert-success {
    background: rgba(236, 253, 245, 0.95);
    color: #065f46;
    border-left-color: var(--success);
}

.alert-warning {
    background: rgba(255, 251, 235, 0.95);
    color: #92400e;
    border-left-color: var(--warning);
}

/* RESOURCE LINKS */
.resource-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.resource-link {
    display: block;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
}

.resource-link-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-link-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.resource-link-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.resource-link-icon {
    color: var(--primary);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.resource-link:hover .resource-link-icon {
    transform: translateX(5px);
}

/* INFO SECTIONS */
.info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.action-list {
    list-style: none;
    padding: 0;
}

.action-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-list li:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

.action-list .icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-highlight {
    background: rgba(102, 126, 234, 0.1);
    padding: 1.25rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* SOCIAL LINKS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.card-section {
    margin-bottom: 2rem;
}

.card-section-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

/* CREDITS SECTION */
.core-contributors h4,
.contributors-carousel h4 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.core-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.core-contributor {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(102, 126, 234, 0.25);
}

.core-contributor:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.core-role {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.core-name {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.core-name a {
    color: inherit;
    text-decoration: none;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
    margin: 0 -2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: var(--radius);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scrollLeftToRight 90s linear infinite;
    width: max-content;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 220px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.carousel-item:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.4);
}

.carousel-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.carousel-name {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes scrollLeftToRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.credits-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}

/* FOOTER */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* SKIP LINK */
.skip-link {
    position: fixed;
    top: 40%;
    left: 0;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.2);
    color: transparent;
    font-size: 12px;
    font-weight: 500;
    border-radius: 0 4px 4px 0;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.2s ease;
}

.skip-link:focus {
    color: #fff;
    background: rgba(59, 130, 246, 0.8);
    padding: 6px 14px;
    left: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .wayback-banner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .wayback-exit-btn {
        width: 100%;
        justify-content: center;
    }

    .nav {
        top: 90px;
    }

    .header {
        margin-top: 90px;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
}
