@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color System */
    --bg-primary: #070604;
    --bg-secondary: #151006;
    
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-glass-hover: rgba(255, 255, 255, 0.08);
    --surface-border: rgba(255, 255, 255, 0.08);
    
    --accent-gold-start: #facc15;
    --accent-gold-end: #f59e0b;
    --accent-green-start: #22c55e;
    --accent-green-end: #14532d;
    --accent-bronze-start: #c2410c;
    --accent-bronze-end: #7c2d12;

    --glow-gold: rgba(250, 204, 21, 0.45);
    --glow-green: rgba(34, 197, 94, 0.35);
    --glow-bronze: rgba(194, 65, 12, 0.35);

    /* Typography */
    --text-primary: #fff7ed;
    --text-secondary: #fde68a;
    --text-muted: #d6d3d1;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Layout */
    --max-width: 1280px;
    --game-max-width: 1200px;
    --nav-width: 80px;
    
    /* Spacing */
    --space-desktop: 120px;
    --space-tablet: 80px;
    --space-mobile: 60px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1.5rem; color: var(--text-secondary); }
h3 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--accent-gold-start); }

p { margin-bottom: 1rem; }
.lead { font-size: 1.25rem; color: var(--text-muted); font-weight: 300; }
.text-gold { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-desktop) 0;
    position: relative;
    z-index: 2;
}

/* Top Banner */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 36px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1000;
    border-bottom: 1px solid var(--surface-border);
    padding: 0.25rem 1rem;
    text-align: center;
    line-height: 1.4;
}

/* Header - Top Bar */
.top-bar {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none; /* Let clicks pass through empty space */
}

.top-bar > * {
    pointer-events: auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-end));
    -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M11,19.93C7.05,19.43 4,16.05 4,12C4,7.95 7.05,4.57 11,4.07V19.93M13,4.07C16.95,4.57 20,7.95 20,12C20,16.05 16.95,19.43 13,19.93V4.07Z"/></svg>') no-repeat center / contain;
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M11,19.93C7.05,19.43 4,16.05 4,12C4,7.95 7.05,4.57 11,4.07V19.93M13,4.07C16.95,4.57 20,7.95 20,12C20,16.05 16.95,19.43 13,19.93V4.07Z"/></svg>') no-repeat center / contain;
}

/* Floating Vertical Navigation (Desktop) */
.side-nav {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 40px;
    padding: 2rem 1rem;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
}

.side-nav::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 40px;
    background: linear-gradient(to bottom, var(--glow-gold), transparent, var(--glow-green));
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.side-nav:hover::before {
    opacity: 0.6;
}

.nav-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item span {
    position: absolute;
    left: 60px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--accent-gold-start);
    transform: scale(1.15);
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 0 15px var(--glow-gold);
}

.nav-item:hover span {
    opacity: 1;
    transform: translateX(0);
}

.nav-item.active {
    color: var(--accent-gold-start);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px var(--glow-gold);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--surface-border);
    z-index: 100;
    padding: 1rem;
    justify-content: space-around;
}

.mobile-nav .nav-item {
    width: auto;
    height: auto;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.7rem;
    border-radius: 0;
}
.mobile-nav .nav-item span {
    position: static;
    opacity: 1;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.7rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 18px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-end));
    color: #451a03;
    box-shadow: 0 8px 25px var(--glow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px var(--glow-gold);
}

.btn-secondary {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
    border-color: var(--accent-green-start);
    background: rgba(34, 197, 94, 0.1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px var(--glow-green);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg-golden-harvest-landscape.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.05);
    animation: slowPan 30s infinite alternate linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(7, 6, 4, 0.4) 0%,
        rgba(21, 16, 6, 0.8) 50%,
        var(--bg-primary) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1.2s ease-out;
}

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

.legal-disclaimer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    z-index: 3;
    padding: 0 2rem;
}

/* Game Section */
.game-section {
    background: var(--bg-primary);
    position: relative;
}

.game-wrapper {
    max-width: var(--game-max-width);
    margin: 0 auto;
    position: relative;
    border-radius: 26px;
    padding: 3px; /* Space for animated border */
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
    transition: transform 0.5s ease;
}

.game-wrapper:hover {
    transform: scale(1.01);
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--accent-gold-start),
        var(--accent-green-start),
        transparent 30%
    );
    animation: spinBorder 6s linear infinite;
    z-index: 0;
}

.game-container {
    position: relative;
    background: #000;
    border-radius: 23px;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
}

.game-iframe-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.game-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('images/feature-card-texture-overlay.png');
    background-size: cover;
    opacity: 0.03;
    mix-blend-mode: overlay;
    z-index: 0;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(250, 204, 21, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(250,204,21,0.1), rgba(34,197,94,0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(250,204,21,0.2);
    box-shadow: inset 0 0 20px var(--glow-gold);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--accent-gold-start);
}

/* Asymmetrical Spanning */
.card-wide { grid-column: span 8; }
.card-tall { grid-column: span 4; grid-row: span 2; }
.card-normal { grid-column: span 4; }

/* Internal Pages (About, Legal, Contact) */
.page-header {
    padding-top: 150px;
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold-start), transparent);
}

.content-glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.content-glass-panel h2 {
    margin-top: 2rem;
    color: var(--text-primary);
    font-size: 2rem;
}

.content-glass-panel p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold-start);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
    background: rgba(0,0,0,0.5);
}

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

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--surface-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer-links {
    display: flex;
    gap: 4rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--accent-gold-start);
}

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

/* Dust Particles */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent-gold-start);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0;
    animation: floatParticle linear infinite;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--surface-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.cookie-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.cookie-notice .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spinBorder {
    100% { transform: rotate(360deg); }
}

@keyframes slowPan {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Media Queries */
@media (max-width: 1024px) {
    .card-wide, .card-tall, .card-normal {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .side-nav { display: none; }
    .mobile-nav { display: flex; }
    
    .top-banner {
        font-size: 0.65rem;
        min-height: 48px;
    }
    
    .top-bar { top: 48px; padding: 1rem; justify-content: center; background: var(--bg-primary); border-bottom: 1px solid var(--surface-border); }
    .top-bar .btn { display: none; }
    
    .hero-actions { flex-direction: column; }
    .container { padding: 0 1rem; }
    .section { padding: var(--space-mobile) 0; }
    
    .card-wide, .card-tall, .card-normal { grid-column: span 12; }
    .content-glass-panel { padding: 2rem; }
    .footer-links { flex-direction: column; gap: 2rem; }
    
    .cookie-notice {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        bottom: 60px;
        padding: 1rem;
    }
    
    body { padding-bottom: 70px; /* Space for mobile nav */ }
}