:root {
    --bg-main: #07040f;
    --panel: rgba(26, 18, 46, 0.72);
    --panel-strong: rgba(18, 12, 34, 0.92);
    --border: rgba(156, 137, 212, 0.35);
    --text-main: #f8f5ff;
    --text-muted: #b8aacd;
    --accent: #57bcff;
    --accent-secondary: #9f67ff;
    --shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 8%, rgba(95, 63, 202, 0.3), transparent 36%),
        radial-gradient(circle at 86% 8%, rgba(73, 163, 255, 0.2), transparent 42%),
        radial-gradient(circle at 50% 90%, rgba(128, 72, 197, 0.15), transparent 45%),
        var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 85%);
    z-index: -3;
}

.gradient-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(75px);
    z-index: -2;
    opacity: 0.58;
}

.orb-left {
    width: 460px;
    height: 460px;
    left: -140px;
    top: 120px;
    background: rgba(128, 72, 197, 0.36);
}

.orb-right {
    width: 520px;
    height: 520px;
    right: -200px;
    top: -70px;
    background: rgba(76, 154, 255, 0.25);
}

.page-shell {
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    background: rgba(11, 8, 22, 0.76);
    backdrop-filter: blur(14px);
    border-radius: 1rem;
}

.brand {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text-main);
}

.status-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

#greeting-text {
    color: var(--text-muted);
    font-size: 0.78rem;
}

#clock {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.hero {
    text-align: center;
    margin: 4rem auto 2.5rem;
    max-width: 860px;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.21em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.hero h2 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.06;
    font-weight: 800;
}

.hero h2 span {
    color: var(--accent-secondary);
}

.hero-copy {
    margin: 1.25rem auto 0;
    max-width: 760px;
    font-size: clamp(1rem, 2.2vw, 1.14rem);
    color: var(--text-muted);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.story-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.story-card h3 {
    margin: 0;
    font-size: 1.04rem;
}

.story-card p {
    margin: 0.7rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mission-panel {
    border: 1px solid var(--border);
    background: var(--panel-strong);
    border-radius: 1rem;
    padding: 1.4rem;
}

.mission-panel h3 {
    margin: 0;
    font-size: 1.12rem;
}

.mission-panel p {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
}

.hero-actions {
    margin-top: 1.15rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid transparent;
    border-radius: 0.9rem;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    color: #091021;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
    box-shadow: 0 10px 28px rgba(122, 87, 255, 0.38);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 14px 30px rgba(122, 87, 255, 0.48);
}

.btn-outline {
    color: var(--text-main);
    background: rgba(17, 12, 30, 0.75);
    border-color: var(--border);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(26, 18, 44, 0.95);
}

.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.83rem;
    padding: 2rem 0 1rem;
}

@media (max-width: 980px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .status-block {
        text-align: left;
    }

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

@media (max-width: 560px) {
    .page-shell {
        width: min(1160px, 94vw);
    }

    .brand {
        font-size: 0.95rem;
        letter-spacing: 0.15em;
    }
}
