* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    color-scheme: dark;
    --bg: #020612;
    --bg-soft: rgba(9, 14, 30, 0.72);
    --panel: rgba(18, 23, 39, 0.78);
    --panel-strong: rgba(31, 37, 56, 0.9);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --text: #f5f7ff;
    --muted: #9aa3b8;
    --muted-strong: #c4c9d6;
    --accent: #8cc7ff;
    --accent-2: #c7a0ff;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --radius: 8px;
}

html {
    min-height: 100%;
    scroll-behavior: auto;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 22%, rgba(83, 24, 131, 0.38), transparent 24%),
        radial-gradient(circle at 87% 88%, rgba(18, 48, 122, 0.32), transparent 18%),
        linear-gradient(180deg, #060918 0%, #040714 100%);
    background-attachment: fixed;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

.home-page {
    display: flex;
    flex-direction: column;
}

.particle-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle-field span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    background: rgba(218, 232, 255, var(--alpha));
    box-shadow: 0 0 18px rgba(140, 199, 255, 0.28), 0 0 34px rgba(140, 199, 255, 0.12);
    animation: particleDrift var(--duration) ease-in-out var(--delay) infinite alternate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 72%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(8, 14, 28, 0.08);
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.zoomable-image {
    cursor: zoom-in;
}

.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(245, 247, 255, 0.62);
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(140, 199, 255, 0.08),
        0 0 22px rgba(140, 199, 255, 0.18);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: normal;
    transition: width 140ms ease, height 140ms ease, opacity 140ms ease, border-color 140ms ease;
}

.cursor-ring::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #8cc7ff;
    box-shadow: 0 0 0 1px rgba(1, 4, 12, 0.5), 0 0 12px rgba(140, 199, 255, 0.48);
    transform: translate(-50%, -50%);
}

.cursor-ring.is-visible {
    opacity: 1;
}

.cursor-ring.is-active {
    width: 20px;
    height: 20px;
    border-color: rgba(140, 199, 255, 0.82);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

p {
    color: var(--muted-strong);
    margin: 0 0 1rem;
}

ul,
ol {
    color: var(--muted-strong);
    padding-left: 1.35rem;
    margin: 0.8rem 0 1.25rem;
}

li + li {
    margin-top: 0.35rem;
}

strong {
    color: var(--text);
}

.top-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 64px;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
    font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif;
}

.top-nav.is-scrolled {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(3, 8, 19, 0.58);
    backdrop-filter: blur(18px);
}

.nav-inner {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 28px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1;
}

.nav-logo span {
    display: inline-block;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    min-width: 0;
}

.nav-links a {
    color: rgba(245, 247, 255, 0.68);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--text);
    transform: translateY(-1px);
}

.home-main {
    min-height: 100vh;
    flex: 1;
    padding: 0 24px;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.hero-inner {
    width: min(100%, 980px);
    transform: none;
}

.eyebrow {
    color: rgba(196, 201, 214, 0.74);
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.home-page .eyebrow {
    color: rgba(196, 201, 214, 0.72);
    font-size: 0.95rem;
    font-weight: 400;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 2px;
}

.hero h1 {
    color: #f7f8ff;
    font-size: 7rem;
    line-height: 0.98;
    font-weight: 750;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    text-shadow: 0 12px 42px rgba(255, 255, 255, 0.08);
    letter-spacing: -0.06em;
    word-spacing: 0.2em;
}

.hero-title-sub {
    display: inline-flex;
    gap: 0.53em;
    margin-top: 1rem;
    color: rgba(245, 247, 255, 0.82);
    font-size: 1.6rem;
    font-weight: 750;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-inner,
.overview-hero,
.overview-card,
.media-card,
.page-hero,
.page-panel,
.contact-card,
.site-footer {
    animation: pageSoftIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-panel,
.overview-card,
.contact-card {
    animation-delay: 0ms;
}

.top-nav {
    animation: navSoftIn 360ms ease-out both;
}

button,
.btn-gradient {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0.9rem 0 1.25rem;
}

.btn-gradient,
.accordion-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(245, 247, 255, 0.84);
    background: rgba(23, 28, 44, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-gradient:hover,
.accordion-content a:hover {
    color: var(--text);
    background: rgba(245, 247, 255, 0.1);
    border-color: rgba(245, 247, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(140, 199, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.accordion-item,
.about,
.column {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(16, 21, 36, 0.64);
    box-shadow: var(--shadow);
}

.site-footer {
    text-align: center;
    font-size: 0.9rem;
    padding: 18px 24px 32px;
}

.home-page .site-footer {
    position: fixed;
    right: 0;
    bottom: 28px;
    left: 0;
    z-index: 10;
    padding: 0 24px;
}

.site-footer a {
    display: inline-block;
    color: rgba(196, 201, 214, 0.8);
    border-radius: 6px;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-footer a:hover {
    color: var(--text);
}

.page-shell {
    width: min(100% - 48px, 1120px);
    margin: 0 auto;
    padding: 148px 0 72px;
}

.overview-shell {
    width: min(100% - 48px, 1080px);
    margin: 0 auto;
    padding: 136px 0 88px;
}

.overview-hero {
    max-width: 840px;
    margin-bottom: 34px;
}

.overview-hero h1 {
    color: var(--text);
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 950;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

.overview-card,
.media-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(16, 21, 36, 0.7);
    box-shadow: var(--shadow);
}

.overview-card {
    padding: 28px;
    margin-top: 18px;
}

.overview-card h2,
.media-card h2 {
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 0.7rem;
}

.overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.25rem;
}

.media-shell {
    width: min(100% - 48px, 920px);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.media-card {
    min-height: 260px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.media-card p {
    margin-bottom: 1.2rem;
}

.media-card .btn-gradient {
    margin-top: auto;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.network-grid .btn-gradient {
    min-height: 52px;
    justify-content: flex-start;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 500;
}

.networking-shell {
    width: min(100% - 48px, 1080px);
}

.links-card {
    padding: 24px;
}

.contact-shell {
    width: min(100% - 48px, 820px);
}

.contact-card {
    display: grid;
    gap: 14px;
}

.contact-link {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    background: rgba(23, 28, 44, 0.72);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.contact-link span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-link strong {
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--text);
    background: rgba(245, 247, 255, 0.1);
    border-color: rgba(245, 247, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(140, 199, 255, 0.12);
    transform: translateY(-1px);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 32px;
    border: 0;
    background: rgba(1, 4, 12, 0.82);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.image-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox img {
    width: auto;
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 96px);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

.image-lightbox__close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    color: var(--text);
    background: rgba(23, 28, 44, 0.84);
    border-color: rgba(255, 255, 255, 0.16);
}

.page-hero {
    margin-bottom: 32px;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.page-back-actions {
    margin: 0 0 14px;
}

.page-actions .btn-gradient {
    margin: 0;
}

.page-actions .back-button {
    min-height: 30px;
    padding: 0 12px;
    color: rgba(196, 201, 214, 0.82);
    font-size: 0.82rem;
    background: rgba(8, 12, 24, 0.42);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.page-actions .back-button::before {
    content: "<";
    margin-right: 6px;
    color: rgba(140, 199, 255, 0.78);
    font-size: 0.78rem;
}

.page-actions .back-button:hover {
    color: var(--text);
    background: rgba(140, 199, 255, 0.08);
    border-color: rgba(140, 199, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(140, 199, 255, 0.08);
}

.page-hero .eyebrow {
    margin: 0 0 0.85rem;
    color: rgba(245, 247, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-hero .eyebrow::before {
    display: none;
}

.page-hero h1 {
    max-width: 980px;
    color: var(--text);
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 950;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.page-hero p {
    max-width: 720px;
    margin-top: 0.8rem;
}

.page-panel {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.project-report {
    padding: 24px;
    overflow-x: auto;
}

.project-report > table,
.project-report table {
    display: table;
    width: auto;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    border-collapse: separate;
    overflow: visible;
    color: #111111;
    background: #ffffff;
}

.project-report tbody,
.project-report thead,
.project-report tr {
    width: auto;
}

.project-report th,
.project-report td {
    min-width: 0;
    padding: 0;
    border: 0;
    color: inherit;
    vertical-align: top;
}

.content,
.content-left {
    width: 100%;
    color: var(--text);
    text-align: left;
}

.content > h1:first-child,
.content-left > h1:first-child,
.content section > h1:first-child,
.content-left section > h1:first-child,
.page-panel .about > h1:first-child {
    display: none;
}

.content h1,
.content-left h1,
.page-panel h1 {
    color: var(--text);
    font-size: 2rem;
    line-height: 1.15;
    margin: 2.4rem 0 1rem;
}

.content h2,
.content-left h2,
.page-panel h2 {
    color: #dce9ff;
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 2rem 0 0.8rem;
}

.content h3,
.content-left h3,
.page-panel h3 {
    color: var(--accent);
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 1.45rem 0 0.65rem;
}

.about,
.column {
    padding: 22px;
    margin: 24px 0;
}

.title {
    color: var(--text);
}

.accordion {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.accordion-item {
    padding: 18px;
}

.accordion-header {
    width: 100%;
    color: var(--text);
    background: transparent;
    border-color: var(--line);
    text-align: left;
    padding: 0 14px;
}

.accordion-content {
    display: grid;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease, padding-top 220ms ease;
}

.accordion-item:hover .accordion-content,
.accordion-item:focus-within .accordion-content {
    max-height: 720px;
    padding-top: 14px;
}

.compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.white-bg {
    padding: 12px;
    border-radius: var(--radius);
    background: #ffffff;
}

table {
    width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    overflow-x: auto;
}

tbody,
thead,
tr {
    width: 100%;
}

th,
td {
    min-width: 180px;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
    vertical-align: top;
}

th {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    text-align: left;
}

pre {
    max-width: 100%;
    margin: 1.25rem 0;
    padding: 18px;
    overflow-x: auto;
    color: #e7edff;
    background: rgba(0, 0, 0, 0.44);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

code {
    font-family: "Cascadia Code", Consolas, monospace;
}

br + br {
    display: none;
}

@keyframes pageSoftIn {
    from {
        opacity: 0.72;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navSoftIn {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}

@keyframes pageFadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes particleDrift {
    from {
        opacity: 0.28;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0.72;
        transform: translate3d(var(--dx), var(--dy), 0) scale(1.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 900px) {
    .nav-inner {
        padding-right: 18px;
    }

    .nav-links {
        gap: 12px;
        overflow: visible;
    }

    .nav-links a {
        font-size: 0.86rem;
    }

    .hero h1 {
        font-size: 3.7rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .overview-hero h1 {
        font-size: 3rem;
    }

    .compare {
        grid-template-columns: 1fr;
    }

    .network-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .top-nav {
        height: auto;
        min-height: 64px;
    }

    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 13px 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 9px 14px;
    }

    .home-main {
        padding-top: 0;
    }

    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .page-hero h1 {
        font-size: 1.85rem;
    }

    .page-shell {
        width: min(100% - 28px, 1120px);
        padding-top: 164px;
    }

    .overview-shell {
        width: min(100% - 28px, 1080px);
        padding-top: 152px;
    }

    .overview-hero h1 {
        font-size: 2.4rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .network-grid {
        grid-template-columns: 1fr;
    }

    .page-panel {
        padding: 22px;
    }
}
