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

:root {
    --bg-primary: #0F1726;
    --bg-secondary: #182338;
    --surface: #22324D;
    --gold: #D7B45A;
    --gold-hover: #E8C872;
    --brown: #8D6846;
    --blue: #4D9DFF;
    --green: #4FC98B;
    --text-primary: #F8F9FC;
    --text-secondary: #D5DDF0;
    --text-muted: #8C97B3;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 40%, var(--surface) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 600;
}

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

a:hover {
    color: var(--gold-hover);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(215, 180, 90, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
}

.btn-outline:hover {
    background-color: rgba(215, 180, 90, 0.1);
    box-shadow: 0 0 15px rgba(215, 180, 90, 0.2);
}

/* Header & Navigation */
.site-header {
    background-color: rgba(15, 23, 38, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(215, 180, 90, 0.2);
    padding: 1rem 0;
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D7B45A"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-size: cover;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--gold);
}

.nav-cta {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold) !important;
}

.nav-cta:hover {
    background-color: var(--gold);
    color: var(--bg-primary) !important;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-image: url('images/luxury-detective-office-desk-with-investigation-clues.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    /* Keeping it bright but ensuring readability per instructions */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,23,38,0.9) 0%, rgba(15,23,38,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Game Section */
.game-section {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.game-container {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background-color: #000;
    border: 4px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(215, 180, 90, 0.2);
    overflow: hidden;
    position: relative;
}

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

/* Case Files (Highlights) Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--gold);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    background-color: var(--surface);
    border: 1px solid rgba(215, 180, 90, 0.2);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background-color: var(--brown);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: var(--gold);
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid rgba(215, 180, 90, 0.2);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    background-image: linear-gradient(rgba(24,35,56,0.9), rgba(24,35,56,0.9)), url('images/detective-agency-evidence-board-with-clues.jpg');
    background-attachment: fixed;
    background-size: cover;
    border-top: 1px dashed var(--gold);
    border-bottom: 1px dashed var(--gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(34, 50, 77, 0.6);
    border: 1px solid rgba(215, 180, 90, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* About Preview */
.about-preview {
    background-color: var(--bg-primary);
}

.about-content-box {
    background-color: var(--surface);
    border: 1px solid var(--brown);
    padding: 4rem;
    text-align: center;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.about-content-box::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px dashed rgba(215, 180, 90, 0.3);
    pointer-events: none;
}

.about-content-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: var(--surface);
    border: 1px solid rgba(215, 180, 90, 0.2);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

summary {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Standard Pages (About, Contact, Legal) */
.page-header {
    padding: 6rem 0 3rem;
    text-align: center;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--surface);
}

.page-header h1 {
    font-size: 3rem;
}

.page-content {
    background-color: var(--bg-secondary);
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(215, 180, 90, 0.2);
}

.content-wrapper h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-wrapper p, .content-wrapper ul {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.content-wrapper ul {
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.form-group input, .form-group textarea {
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid rgba(215, 180, 90, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(215, 180, 90, 0.2);
}

/* Footer - Archive Theme */
.site-footer {
    background: linear-gradient(rgba(15, 23, 38, 0.95), rgba(15, 23, 38, 0.98)), url('images/dark-vintage-leather-desk-texture.jpg');
    background-size: cover;
    border-top: 3px solid var(--gold);
    padding: 4rem 0 2rem;
    position: relative;
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(215, 180, 90, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

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

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

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

.footer-col a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.support-email {
    color: var(--gold);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(34, 50, 77, 0.5);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(215, 180, 90, 0.3);
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px dashed rgba(215, 180, 90, 0.2);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-style: italic;
    color: var(--brown) !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: var(--surface);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    flex: 1;
    padding-right: 2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-btn.accept {
    background: var(--gold);
    color: var(--bg-primary);
}

.cookie-btn:hover {
    background: var(--gold-hover);
    color: var(--bg-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .game-container { width: 90%; }
    .hero h1 { font-size: 3rem; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; } /* Simple mobile hide for this requirement */
    .game-container { width: 100%; border-left: none; border-right: none; border-radius: 0; }
    .cards-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4 { margin: 0 auto 1.5rem; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 1rem; }
    .cookie-content { padding-right: 0; }
}