:root {
    --ink: #f6f2e8;
    --muted: #9faaa4;
    --gold: #d1ac60;
    --gold-light: #f1d792;
    --green: #184e3d;
    --green-bright: #2d7a5f;
    --bg: #050806;
    --bg-soft: #08110d;
    --panel: rgba(14, 24, 19, 0.78);
    --panel-hover: rgba(19, 33, 26, 0.94);
    --line: rgba(209, 172, 96, 0.17);
    --line-strong: rgba(209, 172, 96, 0.38);
    --radius-lg: 26px;
    --radius-md: 18px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -5%, rgba(38, 111, 83, 0.2), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(209, 172, 96, 0.1), transparent 27%),
        linear-gradient(145deg, #040705 0%, #07100c 52%, #040705 100%);
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: '';
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
    position: fixed;
    top: -220px;
    right: -240px;
    z-index: -1;
    width: 620px;
    height: 620px;
    pointer-events: none;
    content: '';
    border: 1px solid rgba(209, 172, 96, 0.07);
    border-radius: 50%;
    box-shadow:
        0 0 0 80px rgba(209, 172, 96, 0.018),
        0 0 0 160px rgba(209, 172, 96, 0.012);
}

a {
    color: inherit;
}

svg {
    display: block;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    color: #06100b;
    background: var(--gold-light);
    border-radius: 8px;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.page-shell {
    width: min(1380px, calc(100% - 64px));
    min-height: 100svh;
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 110px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 64px;
    height: 64px;
    overflow: hidden;
    place-items: center;
    background: #000;
    border: 1px solid rgba(209, 172, 96, 0.24);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-mark img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    color: var(--gold-light);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.98rem;
    letter-spacing: 0.13em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.header-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.security-status {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: #aeb9b3;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.security-status i {
    width: 7px;
    height: 7px;
    background: #55c997;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(85, 201, 151, 0.1), 0 0 16px rgba(85, 201, 151, 0.52);
}

.institutional-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 11px 15px;
    color: #d9ddd9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.institutional-link svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.institutional-link:hover {
    color: var(--gold-light);
    background: rgba(209, 172, 96, 0.06);
    border-color: var(--line-strong);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 80px;
    align-items: center;
    min-height: 390px;
    padding: 76px 32px 58px;
}

.hero-copy {
    max-width: 870px;
}

.eyebrow {
    display: flex;
    gap: 11px;
    align-items: center;
    margin: 0 0 20px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero h1 {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: clamp(3rem, 6.1vw, 6.15rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.96;
}

.hero h1 em {
    color: var(--gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

.hero-description {
    max-width: 720px;
    margin: 27px 0 0;
    color: #a8b2ad;
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.75;
}

.hero-seal {
    position: relative;
    display: grid;
    width: 220px;
    height: 220px;
    place-content: center;
    justify-self: center;
    text-align: center;
    border-radius: 50%;
}

.hero-seal__ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(209, 172, 96, 0.28);
    border-radius: inherit;
    box-shadow: inset 0 0 60px rgba(209, 172, 96, 0.045), 0 0 60px rgba(0, 0, 0, 0.22);
}

.hero-seal__ring::before,
.hero-seal__ring::after {
    position: absolute;
    inset: 12px;
    content: '';
    border: 1px dashed rgba(209, 172, 96, 0.15);
    border-radius: inherit;
}

.hero-seal__ring::after {
    inset: -6px;
    border-style: solid;
    border-color: transparent var(--green-bright) transparent transparent;
    transform: rotate(-28deg);
}

.hero-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 184px;
    height: 184px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.systems-section {
    padding: 10px 0 62px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-kicker {
    margin: 0 0 5px;
    color: var(--gold);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: clamp(1.6rem, 2.2vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.section-heading > p {
    margin: 0 4px 6px 0;
    color: #76817b;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.system-card {
    position: relative;
    display: flex;
    min-height: 350px;
    overflow: hidden;
    flex-direction: column;
    padding: 26px;
    color: inherit;
    background: linear-gradient(150deg, rgba(17, 29, 23, 0.92), rgba(8, 14, 11, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    transform: translateY(0);
    transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.system-card::after {
    position: absolute;
    right: -100px;
    bottom: -120px;
    width: 240px;
    height: 240px;
    pointer-events: none;
    content: '';
    background: radial-gradient(circle, rgba(47, 123, 93, 0.13), transparent 66%);
    border-radius: 50%;
    transition: transform 350ms ease, opacity 350ms ease;
}

.card-topline {
    position: absolute;
    top: -1px;
    right: 34%;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(209, 172, 96, 0));
    opacity: 0.5;
    transform: scaleX(0.45);
    transform-origin: left;
    transition: transform 300ms ease, opacity 300ms ease;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 31px;
}

.system-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--gold-light);
    background: rgba(209, 172, 96, 0.06);
    border: 1px solid rgba(209, 172, 96, 0.17);
    border-radius: 14px;
    transition: background 230ms ease, border-color 230ms ease;
}

.system-icon svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

.system-number {
    color: rgba(209, 172, 96, 0.32);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.system-category {
    margin: 0 0 8px;
    color: #769487;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.system-card h3 {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.system-description {
    margin: 15px 0 24px;
    color: #8f9994;
    font-size: 0.86rem;
    line-height: 1.66;
}

.system-action {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    color: #d6d9d6;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.action-arrow {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--gold-light);
    background: rgba(209, 172, 96, 0.06);
    border: 1px solid rgba(209, 172, 96, 0.13);
    border-radius: 50%;
    transition: background 220ms ease, transform 220ms ease;
}

.action-arrow svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.system-card:hover,
.system-card:focus-visible {
    background: linear-gradient(150deg, var(--panel-hover), rgba(9, 16, 12, 0.96));
    border-color: rgba(209, 172, 96, 0.28);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
    outline: none;
    transform: translateY(-6px);
}

.system-card:hover .card-topline,
.system-card:focus-visible .card-topline {
    opacity: 1;
    transform: scaleX(1);
}

.system-card:hover .system-icon,
.system-card:focus-visible .system-icon {
    background: rgba(209, 172, 96, 0.1);
    border-color: rgba(209, 172, 96, 0.32);
}

.system-card:hover .action-arrow,
.system-card:focus-visible .action-arrow {
    background: rgba(209, 172, 96, 0.12);
    transform: translateX(3px);
}

.system-card:hover::after,
.system-card:focus-visible::after {
    transform: translate(-15px, -10px) scale(1.12);
}

.security-note {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 54px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;
}

.security-note__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    color: #6cc9a4;
    background: rgba(65, 168, 127, 0.08);
    border-radius: 11px;
}

.security-note__icon svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.security-note strong {
    display: block;
    margin-bottom: 2px;
    color: #cdd5d0;
    font-size: 0.81rem;
}

.security-note p {
    margin: 0;
    color: #77827c;
    font-size: 0.76rem;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    color: #68726d;
    border-top: 1px solid var(--line);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.site-footer p {
    margin: 0;
}

.site-footer p:last-child {
    display: flex;
    gap: 10px;
    align-items: center;
    text-transform: uppercase;
}

.site-footer p:last-child span {
    width: 3px;
    height: 3px;
    background: rgba(209, 172, 96, 0.5);
    border-radius: 50%;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease;
    transition-delay: var(--delay, 0ms);
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 38px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .hero-seal {
        width: 175px;
        height: 175px;
    }

    .hero-logo {
        width: 146px;
        height: 146px;
    }

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

    .system-card {
        min-height: 320px;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 32px, 620px);
    }

    .site-header {
        min-height: 88px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .brand-mark img {
        width: 59px;
        height: 59px;
    }

    .brand-copy strong {
        font-size: 0.78rem;
    }

    .brand-copy span {
        font-size: 0.67rem;
    }

    .security-status {
        display: none;
    }

    .institutional-link {
        width: 42px;
        height: 42px;
        overflow: hidden;
        justify-content: center;
        padding: 0;
        color: transparent;
        white-space: nowrap;
    }

    .institutional-link svg {
        flex: 0 0 auto;
        color: var(--ink);
    }

    .hero {
        display: block;
        min-height: auto;
        padding: 62px 0 48px;
    }

    .hero h1 {
        font-size: clamp(2.85rem, 14vw, 4.6rem);
        line-height: 0.98;
    }

    .hero-description {
        font-size: 0.96rem;
    }

    .hero-seal {
        display: none;
    }

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

    .system-card {
        min-height: 310px;
    }

    .section-heading > p {
        display: none;
    }

    .security-note {
        align-items: flex-start;
    }

    .site-footer {
        gap: 15px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 25px 0;
    }
}

@media (max-width: 420px) {
    .page-shell {
        width: min(100% - 24px, 620px);
    }

    .brand-copy span {
        display: none;
    }

    .system-card {
        padding: 23px;
    }

    .security-note {
        padding: 16px;
    }
}

@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
