:root {
    --bg: #060913;
    --surface: rgba(9, 15, 28, 0.9);
    --surface-alt: rgba(16, 24, 43, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f7ff;
    --muted: rgba(245, 247, 255, 0.7);
    --accent: var(--dynamic-accent, #6fe8ce);
    --accent-alt: #6ca8ff;
    --shadow-lg: 0 40px 90px rgba(2, 4, 12, 0.55);
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(
            circle at 18% 20%,
            rgba(111, 232, 206, 0.18),
            transparent 45%
        ),
        radial-gradient(
            circle at 70% 0,
            rgba(108, 168, 255, 0.2),
            transparent 50%
        ),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.body-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

main {
    flex: 1;
    padding: 4rem 0 5rem;
}

.bg-layers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.55;
}

.orb-one {
    width: 320px;
    height: 320px;
    top: 6%;
    left: 12%;
    background: rgba(111, 232, 206, 0.45);
}

.orb-two {
    width: 420px;
    height: 420px;
    top: 50%;
    right: 5%;
    background: rgba(108, 168, 255, 0.35);
}

.orb-three {
    width: 260px;
    height: 260px;
    bottom: 5%;
    left: 8%;
    background: rgba(255, 146, 192, 0.25);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
}

.section-block {
    margin-bottom: 4rem;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

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

.section-hero .hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin: 0.5rem 0 1rem;
}

.hero-copy .lede {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 42ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.panel-head,
.panel-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.signal-feed {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signal-feed article {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.feed-label {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.2rem;
}

.price-chip {
    text-align: right;
}

.price-chip span {
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
}

.price-chip small {
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.pill-alt {
    border-color: rgba(108, 168, 255, 0.4);
    color: var(--accent-alt);
}

.eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent);
}

.lede {
    font-size: 1.05rem;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    background: linear-gradient(120deg, var(--accent), var(--accent-alt));
    color: #06121f;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.ghost-link {
    color: var(--accent);
    font-weight: 500;
}

.trust-bar {
    margin-top: -2rem;
}

.trust-inner {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.logo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.section-heading .muted-text {
    color: var(--muted);
    max-width: 56ch;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.feature-card h3 {
    margin: 0.6rem 0;
}

.feature-card ul {
    padding-left: 1rem;
    color: var(--muted);
}

.playbook-card,
.callout-stack article,
.field-log,
.metric-tower,
.escape-card,
.story-grid article,
.team-grid article,
.policy-grid article,
.sitemap-grid article {
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.75rem;
}

.escape-card {
    display: flex;
    flex-direction: column;
}

.story-grid article {
    display: flex;
    flex-direction: column;
}

.progress-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.progress-list h4 {
    margin: 0 0 0.3rem;
}

.callout-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-grid {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    color: var(--muted);
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.signal-grid article ul {
    padding-left: 1rem;
    color: var(--muted);
}

.signal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.signal-time {
    font-size: 0.85rem;
    color: var(--muted);
}

.page-banner .container,
.cta-panel .container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.metric-tower {
    display: grid;
    gap: 1rem;
}

.field-log h4,
.field-log p {
    margin: 0 0 0.4rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.filter-shell {
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill.is-active {
    background: rgba(111, 232, 206, 0.1);
    border-color: var(--accent);
}

.escape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .escape-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .escape-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.escape-card h3 {
    margin: 0.4rem 0;
}

.media-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.location {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.escape-meta {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.escape-card ul {
    padding-left: 1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.btn-read-more {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    text-align: center;
}

.story-grid article .btn-read-more {
    margin-top: 1.5rem;
    align-self: flex-start;
    width: auto;
}

.cta-panel .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.story-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.section-vetting {
    margin-top: 3rem;
}

.team-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.timeline ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline span {
    display: inline-block;
    font-weight: 600;
    color: var(--accent);
}

.policy-grid .container,
.sitemap-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.policy-grid ul,
.sitemap-grid ul {
    padding-left: 1rem;
    margin: 0.6rem 0 0;
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(24px);
    background: rgba(6, 9, 19, 0.85);
    border-bottom: 1px solid var(--border);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    min-height: 60px;
    white-space: nowrap;
    flex-wrap: nowrap;
    word-break: normal;
}

.brand-mark {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    align-items: center;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    word-break: normal;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    word-break: normal;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--muted);
}

.primary-nav {
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
    word-break: normal;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    justify-content: center;
    white-space: nowrap;
    flex-wrap: nowrap;
    word-break: normal;
}

.primary-nav a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    word-break: normal;
}

.primary-nav a.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    white-space: nowrap;
    flex-wrap: nowrap;
    word-break: normal;
}

.header-cta .ghost-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.4rem 0;
    line-height: 1.5;
}

.header-cta .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

.mobile-panel {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.mobile-panel.open {
    display: flex;
}

.mobile-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-panel a {
    padding: 0.4rem 0;
}

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-cta .ghost-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
}

.mobile-cta .btn {
    width: 100%;
    justify-content: center;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: rgba(4, 6, 12, 0.92);
}

.footer-shell {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .brand-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-brand p {
    color: var(--muted);
}

.support-line {
    font-size: 0.9rem;
}

.footer-newsletter h4 {
    margin: 0.4rem 0 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0.6rem 1rem;
}

.newsletter-form button {
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #06121f;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
}

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

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
    color: var(--muted);
}

.footer-links a {
    color: var(--muted);
}

.footer-meta {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 901px) {
    .header-row {
        justify-content: center;
        text-align: center;
    }

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

    .primary-nav {
        margin-left: 0;
        margin-right: 0;
    }

    .primary-nav ul {
        justify-content: center;
    }

    .header-cta {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .primary-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .mobile-panel {
        border-top: 1px solid var(--border);
        background: rgba(6, 9, 19, 0.95);
    }

    .hero-panel {
        padding: 1.5rem;
    }

    .filter-shell {
        padding: 1.2rem;
    }

    .page-banner .container,
    .cta-panel .container {
        padding: 1.75rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .escape-card {
        padding: 1.25rem;
    }

    .escape-card h3 {
        font-size: 1.3rem;
    }

    .escape-card ul {
        font-size: 0.9rem;
        padding-left: 1.2rem;
    }

    .btn-read-more {
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }

    .story-grid article .btn-read-more {
        width: 100%;
        align-self: stretch;
    }
}
