/* ============================================================
   CONTINUITY AERO — Homepage & About Page
   Pure CSS — No frameworks, no external dependencies
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
}

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

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

ul {
    list-style: none;
}

/* ---- LAYOUT ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- ANIMATIONS ---- */
@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brandUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes taglineFade {
    from {
        opacity: 0;
        letter-spacing: 4px;
    }
    to {
        opacity: 1;
        letter-spacing: 1.5px;
    }
}

/* ---- HEADER / NAV ---- */
.site-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    animation: headerSlideDown 0.6s ease-out both;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    height: 2px;
    background: #2c3e50;
    animation: brandUnderline 0.8s ease-out 0.4s both;
}

.brand-tagline {
    font-size: 0.68rem;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: taglineFade 0.8s ease-out 0.6s both;
}

.brand-version {
    font-size: 0.7rem;
    color: #888;
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 24px;
    animation: heroFadeIn 0.5s ease-out 0.3s both;
}

.site-nav a {
    font-size: 0.82rem;
    color: #666;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-nav a:hover {
    color: #1a1a1a;
}

.site-nav a i {
    font-size: 0.78rem;
    color: #999;
    transition: color 0.2s;
}

.site-nav a:hover i {
    color: #2c3e50;
}

/* ---- HERO ---- */
.hero {
    padding: 72px 0 64px;
    border-bottom: 1px solid #e5e5e5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-headline {
    font-size: 1.65rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    animation: heroFadeIn 0.7s ease-out 0.2s both;
}

.hero-subheading {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 32px;
    animation: heroFadeIn 0.7s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid #bbb;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
}

.btn:hover {
    border-color: #555;
    color: #1a1a1a;
}

.btn-accent {
    border-color: #5a7da8;
    color: #3a5f85;
}

.btn-accent:hover {
    border-color: #3a5f85;
    color: #1a1a1a;
    background-color: #f5f8fb;
}

.hero-image {
    border: 1px solid #e0e0e0;
    background: #fafafa;
    padding: 8px;
}

.hero-image img {
    width: 100%;
}

.hero-caption {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
    line-height: 1.5;
}

/* ---- SECTIONS ---- */
.section {
    padding: 56px 0;
    border-bottom: 1px solid #e5e5e5;
}

.section:last-of-type {
    border-bottom: none;
}

.section-heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.section-text {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.8;
    max-width: 780px;
}

.section-text + .section-text {
    margin-top: 16px;
}

/* ---- CAPABILITIES LIST ---- */
.capabilities-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}

.capabilities-list li {
    font-size: 0.9rem;
    color: #444;
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.capabilities-list li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: #aaa;
}

/* ---- ADVISORY ---- */
.advisory {
    padding: 24px 28px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    margin-top: 40px;
}

.advisory p {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
}

/* ---- ABOUT PAGE SECTIONS ---- */
.about-section {
    padding: 48px 0;
    border-bottom: 1px solid #e5e5e5;
}

.about-section:last-of-type {
    border-bottom: none;
}

.about-section-heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.about-text {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.85;
    max-width: 780px;
}

.about-text + .about-text {
    margin-top: 16px;
}

.about-subheading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2a2a2a;
    margin: 28px 0 10px;
}

.about-subheading:first-of-type {
    margin-top: 20px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    max-width: 780px;
}

.about-list li {
    font-size: 0.9rem;
    color: #444;
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.7;
}

.about-list li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: #aaa;
}

.equation-block {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.92rem;
    color: #2a2a2a;
    background: #f6f7f8;
    border-left: 3px solid #ccc;
    padding: 16px 24px;
    margin: 16px 0;
    max-width: 680px;
    line-height: 2.2;
    letter-spacing: 0.3px;
    overflow-x: auto;
    white-space: nowrap;
}

.equation-block .eq-symbol {
    font-size: 1.3em;
    vertical-align: middle;
}

.about-section--emphasis {
    background: #fafafa;
}

@media (max-width: 768px) {
    .equation-block {
        font-size: 0.82rem;
        padding: 14px 16px;
        max-width: 100%;
    }
}

/* ---- EXPLORE SECTION ---- */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.explore-card {
    display: block;
    border: 1px solid #e5e5e5;
    padding: 24px 20px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.explore-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #2c3e50;
    font-size: 1rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.explore-card:hover .explore-icon {
    background: #2c3e50;
    color: #fff;
}

.explore-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.explore-desc {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.6;
}

/* ---- FOOTER ---- */
.site-footer {
    border-top: 1px solid #e5e5e5;
    padding: 32px 0;
    text-align: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.78rem;
    color: #888;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1a1a1a;
}

.footer-disclaimer {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 8px;
}

/* ---- MODULE CARDS (Hub Page) ---- */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.module-card {
    border: 1px solid #e0e0e0;
    padding: 28px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.module-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.module-card--disabled {
    opacity: 0.7;
}

.module-card--disabled:hover {
    box-shadow: none;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.module-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.module-status {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 2px;
}

.module-status--live {
    background: #e8f5e9;
    color: #2e7d32;
}

.module-status--prealpha {
    background: #e3f2fd;
    color: #1565c0;
}

.module-status--dev {
    background: #fff8e1;
    color: #f57f17;
}

.module-subtitle {
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 12px;
}

.module-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.module-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.module-stack {
    font-size: 0.7rem;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border: 1px solid #e5e5e5;
}

.module-btn {
    display: inline-block;
}

.module-note {
    font-size: 0.78rem;
    color: #999;
    font-style: italic;
    line-height: 1.5;
}

.footer-author {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero-headline {
        font-size: 1.4rem;
    }

    .capabilities-list {
        grid-template-columns: 1fr;
    }

    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 40px 0;
    }

    .about-section {
        padding: 36px 0;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .explore-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .brand-tagline {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body { color: black; }
    .site-header, .site-footer { border-color: #ccc; }
    .hero-image { border-color: #ccc; }
    .advisory { background: #f0f0f0; border-color: #ccc; }
    .site-header { animation: none; }
    .brand-name::after { animation: none; width: 100%; }
    .brand-tagline { animation: none; opacity: 1; }
    .site-nav { animation: none; }
    .hero-headline, .hero-subheading { animation: none; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
