:root {
    --primary-gold: #b99050;
    --primary-gold-hover: #d4af37;
    --primary-purple: #6200ee;
    --primary-purple-hover: #3700b3;
    --accent-purple: #bb86fc;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(15, 15, 20, 0.85);
    --glass-border: rgba(185, 144, 80, 0.3);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Background & Layout --- */
.landing-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('/images/ui/bg-wide.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.9) 100%);
    z-index: 0;
}

.content-container {
    position: relative;
    z-index: 1;
    width: 100%;
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 0 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-direction: row;
    background-color: rgba(0,0,0,0.5);
    border-bottom: 1px solid #423423;
    margin-bottom: 50px;
    z-index: 1;
}

@media (max-width: 768px) {
    .landing-header {
        flex-direction: column;
    }

    .nav-links {
        margin-top: -20px;
        margin-bottom: 15px;
        line-height: 1;
    }
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 0px 0;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
}

.auth-container {
    max-width: 650px;
    width: 100%;
    margin: 2.5rem auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title span {
    color: var(--primary-gold);
    display: block;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
}

.badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    transition: box-shadow 0.4s;
}

.badge:hover {
    box-shadow: 0 2px 15px rgba(185, 144, 80, 0.4);
}

/* --- Auth Card --- */
.auth-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--primary-gold), #d4af37);
    border: none;
    border-radius: 4px;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(185, 144, 80, 0.4);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.2s;
}

.btn-ghost:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* --- Features Grid --- */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 40, 0.8);
    border-color: var(--primary-gold);
    box-shadow: 0 2px 15px rgba(185, 144, 80, 0.4);
}


.feature-card h3 {
    color: var(--primary-gold);
    font-family: var(--font-heading);
    margin-top: 0;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Footer --- */
.landing-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.8);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Returning Player Card --- */
.returning-card {
    text-align: center;
}

.returning-card h3 {
    color: var(--primary-gold);
    font-family: var(--font-heading);
    margin-top: 0;
}

.returning-card p {
    color: var(--text-main);
    margin-bottom: 20px;
}

.message-area {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.message-area.error {
    color: #ff6b6b;
}

.message-area.success {
    color: #51cf66;
}

/* --- Lore Page Styles --- */
.lore-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 0 60px;
}

.lore-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.lore-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.lore-chapter {
    margin-bottom: 3rem;
}

.lore-chapter h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.lore-chapter p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.lore-chapter p:last-child {
    margin-bottom: 0;
}

.lore-intro {
    font-style: italic;
    color: var(--text-muted);
}

.deity-list {
    margin-top: 1.5rem;
}

.deity {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--glass-border);
}

.deity h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.deity-title {
    font-weight: 400;
    color: var(--primary-gold);
    font-style: italic;
}

.deity p {
    margin: 0;
}

/* --- Features Page Styles --- */
.features-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-gold);
    text-align: center;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.features-page-subtitle {
    font-size: 1.1rem;
    color: var(--text-main);
    text-align: center;
    max-width: 700px;
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.feature-highlight-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-gold);
    box-shadow: 0 8px 30px rgba(185, 144, 80, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-highlight-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 8px 0;
}

.feature-highlight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: rgba(185, 144, 80, 0.15);
    border: 1px solid rgba(185, 144, 80, 0.4);
    color: var(--primary-gold);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-cta {
    margin-top: 3rem;
    text-align: center;
}

.features-cta .btn-primary {
    width: auto;
    padding: 14px 40px;
    display: inline-block;
}

/* --- Features Page V2 (Alternating Bands) --- */
.features-page-v2 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.feature-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-gold);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.feature-hero p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

.feature-band {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.feature-band-reverse {
    flex-direction: row-reverse;
}

.feature-band-image {
    flex: 0 0 50%;
    max-width: 50%;
}

.feature-band-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-band-content {
    flex: 1;
    padding: 30px;
}

.feature-band-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin: 0 0 1rem 0;
    border-bottom: 1px solid #29241f;
}

.feature-band-content p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.features-cta-v2 {
    text-align: center;
    margin-top: 2rem;
}

.features-cta-v2 .btn-primary {
    width: auto;
    padding: 14px 40px;
    display: inline-block;
    text-decoration: none;
}

@media (max-width: 768px) {
    .feature-band,
    .feature-band-reverse {
        flex-direction: column;
    }

    .feature-band-image {
        flex: none;
        max-width: 100%;
    }

    .feature-band-content {
        padding: 20px;
    }
}