:root {
    --bg-dark: #0a0a0c;
    --acc-gold: #c9a227;
    --acc-gold-glow: rgba(201, 162, 39, 0.4);
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-font: 'Outfit', sans-serif;
    --secondary-font: 'Inter', sans-serif;
    --accent-font: 'Noto Serif SC', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--secondary-font);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--primary-font);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--acc-gold);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 400;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--acc-gold);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--acc-gold);
    color: var(--acc-gold);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.lang-btn:hover {
    background: var(--acc-gold);
    color: var(--bg-dark);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 1rem;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a20 0%, #0a0a0c 100%);
}

.hero-content h1 {
    font-family: var(--primary-font);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 30%, var(--acc-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slogan {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--primary-font);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--acc-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px var(--acc-gold-glow);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--acc-gold-glow);
}

.secondary-btn {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    border-color: var(--acc-gold);
    background: rgba(201, 162, 39, 0.1);
}

.tertiary-btn {
    border: 1px solid var(--acc-gold);
    color: var(--acc-gold);
    background: transparent;
}

.tertiary-btn:hover {
    background: var(--acc-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--acc-gold-glow);
    transform: translateY(-5px);
}

/* Footer Styles */
.footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: #050507;
}

.footer-logo {
    font-family: var(--primary-font);
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.social-links,
.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a,
.legal-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.85rem;
}

.social-links a:hover,
.legal-links a:hover {
    color: var(--acc-gold);
}

.copyright,
.contact {
    color: #555;
    font-size: 0.75rem;
    margin: 0.5rem 0;
}

/* Rules Section Styles */
.rules-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.rules-text {
    flex: 1;
}

.rules-list {
    list-style: none;
    margin-top: 2rem;
}

.rules-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dim);
}

.rules-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--acc-gold);
}

.rules-preview {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tile-preview-card {
    display: flex;
    gap: 1rem;
    transform: rotate(-5deg);
}

.tile-face {
    width: 80px;
    height: 120px;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
}

/* Sections General */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#story {
    text-align: center;
}

#story h2 {
    font-family: var(--primary-font);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--acc-gold);
}

#story p {
    font-size: 1.2rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: 0.4s;
}

.feature-card:hover {
    border-color: var(--acc-gold);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--acc-gold);
}

/* Dev Log Timeline */
.devlog-timeline {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.log-item {
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.log-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--acc-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--acc-gold-glow);
}

.log-date {
    font-size: 0.8rem;
    color: var(--acc-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.log-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.log-item:hover .log-title {
    color: var(--acc-gold);
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-container {
    background: #111;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

/* Markdown Content Styling */
.markdown-body h1,
.markdown-body h2 {
    color: var(--acc-gold);
    margin: 1.5rem 0 1rem;
}

.markdown-body blockquote {
    border-left: 4px solid var(--acc-gold);
    padding-left: 1.5rem;
    color: var(--text-dim);
    font-style: italic;
    margin: 1.5rem 0;
}

.markdown-body ul {
    margin: 1rem 1.5rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .modal-container {
        padding: 1.5rem;
    }
}