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

:root {
    /* Color Palette - Fantasy/Medieval inspired */
    --primary-color: #8B4513; /* Saddle Brown */
    --secondary-color: #CD853F; /* Peru */
    --accent-color: #DAA520; /* Goldenrod */
    --dark-bg: #2F1B14; /* Dark Brown */
    --medium-bg: #3D2B1F; /* Medium Brown */
    --light-bg: #F5F5DC; /* Beige */
    --text-primary: #F5F5DC; /* Beige */
    --text-secondary: #D2B48C; /* Tan */
    --text-dark: #2F1B14; /* Dark Brown */
    --border-color: #8B7355; /* Dark Khaki */
    --shadow-color: rgba(47, 27, 20, 0.3);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Libre Baskerville', serif;
    
    /* Spacing */
    --section-padding: 4rem 0;
    --container-padding: 0 2rem;
    --border-radius: 8px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-bg) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Header */
.header {
    background: rgba(47, 27, 20, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
}

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

.nav-brand .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.nav-brand .tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

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

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

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

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

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

.logo-img {
    height: 72px;
    width: auto;
    margin-right: 1rem;
    vertical-align: middle;
}

/* Hero Section with Large Background Character */
.hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero::before {
    /* Static base character */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('images/ashboundm.png') no-repeat center right;
    background-size: auto 76.5%;
    background-position: right 180px 90px;
    opacity: 0.97; /* Increased for visibility */
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    /* Animated fiery veins overlay */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('images/ashboundm-overlay.png') no-repeat center right;
    background-size: auto 76.5%;
    background-position: right 180px 90px;
    pointer-events: none;
    z-index: 2;
    animation: fiery-veins 3s ease-in-out infinite;
}

.hero-bg {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    text-align: center;
    background: rgba(47, 27, 20, 0.10); /* More transparent */
    /* Removed backdrop-filter: blur for sharp background character */
    border-radius: 20px;
    border: 2px solid rgba(218, 165, 32, 0.4);
    box-shadow: 
        0 20px 50px rgba(47, 27, 20, 0.6),
        0 0 30px rgba(218, 165, 32, 0.1),
        inset 0 1px 0 rgba(218, 165, 32, 0.2);
    padding: 4rem 4rem 3rem;
    margin: 0 auto;
    overflow: visible;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(218,165,32,0.3), rgba(139,69,19,0.2));
    border-radius: 22px;
    z-index: -1;
}



.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    text-shadow: 
        2px 2px 4px rgba(47, 27, 20, 0.8),
        0 0 15px rgba(218, 165, 32, 0.3);
    position: relative;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.beta-badge {
    background: linear-gradient(135deg, var(--accent-color), #B8860B);
    color: var(--dark-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.beta-text {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

/* --- Fiery Veins Animation --- */
@keyframes fiery-veins {
    0% {
        opacity: 0.4;
        filter: brightness(0.8) contrast(1.2);
    }
    50% {
        opacity: 0.7;
        filter: brightness(1.3) contrast(1.5);
    }
    100% {
        opacity: 0.4;
        filter: brightness(0.8) contrast(1.2);
    }
}

/* Remove the wide radial overlay for a tighter effect */
.hero::after::after {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-bg {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 2.5rem 3rem;
        max-width: 800px;
        /* Removed backdrop-filter: blur for sharp background character */
    }
}

@media (max-width: 900px) {
    .hero::before,
    .hero::after,
    .features::before,
    .features::after {
        background-position: right 120px;
    }
    .about::before,
    .about::after,
    .beta::before,
    .beta::after {
        background-position: left 120px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

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

/* ASCII Art Section */
.ascii-art {
    background: rgba(47, 27, 20, 0.8);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
    box-shadow: 0 8px 16px var(--shadow-color);
}

/* Section content elevation for better readability */
.section-title {
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(47, 27, 20, 0.8);
}

.hero-content {
    background: rgba(47, 27, 20, 0.10);
    /* Removed blur to keep background character sharp */
}

.about-card {
    background: rgba(61, 43, 31, 0.08);
    /* Removed backdrop-filter: blur for visible background characters */
}

.feature-highlight {
    background: rgba(139, 69, 19, 0.08);
    /* Removed backdrop-filter: blur for visible background characters */
}

.beta-perks {
    background: rgba(47, 27, 20, 0.08);
    /* Removed backdrop-filter: blur for visible background characters */
}

.beta-signup {
    background: rgba(218,165,32,0.05);
    /* Removed backdrop-filter: blur for visible background characters */
}

.discord-preview {
    background: rgba(139, 69, 19, 0.08);
    /* Removed backdrop-filter: blur for visible background characters */
}

/* Add subtle glow effects for better section distinction */
.about-card:hover, .feature-highlight:hover, .beta-perks:hover, .beta-signup:hover {
    box-shadow: 0 12px 24px var(--shadow-color), 0 0 20px rgba(218, 165, 32, 0.1);
}

.discord-preview:hover {
    box-shadow: 0 8px 16px var(--shadow-color), 0 0 20px rgba(218, 165, 32, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 1rem auto;
    border-radius: 2px;
}

/* About Section with Large Background Character */
.about {
    position: relative;
    background: linear-gradient(135deg, var(--medium-bg) 0%, var(--dark-bg) 100%);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('images/halflingf.png') no-repeat center left;
    background-size: auto 67%;
    background-position: left 180px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('images/halflingf.png') no-repeat center left;
    background-size: auto 67%;
    background-position: left 180px;
    opacity: 0.24;
    pointer-events: none;
    z-index: 10;
}

.about::after::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 60%, rgba(218,165,32,0.22) 0%, rgba(218,165,32,0.09) 40%, transparent 80%);
    filter: blur(32px);
    opacity: 0.7;
    mix-blend-mode: lighten;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(61, 43, 31, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--shadow-color);
}

.about-card h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Thematic Fantasy/Medieval Role Categories & Cards --- */
.about-categories {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 2.5rem;
}

.role-category {
    background: linear-gradient(120deg, rgba(47,27,20,0.15) 0%, rgba(61,43,31,0.20) 100%);
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(47,27,20,0.18);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border-color);
    position: relative;
    /* Subtle parchment texture overlay */
    overflow: hidden;
}
.role-category::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.13;
    background: url('https://www.transparenttextures.com/patterns/old-mathematics.png');
    z-index: 0;
}

.category-header {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2.2rem;
    letter-spacing: 1px;
    text-align: left;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px #2f1b14cc, 0 0 1px #daa52099;
}
.category-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    margin-top: 0.7rem;
    border-radius: 2px;
    opacity: 0.7;
}

.role-category .about-grid {
    gap: 2.2rem;
}

.role-category .about-card {
    background: linear-gradient(120deg, rgba(139,69,19,0.22) 0%, rgba(61,43,31,0.33) 100%);
    border-left: 5px solid var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(218,165,32,0.10), 0 0 0 1px #8b7355;
    padding: 2.2rem 1.5rem 1.5rem 2rem;
    transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.role-category .about-card:hover {
    transform: scale(1.025) translateY(-2px);
    box-shadow: 0 8px 32px 0 #8b4513cc, 0 0 0 2px var(--accent-color);
    z-index: 2;
}

.role-category .about-card h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.18rem;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px #2f1b14cc, 0 0 1px #daa52099;
}

.role-category .about-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    text-shadow: 0 1px 1px #2f1b1440;
}

.role-category .about-card em {
    color: var(--accent-color);
    font-style: normal;
    font-size: 0.98em;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 1px #2f1b1440;
}

/* New styles for example classes line under each role category card */
.category-examples {
    color: var(--accent-color);
    font-family: var(--font-body);
    font-size: 0.98em;
    margin-top: 0.2em;
    margin-bottom: 0;
    font-style: italic;
    letter-spacing: 0.1px;
    text-shadow: 0 1px 2px #2f1b1440;
    z-index: 1;
    position: relative;
}

@media (max-width: 900px) {
    .about-categories {
        gap: 2.2rem;
    }
    .role-category {
        padding: 1.5rem 0.7rem 1.2rem 0.7rem;
    }
}
@media (max-width: 600px) {
    .category-header {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    .role-category .about-card {
        padding: 1.2rem 0.7rem 1rem 1rem;
    }
}

/* --- Responsive Grid for Role Category Cards --- */
.role-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem 2.2rem;
    margin-top: 2.5rem;
}
@media (max-width: 900px) {
    .role-category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem 1.2rem;
    }
}
@media (max-width: 600px) {
    .role-category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/* Remove vertical gap from .about-categories when grid is used */
.role-category-grid.about-categories {
    gap: 2.2rem 2.2rem;
}

/* --- Compact About Section Summary Styles --- */
.about-summary .role-category {
    background: linear-gradient(120deg, rgba(47,27,20,0.18) 0%, rgba(61,43,31,0.25) 100%);
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(47,27,20,0.22), 0 0 0 2px #daa52033;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 1.2rem;
    border: 2.5px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.22s, transform 0.22s;
}
.about-summary .role-category::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.10;
    background: url('https://www.transparenttextures.com/patterns/old-mathematics.png');
    z-index: 0;
}
.about-summary .role-category:hover {
    box-shadow: 0 8px 40px 0 #daa52055, 0 0 0 3px var(--accent-color);
    transform: translateY(-3px) scale(1.018);
    z-index: 2;
}
.about-summary .category-header {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    text-shadow: 0 2px 8px #2f1b14cc, 0 0 1px #daa52099;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
.about-summary .category-header::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    margin-top: 0.5rem;
    border-radius: 2px;
    opacity: 0.7;
}
.about-summary .category-desc {
    color: var(--text-secondary);
    font-size: 1.08rem;
    margin-bottom: 0.2rem;
    font-style: italic;
    text-shadow: 0 1px 2px #2f1b1440;
    z-index: 1;
    position: relative;
}
@media (max-width: 900px) {
    .about-summary .role-category {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .about-summary .category-header {
        font-size: 1.1rem;
    }
}

/* Features Section with Large Background Character */
.features {
    position: relative;
    background: var(--dark-bg);
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('images/bogkinm.png') no-repeat center right;
    background-size: auto 67%;
    background-position: right 180px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.features::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('images/bogkinm.png') no-repeat center right;
    background-size: auto 67%;
    background-position: right 180px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 10;
}

.features::after::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 60%, rgba(218,165,32,0.22) 0%, rgba(218,165,32,0.09) 40%, transparent 80%);
    filter: blur(32px);
    opacity: 0.7;
    mix-blend-mode: lighten;
}

.features .container {
    position: relative;
    z-index: 2;
}

.features-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.feature-highlight {
    background: rgba(139, 69, 19, 0.08);
    /* Removed backdrop-filter: blur for visible background characters */
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 16px var(--shadow-color);
}

.feature-highlight h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features-list {
    display: grid;
    gap: 1.5rem;
    text-align: left;
}

.feature {
    background: rgba(61, 43, 31, 0.6);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

/* Beta Section with Large Background Character */
.beta {
    position: relative;
    background: linear-gradient(135deg, var(--medium-bg) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.beta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('images/humanf.png') no-repeat center left;
    background-size: auto 74.2%;
    background-position: left 180px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.beta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('images/humanf.png') no-repeat center left;
    background-size: auto 74.2%;
    background-position: left 180px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 10;
}

.beta::after::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 60%, rgba(218,165,32,0.22) 0%, rgba(218,165,32,0.09) 40%, transparent 80%);
    filter: blur(32px);
    opacity: 0.7;
    mix-blend-mode: lighten;
}

.beta .container {
    position: relative;
    z-index: 2;
}

.beta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.beta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.beta-perks {
    background: rgba(47, 27, 20, 0.08);
    /* Removed backdrop-filter: blur for visible background characters */
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    text-align: left;
}

.beta-perks h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.beta-perks ul {
    list-style: none;
}

.beta-perks li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.beta-perks li:last-child {
    border-bottom: none;
}

.beta-perks li::before {
    content: '⚔️';
    margin-right: 1rem;
}

.beta-signup {
    background: rgba(218,165,32,0.05);
    /* Removed backdrop-filter: blur for visible background characters */
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

.beta-signup h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.beta-signup p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Beta signup form styles */
.beta-signup-form {
    margin-top: 2rem;
}

.email-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.email-input-group input[type="email"] {
    flex: 1;
    min-width: 280px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(47, 27, 20, 0.4);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input-group input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.email-input-group input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .email-input-group {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .email-input-group input[type="email"] {
        min-width: 100%;
    }
}

/* Community Section */
.community {
    position: relative;
    background: var(--dark-bg);
    overflow: hidden;
}

.community .container {
    position: relative;
    z-index: 2;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.community-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.community-features {
    display: grid;
    gap: 1rem;
}

.community-feature {
    padding: 1rem;
    background: rgba(61, 43, 31, 0.6);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-color);
}

.community-feature strong {
    color: var(--accent-color);
}

.discord-preview {
    background: rgba(139, 69, 19, 0.08);
    /* Removed backdrop-filter: blur for visible background characters */
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 16px var(--shadow-color);
}

.discord-preview h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.discord-preview p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reincarnation Card */
.reincarnation-card {
    background: linear-gradient(120deg, rgba(218,165,32,0.08) 0%, rgba(47,27,20,0.12) 100%);
    border: 2px dashed var(--accent-color);
    box-shadow: 0 2px 12px rgba(218, 165, 32, 0.08);
}

.reincarnation-card h3 {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .community-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .ascii-art {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Allow overlays to overflow center on small screens */
.hero,
.about,
.features,
.beta {
    overflow: visible;
}

/* Responsive background art: center on mobile, shift to side on desktop, never clipped */
.hero::before,
.hero::after,
.features::before,
.features::after,
.about::before,
.about::after,
.beta::before,
.beta::after {
    width: 100%;
    left: 0;
    right: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* No min-width, no max-width, always visible */
}

@media (min-width: 600px) {
    .hero::before,
    .hero::after,
    .features::before,
    .features::after {
        background-position: right 40px center;
    }
    .about::before,
    .about::after,
    .beta::before,
    .beta::after {
        background-position: left 40px center;
    }
}
@media (min-width: 900px) {
    .hero::before,
    .hero::after,
    .features::before,
    .features::after {
        background-position: right 120px center;
    }
    .about::before,
    .about::after,
    .beta::before,
    .beta::after {
        background-position: left 120px center;
    }
}

/* Custom background sizes for each character art */
.hero::before,
.hero::after {
    background-size: auto 76.5%; /* 23.5% smaller than original (was 85%) */
}

.about::before,
.about::after {
    background-size: auto 67%; /* 33% smaller */
}

.features::before,
.features::after {
    background-size: auto 67%; /* 33% smaller */
}

.beta::before,
.beta::after {
    background-size: auto 74.2%; /* 25.8% smaller than original (was 88%) */
}

/* Responsive: make halfling, bogkin, and humanf proportionally smaller on mobile */
@media (max-width: 480px) {
    .about::before,
    .about::after,
    .features::before,
    .features::after {
        background-size: auto 32% !important; /* much smaller for mobile */
    }
    .beta::before,
    .beta::after {
        background-size: auto 28% !important; /* much smaller for mobile */
    }
}

/* Bring background images 1.5in (~144px) closer to the opposite side */
@media (min-width: 900px) {
    .hero::before,
    .hero::after,
    .features::before,
    .features::after {
        background-position: right 264px center; /* 120px + 144px */
    }
    .about::before,
    .about::after,
    .beta::before,
    .beta::after {
        background-position: left 264px center; /* 120px + 144px */
    }
}
@media (min-width: 600px) and (max-width: 899px) {
    .hero::before,
    .hero::after,
    .features::before,
    .features::after {
        background-position: right 184px center; /* 40px + 144px */
    }
    .about::before,
    .about::after,
    .beta::before,
    .beta::after {
        background-position: left 184px center; /* 40px + 144px */
    }
}

/* Remove conflicting background-size rules in other mobile media queries */
/* Background sizes are handled by the clamp() function below */

/* Use a gentler fluid clamp for background-size for all major NPC backgrounds */
.hero::before,
.hero::after {
    background-size: auto clamp(60%, 70vw, 76.5%) !important;
}
.about::before,
.about::after,
.features::before,
.features::after {
    background-size: auto clamp(52%, 60vw, 67%) !important;
}
.beta::before,
.beta::after {
    background-size: auto clamp(54%, 58vw, 74.2%) !important;
}

/* --- Magical Gold Glow & Shimmer for Section Character Backgrounds (excluding hero) --- */
.about::after, .features::after, .beta::after {
    /* Add a gold glow behind the character */
    box-shadow: 0 0 64px 32px rgba(218,165,32,0.22), 0 0 128px 64px rgba(218,165,32,0.13);
    filter: drop-shadow(0 0 32px rgba(218,165,32,0.18));
}
.about::after::after, .features::after::after, .beta::after::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 60%, rgba(218,165,32,0.22) 0%, rgba(218,165,32,0.09) 40%, transparent 80%);
    filter: blur(32px);
    opacity: 0.7;
    mix-blend-mode: lighten;
}

.about::before, .features::before, .beta::before {
    /* Add a magical shimmer sweep */
    position: relative;
    z-index: 1;
}
.about::before::before, .features::before::before, .beta::before::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,220,0.18) 50%, transparent 60%);
    opacity: 0.7;
    mix-blend-mode: screen;
    animation: shimmer-sweep 4.5s linear infinite;
    background-size: 200% 200%;
    background-position: -100% 0;
}

@keyframes shimmer-sweep {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Ensure pseudo-elements stack correctly */
.hero, .about, .features, .beta {
    position: relative;
}
.hero::before, .about::before, .features::before, .beta::before,
.hero::after, .about::after, .features::after, .beta::after {
    position: absolute;
    pointer-events: none;
}

/* --- Background Character Fade Animation --- */
@keyframes character-fade-pulse {
    0% { opacity: 0.4; }
    8% { opacity: 0.4; }
    28% { opacity: 1; }
    60% { opacity: 1; }
    80% { opacity: 0.4; }
    100% { opacity: 0.4; }
}

.about::before,
.about::after,
.features::before,
.features::after,
.beta::before,
.beta::after {
    opacity: 1 !important; /* Full color, not faded */
    filter: none !important; /* Remove any color muting filters */
    z-index: 1;
}
