@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/JetBrainsMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("/fonts/Geist-O3.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
    unicode-range: U+33, U+4F;
}

:root {
    --bg: #000000;
    --raised: #0B0B0C;
    --surface: #111113;
    --surface-2: #18181B;
    --surface-3: #232327;
    --ring: rgba(255, 255, 255, 0.07);
    --ring-strong: rgba(255, 255, 255, 0.14);
    --text: #F4F4F5;
    --text-2: #A1A1AA;
    --text-3: #6B6B72;
    --log: #C8C9CC;
    --white: #FFFFFF;
    --gold: #E8C547;
    --positive: #B8E77E;
    --negative: #F08A86;
    --gathering: #5FD0A0;
    --fight: #E4A0D5;
    --moving: #8FAEE8;
    --idle: #5A5A60;
    --font: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    --font-code: "JetBrains Mono", Consolas, "SF Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
}

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

::selection {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: rgba(255, 255, 255, 0.3) var(--bg);
        scrollbar-width: thin;
    }
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track, ::-webkit-scrollbar-corner {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    border: 4px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22) padding-box;
}

::-webkit-scrollbar-thumb:hover {
    border-width: 3px;
    background: rgba(255, 255, 255, 0.45) padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.6) padding-box;
}

.code::-webkit-scrollbar {
    height: 10px;
}

.code::-webkit-scrollbar-track {
    background: transparent;
}

.code::-webkit-scrollbar-thumb {
    border-width: 3px;
    background: rgba(255, 255, 255, 0.14) padding-box;
}

img {
    display: block;
}

a {
    color: var(--text);
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.18s ease, color 0.18s ease;
}

a:hover {
    text-decoration-color: var(--white);
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.narrow-container {
    max-width: 840px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    flex: none;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.icon.arrow {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--text);
    color: #000000;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.button:hover {
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12), 0 10px 40px -10px rgba(255, 255, 255, 0.45);
}

.button:hover .icon.arrow {
    transform: translate(2px, -2px);
}

.button:active {
    transform: translateY(1px);
}

.button.secondary {
    background: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.5px) 0 0 / 7px 7px fixed, #26262A;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.button.secondary:hover {
    background: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.5px) 0 0 / 7px 7px fixed, #303036;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.button.large {
    padding: 15px 28px;
    font-size: 16px;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 96px;
}

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

.brand img {
    border-radius: 9px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.site-nav a {
    color: var(--text-2);
    font-size: 15px;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--white);
}

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

.site-nav + .header-actions {
    margin-left: 12px;
}

.header-actions form {
    margin: 0;
}

.header-actions .button {
    padding: 10px 18px;
    font-size: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(760px, 100vh, 1000px);
    padding: 150px 0 120px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 70%;
    background: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px) 0 0 / 7px 7px fixed;
    -webkit-mask-image: radial-gradient(60% 75% at 50% 0%, #000, transparent);
    mask-image: radial-gradient(60% 75% at 50% 0%, #000, transparent);
    pointer-events: none;
}

.hero::after, .cta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 140px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.hero-content, .cta-content {
    position: relative;
    z-index: 2;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 16px 7px 14px;
    border-radius: 999px;
    background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.5px) 0 0 / 7px 7px fixed, rgba(232, 197, 71, 0.8);
    color: #18181B;
    font-size: 13.5px;
    font-weight: 600;
}

.status-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #18181B;
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(24, 24, 27, 0.35);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.4);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.horizon-mark {
    position: relative;
    margin-top: 36px;
}

.planet {
    position: absolute;
    top: 76%;
    left: 50%;
    z-index: 0;
    width: min(1500px, 125vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.075), transparent 26%),
        var(--bg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 -1px 0 rgba(255, 255, 255, 0.6),
        0 -6px 26px rgba(255, 255, 255, 0.24),
        0 -26px 120px rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-title {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-family: "Geist", var(--font-display);
    font-size: clamp(150px, 24vw, 320px);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.hero-lead, .hero-text, .hero-actions, .hero-note {
    position: relative;
    z-index: 1;
}

.hero-lead {
    max-width: 760px;
    margin: 64px auto 0;
    color: var(--text);
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.4;
}

.hero-text {
    max-width: 560px;
    margin: 14px auto 0;
    color: var(--text-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.hero-note {
    margin: 18px 0 0;
    color: var(--text-3);
    font-size: 13.5px;
}

.section {
    position: relative;
    padding: 140px 0;
}

.section-head {
    max-width: 680px;
    margin-bottom: 64px;
}

.section-head.centered {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.label {
    margin: 0 0 18px;
    color: var(--text-3);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(38px, 4.8vw, 62px);
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.section-lead {
    margin: 24px 0 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.45;
}

.section-head p:not(.section-lead, .label), .split-copy p:not(.section-lead, .label) {
    margin: 16px 0 0;
    color: var(--text-2);
}

.showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.show-card {
    overflow: hidden;
    padding-bottom: 30px;
    border-radius: 22px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--ring);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.show-card:hover {
    box-shadow: inset 0 0 0 1px var(--ring-strong), 0 30px 80px -40px rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.show-visual {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: radial-gradient(110% 90% at 50% 20%, #141416 0%, var(--raised) 75%);
}

.show-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--raised) 100%);
}

.show-visual svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: brightness(0.85);
    transform: scale(1.02);
    transition: filter 0.35s ease, transform 0.6s ease;
}

.show-card:hover .show-visual svg {
    filter: brightness(1.1);
    transform: scale(1.07);
}

.show-card h3 {
    margin: 6px 28px 0;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.show-card p {
    margin: 10px 28px 0;
    color: var(--text-2);
    font-size: 15px;
}

.v-grid {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
}

.v-cell {
    fill: #1A1A1D;
}

.v-cell-off {
    fill: #121214;
}

.v-cell-lit {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1;
}

.v-route {
    fill: none;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
    stroke-dasharray: 2 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v-glow-dots circle {
    fill: rgba(255, 255, 255, 0.85);
}

.v-light-dots circle {
    fill: var(--white);
}

.v-grey-dots circle {
    fill: #3A3A40;
}

.v-shadow {
    fill: rgba(0, 0, 0, 0.6);
}

.v-token {
    fill: var(--white);
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 5;
    paint-order: stroke;
}

.v-token-grey {
    fill: #6B6B72;
}

.v-leader {
    fill: var(--white);
}

.v-enemy {
    fill: #2E2E33;
    stroke: #71717A;
    stroke-width: 1.5;
}

.v-spell {
    fill: none;
    stroke: var(--white);
    stroke-width: 2;
    stroke-dasharray: 5 6;
    stroke-linecap: round;
}

.v-spell-glow {
    fill: none;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 6;
}

.v-impact {
    fill: rgba(255, 255, 255, 0.55);
}

.v-slots rect {
    fill: #141416;
    stroke: rgba(255, 255, 255, 0.06);
}

.v-slot-selected {
    fill: rgba(255, 255, 255, 0.08);
    stroke: var(--white);
    stroke-width: 1.5;
}

.v-items path, .v-items circle, .v-items rect {
    fill: #4E4E55;
}

.v-coins ellipse {
    fill: #E4E4E7;
    stroke: #71717A;
    stroke-width: 1;
}

.v-bar-track {
    fill: #1C1C1F;
}

.v-bar-fill {
    fill: var(--white);
}

.v-week {
    fill: #1A1A1D;
}

.v-week-on {
    fill: rgba(255, 255, 255, 0.5);
}

.v-now {
    fill: var(--white);
}

.v-link {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.v-flow {
    fill: none;
    stroke: var(--white);
    stroke-width: 2.5;
    stroke-dasharray: 2 14;
    stroke-linecap: round;
    animation: v-flow 2.4s linear infinite;
}

@keyframes v-flow {
    to {
        stroke-dashoffset: -64;
    }
}

.v-accounts circle {
    fill: #A1A1AA;
}

.v-proxies path {
    fill: var(--bg);
    stroke: var(--white);
    stroke-width: 2;
}

.v-server rect {
    fill: #1C1C1F;
    stroke: rgba(255, 255, 255, 0.06);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: center;
}

.checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.checks li {
    position: relative;
    padding-left: 32px;
}

.checks li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23000000' d='M8.4 13.6 4.8 10l1.4-1.4 2.2 2.2 5.4-5.4 1.4 1.4z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.code-window {
    overflow: hidden;
    border-radius: 20px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--ring), 0 40px 100px -50px rgba(255, 255, 255, 0.2);
}

.code-titlebar {
    padding: 13px 22px;
    background: var(--surface);
    color: var(--text-2);
    font-family: var(--font-code);
    font-size: 12.5px;
}

.code {
    margin: 0;
    padding: 22px 24px 26px;
    overflow-x: auto;
    color: var(--log);
    font-family: var(--font-code);
    font-size: 13.5px;
    line-height: 1.7;
    tab-size: 4;
}

.code .k { color: #E4A0D5; }
.code .g { color: #8FAEE8; }
.code .n { color: #E8C547; }
.code .s { color: #B8E77E; }
.code .f { color: #5CB7DF; }

.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 72px;
    align-items: center;
}

.band-item h3 {
    font-size: clamp(28px, 2.8vw, 36px);
    letter-spacing: -0.03em;
}

.band-item p {
    max-width: 440px;
    margin: 12px 0 0;
    color: var(--text-2);
}

.band-item + .band-item {
    margin-top: 44px;
}

.band-copy .button {
    margin-top: 44px;
}

.app-window {
    overflow: hidden;
    border-radius: 16px;
    background: #1F1F23;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 120px -40px rgba(255, 255, 255, 0.22);
    font-size: 13px;
    user-select: none;
}

.app-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 14px;
    background: #18181B;
    color: var(--text-2);
    font-size: 12px;
}

.app-titlebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.app-titlebar-brand img {
    border-radius: 3px;
}

.app-titlebar-controls {
    display: flex;
    gap: 14px;
}

.app-titlebar-controls span {
    width: 10px;
    height: 2px;
    background: var(--text-3);
}

.app-body {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    min-height: 352px;
}

.app-sidebar {
    padding: 14px 10px;
    background: #18181B;
}

.app-sidebar-title {
    margin: 0 8px 10px;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-bot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
}

.app-bot.selected {
    background: #2E2E33;
}

.app-bot-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-bot-text strong {
    font-weight: 600;
}

.app-bot-text small {
    overflow: hidden;
    color: var(--text-2);
    font-size: 11.5px;
    white-space: nowrap;
    text-overflow: clip;
}

.status {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status.gathering { background: var(--gathering); box-shadow: 0 0 10px rgba(95, 208, 160, 0.5); }
.status.fight { background: var(--fight); box-shadow: 0 0 10px rgba(228, 160, 213, 0.45); }
.status.moving { background: var(--moving); box-shadow: 0 0 10px rgba(143, 174, 232, 0.45); }
.status.idle { background: var(--idle); }

.app-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 14px 18px 18px;
}

.app-tabs {
    display: flex;
    gap: 2px;
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    padding: 3px;
    border-radius: 9px;
    background: #2E2E33;
}

.app-tabs span {
    padding: 4px 9px;
    border-radius: 7px;
    color: var(--text-2);
    font-size: 12px;
    white-space: nowrap;
}

.app-tabs span.selected {
    background: #3A3A40;
    color: var(--text);
}

.app-pods {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-2);
    font-size: 12px;
}

.app-pods-bar {
    flex: 1;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #2E2E33;
}

.app-pods-bar span {
    display: block;
    width: 62%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #9C8CEB, #C4B8F7);
}

.app-journal {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--log);
}

.app-journal p {
    display: flex;
    gap: 12px;
    margin: 0;
}

.app-journal time {
    flex: none;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.app-journal b {
    color: var(--text);
    font-weight: 600;
}

.app-journal .positive, .app-journal .positive b {
    color: var(--positive);
}

.app-journal .muted {
    color: var(--text-3);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding: 32px 30px 34px;
    border-radius: 22px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--ring);
}

.step-number {
    display: block;
    color: var(--text-3);
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
}

.steps h3 {
    margin-top: 28px;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.steps p {
    margin: 10px 0 0;
    color: var(--text-2);
    font-size: 15px;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq details {
    border-radius: 18px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--ring);
    transition: box-shadow 0.2s ease;
}

.faq details:hover, .faq details[open] {
    box-shadow: inset 0 0 0 1px var(--ring-strong);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    font-size: 17px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        linear-gradient(#000000, #000000) center / 11px 2px no-repeat,
        linear-gradient(#000000, #000000) center / 2px 11px no-repeat,
        var(--text);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    margin: 0;
    padding: 0 26px 24px;
    color: var(--text-2);
}

.faq details a[target="_blank"] {
    display: inline-block;
    margin-top: 8px;
}

.cta {
    position: relative;
    overflow: hidden;
    padding: 120px 0 280px;
    text-align: center;
}

.horizon-mark.small {
    margin-top: 0;
}

.horizon-mark.small .planet {
    top: 80%;
    width: min(1200px, 120vw);
}

.cta-title {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: clamp(56px, 9vw, 116px);
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.cta .hero-lead {
    margin-top: 72px;
}

.site-footer {
    padding: 72px 0 40px;
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto auto minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.footer-label {
    margin: 0 0 18px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-big {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.footer-big:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links a {
    font-size: 15px;
    text-decoration: underline;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
    align-self: end;
    font-size: 15px;
    text-decoration: none;
}

.back-to-top:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 72px;
    color: var(--text-3);
    font-size: 13px;
}

body.page main {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 150px 24px 140px;
    overflow: hidden;
}

body.page main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 60%;
    background: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.5px) 0 0 / 7px 7px fixed;
    -webkit-mask-image: radial-gradient(55% 80% at 50% 0%, #000, transparent);
    mask-image: radial-gradient(55% 80% at 50% 0%, #000, transparent);
    pointer-events: none;
}

body.page main::after {
    content: "";
    position: absolute;
    top: 420px;
    left: 50%;
    width: min(1400px, 140vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 26%), var(--bg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 -1px 0 rgba(255, 255, 255, 0.7),
        0 -6px 26px rgba(255, 255, 255, 0.22),
        0 -26px 120px rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    pointer-events: none;
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: 40px 40px 34px;
    border-radius: 26px;
    background: rgba(11, 11, 12, 0.88);
    box-shadow: inset 0 0 0 1px var(--ring-strong), 0 50px 120px -40px rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.card.narrow {
    max-width: 460px;
}

.card h1 {
    font-size: 34px;
    letter-spacing: -0.035em;
}

.card h2 {
    margin: 32px 0 12px;
    color: var(--text-3);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card > p {
    color: var(--text-2);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 22px 0 6px;
}

.form label {
    margin-top: 12px;
    color: var(--text-2);
    font-size: 14px;
}

.form label.check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.form label.check input {
    width: 18px;
    height: 18px;
    accent-color: var(--white);
}

.form .button {
    margin-top: 22px;
    padding: 14px 18px;
}

.form .button + .button {
    margin-top: 10px;
}

input[type=email], input[type=password], input[type=text] {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: #050505;
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.muted {
    color: var(--text-2);
    font-size: 14px;
}

.notice {
    margin: 18px 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.errors ul {
    margin: 0 0 6px;
    padding: 12px 18px 12px 36px;
    border-radius: 14px;
    background: rgba(228, 74, 69, 0.12);
    color: var(--negative);
}

.errors.validation-summary-valid {
    display: none;
}

.error {
    color: var(--negative);
    font-size: 13px;
}

.license {
    display: flex;
    gap: 10px;
}

.key {
    font-family: var(--font-code);
    font-size: 15px;
    letter-spacing: 0.04em;
}

.status-line {
    margin: 14px 0 0;
    font-weight: 600;
}

.status-line.positive {
    color: var(--gathering);
}

.status-line.negative {
    color: var(--negative);
}

.card .button {
    margin-top: 6px;
}

.mini-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.mini-steps li {
    position: relative;
    padding-left: 38px;
    color: var(--text-2);
    counter-increment: step;
}

.mini-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--text);
    color: #000000;
    font-size: 13px;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .v-flow, .status-dot::after {
        animation: none;
    }
}

@media (max-width: 1080px) {
    .site-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

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

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .back-to-top {
        grid-column: 1 / -1;
    }
}

@media (max-width: 940px) {
    .site-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .split, .band-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

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

    .section {
        padding: 100px 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .header-row {
        gap: 12px;
        height: 76px;
    }

    .hide-small {
        display: none;
    }

    .header-actions .button {
        padding: 9px 14px;
        font-size: 13.5px;
    }

    .hero {
        min-height: 0;
        padding: 112px 0 100px;
    }

    .horizon-mark {
        margin-top: 28px;
    }

    .planet {
        width: 190vw;
    }

    .hero-lead {
        margin-top: 44px;
    }

    .hero-actions .button {
        width: 100%;
    }

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

    .section {
        padding: 80px 0;
    }

    .section-head {
        margin-bottom: 44px;
    }

    .app-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-sidebar {
        display: none;
    }

    .cta {
        padding: 80px 0 180px;
    }

    .horizon-mark.small .planet {
        width: 180vw;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px;
    }

    .footer-lead {
        grid-column: 1 / -1;
    }

    .back-to-top {
        justify-self: start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    body.page main {
        padding: 110px 16px 100px;
    }

    body.page main::after {
        top: 360px;
        width: 220vw;
    }

    .card {
        padding: 30px 22px 26px;
    }

    .license {
        flex-direction: column;
    }
}

.cta::after {
    height: 220px;
}

body.docs main {
    position: relative;
    padding: 150px 0 120px;
}

body.docs main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 520px;
    background: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.5px) 0 0 / 7px 7px fixed;
    -webkit-mask-image: radial-gradient(60% 90% at 30% 0%, #000, transparent);
    mask-image: radial-gradient(60% 90% at 30% 0%, #000, transparent);
    pointer-events: none;
}

.docs-hero {
    position: relative;
    margin-bottom: 80px;
}

.docs-title {
    color: var(--white);
    font-size: clamp(56px, 8vw, 104px);
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.docs-hero .section-lead {
    max-width: 680px;
    color: var(--text-2);
}

.docs-layout {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.docs-nav {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.docs-nav-title {
    margin: 0 0 12px 14px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-nav a {
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 14.5px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.docs-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.docs-nav a.active {
    background: rgba(255, 255, 255, 0.09);
    color: var(--white);
}

.docs-content {
    min-width: 0;
    max-width: 840px;
}

.docs-content section {
    padding-bottom: 88px;
    scroll-margin-top: 32px;
}

.docs-content h2 {
    margin-bottom: 20px;
    font-size: clamp(32px, 3.4vw, 44px);
    letter-spacing: -0.035em;
}

.docs-content h3 {
    margin: 44px 0 14px;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.docs-content p, .docs-content li {
    color: var(--text-2);
}

.docs-content p {
    margin: 0 0 16px;
}

.docs-content strong {
    color: var(--text);
    font-weight: 600;
}

.docs-content ul, .docs-content ol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 18px;
    padding-left: 22px;
}

.docs-content li::marker {
    color: var(--text-3);
}

.docs-content :not(pre) > code {
    padding: 0.12em 0.45em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-family: var(--font-code);
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

.docs-content h3 code {
    font-size: 0.8em;
}

.docs-content pre.code {
    position: relative;
    margin: 0 0 20px;
    border-radius: 16px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--ring);
}

.code .t { color: #F2A07B; }

.copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 13px;
    border: 0;
    border-radius: 999px;
    background: #2C2C31;
    color: var(--text);
    font: inherit;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.copy-code:hover {
    background: #38383E;
}

pre.code:hover .copy-code, .copy-code:focus-visible {
    opacity: 1;
}

.docs-note {
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14.5px;
}

.table-scroll {
    margin: 0 0 20px;
    overflow-x: auto;
}

.docs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    font-size: 14.5px;
}

.docs-table th {
    padding: 4px 16px 6px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.docs-table td {
    padding: 12px 16px;
    background: var(--raised);
    color: var(--text-2);
    vertical-align: top;
}

.docs-table td:first-child {
    min-width: 150px;
    border-radius: 12px 0 0 12px;
    color: var(--text);
}

.docs-table td:first-child code {
    white-space: nowrap;
    overflow-wrap: normal;
}

.docs-table.messages td:first-child {
    width: 44%;
}

.docs-table.messages td:first-child code {
    white-space: normal;
    overflow-wrap: anywhere;
}

.docs-table td:last-child {
    border-radius: 0 12px 12px 0;
}

.docs-table.compact td:nth-child(3) {
    color: var(--text);
}

.docs-table td:first-child:nth-last-child(2) {
    width: 36%;
}

.docs-table td:nth-child(2):not(:last-child) {
    min-width: 110px;
}

@media (hover: none) {
    .copy-code {
        opacity: 1;
    }
}

@media (max-width: 940px) {
    .docs-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .docs-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        max-height: none;
    }

    .docs-nav-title {
        flex-basis: 100%;
        margin-left: 0;
    }

    .docs-nav a {
        background: rgba(255, 255, 255, 0.05);
        font-size: 13.5px;
    }
}

@media (max-width: 640px) {
    body.docs main {
        padding: 110px 0 80px;
    }

    .docs-hero {
        margin-bottom: 48px;
    }

    .docs-content section {
        padding-bottom: 64px;
    }
}

.split-action {
    margin-top: 36px;
}

.roadmap-updated {
    margin: 18px 0 0;
    color: var(--text-3);
    font-size: 14px;
}

.roadmap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.roadmap-section {
    scroll-margin-top: 32px;
}

.roadmap-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.roadmap-heading h2 {
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.035em;
}

.roadmap-count {
    min-width: 32px;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.roadmap-intro {
    margin: 10px 0 26px;
    color: var(--text-2);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.roadmap-item {
    padding: 24px 26px 26px;
    border-radius: 20px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--ring);
}

.roadmap-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-3);
    font-size: 13px;
}

.roadmap-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}

.roadmap-badge.bug {
    background: rgba(240, 138, 134, 0.14);
    color: var(--negative);
}

.roadmap-badge.feature {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.roadmap-badge.limitation {
    background: rgba(232, 197, 71, 0.14);
    color: var(--gold);
}

.roadmap-item h3 {
    margin-top: 16px;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.roadmap-item p {
    margin: 8px 0 0;
    color: var(--text-2);
    font-size: 15px;
}

.roadmap-empty {
    color: var(--text-2);
}

@media (max-width: 760px) {
    .roadmap-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}