:root {
    --forest-void: #0a1710;
    --forest-deep: #163625;
    --forest-mid: #2c5e43;
    --forest-light: #e8f2ec;
    --forest-paper: #f4f9f6;
    --accent-bright: #4caf50;
    --text-core: #1c2b23;
    --text-muted: #4a6b5a;
    --font-ui: 'Nunito', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.forest-theme-core {
    font-family: var(--font-ui);
    color: var(--text-core);
    background-color: var(--forest-paper);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Images */
img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--forest-deep);
}

a {
    color: var(--forest-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-bright);
}

/* Top Matrix (Header) */
.aegis-top-matrix {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(244, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    z-index: 1000;
    border-bottom: 1px solid rgba(44, 94, 67, 0.1);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.aegis-top-matrix.scrolled {
    padding: 0.5rem 4%;
    box-shadow: 0 4px 20px rgba(10, 23, 16, 0.08);
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-nomen {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--forest-deep);
    letter-spacing: -0.5px;
}

.routing-table {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.route-link {
    font-weight: 700;
    font-size: 0.95rem;
}

.client-btn {
    background: var(--forest-light);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--forest-mid);
}

/* Hero Block */
.perimeter-hero-block {
    position: relative;
    min-height: 100vh;
    background-image: url('https://loremflickr.com/800/600/server,lock?random=332722');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 0 6%;
}

.hero-overlay-shield {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,23,16,0.9) 0%, rgba(22,54,37,0.7) 100%);
    z-index: 1;
}

.hero-payload {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 5vh;
}

.terminal-header {
    color: var(--forest-paper);
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.sub-terminal {
    color: var(--forest-light);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.action-cluster {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-execute {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-execute.primary {
    background: var(--accent-bright);
    color: var(--forest-void);
}

.btn-execute.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 222, 128, 0.3);
    color: var(--forest-void);
}

.micro-trust-badge {
    color: var(--forest-light);
    font-size: 0.85rem;
    font-weight: 700;
    border-left: 2px solid var(--accent-bright);
    padding-left: 1rem;
}

/* Deep Intel (About) */
.deep-intel-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 12vh 6%;
    align-items: center;
    background: var(--forest-paper);
}

.node-title {
    font-size: 2.5rem;
}

.node-prose {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.inline-ref {
    border-bottom: 1px dashed var(--accent-bright);
    font-weight: 700;
}

.data-point {
    font-size: 1.5rem;
    color: var(--forest-mid);
    background: var(--forest-light);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.fluid-capture {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(22, 54, 37, 0.15);
    transform: rotate(-1.5deg);
    transition: transform 0.5s ease;
}

.fluid-capture:hover {
    transform: rotate(0deg);
}

/* Capabilities (Services) */
.capability-matrix {
    padding: 8vh 6% 14vh;
    background: var(--forest-light);
}

.section-designator {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.asym-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-vector {
    background: var(--forest-paper);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 23, 16, 0.05);
    transition: transform 0.3s ease;
}

.card-vector:hover {
    transform: translateY(-10px);
}

.card-vector.span-wide {
    grid-column: span 2;
}

.card-vector.span-wide .card-img {
    height: 300px;
}

.card-img {
    height: 200px;
}

.card-telemetry {
    padding: 2rem;
}

.card-telemetry h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Strategic Advantages (Benefits) */
.strategic-advantages {
    padding: 10vh 8%;
    background: var(--forest-deep);
    color: var(--forest-paper);
}

.stealth-header {
    color: var(--forest-light);
    margin-bottom: 3rem;
}

.advantage-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.adv-node {
    flex: 1 1 250px;
    border-top: 3px solid var(--accent-bright);
    padding-top: 1.5rem;
}

.adv-node.offset-node {
    margin-top: 3rem;
}

.adv-node h4 {
    color: var(--forest-paper);
    font-size: 1.3rem;
}

.adv-node p {
    color: #a3b8ad;
}

/* Feedback Loop (Testimonials) */
.feedback-loop-sec {
    padding: 12vh 6%;
    background: var(--forest-paper);
}

.light-text {
    text-align: left;
}

.testimonial-scatter {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.t-block {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(22, 54, 37, 0.08);
    position: relative;
}

.t-block::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: var(--forest-light);
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.t-block.alpha {
    grid-column: 1 / 6;
}

.t-block.beta {
    grid-column: 6 / 13;
    margin-top: 4rem;
}

.t-block.gamma {
    grid-column: 3 / 10;
    margin-top: -2rem;
}

.quote-text {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--forest-deep);
}

.source-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-sphere {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.source-name {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Secure Comms (Contact) */
.secure-comms-nexus {
    padding: 14vh 6%;
    background: var(--forest-light);
}

.nexus-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(10, 23, 16, 0.05);
}

.noise-element {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--forest-paper);
    border-left: 3px solid var(--forest-mid);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.data-ingress {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-vector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--forest-mid);
}

.input-vector input,
.input-vector textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--forest-light);
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-vector input:focus,
.input-vector textarea:focus {
    outline: none;
    border-color: var(--accent-bright);
}

.flush-right {
    align-self: flex-end;
}

/* Terminal Footer */
.terminal-footer {
    background: var(--forest-void);
    color: var(--forest-light);
    padding: 6rem 6% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.f-node h3, .f-node h4 {
    color: var(--forest-paper);
    margin-bottom: 1.5rem;
}

.f-node p {
    color: #8da699;
    margin-bottom: 0.5rem;
}

.f-node a {
    color: #8da699;
}

.f-node a:hover {
    color: var(--accent-bright);
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.f-bottom-bar {
    border-top: 1px solid rgba(232, 242, 236, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #5a7567;
}

/* Responsive Leakage */
@media (max-width: 1024px) {
    .asym-grid-layout {
        grid-template-columns: 1fr 1fr;
    }
    .card-vector.span-wide {
        grid-column: span 2;
    }
    .testimonial-scatter {
        display: flex;
        flex-direction: column;
    }
    .t-block.beta, .t-block.gamma {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .routing-table {
        display: none; /* Simplification for brief */
    }
    .deep-intel-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 8vh 5%;
    }
    .asym-grid-layout {
        grid-template-columns: 1fr;
    }
    .card-vector.span-wide {
        grid-column: span 1;
    }
    .nexus-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
