:root {
    --bg: #07161A;
    --surface: #10252B;
    --surface-sec: #16343B;
    --cyan: #4CC9F0;
    --blue: #2487A8;
    --emerald: #2E8B57;
    --fern: #65C466;
    --amber: #E6B85C;
    --sandstone: #C7A36D;
    --fog: #EDF7F7;
    --text-primary: #F5FBFC;
    --text-sec: #B9D8DA;
    --muted: #7FA5A8;
    --grad-accent: linear-gradient(135deg, #4CC9F0, #65C466);
    --grad-sec: linear-gradient(135deg, #2487A8, #E6B85C);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

a {
    text-decoration: none;
    color: var(--cyan);
    transition: color 0.25s ease;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--fog);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-sec); margin-bottom: 1rem; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.btn-secondary:hover {
    background: rgba(76, 201, 240, 0.1);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--cyan);
    padding: 0;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-text:hover {
    color: var(--fern);
}

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

section {
    padding: 4rem 0;
}

/* Disclaimer Ribbon */
.disclaimer-ribbon {
    background: #040d10;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.75rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(76, 201, 240, 0.1);
    position: relative;
    z-index: 101;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Observatory Ribbon */
.observatory-ribbon {
    background: var(--surface);
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
    position: relative;
    z-index: 100;
}

.observatory-ribbon span {
    color: var(--text-sec);
    margin-right: 1rem;
}

/* Glass Biosphere Header */
.glass-header {
    position: sticky;
    top: 1rem;
    z-index: 99;
    margin: 0 auto 2rem auto;
    max-width: 1160px;
    background: rgba(16, 37, 43, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 40px;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.25s ease;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--fog);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.footprint-icon {
    width: 24px;
    height: 24px;
    fill: var(--cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
}

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

/* Crystal Valley Opening */
.opening-section {
    padding-top: 2rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.opening-content .buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.opening-visual {
    position: relative;
}

.oversized-illustration {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(76, 201, 240, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: block;
}

.floating-panels {
    display: flex;
    gap: 1rem;
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    right: 2rem;
}

.panel {
    background: rgba(22, 52, 59, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(76, 201, 240, 0.15);
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-sec);
}

/* Species Gallery */
.species-gallery {
    display: flex;
    gap: 1.5rem;
    padding: 4rem 0;
    justify-content: space-between;
}

.species-panel {
    background: var(--surface);
    padding: 2rem;
    border-radius: 20px;
    flex: 1;
    text-align: center;
    border: 1px solid transparent;
    transition: border 0.25s, transform 0.25s;
}

.species-panel:hover {
    border-color: rgba(76, 201, 240, 0.3);
    transform: translateY(-5px);
}

.panel-icon {
    font-size: 2rem;
    color: var(--fern);
    margin-bottom: 1rem;
}

.species-panel h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.species-panel p {
    font-size: 0.85rem;
    margin: 0;
}

/* Dinoland Experience Dome */
.experience-dome-section {
    padding: 2rem 0;
}

.dome-container {
    max-width: 1020px;
    margin: 0 auto;
    background: #0a1113; /* Dark basalt feel */
    border: 2px solid var(--cyan);
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(76, 201, 240, 0.15), inset 0 0 20px rgba(46, 139, 87, 0.2);
    overflow: hidden;
    position: relative;
    padding: 15px;
}

.dome-iframe-wrapper {
    width: 100%;
    height: 573px; /* 16:9 approx for 1020px */
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

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

.dome-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 15px;
}

.dome-controls button {
    background: transparent;
    color: var(--cyan);
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.25s;
}

.dome-controls button:hover {
    color: var(--fern);
}

/* Evolution Path */
.evolution-path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.evo-section {
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.evo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.evo-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.evo-content h3 {
    font-size: 1.3rem;
}

.evo-content p {
    font-size: 0.9rem;
    flex-grow: 1;
}

.evo-content .btn-text {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Grid Override for strict editorial layout requested */
.evolution-path-editorial {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 4rem 0;
}

.evo-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.evo-edit-row.reverse .evo-edit-img {
    order: 2;
}

.evo-edit-row.reverse .evo-edit-text {
    order: 1;
}

.evo-edit-img img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(76,201,240,0.2);
}

/* Research Centre */
.research-centre {
    background: var(--surface-sec);
    border-radius: 30px;
    padding: 4rem;
    margin: 4rem 0;
}

.magazine-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.magazine-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.4);
}

.topics-list {
    margin-top: 2rem;
}

.topics-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(185, 216, 218, 0.1);
    color: var(--fog);
    font-weight: 500;
}

.topics-list li:last-child {
    border-bottom: none;
}

/* Explorer Lounge */
.explorer-lounge {
    padding: 4rem 0;
}

.lounge-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--surface);
    border-radius: 30px;
    padding: 4rem;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.support-email {
    font-size: 1.5rem;
    color: var(--cyan);
    margin: 1.5rem 0;
    display: block;
}

.mini-faq {
    margin-top: 2rem;
}

.mini-faq h4 {
    color: var(--fog);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.mini-faq p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

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

.form-group label {
    font-size: 0.85rem;
    color: var(--text-sec);
}

.form-group input, .form-group textarea {
    background: var(--bg);
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.25s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
}

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

/* Footer */
.nature-reserve-footer {
    background: #040d10;
    border-top: 1px solid var(--cyan);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--fog);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

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

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(76, 201, 240, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 32px;
    height: 32px;
    fill: var(--muted);
    margin-bottom: 1rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 800px;
    margin-top: 1rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(16, 37, 43, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--cyan);
    border-radius: 22px;
    padding: 2rem;
    width: 340px;
    z-index: 1000;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    display: none;
    animation: fadeUp 0.25s ease-out;
}

.cookie-popup h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cookie-popup p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

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

.cookie-buttons button {
    flex: 1;
    padding: 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.25s;
}

.btn-accept {
    background: var(--cyan);
    color: var(--bg);
}

.btn-reject {
    background: var(--surface-sec);
    color: var(--text-sec);
}

.cookie-buttons button:hover {
    opacity: 0.8;
}

/* Subpage Styles */
.subpage-container {
    max-width: 900px;
    margin: 2rem auto 6rem auto;
    background: var(--surface);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.subpage-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--cyan);
}

.subpage-container h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.return-home-wrapper {
    margin-bottom: 3rem;
}

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

.fade-in {
    animation: fadeUp 0.25s ease forwards;
}

/* Responsiveness */
@media (max-width: 992px) {
    .split-layout, .magazine-layout, .lounge-split, .evo-edit-row {
        grid-template-columns: 1fr;
    }
    .floating-panels {
        position: relative;
        bottom: 0; left: 0; right: 0;
        margin-top: 1rem;
    }
    .species-gallery {
        flex-wrap: wrap;
    }
    .species-panel {
        min-width: 45%;
    }
    .evo-edit-row.reverse .evo-edit-img {
        order: 1;
    }
    .evo-edit-row.reverse .evo-edit-text {
        order: 2;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links, .header-cta {
        display: none; /* Simplistic mobile handling */
    }
    .subpage-container {
        padding: 2rem;
        margin: 1rem;
    }
    .cookie-popup {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}