:root {
    --bg-primary: #f5f5f0;
    --bg-secondary: #e7e5e4;
    --accent-primary: #166534;
    --accent-secondary: #22c55e;
    --accent-highlight: #d6d3d1;
    --accent-deep: #3f3f46;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 500;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: var(--accent-primary);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid var(--accent-primary);
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-primary);
}

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

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: #ffffff;
}

/* Header */
.site-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin-bottom: 5px;
    transition: var(--transition);
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

/* Hero Section */
.hero-editorial {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 80vh;
    background-color: var(--bg-primary);
}

.hero-content {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    width: 100%;
    height: 50vh;
    order: -1; /* Mobile image on top */
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Strip */
.info-strip {
    background-color: var(--accent-deep);
    color: #ffffff;
    padding: 24px 20px;
}

.info-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-item svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-secondary);
}

/* Game Section */
.game-section {
    padding: 80px 20px;
    background-color: var(--bg-secondary);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 32px;
}

.game-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.game-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Split Features */
.features-section {
    padding: 80px 20px;
    background-color: var(--card-bg);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.feature-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Image Story */
.story-section {
    padding: 80px 20px;
    background-color: var(--bg-primary);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.story-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
}

.story-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-item:hover img {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background-color: var(--accent-highlight);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* Internal Pages */
.page-header {
    padding: 80px 20px;
    background-color: var(--bg-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--accent-primary);
}

.page-content {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
}

.content-block {
    margin-bottom: 32px;
}

.content-block h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.content-block p {
    margin-bottom: 16px;
}

.content-block ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.content-block li {
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 60px 20px 20px;
}

.footer-top {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    display: inline-block;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.legal-warning {
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Responsive System */
@media (min-width: 768px) {
    .hero-editorial {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image-wrapper {
        order: 2;
        height: auto;
    }

    .hero-content {
        padding: 60px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 4rem;
    }

    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .feature-row:nth-child(even) .feature-image {
        order: 2;
    }

    .info-grid {
        justify-content: center;
        gap: 60px;
    }
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--bg-primary);
    }

    .nav-link {
        display: block;
        padding: 16px;
    }

    .nav-menu .btn {
        margin: 16px;
        width: calc(100% - 32px);
    }

    .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}