:root {
    --bg: #030407;
    --bg-alt: #0a0c12;
    --surface: rgba(20, 24, 35, 0.6);
    --surface-alt: rgba(28, 32, 48, 0.6);
    --text: #ffffff;
    --text-muted: #cbd5e1;
    --accent: #8b5cf6;
    --accent-glow: rgba(124, 58, 237, 0.5);
    --accent-secondary: #06b6d4;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 24px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.15), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.15), transparent 25%);
    background-attachment: fixed;
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
}

main {
    width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 2rem 0 6rem;
}

section {
    margin-bottom: 6rem;
}

.site-header,
.site-footer {
    width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header {
    position: sticky;
    top: 1rem;
    background: rgba(3, 4, 7, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.site-nav .discord-link {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.site-nav .discord-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 4rem 0;
    align-items: center;
    margin-bottom: 6rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #c4c9d6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-card,
.card,
.mode-card,
.info-banner,
.cta-banner,
.cta-inline,
.mode-section,
.faq-item,
.steps li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero-card {
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: linear-gradient(160deg, rgba(20, 24, 35, 0.8), rgba(124, 58, 237, 0.05));
}

.hero-card h2 {
    margin-top: 0;
    color: var(--accent-secondary);
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.hero-card li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 3rem;
}

.note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.1;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

.lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn.secondary:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    min-height: 220px;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
    background: rgba(28, 32, 48, 0.8);
}

.card h3 {
    color: white;
}

.card-link {
    margin-top: auto;
    color: var(--accent-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-steps {
    margin: 6rem 0;
}

.steps {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.steps li {
    position: relative;
    padding-top: 2.5rem;
    background: linear-gradient(180deg, var(--surface), rgba(20, 24, 35, 0.3));
}

.steps li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-banner,
.info-banner {
    margin: 4rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1), transparent), var(--surface);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.cta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(to right, var(--surface), rgba(6, 182, 212, 0.05));
}

/* Specific Page Layouts */
.mode-page {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.page-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.page-heading h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 6rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        padding: 1rem;
        top: 0.5rem; /* Reduced sticky top offset */
        border: 1px solid var(--border);
        background: rgba(3, 4, 7, 0.95);
    }

    .site-nav {
        justify-content: center;
        gap: 0.5rem; /* Increased touch target gap */
        margin-top: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 0;
    }
    
    .cta-inline {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        margin-bottom: 4rem; /* Reduced section spacing on mobile */
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero > * {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero > *:nth-child(2) {
    animation-delay: 0.15s;
}
