:root {
    --bg-0: #050912;
    --bg-1: #0a1324;
    --bg-2: #111d34;
    --panel: rgba(14, 27, 47, 0.72);
    --panel-strong: rgba(13, 25, 43, 0.92);
    --line: rgba(141, 198, 255, 0.18);
    --line-strong: rgba(141, 198, 255, 0.35);
    --text-1: #d6e9ff;
    --text-2: #8fa7c1;
    --accent-1: #79d7ff;
    --accent-2: #34b6ff;
    --success: #5fd4a3;
    --danger: #ff7c7c;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-1: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 5% -10%, rgba(52, 182, 255, 0.16), transparent 36%),
        radial-gradient(circle at 95% 4%, rgba(121, 215, 255, 0.14), transparent 32%),
        linear-gradient(180deg, #060b14, #050912 42%, #070f1e);
    color: var(--text-1);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

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

.bg-network {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(121, 215, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 215, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at center, #000 55%, transparent 100%);
    pointer-events: none;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: 12px;
}

.header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 76px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(8, 16, 30, 0.95), rgba(10, 18, 33, 0.82));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-1);
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--accent-1), var(--accent-2));
    color: #062036;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
}

.brand-stack {
    display: grid;
    line-height: 1.05;
}

.brand-stack strong {
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.02em;
}

.brand-stack small {
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.71rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.main-nav a {
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--text-2);
    border: 1px solid transparent;
    transition: 0.2s ease;
    font-weight: 600;
    font-size: 0.94rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-1);
    border-color: var(--line);
    background: rgba(121, 215, 255, 0.08);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    padding: 7px 12px;
    border-radius: 999px;
    color: #b8d8f8;
    font-size: 0.77rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.status-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(95, 212, 163, 0.18);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(9, 20, 35, 0.9);
    color: var(--text-1);
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
}

.section {
    padding: 74px 0;
}

.section-tech-panel {
    background: linear-gradient(180deg, rgba(116, 206, 255, 0.07), transparent 54%);
}

.section-admin-shell {
    padding-top: 48px;
}

.section-head h1,
.section-head h2 {
    margin: 0 0 10px;
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 0;
    color: var(--text-2);
}

.hero {
    padding: 66px 0 32px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.hero-content {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, rgba(9, 20, 38, 0.96), rgba(11, 20, 34, 0.84));
    box-shadow: var(--shadow-1);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    border: 1px solid rgba(121, 215, 255, 0.34);
    color: #9edbff;
    border-radius: 999px;
    padding: 6px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
}

.hero-content h1 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1.05;
}

.hero-content p {
    color: var(--text-2);
    max-width: 62ch;
    margin: 18px 0 0;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
    color: #a8c5e2;
}

.hero-visual {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: radial-gradient(circle at 60% 40%, rgba(121, 215, 255, 0.26), rgba(10, 17, 31, 0.7) 48%),
        linear-gradient(180deg, rgba(10, 20, 36, 0.95), rgba(7, 14, 26, 0.95));
    box-shadow: var(--shadow-1);
}

.node-grid {
    position: absolute;
    inset: 0;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 0 8px rgba(121, 215, 255, 0.14);
    animation: pulseNode 2.6s infinite ease-in-out;
}

.node::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, rgba(121, 215, 255, 0.45), transparent);
    transform-origin: left center;
}

.node-a { top: 22%; left: 15%; }
.node-a::after { transform: rotate(16deg); }

.node-b { top: 48%; left: 32%; animation-delay: .4s; }
.node-b::after { transform: rotate(-24deg); }

.node-c { top: 30%; left: 62%; animation-delay: .8s; }
.node-c::after { transform: rotate(152deg); }

.node-d { top: 64%; left: 70%; animation-delay: 1.1s; }
.node-d::after { transform: rotate(-148deg); }

.node-e { top: 74%; left: 22%; animation-delay: .2s; }
.node-e::after { transform: rotate(-8deg); }

.metric-panel {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.metric-panel div {
    border: 1px solid rgba(121, 215, 255, 0.22);
    border-radius: 12px;
    padding: 11px;
    background: rgba(9, 21, 39, 0.78);
}

.metric-panel strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
}

.metric-panel small {
    color: var(--text-2);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 11px;
    padding: 10px 16px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #06243d;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-ghost,
.btn-outline {
    border-color: var(--line);
    color: var(--text-1);
    background: rgba(8, 19, 34, 0.65);
}

.btn-ghost:hover,
.btn-outline:hover {
    border-color: var(--line-strong);
    color: #d7ecff;
}

.btn-disabled {
    border-color: rgba(143, 167, 193, 0.35);
    color: var(--text-2);
    background: rgba(12, 20, 33, 0.95);
}

.btn-danger {
    border-color: rgba(255, 124, 124, 0.44);
    color: #ffb9b9;
    background: rgba(120, 20, 20, 0.15);
}

.btn-xs {
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 0.78rem;
}

.card,
.glass-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: 24px;
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(7px);
}

.card h2,
.card h3,
.glass-panel h2,
.glass-panel h3 {
    margin-top: 0;
    font-family: 'Sora', sans-serif;
}

.card p,
.glass-panel p {
    color: var(--text-2);
}

.service-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.service-slice {
    grid-column: span 4;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(160deg, rgba(12, 23, 40, 0.95), rgba(10, 18, 31, 0.78));
    position: relative;
    overflow: hidden;
}

.service-slice::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(121, 215, 255, 0.12), transparent 40%);
    pointer-events: none;
}

.service-slice h3 {
    margin: 0 0 8px;
    font-family: 'Sora', sans-serif;
}

.service-slice p {
    margin: 0;
    color: var(--text-2);
}

.system-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.portal-grid .system-card {
    min-height: 218px;
}

.system-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(165deg, rgba(12, 24, 42, 0.94), rgba(11, 20, 36, 0.84));
}

.system-card h3 {
    margin: 14px 0 8px;
    font-family: 'Sora', sans-serif;
}

.system-card p {
    margin: 0 0 16px;
    color: var(--text-2);
}

.chip {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(121, 215, 255, 0.4);
    color: #9ad8ff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.text-link {
    color: var(--accent-1);
    font-weight: 700;
}

.text-link:hover {
    color: #c5ebff;
}

.split-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stack-list {
    margin-top: 16px;
    display: grid;
    gap: 11px;
}

.stack-item {
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(141, 198, 255, 0.16);
    background: rgba(9, 19, 33, 0.7);
}

.stack-item strong {
    display: block;
    margin-bottom: 6px;
}

.stack-item span {
    display: block;
    color: #9ab2cc;
    font-size: 0.84rem;
}

.download-grid {
    margin-top: 22px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(170deg, rgba(13, 24, 43, 0.93), rgba(9, 18, 33, 0.92));
}

.download-card h3 {
    margin: 12px 0 8px;
    font-family: 'Sora', sans-serif;
}

.download-card p {
    margin: 0;
    color: var(--text-2);
}

.download-card-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.version {
    font-family: 'JetBrains Mono', monospace;
    color: #9cc8eb;
    font-size: 0.82rem;
}

.download-meta {
    margin: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.83rem;
    color: #95adc7;
}

.cta-band {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    background: linear-gradient(140deg, rgba(14, 28, 50, 0.95), rgba(10, 20, 36, 0.9));
    text-align: center;
    box-shadow: var(--shadow-1);
}

.cta-band h2 {
    margin-top: 0;
    font-family: 'Sora', sans-serif;
}

.cta-band p {
    color: var(--text-2);
    max-width: 66ch;
    margin: 0 auto;
}

.cta-band .hero-actions {
    justify-content: center;
}

.contact-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.contact-points {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.contact-points strong {
    display: block;
    margin-bottom: 4px;
}

.contact-points span,
.contact-points a {
    color: var(--text-2);
    font-size: 0.94rem;
}

.admin-grid {
    margin-top: 18px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

label {
    display: grid;
    gap: 7px;
    color: #bfd4ea;
    font-size: 0.92rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(142, 191, 243, 0.34);
    background: rgba(8, 19, 35, 0.92);
    color: var(--text-1);
    border-radius: 10px;
    padding: 11px 12px;
    outline: none;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(121, 215, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(121, 215, 255, 0.15);
}

textarea {
    resize: vertical;
}

.field-full {
    grid-column: 1 / -1;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
}

.checkbox input {
    width: 18px;
    height: 18px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alert {
    border-radius: 14px;
    border: 1px solid;
    padding: 11px 14px;
    margin: 16px 0;
}

.alert p {
    margin: 4px 0;
}

.alert-error {
    border-color: rgba(255, 124, 124, 0.55);
    background: rgba(130, 20, 20, 0.22);
}

.alert-success {
    border-color: rgba(95, 212, 163, 0.5);
    background: rgba(14, 78, 53, 0.34);
}

.upload-progress {
    position: relative;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(7, 15, 28, 0.9);
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3ac1ff, #7de7ff);
    transition: width 0.2s linear;
}

.upload-progress-text {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #052135;
    font-weight: 700;
}

.table-wrap {
    margin-top: 12px;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(141, 198, 255, 0.16);
}

th {
    color: #bdd8f1;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    color: #b2c6db;
    font-size: 0.9rem;
}

.muted-line {
    margin-top: 4px;
    color: #8ea6c0;
    font-size: 0.82rem;
}

.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.actions form {
    margin: 0;
}

.timeline-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.timeline-item {
    border: 1px solid rgba(141, 198, 255, 0.17);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(9, 18, 32, 0.75);
}

.timeline-item strong {
    display: block;
}

.timeline-item span {
    color: #90a8c2;
    font-size: 0.83rem;
}

.stat {
    margin: 9px 0 0;
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    color: var(--accent-1);
}

.narrow {
    width: min(680px, 94%);
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding: 28px 0;
    background: rgba(4, 10, 18, 0.96);
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-shell h3 {
    margin: 0;
    font-family: 'Sora', sans-serif;
}

.footer-shell p {
    margin: 8px 0 0;
    color: var(--text-2);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: #b5dcff;
}

.footer-copy {
    margin-top: 15px;
    color: #8aa4c0;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseNode {
    0%,
    100% { transform: scale(1); opacity: .8; }
    50% { transform: scale(1.22); opacity: 1; }
}

@media (max-width: 1080px) {
    .hero-layout,
    .system-grid,
    .download-grid,
    .split-feed,
    .contact-layout,
    .admin-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-slice {
        grid-column: span 6;
    }
}

@media (max-width: 820px) {
    .header-shell {
        grid-template-columns: auto auto;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        justify-content: flex-start;
        background: rgba(8, 19, 34, 0.98);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 8px;
    }

    .main-nav.open {
        display: flex;
    }

    .header-meta {
        display: none;
    }

    .hero-layout,
    .system-grid,
    .download-grid,
    .split-feed,
    .contact-layout,
    .admin-grid,
    .form-grid,
    .metric-panel {
        grid-template-columns: 1fr;
    }

    .service-slice {
        grid-column: span 12;
    }

    .section {
        padding: 56px 0;
    }

    .hero-content,
    .card,
    .glass-panel,
    .cta-band {
        padding: 20px;
    }
}
