/* Phexora Aegis — static research landing page */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fb;
    --bg-accent: #eef2ff;
    --text-primary: #17172b;
    --text-secondary: #49495a;
    --text-muted: #666678;
    --accent-primary: #3156c9;
    --accent-dark: #203d99;
    --accent-soft: #dfe7ff;
    --border-color: #dfe2ea;
    --border-strong: #c9cfdb;
    --success: #176b45;
    --neutral: #5d6472;
    --focus-inner: #ffffff;
    --focus-outer: #17172b;
    --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Crimson Pro", "Georgia", serif;
    --shadow-sm: 0 1px 2px rgba(23, 23, 43, 0.05);
    --shadow-md: 0 12px 28px rgba(23, 23, 43, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.65;
}

section[id] {
    scroll-margin-top: 5rem;
}

a:focus-visible {
    outline: 3px solid var(--focus-inner);
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: 0 0 0 7px var(--focus-outer);
}

.navbar {
    position: fixed;
    z-index: 1000;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 5%;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-links a[aria-current="page"] {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
}

.language-switcher {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.2rem;
    padding: 0.2rem;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--bg-secondary);
}

.language-option {
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.language-option:hover {
    color: var(--accent-primary);
}

.language-option.active {
    background: var(--accent-primary);
    color: white;
}

.language-option:focus-visible {
    outline: 3px solid var(--focus-inner);
    outline-offset: 2px;
    box-shadow: 0 0 0 7px var(--focus-outer);
}

.hero {
    padding: 8.5rem 5% 4.5rem;
    border-bottom: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 50% 0%, rgba(49, 86, 201, 0.09), transparent 44%),
        var(--bg-primary);
    text-align: center;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.research-label,
.section-kicker,
.target-label,
.status-step,
.paper-order {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.research-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--accent-soft);
    border-radius: 999px;
    background: var(--bg-accent);
}

.hero h1 {
    max-width: 780px;
    margin: 0 auto 1rem;
    font-size: clamp(2rem, 5vw, 3.45rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.subtitle {
    max-width: 690px;
    margin: 0 auto 1.75rem;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions,
.paper-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-actions {
    justify-content: center;
    margin-bottom: 2.25rem;
}

.target-label {
    margin-bottom: 0.85rem;
    color: var(--text-muted);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 720px;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
}

.hero-stat {
    padding: 1.25rem 1rem;
}

.hero-stat + .hero-stat {
    border-left: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: clamp(1.65rem, 4vw, 2.3rem);
    font-weight: 750;
    line-height: 1;
}

.stat-desc {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.35;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.badge {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: white;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status-section,
.requirements-section,
.papers-section,
.cta-section {
    padding: 4.5rem 5%;
}

.status-section,
.papers-section {
    background: var(--bg-primary);
}

.requirements-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.section-heading-left {
    max-width: none;
    text-align: left;
}

.section-kicker {
    margin-bottom: 0.5rem;
}

.section-heading h2,
.cta-section h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-heading p:not(.section-kicker),
.cta-section > p:not(.section-kicker) {
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 1.05rem;
}

.status-grid,
.requirements-grid {
    display: grid;
    max-width: 1040px;
    margin: 0 auto;
    gap: 1rem;
}

.status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.requirements-grid {
    display: flex;
    flex-wrap: wrap;
}

.requirements-grid > .requirement-card {
    flex: 1 1 280px;
}

.status-card,
.requirement-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: white;
}

.status-card {
    padding: 1.35rem;
}

.status-card h3,
.requirement-card h3 {
    margin: 0.55rem 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.status-card p:last-child,
.requirement-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-chip,
.paper-status {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
}

.status-chip.documented {
    background: #e5f5ec;
    color: var(--success);
}

.status-chip.designed {
    background: var(--bg-accent);
    color: var(--accent-primary);
}

.status-chip.roadmap {
    background: #eceef2;
    color: var(--neutral);
}

.status-step {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.requirement-card {
    position: relative;
    overflow: hidden;
    padding: 1.55rem;
}

.requirement-number {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
}

.papers-section {
    max-width: 960px;
    margin: 0 auto;
}

.paper-card {
    margin-bottom: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.paper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.paper-order {
    color: var(--text-muted);
}

.paper-status {
    background: var(--bg-accent);
    color: var(--accent-primary);
}

.paper-card h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.paper-abstract {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 1.02rem;
}

.paper-status-note,
.planning-note {
    margin-bottom: 1.15rem;
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--accent-primary);
    background: var(--bg-accent);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.paper-source {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.paper-source a {
    color: var(--text-muted);
    text-decoration-color: var(--border-strong);
    text-underline-offset: 0.2em;
}

.paper-source a:hover {
    color: var(--accent-primary);
}

.separator {
    margin: 0 0.6rem;
    color: var(--border-strong);
}

.planning-note {
    margin: 1.5rem 0 0;
    border-left-color: var(--border-strong);
    background: var(--bg-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    border-color: var(--border-strong);
    background: white;
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.cta-section {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cta-section > p:not(.section-kicker) {
    margin-bottom: 1.5rem;
}

.site-footer {
    padding: 3rem 5%;
    background: #1f2937;
    color: white;
}

.footer-container {
    max-width: 1152px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.75fr) minmax(190px, 0.9fr);
    gap: 3rem;
    align-items: start;
}

.footer-company {
    max-width: 360px;
}

.footer-company-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: white;
    text-decoration: none;
}

.footer-company-link:hover {
    color: white;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-tagline {
    margin-top: 0.5rem;
    color: #f3f4f6;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-description {
    margin-top: 0.5rem;
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-column {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.footer-heading,
.footer-social-heading {
    color: #f3f4f6;
    font-size: 1rem;
    font-weight: 600;
}

.footer-social-heading {
    margin-top: 0.75rem;
}

.footer-column a,
.footer-social-links a,
.footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    color: #d1d5db;
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-column a:hover,
.footer-social-links a:hover,
.footer-legal-links a:hover {
    color: white;
}

.footer-social-links,
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-divider {
    height: 1px;
    margin: 2rem 0 1rem;
    background: #4b5563;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-copyright {
    color: #9ca6b4;
    font-size: 0.875rem;
}

pre,
code {
    border-radius: 4px;
    background: var(--bg-secondary);
    font-family: var(--font-mono);
}

code {
    padding: 0.15rem 0.35rem;
    color: var(--accent-dark);
    font-size: 0.875rem;
}

pre {
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        position: static;
        flex-wrap: wrap;
        gap: 0.7rem;
        padding: 0.75rem 5%;
    }

    .nav-actions {
        display: flex;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 0.25rem;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.35rem;
        text-align: center;
    }

    .language-switcher {
        align-self: center;
    }

    .hero {
        padding: 3.5rem 5%;
    }

    .status-section,
    .requirements-section,
    .papers-section,
    .cta-section {
        padding: 3.5rem 5%;
    }

    .requirements-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-company {
        max-width: 520px;
        margin: 0 auto;
    }

    .footer-company-link {
        justify-content: center;
    }

    .footer-description {
        margin: 0 auto;
    }

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

    .footer-social-links,
    .footer-legal-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .nav-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat + .hero-stat {
        border-top: 1px solid var(--border-color);
        border-left: 0;
    }

    .hero-stat {
        padding: 1rem;
    }

    .hero-actions,
    .paper-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .paper-card {
        padding: 1.35rem;
    }

    .paper-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .separator {
        display: none;
    }

    .paper-source {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .footer-social-links,
    .footer-legal-links {
        column-gap: 1rem;
        row-gap: 0.2rem;
    }
}

@media (max-width: 360px) {
    .stat-value {
        font-size: clamp(1.1rem, 6vw, 1.35rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .navbar,
    .site-footer,
    .cta-section {
        display: none;
    }

    body,
    .status-section,
    .requirements-section,
    .papers-section {
        background: white;
    }

    .hero {
        padding-top: 2rem;
    }
}
