/* ==========================================================================
   Universe — site stylesheet
   Dark "deep space" theme built on the brand blue (#1990e2) with a violet
   and cyan accent gradient.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
    --bg: #05070f;
    --bg-soft: #080d1a;
    --ink: #eaf0ff;
    --ink-dim: #c3cde6;
    --muted: #93a3c4;
    --line: rgba(142, 172, 255, 0.14);
    --line-strong: rgba(142, 172, 255, 0.28);

    --brand: #2f8bff;
    --brand-deep: #1990e2;
    --violet: #8a6bff;
    --cyan: #35e0c8;
    --gold: #ffc46b;
    --danger: #ff6b6b;

    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.075);
    --shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.85);

    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 999px;

    --shell: 1180px;
    --gutter: clamp(20px, 4vw, 48px);

    --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

html { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
hr { border: 0; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: rgba(47, 139, 255, 0.35); }

/* --- Helpers ------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 999;
    padding: 10px 18px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.01em; }
.mono--break { word-break: break-all; }

.gradient-text {
    background: linear-gradient(100deg, #6cb2ff 0%, #a68bff 48%, #4fe6cf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.link-quiet {
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.link-quiet:hover { color: var(--ink); border-color: var(--line-strong); }

/* --- Backdrop: starfield + aurora --------------------------------------- */
.starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.9;
}

.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}
.aurora__blob--1 {
    width: 46vw; height: 46vw;
    top: -14vw; left: -8vw;
    background: radial-gradient(circle, rgba(47, 139, 255, 0.55), transparent 65%);
}
.aurora__blob--2 {
    width: 40vw; height: 40vw;
    top: 18vh; right: -12vw;
    background: radial-gradient(circle, rgba(138, 107, 255, 0.45), transparent 65%);
}
.aurora__blob--3 {
    width: 38vw; height: 38vw;
    bottom: -14vw; left: 22vw;
    background: radial-gradient(circle, rgba(53, 224, 200, 0.22), transparent 68%);
}

/* --- Header -------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled {
    background: rgba(5, 7, 15, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
    padding: 8px 0;
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-mark {
    width: 34px;
    height: auto;
    fill: currentColor;
    color: var(--ink);
    transition: color 0.25s ease;
}
.brand:hover .logo-mark { color: var(--brand); }
.brand__name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}
.site-nav__list {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-dim);
}
.site-nav__list a {
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--brand), var(--violet));
    transition: right 0.28s ease;
}
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a:hover::after { right: 0; }

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-dim);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.lang-switch:hover {
    color: var(--ink);
    border-color: var(--brand);
    background: rgba(47, 139, 255, 0.1);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle__bars {
    position: relative;
    display: block;
    width: 18px;
    height: 12px;
}
.nav-toggle__bars i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    color: #fff;
    background: linear-gradient(120deg, #2f8bff, #6a6bff 55%, #8a6bff);
    box-shadow: 0 14px 34px -14px rgba(47, 139, 255, 0.9);
}
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(47, 139, 255, 1); }

.btn--ghost {
    color: var(--ink);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    border-color: var(--brand);
    background: rgba(47, 139, 255, 0.1);
}

.btn--telegram {
    color: #fff;
    background: #229ed9;
}
.btn--telegram:hover { background: #35b2eb; }

.btn--youtube {
    color: #fff;
    background: #e03131;
}
.btn--youtube:hover { background: #f04343; }

.btn--lg { padding: 15px 28px; font-size: 15px; }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--tiny { padding: 7px 14px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(40px, 7vw, 96px) 0 clamp(30px, 5vw, 60px);
    /* Decorative orbits rotate, which inflates their bounding box. Clip
       them here so they can never create a horizontal scrollbar. */
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-dim);
    background: rgba(255, 255, 255, 0.03);
}
.eyebrow__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: pulse 2.6s ease-in-out infinite;
}

.hero__title {
    margin-top: 26px;
    font-size: clamp(2.3rem, 5.2vw, 4.35rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.hero__lead {
    margin-top: 26px;
    max-width: 58ch;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    color: var(--muted);
}
.hero__sub {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ink-dim);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 40px 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--line);
    overflow: hidden;
}
.hero__stat {
    padding: 16px 18px;
    background: rgba(8, 13, 26, 0.9);
}
.hero__stat dt {
    font-size: 11.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero__stat dd {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}
.hero__stat--wide dd { font-size: 13.5px; }

/* Orbital visual */
.hero__visual {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    justify-self: center;
}
.orbit {
    position: absolute;
    top: 50%; left: 50%;
    border: 1px solid rgba(142, 172, 255, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.orbit--outer { width: 100%; height: 100%; animation: spin 46s linear infinite; }
.orbit--mid { width: 74%; height: 74%; border-color: rgba(138, 107, 255, 0.22); animation: spin 34s linear infinite reverse; }
.orbit--inner { width: 50%; height: 50%; border-color: rgba(53, 224, 200, 0.22); animation: spin 24s linear infinite; }

.orbit--outer::before,
.orbit--mid::before,
.orbit--inner::before {
    content: "";
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 16px 2px rgba(47, 139, 255, 0.9);
}
.orbit--mid::before { background: var(--violet); box-shadow: 0 0 16px 2px rgba(138, 107, 255, 0.9); }
.orbit--inner::before { background: var(--cyan); box-shadow: 0 0 16px 2px rgba(53, 224, 200, 0.9); }

.planet {
    position: absolute;
    top: 50%; left: 50%;
    width: 38%; height: 38%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.42), transparent 42%),
        radial-gradient(circle at 70% 78%, #22306b, transparent 62%),
        linear-gradient(150deg, #2f6bff, #6a4dff 55%, #12224a);
    box-shadow:
        0 0 70px 10px rgba(47, 139, 255, 0.35),
        inset -18px -22px 44px rgba(0, 0, 0, 0.55);
    animation: float 9s ease-in-out infinite;
}
.planet__logo {
    position: absolute;
    top: 50%; left: 50%;
    width: 20%;
    transform: translate(-50%, -50%);
    color: #fff;
    opacity: 0.96;
    z-index: 2;
    animation: float 9s ease-in-out infinite;
}
.planet__logo .logo-mark { width: 100%; color: #fff; }

.satellite {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0.85;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}
.satellite--1 { top: 12%; left: 20%; width: 5px; height: 5px; animation: twinkle 3.4s ease-in-out infinite; }
.satellite--2 { top: 72%; left: 82%; width: 4px; height: 4px; animation: twinkle 4.6s ease-in-out infinite 0.7s; }
.satellite--3 { top: 84%; left: 26%; width: 6px; height: 6px; animation: twinkle 5.2s ease-in-out infinite 1.4s; }

.hero__scroll { margin-top: clamp(24px, 4vw, 48px); }
.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.scroll-hint__line {
    position: relative;
    width: 46px;
    height: 1px;
    background: var(--line-strong);
    overflow: hidden;
}
.scroll-hint__line::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: var(--brand);
    animation: slide 2.4s ease-in-out infinite;
}

/* --- Sections ------------------------------------------------------------ */
.section {
    position: relative;
    padding: clamp(64px, 9vw, 120px) 0;
}
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--page { padding-top: clamp(40px, 6vw, 72px); }

.section__head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__kicker {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.16em;
    color: var(--brand);
    text-transform: uppercase;
}
.section__title {
    margin-top: 14px;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    letter-spacing: -0.03em;
}
.section__lead {
    margin-top: 14px;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    color: var(--muted);
}

/* --- Cards --------------------------------------------------------------- */
.card {
    position: relative;
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160, 190, 255, 0.35), transparent);
    opacity: 0.7;
}
.card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-dim);
    letter-spacing: -0.01em;
}
.card__index {
    position: absolute;
    top: 18px; right: 20px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: rgba(147, 163, 196, 0.6);
}
.card__value {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.card__value--sm { font-size: 0.95rem; font-weight: 500; }
.card__row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0;
    flex-wrap: wrap;
}
.card p + p { margin-top: 10px; }

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
@media (min-width: 980px) {
    .card--contract { grid-column: span 2; }
}

/* --- Projects ------------------------------------------------------------ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
@media (min-width: 960px) {
    .project-card--featured { grid-column: span 2; }
    .project-card--featured .project-card__media { aspect-ratio: 21 / 9; }
}

.project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #0b1226;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.02) 0%, rgba(5, 7, 15, 0.55) 62%, rgba(5, 7, 15, 0.9) 100%);
}
.project-card__media--plain {
    background-image:
        radial-gradient(circle at 30% 30%, rgba(47, 139, 255, 0.35), transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(138, 107, 255, 0.3), transparent 60%);
}
.project-card__mark {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    border-radius: 18px;
    background: rgba(5, 7, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}
.project-card__mark img,
.project-card__mark svg { width: 44px; height: 44px; fill: #fff; color: #fff; }
.project-card--featured .project-card__mark { width: 88px; height: 88px; border-radius: 22px; }
.project-card--featured .project-card__mark img,
.project-card--featured .project-card__mark svg { width: 56px; height: 56px; }

.status {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #c9f7e6;
    background: rgba(9, 32, 26, 0.72);
    border: 1px solid rgba(53, 224, 200, 0.32);
    backdrop-filter: blur(6px);
}
.status__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}
.status--paused {
    color: #ffe6b8;
    background: rgba(40, 30, 8, 0.72);
    border-color: rgba(255, 196, 107, 0.32);
}
.status--paused .status__dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.project-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px clamp(20px, 2.4vw, 28px) 26px;
    flex: 1;
}
.project-card__title { font-size: 1.35rem; letter-spacing: -0.02em; }
.project-card__body .muted { font-size: 0.94rem; }

.project-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}
.project-card__notes {
    display: grid;
    gap: 4px;
    font-size: 0.8rem;
    color: rgba(147, 163, 196, 0.8);
}
.project-card__notes li { position: relative; padding-left: 14px; }
.project-card__notes li::before {
    content: "*";
    position: absolute;
    left: 0;
    color: var(--brand);
}

/* --- Partners ------------------------------------------------------------ */
.partner-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.partner-wall li { flex: 0 1 auto; }
.partner-wall a {
    display: grid;
    place-items: center;
    min-width: 184px;
    height: 112px;
    padding: 0 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.partner-wall a:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}
/* Source logos have wildly different padding and aspect ratios: scale each
   one to fill a uniform box so the wall reads as one row. */
.partner-wall img {
    width: 100%;
    height: 62px;
    object-fit: contain;
    /* Force a white silhouette: several logos are dark-on-transparent. */
    filter: brightness(0) invert(1);
    opacity: 0.78;
    transition: opacity 0.3s ease;
}
.partner-wall a:hover img { opacity: 0.95; }

/* --- Exchanges ----------------------------------------------------------- */
.exchange-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.card--exchange { text-align: center; }
.exchange__logo {
    display: grid;
    place-items: center;
    height: 84px;
    margin-bottom: 8px;
}
.exchange__logo img {
    width: 100%;
    height: 56px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}
.card--exchange:hover .exchange__logo img { opacity: 1; }
.card--exchange h3 { font-size: 1.15rem; color: var(--ink); }
.exchange__pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
}
.exchange__pair dt { color: var(--muted); }
.exchange__pair dd { margin: 0; }
.exchange__pair a {
    color: var(--brand);
    border-bottom: 1px dashed rgba(47, 139, 255, 0.5);
}
.exchange__pair a:hover { color: #7cb6ff; }

/* --- Contact ------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}
.contact-card {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}
.contact-card--lg { max-width: 420px; }
.contact-card__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}
.contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-dim);
    transition: color 0.2s ease;
}
.contact-card a:hover { color: var(--ink); }

.link-list__icon {
    width: 16px; height: 16px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.65;
    transition: opacity 0.2s ease;
}
a:hover > .link-list__icon { opacity: 1; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.field input,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(147, 163, 196, 0.55); }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(47, 139, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(47, 139, 255, 0.14);
}
.field--honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* --- Flash messages ------------------------------------------------------ */
.flash-wrap { padding-top: 12px; }
.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(8, 13, 26, 0.92);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}
.flash + .flash { margin-top: 10px; }
.flash__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    flex-shrink: 0;
}
.flash--error { border-color: rgba(255, 107, 107, 0.45); }
.flash--error .flash__dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.flash__close {
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.flash__close:hover { color: var(--ink); }

/* --- Page helpers -------------------------------------------------------- */
.page-back { margin-top: 40px; font-size: 0.92rem; }

.empty-state {
    position: relative;
    padding: clamp(36px, 6vw, 64px) clamp(22px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    text-align: center;
    overflow: hidden;
}
.empty-state h1,
.empty-state h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.empty-state p { margin-top: 10px; }
.empty-state .btn { margin-top: 24px; }
.empty-state__orb {
    position: absolute;
    top: -60px; left: 50%;
    width: 220px; height: 220px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 139, 255, 0.35), transparent 68%);
    pointer-events: none;
}
.empty-state__code {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(120deg, #6cb2ff, #a68bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Lists: licenses, vacancies ----------------------------------------- */
.license-list { display: grid; gap: 10px; }
.license-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.license-list__item:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}
.license-list__arrow { color: var(--brand); }

.vacancy-list { display: grid; gap: 18px; }
.vacancy__body { margin-top: 16px; display: grid; gap: 10px; }
.vacancy__body h3 {
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

/* --- Long-form license text --------------------------------------------- */
.prose { max-width: 860px; }
.prose .section { padding: 0; }
.prose .container { max-width: none; padding: 0; }
.prose h1, .prose h2, .prose h3 {
    margin: 1.6em 0 0.6em;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}
.prose h3:first-child, .prose h2:first-child { margin-top: 0; }
.prose p { margin: 0.85em 0; color: var(--ink-dim); font-size: 0.95rem; }
.prose a { color: var(--brand); border-bottom: 1px dashed rgba(47, 139, 255, 0.45); }
.prose ul, .prose ol { margin: 0.9em 0; padding-left: 1.4em; list-style: revert; }
.prose li { margin: 0.35em 0; color: var(--ink-dim); font-size: 0.95rem; }
.prose pre {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.prose blockquote {
    margin: 1em 0;
    padding-left: 16px;
    border-left: 2px solid var(--brand);
    color: var(--muted);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    position: relative;
    margin-top: clamp(40px, 6vw, 80px);
    padding-top: clamp(44px, 6vw, 72px);
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(8, 13, 26, 0.4), rgba(5, 7, 15, 0));
}
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 48px);
    padding-bottom: clamp(32px, 4vw, 52px);
}
.site-footer__brand .brand { margin-bottom: 16px; }
.site-footer__brand .muted { font-size: 0.92rem; max-width: 34ch; }
.site-footer__brand .link-quiet { display: inline-block; margin-top: 14px; font-size: 0.88rem; }

.site-footer__title {
    margin-bottom: 16px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.link-list { display: grid; gap: 9px; font-size: 0.9rem; }
.link-list a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-dim);
    transition: color 0.2s ease;
}
.link-list a:hover { color: var(--ink); }

.site-footer__aside {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 26px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}

/* --- Reveal animation ---------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Keyframes ----------------------------------------------------------- */
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 8px)); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}
@keyframes slide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { max-width: 380px; order: -1; margin-bottom: 8px; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: var(--gutter);
        right: var(--gutter);
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        margin-left: 0;
        padding: 22px;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        background: rgba(8, 13, 26, 0.96);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
    .site-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav__list a::after { display: none; }
    .site-nav__actions { justify-content: space-between; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .hero__stats { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__aside { flex-direction: column; align-items: flex-start; }
    .project-card--featured { grid-column: auto; }
    .partner-wall a { min-width: 140px; height: 78px; padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .starfield { display: none; }
}
