/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --alt-bg: #f1f5f9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --success-green: #10b981;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

/* Header & Navigation */
header {
    background-color: var(--darker-bg);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.95);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
}

.logo h1 span {
    color: var(--primary-color);
    font-weight: 300;
}

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

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Discord button in nav */
.nav-links a.discord-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.nav-links a.discord-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #1e293b 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

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

.subtitle {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #1d4ed8 0%, var(--primary-color) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: var(--alt-bg);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.info-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Technical Info */
.technical-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-detail {
    background: white;
    padding: 2.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tech-detail:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

.tech-detail h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.tech-detail p {
    color: var(--text-light);
    line-height: 1.7;
}

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

.warning-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid #fbbf24;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.warning-card::before {
    content: '⚠️';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.5;
}

.warning-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

.warning-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.warning-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #92400e;
}

.warning-card p {
    color: #78350f;
    line-height: 1.6;
}

/* Myth vs Fact */
.myth-fact {
    max-width: 900px;
    margin: 0 auto;
}

.myth-fact-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.myth-fact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--border-color), transparent);
    transform: translateX(-50%);
}

.myth-fact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.myth, .fact {
    padding: 1.5rem;
    border-radius: 8px;
}

.myth {
    background: linear-gradient(135deg, #fee 0%, #fecaca 100%);
    border-left: 4px solid var(--accent-red);
    border-radius: 12px;
    position: relative;
}

.myth::before {
    content: '❌';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.fact {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid var(--success-green);
    border-radius: 12px;
    position: relative;
}

.fact::before {
    content: '✅';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.myth h4, .fact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.myth h4 {
    color: var(--accent-red);
}

.fact h4 {
    color: var(--success-green);
}

.myth p, .fact p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.emphasis {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    font-weight: 500;
    border-left: 4px solid white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

/* Disclaimer Banner */
.disclaimer-banner {
    background-color: #0b1220;
    color: #e2e8f0;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    text-align: center;
    padding: 0.75rem 0;
}

.disclaimer-banner p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .disclaimer-banner p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    color: #cbd5e1;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.7;
    color: #94a3b8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    /* Keep header compact and make nav scrollable horizontally */
    header nav {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.75rem 12px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-links {
        flex-direction: row;
        gap: 0.9rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        max-width: 70vw;
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.25rem 0;
    }

    .myth-fact-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .info-grid, .warning-grid, .technical-info {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* FAQ Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s ease;
}

.faq-item:hover::before {
    left: 100%;
}

.faq-item:hover {
    transform: translateX(8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.faq-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Additional Modern Enhancements */

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Improved typography */
.content-section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Enhanced links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

a:not(.btn):hover::after {
    width: 100%;
}

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

/* Table styling improvements */
table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:nth-child(even) {
    background-color: var(--alt-bg);
}

tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: scale(1.01);
}

/* Loading animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Improved focus states */
.btn:focus,
.nav-links a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode toggle preparation */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1e293b;
        --alt-bg: #334155;
        --text-dark: #f1f5f9;
        --text-light: #cbd5e1;
        --border-color: #475569;
    }
    
    body {
        background-color: var(--dark-bg);
        background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    }
}

/* Print styles */
@media print {
    header,
    .disclaimer-banner,
    .cta-section,
    footer {
        display: none;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .info-card,
    .tech-detail,
    .warning-card,
    .faq-item {
        box-shadow: none;
        border: 1px solid var(--border-color);
        break-inside: avoid;
    }
}
