@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color-dark: #0a2342;
    --secondary-color-medium: #2ca58d;
    --accent-color-vibrant: #4fba6f;
    --bg-light-gray: #f4f6f8;
    --bg-white: #ffffff;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --text-color-subtle: #555555;
    --border-color-light: #e1e1e1;
    --error-color: #d93025;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--primary-color-dark);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 4rem 1rem;
}

.section-catalyst-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

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

.hidden {
    display: none !important;
}

.stellar-horizon-container {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.gamma-brand-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color-dark);
}

.hyperion-nav-links {
    display: none;
}

.celestial-nav-link {
    padding: 0.5rem 1rem;
    font-weight: 700;
    color: var(--primary-color-dark);
}
.celestial-nav-link:hover {
    color: var(--secondary-color-medium);
}

.nova-burger-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color-dark);
    cursor: pointer;
}

.mobile-menu-vortex {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu-vortex.is-open {
    transform: translateX(0);
}

.vortex-link {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color-dark);
    padding: 1rem 0;
}

.hero-synthesis-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    padding: 1rem;
}

.hero-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-background-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.7);
    z-index: -1;
}

.hero-content-matrix {
    max-width: 800px;
}

.primary-fusion-header {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.secondary-fusion-subheader {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-pulse-button {
    display: inline-block;
    background-color: var(--accent-color-vibrant);
    color: var(--text-color-light);
    padding: 0 2rem;
    min-height: 50px;
    line-height: 50px;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-pulse-button:hover {
    background-color: var(--secondary-color-medium);
    transform: translateY(-3px);
    color: var(--text-color-light);
}

.quantum-grid-section {
    background-color: var(--bg-light-gray);
}

.solution-matrix-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.matrix-card-unit {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.matrix-card-unit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

.matrix-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.matrix-card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color-medium);
    margin-bottom: 1rem;
}

.matrix-card-title {
    margin-bottom: 0.5rem;
}

.matrix-card-preview {
    color: var(--text-color-subtle);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.matrix-card-details summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary-color-medium);
    list-style: none;
}
.matrix-card-details summary::-webkit-details-marker {
    display: none;
}
.matrix-card-details summary::after {
    content: ' ▸';
}
.matrix-card-details[open] summary::after {
    content: ' ▾';
}
.matrix-card-fulltext {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color-subtle);
}

.continuum-gallery {
    display: grid;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.continuum-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.continuum-gallery-item img {
    transition: transform 0.4s ease;
}

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

.continuum-gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--text-color-light);
    padding: 2rem 1rem 1rem;
    font-weight: bold;
}

.ethos-core-section {
    background-color: var(--primary-color-dark);
    color: var(--text-color-light);
    text-align: center;
}
.ethos-core-section .section-catalyst-title {
    color: var(--text-color-light);
}

.ethos-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.ethos-icon {
    font-size: 3rem;
    color: var(--accent-color-vibrant);
    margin-bottom: 1rem;
}

.contact-nexus-point {
    background-color: var(--bg-light-gray);
}
.nexus-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem;
    color: var(--text-color-subtle);
}

.flux-capacitor-form {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-field-cluster {
    display: flex;
    flex-direction: column;
}

.form-field-label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-field-input,
.form-field-textarea {
    width: 100%;
    padding: 0 1rem;
    min-height: 48px;
    border: 1px solid var(--border-color-light);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-field-textarea {
    min-height: 150px;
    padding-top: 1rem;
    resize: vertical;
}

.form-field-input:focus,
.form-field-textarea:focus {
    outline: none;
    border-color: var(--secondary-color-medium);
    box-shadow: 0 0 0 3px rgba(44, 165, 141, 0.2);
}

.form-field-input:invalid:not(:placeholder-shown),
.form-field-textarea:invalid:not(:placeholder-shown){
    border-color: var(--error-color);
}
.form-field-input:invalid:not(:placeholder-shown):focus,
.form-field-textarea:invalid:not(:placeholder-shown):focus {
     box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.2);
}

.form-submit-trigger {
    justify-self: center;
    width: auto;
}

.cosmic-base-footer {
    background-color: var(--primary-color-dark);
    color: var(--bg-light-gray);
    padding: 3rem 1rem 0;
}

.footer-main-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.footer-brand-info .gamma-brand-logo {
    color: var(--text-color-light);
}

.social-icon-array {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-icon-array a {
    color: var(--bg-light-gray);
    font-size: 1.5rem;
}

.strata-title {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.footer-link-strata a {
    display: block;
    color: var(--bg-light-gray);
    padding: 0.25rem 0;
}

.footer-copyright-bar {
    border-top: 1px solid var(--text-color-subtle);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-color-subtle);
}

.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.legal-modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.legal-modal-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.legal-modal-overlay:not(.hidden) .legal-modal-content {
    transform: scale(1);
}


.legal-modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color-subtle);
    cursor: pointer;
    line-height: 1;
}

.cookie-banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 35, 66, 0.95);
    color: var(--text-color-light);
    padding: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transform: translateY(110%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner-container:not(.hidden) {
    transform: translateY(0);
}

.cookie-button-group {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn-accept,
.cookie-btn-decline {
    min-height: 40px;
    border: none;
    border-radius: 20px;
    padding: 0 1.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cookie-btn-accept {
    background-color: var(--accent-color-vibrant);
    color: var(--text-color-light);
}
.cookie-btn-accept:hover {
    background-color: var(--secondary-color-medium);
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--text-color-light);
    border: 1px solid var(--text-color-light);
}

.cookie-btn-decline:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color-dark);
}

@media (min-width: 576px) {
    .flux-capacitor-form {
        grid-template-columns: 1fr 1fr;
    }
    .full-width {
        grid-column: 1 / -1;
    }
    .form-submit-trigger {
        grid-column: 1 / -1;
    }
     .cookie-banner-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    
    .nova-burger-menu {
        display: none;
    }
    .hyperion-nav-links {
        display: flex;
        gap: 0.5rem;
    }

    .solution-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .continuum-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-main-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    .social-icon-array {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
     section {
        padding: 5rem 2rem;
    }
    h1 { font-size: 3.5rem; }
    
    .solution-matrix-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .continuum-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-main-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}