:root {
    --brand: #2596be;
    --brand-deep: #1c7a9c;
    --brand-soft: rgba(37, 150, 190, 0.16);
    --ink: #07141c;
    --ink-2: #0b1c26;
    --panel: #102735;
    --line: rgba(244, 248, 251, 0.1);
    --text: #f3f7fa;
    --muted: #93aebc;
    --white: #ffffff;
    --scm: #ff6b00;
    --ss: #6b2fa0;
    --tb: #2f6f4e;
    --ok: #3dbe7a;
    --warn: #e0b14a;
    --down: #e05656;
    --radius: 18px;
    --wrap: 1120px;
    --header: 76px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --font: "Outfit", system-ui, sans-serif;
    --display: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
}

body {
    background:
        radial-gradient(1200px 520px at 8% -10%, rgba(37, 150, 190, 0.22), transparent 55%),
        radial-gradient(900px 480px at 100% 0%, rgba(37, 150, 190, 0.08), transparent 50%),
        var(--ink);
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.skip {
    position: absolute;
    left: 0.85rem;
    top: -4rem;
    z-index: 80;
    padding: 0.55rem 0.95rem;
    background: var(--brand);
    color: var(--white);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}
.skip:focus {
    top: 0.85rem;
    color: var(--white);
}
button, input, textarea, select { font: inherit; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap {
    width: min(var(--wrap), calc(100% - 2rem));
    margin-inline: auto;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.display {
    font-family: var(--display);
    font-optical-sizing: auto;
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

h1.display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: 0.35rem 0 1rem; }
h2.display { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0.3rem 0 0.8rem; }
h3 { margin: 0 0 0.45rem; font-size: 1.15rem; letter-spacing: -0.02em; }

.lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 42rem;
}

.muted { color: var(--muted); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    background: rgba(7, 20, 28, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 160ms ease, background 160ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(7, 20, 28, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: min(calc(var(--wrap) + 2rem), calc(100% - 1.5rem));
    margin-inline: auto;
}

.brand-lockup {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.brand-lockup img {
    height: 42px;
    width: auto;
    max-width: 210px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.site-nav a,
.nav-drop > button {
    color: var(--muted);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
}

.site-nav a:hover,
.nav-drop > button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.site-nav a.active,
.nav-drop.is-open > button,
.nav-drop > button[aria-expanded="true"],
.nav-drop.active > button {
    color: var(--text);
    background: var(--brand-soft);
}

.nav-drop {
    position: relative;
}

.nav-drop > button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-chevron {
    display: block;
    flex-shrink: 0;
    transition: transform 160ms ease;
}

.nav-drop.is-open .nav-chevron,
.nav-drop > button[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 280px;
    padding: 12px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.nav-drop.is-open .nav-menu,
.nav-drop:focus-within .nav-menu {
    display: grid;
    gap: 0.2rem;
}

.nav-menu::before {
    content: "";
    position: absolute;
    inset: 12px 0 0;
    background: #102a38;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: -1;
}

.nav-menu a {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0.7rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    margin: 0 0.55rem;
    border-radius: 12px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.nav-menu a:first-of-type { margin-top: 0.55rem; }
.nav-menu a:last-of-type { margin-bottom: 0.55rem; }

.nav-menu a small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.nav-menu img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(61, 190, 122, 0.15);
}

.footer-status.is-down .dot { background: var(--down); box-shadow: 0 0 0 4px rgba(224, 86, 86, 0.18); }
.footer-status.is-degraded .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(224, 177, 74, 0.18); }

main {
    min-height: calc(100vh - var(--header) - 280px);
    transition: opacity 220ms ease;
}

main.router-loading { opacity: 0; pointer-events: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); color: var(--white); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }

.hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 150, 190, 0.18), transparent 62%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 3rem;
    align-items: center;
}

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

.brand-orbit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.orbit-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
    min-height: 148px;
}

.orbit-card:nth-child(1) { grid-column: 1 / -1; }
.orbit-card img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}
.orbit-card strong,
.orbit-card span { display: block; }
.orbit-card strong { font-size: 1.02rem; }
.orbit-card span { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }

.section { padding: 4.2rem 0; }
#products,
.page-hero,
.brand-hero { scroll-margin-top: 88px; }
.section-alt {
    background: linear-gradient(180deg, rgba(16, 39, 53, 0.55), rgba(16, 39, 53, 0.2));
    border-block: 1px solid var(--line);
}

.section-head { max-width: 40rem; margin-bottom: 2rem; }

.product-grid,
.card-grid,
.value-grid,
.team-grid {
    display: grid;
    gap: 1rem;
}

.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.product-card,
.value-card,
.person-card,
.legal-doc,
.status-card {
    background: rgba(16, 39, 53, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    overflow: hidden;
    transition: transform 140ms ease, border-color 140ms ease;
}

.product-card:hover { border-color: rgba(37, 150, 190, 0.45); }

.product-card .brand-bar {
    height: 4px;
    margin: -1.25rem -1.25rem 1.1rem;
}

.product-card img.icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.product-card p { color: var(--muted); flex: 1; }
.product-card .go { color: var(--brand); font-weight: 600; margin-top: 1rem; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat {
    padding: 1.3rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 20, 28, 0.4);
}

.stat b {
    display: block;
    font-family: var(--display);
    font-size: 2.3rem;
    letter-spacing: -0.04em;
    color: var(--white);
}

.stat span { color: var(--muted); font-size: 0.92rem; }

.value-card,
.person-card,
.card { padding: 1.25rem 1.3rem; }
.value-card p,
.person-card p { color: var(--muted); }

.person-role {
    color: var(--brand);
    font-weight: 650;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.page-hero { padding: 3.4rem 0 2rem; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .actions { margin-top: 1.6rem; }
.error-hero { padding-bottom: 1.2rem; }

.brand-hero { padding: 3.2rem 0 2.4rem; }

.brand-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    padding: 0;
    border: 0;
    background: transparent;
}

.brand-mark img.icon-lg {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    margin: 0;
}

.lockup {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.lockup .icon-lg {
    margin-bottom: 0;
    width: 72px;
    height: 72px;
}

.orbit-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    transition: transform 140ms ease, border-color 140ms ease;
}

.lockup span {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--muted);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.legal-doc {
    padding: 1.6rem 1.5rem 2rem;
    max-width: 820px;
}

.legal-doc h2 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.2rem;
}

.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc ul { color: var(--muted); }

.notice {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: var(--brand-soft);
    border: 1px solid rgba(37, 150, 190, 0.28);
    margin-bottom: 1.4rem;
}

.status-banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.3rem 1.4rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    margin-bottom: 1.4rem;
}

.status-banner.is-ok { background: rgba(61, 190, 122, 0.1); }
.status-banner.is-degraded { background: rgba(224, 177, 74, 0.1); }
.status-banner.is-down { background: rgba(224, 86, 86, 0.1); }

.status-banner .pulse {
    width: 14px;
    height: 14px;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: var(--ok);
    flex-shrink: 0;
}

.status-list { display: grid; gap: 0.8rem; }

.status-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
}

.status-card img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.status-state {
    font-weight: 700;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-state.operational { color: var(--ok); }
.status-state.degraded { color: var(--warn); }
.status-state.down { color: var(--down); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
}

.contact-form {
    display: grid;
    gap: 0.75rem;
    position: relative;
}

.contact-form label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    background: rgba(7, 20, 28, 0.6);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-status {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--down); }

.contact-form button[disabled] { opacity: 0.65; cursor: wait; }

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    background: #061018;
    padding: 2.6rem 0 1.4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 1.6rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
    max-width: 220px;
    margin-bottom: 0.8rem;
}

.site-footer h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer a.footer-status { color: var(--muted); }
.site-footer a.footer-status:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.disclaimer { color: var(--muted); font-size: 0.82rem; max-width: 36rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.empty-jobs {
    padding: 1.4rem;
    border-radius: var(--radius);
    border: 1px dashed rgba(37, 150, 190, 0.4);
    background: var(--brand-soft);
}

.sub-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .product-grid,
    .card-grid,
    .team-grid,
    .split,
    .contact-grid,
    .brand-hero-inner,
    .footer-grid,
    .sub-products { grid-template-columns: 1fr; }

    .value-grid,
    .stat-row,
    .feature-list { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: inline-flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem 1rem 1.1rem;
        background: #0b1c26;
        border-bottom: 1px solid var(--line);
    }

    body.nav-open .site-nav { display: flex; }

    .nav-menu {
        position: static;
        display: none;
        min-width: 0;
        box-shadow: none;
        margin: 0.2rem 0 0.4rem;
    }

    .nav-drop.is-open .nav-menu,
    .nav-drop:focus-within .nav-menu { display: grid; }
}

@media (max-width: 640px) {
    .value-grid,
    .stat-row,
    .feature-list,
    .brand-orbit { grid-template-columns: 1fr; }

    .status-card { grid-template-columns: 40px 1fr; }
    .status-state { grid-column: 2; }
}
