:root {
    --nav-bg: rgba(11, 23, 40, 0.95);
    --command-navy: #0B1728;
    --base-blue: #12304A;
    --emergency-red: #E84949;
    --rescue-orange: #FF8A3D;
    --alert-gold: #FFC857;
    --success-green: #4FD18B;
    --signal-white: #F8FBFF;
    --secondary-text: #C7D6E8;
    --muted-text: #8A9CB4;
    --tech-grid: linear-gradient(rgba(18, 48, 74, 0.2) 1px, transparent 1px),
                 linear-gradient(90deg, rgba(18, 48, 74, 0.2) 1px, transparent 1px);
    --glow-shadow: 0 0 15px rgba(255, 138, 61, 0.3);
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--command-navy);
    background-image: var(--tech-grid);
    background-size: 30px 30px;
    background-attachment: fixed;
    color: var(--signal-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

a {
    color: var(--rescue-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header & Nav */
header {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--base-blue);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--signal-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--emergency-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(232, 73, 73, 0.5);
}

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

.nav-links a {
    color: var(--secondary-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--signal-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--rescue-orange);
    color: var(--command-navy);
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    background: var(--alert-gold);
    color: var(--command-navy);
    box-shadow: 0 0 20px rgba(255, 200, 87, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--base-blue);
    color: var(--signal-white);
}

.btn-outline:hover {
    background: var(--base-blue);
    border-color: var(--secondary-text);
}

/* Layout Utilities */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--signal-white);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--secondary-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--base-blue) 0%, var(--command-navy) 70%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(18, 48, 74, 0.8);
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    opacity: 0.6;
    background-image: url('images/futuristic-command-center-map-display.jpg');
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* Game Section */
#game {
    background: rgba(18, 48, 74, 0.3);
    border-top: 1px solid var(--base-blue);
    border-bottom: 1px solid var(--base-blue);
    padding: 4rem 2rem;
}

.game-container {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border: 2px solid var(--base-blue);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(18, 48, 74, 0.8);
    position: relative;
}

.game-container::before {
    content: "SYSTEM SECURE";
    position: absolute;
    top: -25px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--success-green);
    font-family: monospace;
}

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

/* Highlights Cards */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: rgba(18, 48, 74, 0.4);
    border: 1px solid var(--base-blue);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(18, 48, 74, 0.6);
    border-color: var(--rescue-orange);
}

.highlight-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--base-blue);
    filter: sepia(100%) hue-rotate(180deg) saturate(200%) opacity(0.8);
}

.highlight-content {
    padding: 1.5rem;
}

.highlight-content h3 {
    color: var(--signal-white);
    font-size: 1.2rem;
}

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

/* Stats Dashboard */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background: rgba(11, 23, 40, 0.8);
    border: 1px solid var(--base-blue);
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    position: relative;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--success-green);
    transform: scaleX(0.2);
    transition: transform 0.3s ease;
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--alert-gold);
    font-family: monospace;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

/* About / Generic Text Sections */
.text-box {
    background: rgba(18, 48, 74, 0.2);
    border: 1px solid var(--base-blue);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.text-box p {
    margin-bottom: 1.5rem;
    color: var(--secondary-text);
}

/* FAQ Accordion */
.faq-item {
    background: rgba(18, 48, 74, 0.3);
    border: 1px solid var(--base-blue);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--signal-white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--secondary-text);
}

.faq-item.active .faq-answer {
    padding: 0 1.2rem 1.2rem 1.2rem;
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(11, 23, 40, 0.6);
    border: 1px solid var(--base-blue);
    border-radius: 4px;
    color: var(--signal-white);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--rescue-orange);
    box-shadow: 0 0 10px rgba(255, 138, 61, 0.2);
}

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

.form-status {
    display: none;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
}

.form-status.success {
    display: block;
    background: rgba(79, 209, 139, 0.2);
    border: 1px solid var(--success-green);
    color: var(--success-green);
}

.form-status.loading {
    display: block;
    background: rgba(255, 200, 87, 0.2);
    border: 1px solid var(--alert-gold);
    color: var(--alert-gold);
}

/* Footer */
footer {
    background: #060d17;
    border-top: 2px solid var(--base-blue);
    padding: 4rem 2rem 2rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--emergency-red), var(--emergency-red) 50px, transparent 50px, transparent 100px);
    opacity: 0.5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-brand p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--signal-white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success-green);
}

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

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

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

.footer-links a:hover {
    color: var(--signal-white);
    padding-left: 5px;
}

.support-email {
    display: inline-block;
    padding: 0.8rem;
    background: rgba(18, 48, 74, 0.3);
    border: 1px dashed var(--base-blue);
    color: var(--alert-gold);
    font-family: monospace;
    font-size: 1rem;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    border: 1px solid var(--base-blue);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .game-container {
        width: 90%;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-visual {
        opacity: 0.3;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        width: 90%;
        bottom: 10px;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav hide for generic structure */
    }
    .hero {
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .game-container {
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .section {
        padding: 4rem 1rem;
    }
}