:root {
    --bg: #040a13;
    --bg-soft: #091323;
    --panel: rgba(7, 17, 33, 0.92);
    --panel-soft: rgba(8, 20, 38, 0.82);
    --border: rgba(113, 166, 255, 0.18);
    --border-strong: rgba(94, 168, 255, 0.36);
    --text: #f2f6ff;
    --muted: #9aaecb;
    --blue: #1f82ff;
    --blue-bright: #34a2ff;
    --green: #5ce7a1;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --content-width: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(36, 112, 228, 0.18), transparent 28%),
        linear-gradient(180deg, #060c17 0%, #040913 48%, #06101d 100%);
    font-family: "Aptos", "Segoe UI", sans-serif;
}

body::after {
    content: "";
    position: fixed;
    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: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 90%);
    pointer-events: none;
    z-index: -1;
}

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

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

.site-shell {
    width: var(--content-width);
    margin: 0 auto;
    padding-bottom: 56px;
}

.topbar,
.hero,
.capability-rail {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(4, 10, 20, 0.88);
    border-bottom: 1px solid rgba(116, 168, 255, 0.12);
    backdrop-filter: blur(18px);
}

.topbar-inner,
.hero-inner,
.capability-rail-inner {
    width: var(--content-width);
    margin: 0 auto;
}

.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 86px;
}

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

.brand-mark {
    position: relative;
    width: 42px;
    height: 22px;
    border-top: 5px solid #76bbff;
    border-radius: 999px;
    transform: skewX(-18deg);
    filter: drop-shadow(0 0 10px rgba(51, 144, 255, 0.34));
}

.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    left: 3px;
    border-top: 4px solid rgba(127, 192, 255, 0.82);
    border-radius: 999px;
}

.brand-mark::before {
    top: 7px;
    width: 31px;
}

.brand-mark::after {
    top: 14px;
    width: 21px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-copy strong {
    font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-style: italic;
    letter-spacing: 0.04em;
}

.brand-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.main-nav,
.topbar-actions,
.hero-actions,
.cta-actions,
.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-nav {
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a,
.ghost-link {
    position: relative;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -13px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.ghost-link:hover {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.primary-link,
.secondary-link,
.tertiary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-link {
    color: #f8fbff;
    background: linear-gradient(135deg, #2088ff 0%, #1863ff 100%);
    box-shadow: 0 12px 28px rgba(24, 99, 255, 0.3);
}

.secondary-link {
    color: var(--text);
    background: rgba(8, 18, 34, 0.76);
    border: 1px solid var(--border-strong);
}

.tertiary-link {
    color: var(--muted);
    background: rgba(5, 13, 25, 0.52);
    border: 1px solid rgba(113, 166, 255, 0.12);
}

.primary-link:hover,
.secondary-link:hover,
.tertiary-link:hover {
    transform: translateY(-2px);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 8, 18, 0.96) 0%, rgba(4, 10, 19, 0.84) 34%, rgba(4, 10, 19, 0.58) 58%, rgba(4, 10, 19, 0.78) 100%),
        linear-gradient(180deg, rgba(3, 8, 18, 0.1), rgba(3, 8, 18, 0.58)),
        url("FSFO_V6/landing-cockpit-hero.png") center center / cover no-repeat;
    border-bottom: 1px solid rgba(103, 154, 244, 0.12);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
    gap: 40px;
    min-height: 620px;
    padding: 42px 0 48px;
    align-items: center;
}

.hero-copy,
.hero-card,
.feature-card,
.showcase-card,
.cta-card,
.site-footer {
    animation: reveal-up 720ms ease both;
}

.hero-copy {
    animation-delay: 80ms;
}

.hero-panel {
    animation: reveal-up 720ms ease both 160ms;
}

.eyebrow {
    margin: 0 0 12px;
    color: #8ecfff;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 800;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
    letter-spacing: 0.01em;
}

.hero h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 6vw, 5.35rem);
    line-height: 0.96;
    text-transform: none;
}

.hero h1 span {
    display: block;
    color: var(--blue);
}

.hero-text,
.support-copy,
.feature-card p,
.showcase-copy p,
.footer-brand p,
.section-heading p,
.capability-rail p,
.section-lead,
.stack-row p:last-child {
    color: var(--muted);
    line-height: 1.72;
}

.hero-text {
    max-width: 60ch;
    margin: 22px 0 30px;
    font-size: 1.05rem;
}

.support-copy {
    margin-top: 16px;
    font-size: 0.95rem;
}

.hero-card {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(10, 22, 42, 0.95), rgba(5, 12, 24, 0.97)),
        radial-gradient(circle at top, rgba(41, 123, 255, 0.16), transparent 40%);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 800;
}

.status-pill {
    padding: 7px 11px;
    border-radius: 999px;
    color: #072413;
    background: linear-gradient(135deg, #70ffbb, #4ce29f);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.hero-stack {
    display: grid;
    gap: 12px;
}

.stack-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(129, 176, 255, 0.12);
    border-radius: 16px;
}

.stack-icon,
.feature-icon,
.rail-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #6ab2ff;
}

.stack-icon,
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(31, 124, 255, 0.22), rgba(16, 44, 84, 0.25));
    border: 1px solid rgba(100, 169, 255, 0.18);
}

.rail-icon {
    width: 50px;
    height: 50px;
}

.stack-icon svg,
.feature-icon svg,
.rail-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.stack-label {
    margin: 0 0 4px;
    color: #cfe4ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stack-row p:last-child {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.55;
}

.capability-rail {
    background: linear-gradient(180deg, rgba(6, 14, 29, 0.98), rgba(5, 11, 22, 0.98));
    border-top: 1px solid rgba(103, 154, 244, 0.1);
    border-bottom: 1px solid rgba(103, 154, 244, 0.1);
}

.capability-rail-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 0;
}

.capability-rail article {
    padding: 22px;
    min-height: 164px;
    background:
        linear-gradient(180deg, rgba(10, 22, 42, 0.9), rgba(6, 13, 25, 0.94)),
        radial-gradient(circle at top right, rgba(42, 125, 255, 0.14), transparent 45%);
    border: 1px solid rgba(113, 166, 255, 0.16);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.capability-rail h3 {
    font-size: 1.38rem;
}

.capability-rail p {
    margin: 6px 0 0;
    font-size: 0.94rem;
}

.feature-section,
.showcase-section,
.cta-section {
    padding-top: 88px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-lead {
    margin: 14px 0 0;
    font-size: 1.04rem;
}

.section-heading h2,
.cta-card h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.showcase-card,
.cta-card,
.site-footer {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 22px;
}

.feature-card h3 {
    margin-top: 18px;
    font-size: 1.08rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr);
    gap: 22px;
    align-items: start;
}

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

.showcase-card-main {
    grid-row: span 2;
}

.showcase-lead {
    max-width: 68ch;
    margin: 14px 0 0;
    font-size: 1.04rem;
}

.showcase-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.showcase-card {
    overflow: hidden;
}

.showcase-feature-card {
    position: relative;
    min-height: 280px;
    background:
        linear-gradient(180deg, rgba(10, 22, 41, 0.94), rgba(7, 15, 28, 0.92)),
        radial-gradient(circle at top right, rgba(42, 125, 255, 0.18), transparent 42%);
}

.showcase-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 80%);
    pointer-events: none;
}

.showcase-frame {
    padding: 18px 18px 0;
}

.showcase-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top center;
    background: #09111d;
    border: 1px solid rgba(110, 168, 255, 0.12);
    border-radius: 16px;
}

.showcase-card-main .showcase-frame img {
    aspect-ratio: 1.24 / 1;
    object-fit: contain;
    object-position: center top;
    background: #0a1321;
}

.flow-status-crop {
    object-position: 88% 4%;
}

.showcase-copy {
    padding: 20px 20px 24px;
}

.showcase-feature-card .showcase-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
}

.showcase-copy h3,
.feature-card h3 {
    margin-bottom: 8px;
}

.showcase-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #8ecfff;
    background: linear-gradient(180deg, rgba(31, 124, 255, 0.24), rgba(16, 44, 84, 0.28));
    border: 1px solid rgba(100, 169, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.showcase-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.showcase-feature-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.showcase-feature-card p {
    margin: 0;
    font-size: 1rem;
}

.sop-card {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(10, 22, 41, 0.94), rgba(7, 15, 28, 0.92)),
        radial-gradient(circle at top right, rgba(42, 125, 255, 0.14), transparent 42%);
}

.feature-list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.feature-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.72;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #73bbff, #1f82ff);
    box-shadow: 0 0 10px rgba(52, 162, 255, 0.4);
}

.value-section,
.career-section {
    padding-top: 88px;
}

.value-table {
    display: grid;
    gap: 12px;
}

.value-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    padding: 20px 22px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.value-head {
    color: #d8e8ff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.value-row div {
    color: var(--muted);
    line-height: 1.66;
}

.value-row div:last-child {
    color: #dfeeff;
}

.value-accent {
    color: var(--green);
    font-weight: 800;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(14, 36, 70, 0.92), rgba(6, 14, 27, 0.94)),
        radial-gradient(circle at top left, rgba(46, 143, 255, 0.18), transparent 40%);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 88px;
    padding: 26px;
}

.footer-gallery {
    display: grid;
    gap: 18px;
}

.footer-gallery-head,
.footer-gallery-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-gallery-head h3,
.footer-gallery-title {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.gallery-controls,
.gallery-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-nav,
.gallery-dot,
.gallery-frame {
    border: 0;
    cursor: pointer;
}

.gallery-nav {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #dff0ff;
    background: rgba(18, 41, 76, 0.9);
    border: 1px solid rgba(100, 169, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 180ms ease, background 180ms ease;
}

.gallery-nav:hover,
.gallery-dot:hover,
.gallery-frame:hover {
    transform: translateY(-1px);
}

.gallery-nav:hover {
    background: rgba(28, 69, 125, 0.94);
}

.gallery-frame {
    overflow: hidden;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(11, 24, 43, 0.92), rgba(7, 14, 25, 0.96)),
        radial-gradient(circle at top, rgba(42, 125, 255, 0.16), transparent 42%);
    border: 1px solid rgba(113, 166, 255, 0.18);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.gallery-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 45%), #09111d;
}

.footer-gallery-copy {
    max-width: 72ch;
}

.footer-gallery-copy strong {
    display: block;
    margin-bottom: 6px;
    color: #f4f8ff;
    font-size: 1.14rem;
}

.footer-gallery-copy p,
.footer-links a,
.footer-copy {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.footer-gallery-copy p,
.footer-copy {
    margin: 0;
}

.gallery-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    background: rgba(114, 149, 201, 0.3);
    border: 1px solid rgba(147, 193, 255, 0.16);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gallery-dot.is-active {
    background: linear-gradient(135deg, #7cc1ff, #2686ff);
    box-shadow: 0 0 0 4px rgba(38, 134, 255, 0.14);
}

.footer-links {
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2px;
}

.footer-copy {
    padding-top: 8px;
    border-top: 1px solid rgba(112, 164, 255, 0.12);
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .topbar-inner,
    .hero-inner {
        grid-template-columns: 1fr 1fr;
    }

    .capability-rail-inner,
    .feature-grid,
    .feature-grid-three,
    .showcase-grid,
    .sop-grid,
    .career-grid {
        grid-template-columns: 1fr 1fr;
    }

    .topbar-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 18px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 54px 0 44px;
    }

    .showcase-card-main {
        grid-row: auto;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-gallery-head,
    .footer-gallery-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .site-shell,
    .topbar-inner,
    .hero-inner,
    .capability-rail-inner {
        width: min(calc(100vw - 20px), 100%);
    }

    .main-nav,
    .topbar-actions,
    .hero-actions,
    .cta-actions,
    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-grid,
    .feature-grid-three,
    .showcase-grid,
    .sop-grid,
    .capability-rail-inner,
    .career-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        gap: 16px;
    }

    .main-nav a::after {
        bottom: -8px;
    }

    .hero {
        background-position: 68% center;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .capability-rail article {
        padding: 6px 0;
        min-height: 0;
        padding: 18px;
    }

    .hero-card,
    .feature-card,
    .showcase-card,
    .cta-card,
    .site-footer {
        border-radius: 18px;
    }

    .hero-actions .primary-link,
    .hero-actions .secondary-link,
    .hero-actions .tertiary-link,
    .cta-actions .primary-link,
    .cta-actions .secondary-link {
        width: 100%;
    }

    .value-row {
        grid-template-columns: 1fr;
    }

    .value-head {
        display: none;
    }

    .showcase-card-main .showcase-frame img,
    .showcase-frame img {
        aspect-ratio: 16 / 11;
    }

    .gallery-controls,
    .gallery-dots,
    .footer-links {
        width: 100%;
        justify-content: center;
    }

    .footer-gallery-head,
    .footer-gallery-meta {
        align-items: center;
        text-align: center;
    }
}
