:root {
    --bg: #050708;
    --bg-soft: #090d0f;
    --panel: rgba(10, 16, 18, 0.78);
    --panel-solid: #0b1113;
    --line: rgba(255, 255, 255, 0.1);
    --line-bright: rgba(0, 242, 255, 0.28);
    --text: #f4f8f8;
    --muted: #8a9a9d;
    --cyan: #00f2ff;
    --cyan-soft: rgba(0, 242, 255, 0.12);
    --cyan-glow: rgba(0, 242, 255, 0.38);
    --danger: #ff6680;
    --success: #68ffbf;
    --sans: Inter, Manrope, "Segoe UI", Arial, sans-serif;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --header-height: 76px;
    --wrap: min(1180px, calc(100vw - 48px));
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body.is-home {
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

::selection {
    background: var(--cyan);
    color: #001416;
}

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

.lc-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 242, 255, 0.055), transparent 34%),
        linear-gradient(180deg, #040607 0%, #050708 100%);
    perspective: 900px;
}

.lc-grid {
    position: absolute;
    width: 180%;
    height: 160%;
    left: -40%;
    top: 26%;
    opacity: 0.26;
    background-image:
        linear-gradient(to right, rgba(0, 242, 255, 0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 242, 255, 0.16) 1px, transparent 1px);
    background-size: 54px 54px;
    transform: rotateX(68deg);
    transform-origin: center top;
    animation: grid-flow 5s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 60%, transparent 92%);
}

.is-home .lc-grid {
    opacity: 0.48;
}

.lc-scanline {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    top: -5%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.8), transparent);
    box-shadow: 0 0 22px rgba(0, 242, 255, 0.35);
    animation: scan 7s linear infinite;
}

.lc-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.04);
    filter: blur(70px);
}

.lc-orb-one {
    top: -180px;
    right: -100px;
}

.lc-orb-two {
    bottom: -250px;
    left: -130px;
}

@keyframes grid-flow {
    from { background-position: 0 0; }
    to { background-position: 0 54px; }
}

@keyframes scan {
    0% { top: -5%; opacity: 0; }
    8% { opacity: 0.7; }
    58% { opacity: 0.18; }
    70%, 100% { top: 108%; opacity: 0; }
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.is-inner .site-header {
    background: rgba(5, 7, 8, 0.82);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: var(--wrap);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand__mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font: 700 10px/1 var(--mono);
    transform: rotate(45deg);
    box-shadow: inset 0 0 16px var(--cyan-soft), 0 0 12px rgba(0, 242, 255, 0.1);
}

.brand__name {
    font-size: 15px;
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    position: relative;
    padding: 29px 0 27px;
    color: var(--muted);
    text-decoration: none;
    font: 600 11px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 140ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 18px;
    width: 0;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    transition: width 140ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.account-nav {
    position: relative;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    padding: 10px 13px;
    text-decoration: none;
    cursor: pointer;
    font: 600 11px/1 var(--mono);
    letter-spacing: 0.04em;
    transition: border-color 140ms ease, background 140ms ease;
}

.account-link:hover,
.account-link.is-active {
    border-color: var(--line-bright);
    background: var(--cyan-soft);
}

.account-link__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
}

.account-link__dot.is-online,
.account-link:not(button) .account-link__dot {
    background: var(--cyan);
    box-shadow: 0 0 9px var(--cyan);
}

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 170px;
    padding: 7px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-5px);
    background: #0a0f11;
    border: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.account-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.account-menu a,
.account-menu button {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    background: transparent;
    color: var(--muted);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    font: 600 11px/1 var(--mono);
}

.account-menu a:hover,
.account-menu button:hover {
    background: var(--cyan-soft);
    color: var(--cyan);
}

.account-menu form {
    margin: 0;
}

.site-main {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
}

.home-hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 40px) 24px 60px;
}

.hero-core {
    position: relative;
    z-index: 3;
    width: min(760px, 90vw);
    text-align: center;
    padding: 100px 24px;
}

.hero-frame {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    border: 1px solid var(--cyan);
    pointer-events: none;
}

.hero-frame--outer {
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    opacity: 0.58;
    transform: rotate(45deg);
    box-shadow: 0 0 26px rgba(0, 242, 255, 0.15), inset 0 0 26px rgba(0, 242, 255, 0.06);
    animation: core-turn 18s linear infinite;
}

.hero-frame--inner {
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
    border-color: rgba(0, 242, 255, 0.22);
    transform: rotate(15deg);
    animation: core-turn-back 24s linear infinite;
}

@keyframes core-turn {
    to { transform: rotate(405deg); }
}

@keyframes core-turn-back {
    to { transform: rotate(-345deg); }
}

.hero-overline,
.page-kicker,
.micro-label {
    margin: 0;
    color: var(--cyan);
    font: 600 11px/1.2 var(--mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-overline span,
.page-kicker span {
    color: rgba(255, 255, 255, 0.38);
}

.hero-core h1 {
    margin: 17px 0 12px;
    font-size: clamp(64px, 9vw, 124px);
    line-height: 0.9;
    letter-spacing: -0.075em;
    font-weight: 900;
    text-shadow: 0 0 42px rgba(0, 242, 255, 0.1);
}

.hero-tagline {
    margin: 0;
    color: #b7c4c6;
    font: 600 clamp(10px, 1.3vw, 13px)/1.5 var(--mono);
    letter-spacing: 0.16em;
}

.hero-description {
    max-width: 500px;
    margin: 19px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.hero-enter {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    margin-top: 31px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.45);
    color: var(--text);
    text-decoration: none;
    font: 600 11px/1 var(--mono);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: color 150ms ease, border-color 150ms ease;
}

.hero-enter span {
    color: var(--cyan);
}

.hero-enter:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.data-bits {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.data-bits i {
    position: absolute;
    left: var(--x);
    bottom: -4px;
    width: 3px;
    height: 3px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: bit-rise var(--speed) linear var(--delay) infinite;
}

@keyframes bit-rise {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 0.65; }
    80% { opacity: 0.25; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

.home-telemetry {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: var(--wrap);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.34);
    font: 500 9px/1 var(--mono);
    letter-spacing: 0.13em;
}

.telemetry-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, var(--line-bright), var(--line));
}

.code-page {
    width: var(--wrap);
    margin: 0 auto;
    min-height: calc(100vh - 73px);
    padding: 140px 0 80px;
}

.page-hero {
    max-width: 740px;
    margin-bottom: 66px;
}

.page-hero--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    align-items: end;
    gap: 60px;
}

.page-hero h1 {
    margin: 13px 0 0;
    font-size: clamp(58px, 8vw, 102px);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.page-hero > p:not(.page-kicker),
.page-hero--split > p {
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.page-hero--split > p {
    margin: 0 0 7px;
}

.accent {
    color: var(--cyan);
}

.site-footer {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer__inner {
    width: var(--wrap);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font: 500 10px/1.4 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-signal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-signal i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

/* Calendar */
.calendar-shell {
    border: 1px solid var(--line);
    background: rgba(6, 10, 12, 0.64);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

.calendar-toolbar {
    min-height: 96px;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.calendar-toolbar h2 {
    margin: 7px 0 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.calendar-controls {
    display: flex;
    gap: 6px;
}

.calendar-controls button {
    min-width: 38px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    cursor: pointer;
    font: 600 10px/1 var(--mono);
    text-transform: uppercase;
}

.calendar-controls button:hover {
    border-color: var(--line-bright);
    color: var(--cyan);
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    min-height: 38px;
    align-items: center;
    color: #617174;
    font: 600 9px/1 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.calendar-weekdays span {
    padding-left: 12px;
}

.calendar-day {
    position: relative;
    min-height: 116px;
    padding: 13px 12px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    color: var(--muted);
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.is-outside {
    opacity: 0.24;
}

.calendar-day__number {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;
    font: 600 10px/1 var(--mono);
}

.calendar-day.is-today .calendar-day__number {
    background: var(--cyan);
    color: #001416;
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.22);
}

.calendar-event {
    display: block;
    margin-top: 8px;
    padding: 6px 7px;
    overflow: hidden;
    background: var(--cyan-soft);
    border-left: 2px solid var(--cyan);
    color: #cbeaec;
    font: 600 9px/1.25 var(--mono);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-block {
    margin-top: 58px;
}

.block-heading h2 {
    margin: 8px 0 22px;
    font-size: 28px;
}

.empty-state {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--muted);
}

.empty-state__mark {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid var(--line-bright);
    color: var(--cyan);
    font: 400 18px/1 var(--mono);
}

.event-list {
    border-top: 1px solid var(--line);
}

.event-row {
    display: grid;
    grid-template-columns: 210px 1fr auto;
    gap: 25px;
    align-items: center;
    min-height: 76px;
    border-bottom: 1px solid var(--line);
}

.event-row time,
.event-row > span {
    color: var(--muted);
    font: 600 10px/1 var(--mono);
    letter-spacing: 0.05em;
}

.event-row > span {
    color: var(--cyan);
}

.event-row h3 {
    margin: 0;
    font-size: 15px;
}

/* Maps */
.feature-empty {
    min-height: 390px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    border: 1px solid var(--line);
    background: var(--panel);
}

.feature-empty__visual {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(145deg, transparent 35%, rgba(0, 242, 255, 0.05) 36%, transparent 37%),
        rgba(0, 0, 0, 0.16);
}

.feature-empty__visual::before,
.feature-empty__visual::after {
    content: "";
    position: absolute;
    left: -12%;
    width: 125%;
    height: 1px;
    background: rgba(0, 242, 255, 0.28);
    transform-origin: center;
}

.feature-empty__visual::before {
    top: 42%;
    transform: rotate(-18deg);
}

.feature-empty__visual::after {
    top: 61%;
    transform: rotate(11deg);
}

.feature-empty__visual i {
    position: absolute;
    left: 28px;
    bottom: 25px;
    color: var(--cyan);
    font: 600 10px/1 var(--mono);
    letter-spacing: 0.12em;
}

.feature-empty__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.feature-empty__copy h2 {
    margin: 12px 0 15px;
    max-width: 360px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.feature-empty__copy > p:last-child {
    max-width: 370px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.map-card {
    position: relative;
    min-height: 260px;
    padding: 34px;
    background: var(--panel-solid);
}

.map-card__number {
    position: absolute;
    top: 26px;
    right: 29px;
    color: rgba(255, 255, 255, 0.12);
    font: 700 36px/1 var(--mono);
}

.map-card h2 {
    margin: 18px 0;
    font-size: 32px;
}

.map-card a {
    position: absolute;
    bottom: 30px;
    left: 34px;
    color: var(--cyan);
    text-decoration: none;
    font: 600 10px/1 var(--mono);
    text-transform: uppercase;
}

/* Towers */
.towers-page {
    display: grid;
    align-items: center;
}

.tower-stage {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
    align-items: center;
    gap: 80px;
}

.tower-graphic {
    position: relative;
    height: 570px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(0, 242, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.035) 1px, transparent 1px),
        rgba(3, 8, 9, 0.7);
    background-size: 32px 32px;
}

.tower-graphic__beam {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: 92%;
    background: linear-gradient(transparent, var(--cyan));
    box-shadow: 0 0 18px var(--cyan);
}

.tower-graphic__levels {
    position: absolute;
    inset: 45px 36px 32px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
}

.tower-graphic__levels span {
    display: block;
    height: 1px;
    width: calc(42% + var(--level) * 3.8%);
    max-width: 100%;
    margin: 0 auto;
    background: rgba(0, 242, 255, calc(0.18 + var(--level) * 0.025));
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.09);
}

.tower-graphic__top {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cyan);
    font: 400 19px/1 var(--mono);
}

.tower-copy h1 {
    margin: 20px 0 28px;
    font-size: clamp(54px, 7.5vw, 96px);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.tower-copy h1 em {
    color: var(--cyan);
    font-style: normal;
}

.tower-copy > p:not(.page-kicker) {
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.tower-status {
    margin-top: 45px;
    padding-top: 22px;
    max-width: 560px;
    border-top: 1px solid var(--line);
}

.tower-status > span {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 600 10px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tower-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 9px var(--cyan);
}

.tower-status small {
    display: block;
    margin-top: 10px;
    color: #5e6b6e;
    font: 500 10px/1.5 var(--mono);
}

/* Records */
.records-board {
    border: 1px solid var(--line);
    background: rgba(5, 10, 11, 0.68);
}

.records-board__head,
.record-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 180px 180px;
    align-items: center;
}

.records-board__head {
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    color: #526164;
    font: 600 9px/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.records-board__head span,
.record-row > * {
    padding: 0 18px;
}

.record-row {
    min-height: 68px;
    border-bottom: 1px solid var(--line);
    transition: background 130ms ease;
}

.record-row:last-child {
    border-bottom: 0;
}

.record-row:hover {
    background: rgba(0, 242, 255, 0.035);
}

.record-row strong {
    color: var(--cyan);
    font: 600 11px/1 var(--mono);
}

.record-row > span {
    font-weight: 700;
}

.record-row time,
.record-row small {
    color: var(--muted);
    font: 600 10px/1 var(--mono);
}

.record-row small {
    color: var(--cyan);
    letter-spacing: 0.07em;
}

.record-row.is-empty > span,
.record-row.is-empty time {
    color: #334044;
}

.record-row.is-empty small {
    color: #3d4b4e;
}

/* Connect */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.social-card {
    position: relative;
    min-height: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--line);
    background: var(--panel);
    text-decoration: none;
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

a.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-bright);
    background: rgba(0, 242, 255, 0.06);
}

.social-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(0, 242, 255, 0.09);
    transform: rotate(45deg);
}

.social-card__index {
    position: absolute;
    top: 26px;
    left: 28px;
    color: #48575a;
    font: 600 10px/1 var(--mono);
}

.social-card h2 {
    margin: 10px 0 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.social-card small {
    display: block;
    margin-top: 7px;
    color: #526164;
    font: 500 9px/1.4 var(--mono);
    text-transform: uppercase;
}

.social-card__arrow {
    position: absolute;
    right: 28px;
    bottom: 28px;
    color: var(--cyan);
    font: 400 20px/1 var(--mono);
}

.social-card.is-disabled {
    opacity: 0.52;
}

.social-card--twitch:hover {
    border-color: rgba(145, 70, 255, 0.55);
}

.connect-note {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 50px;
    color: var(--muted);
    font: 500 12px/1.6 var(--mono);
}

.connect-note span {
    color: var(--cyan);
}

/* Generic editor content remains available for small DB-backed pages/posts. */
.article-content {
    max-width: 820px;
    padding: 38px 0 0;
    border-top: 1px solid var(--line);
    color: #c1cdcf;
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2,
.article-content h3 {
    margin-top: 2em;
    color: var(--text);
    letter-spacing: -0.03em;
}

.article-content a {
    color: var(--cyan);
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content pre {
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line);
    background: #020405;
}



/* Account */
.account-page {
    width: min(1060px, calc(100vw - 48px));
    min-height: 92vh;
    margin: 0 auto;
    padding: 130px 0 80px;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 100px;
    align-items: center;
}
.register-page {
    grid-template-columns: 1fr 550px;
}

.account-intro h1 {
    margin: 18px 0 24px;
    font-size: clamp(58px, 7vw, 90px);
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.account-intro > p:last-child {
    max-width: 480px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.account-card {
    padding: 33px;
    border: 1px solid var(--line);
    background: rgba(8, 13, 15, 0.86);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    border-radius: 12px;
}

.account-card__topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 27px;
}

.account-card__topline > span {
    width: 22px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 7px var(--cyan);
}

.account-card__topline small {
    color: #536265;
    font: 600 9px/1 var(--mono);
    letter-spacing: 0.12em;
}

.account-card h2 {
    margin: 0 0 25px;
    font-size: 31px;
    letter-spacing: -0.04em;
}

.account-form {
    display: grid;
    gap: 16px;
}

.account-form label {
    display: grid;
    gap: 8px;
}

.account-form label > span {
    color: #8e9ca0;
    font: 600 10px/1 var(--mono);
    letter-spacing: 0.05em;
}

.account-form input,
.account-form textarea,
.account-form select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    outline: 0;
    background: rgba(0, 0, 0, 0.24);
    color: var(--text);
    border-radius: 4px;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.account-form input:focus,
.account-form textarea:focus,
.account-form select:focus {
    border-color: rgba(0, 242, 255, 0.56);
    box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.07);
}

.button-primary {
    min-height: 48px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-self: space-between;
    gap: 30px;
    border: 1px solid var(--cyan);
    background: var(--cyan);
    color: #001416;
    cursor: pointer;
    text-decoration: none;
    font: 700 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: box-shadow 140ms ease, transform 140ms ease;
    width:180px;
    border-radius:8px;
    justify-self: end;
}

.button-primary:hover {
    box-shadow: 0 0 24px rgba(0, 242, 255, 0.22);
    transform: translateY(-1px);
}

.account-form .button-primary {
    margin-top: 3px;
}

.button-as-link {
    width: 100%;
}

.form-message {
    margin: 0 0 18px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    color: var(--muted);
    font: 500 10px/1.5 var(--mono);
    border-radius:6px;
}

.form-error {
    border-color: rgba(255, 102, 128, 0.28);
    background: rgba(255, 102, 128, 0.06);
    color: #ff9aad;
}

.form-success {
    border-color: rgba(104, 255, 191, 0.28);
    background: rgba(104, 255, 191, 0.06);
    color: var(--success);
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 17px;
    color: #526164;
    font: 500 9px/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-divider::before,
.account-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.account-methods {
    display: grid;
    gap: 9px;
}

.account-provider {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    text-decoration: none;
    font: 600 11px/1 var(--mono);
    transition: border-color 140ms ease, background 140ms ease;
}

.account-provider:hover {
    border-color: rgba(145, 70, 255, 0.55);
    background: rgba(145, 70, 255, 0.08);
}

.account-provider-mark {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: white;
    font: 700 10px/1 var(--mono);
}

.account-switch {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.account-switch a {
    color: var(--cyan);
    text-decoration: none;
}

.external-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 20px;
    padding: 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.external-identity__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: #9146ff;
    font: 800 13px/1 var(--mono);
}

.external-identity strong,
.external-identity small {
    display: block;
}

.external-identity small {
    margin-top: 4px;
    color: var(--muted);
    font: 500 9px/1.4 var(--mono);
}

.registration-trap {
    position: absolute !important;
    left: -9999px !important;
}

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

.register-grid .button-primary,
.register-extra {
    grid-column: 1 / -1;
}

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

@media (max-width: 600px) {
    .register-grid,
    .register-methods {
        grid-template-columns: 1fr;
    }
}
/* 404 */
.error-page {
    position: relative;
    width: var(--wrap);
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 170px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.error-page__code {
    position: absolute;
    z-index: -1;
    right: -35px;
    top: 50%;
    transform: translateY(-52%);
    color: rgba(0, 242, 255, 0.035);
    font-size: min(34vw, 430px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.1em;
}

.error-page h1 {
    margin: 18px 0 12px;
    font-size: clamp(52px, 8vw, 94px);
    letter-spacing: -0.06em;
}

.error-page > p:not(.page-kicker) {
    margin: 0 0 28px;
    color: var(--muted);
}

@media (max-width: 1040px) {
    :root {
        --wrap: min(100% - 36px, 1180px);
    }

    .site-header__inner {
        gap: 20px;
    }

    .site-nav {
        gap: 17px;
    }

    .site-nav a {
        font-size: 9px;
    }

    .account-page {
        grid-template-columns: 1fr 410px;
        gap: 54px;
    }

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

@media (max-width: 820px) {
    :root {
        --header-height: 66px;
        --wrap: min(100% - 30px, 1180px);
    }

    .site-header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .brand__name {
        display: none;
    }

    .nav-toggle {
        justify-self: end;
        width: 39px;
        height: 39px;
        padding: 0 9px;
        display: grid;
        align-content: center;
        gap: 6px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.025);
        cursor: pointer;
    }

    .nav-toggle > span:not(.sr-only) {
        display: block;
        height: 1px;
        background: var(--text);
        transition: transform 150ms ease;
    }

    .nav-toggle[aria-expanded="true"] > span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        padding: 10px 18px 24px;
        display: grid;
        gap: 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        background: rgba(5, 7, 8, 0.97);
        border-bottom: 1px solid var(--line);
        transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .site-nav a {
        padding: 15px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 11px;
    }

    .site-nav a::after {
        display: none;
    }

    .account-link {
        padding: 10px;
        font-size: 9px;
    }

    .hero-core {
        padding: 80px 12px;
    }

    .hero-frame--outer {
        width: 300px;
        height: 300px;
        margin: -150px 0 0 -150px;
    }

    .hero-frame--inner {
        width: 210px;
        height: 210px;
        margin: -105px 0 0 -105px;
    }

    .page-hero--split,
    .feature-empty,
    .tower-stage,
    .account-page {
        grid-template-columns: 1fr;
    }

    .page-hero--split {
        gap: 20px;
    }

    .feature-empty__visual {
        min-height: 260px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .tower-stage {
        gap: 50px;
    }

    .tower-graphic {
        height: 430px;
    }

    .records-board__head,
    .record-row {
        grid-template-columns: 56px minmax(0, 1fr) 120px;
    }

    .records-board__head span:last-child,
    .record-row small {
        display: none;
    }

    .account-page {
        width: var(--wrap);
        gap: 36px;
        padding-top: 120px;
    }

    .account-intro > p:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    :root {
        --wrap: calc(100% - 24px);
    }

    .account-link {
        max-width: 116px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .home-telemetry span:last-child {
        display: none;
    }

    .hero-core h1 {
        font-size: clamp(56px, 19vw, 86px);
    }

    .hero-tagline {
        max-width: 280px;
        margin-inline: auto;
    }

    .code-page {
        padding: 128px 0 70px;
    }

    .page-hero {
        margin-bottom: 42px;
    }

    .page-hero h1 {
        font-size: clamp(52px, 17vw, 78px);
    }

    .calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-weekdays span {
        padding-left: 5px;
        font-size: 7px;
    }

    .calendar-day {
        min-height: 75px;
        padding: 7px 4px;
    }

    .calendar-day__number {
        width: 23px;
        height: 23px;
        font-size: 8px;
    }

    .calendar-event {
        padding: 4px 3px;
        border-left-width: 1px;
        font-size: 0;
    }

    .calendar-event::after {
        content: "•";
        color: var(--cyan);
        font-size: 12px;
    }

    .event-row {
        grid-template-columns: 1fr auto;
        gap: 9px 15px;
        padding: 16px 0;
    }

    .event-row time {
        grid-column: 1 / -1;
    }

    .map-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .feature-empty__copy {
        padding: 31px 24px;
    }

    .tower-copy h1 {
        font-size: clamp(51px, 15vw, 72px);
    }

    .record-row {
        min-height: 61px;
    }

    .records-board__head,
    .record-row {
        grid-template-columns: 46px minmax(0, 1fr) 92px;
    }

    .records-board__head span,
    .record-row > * {
        padding: 0 8px;
    }

    .record-row > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .social-card {
        min-height: 225px;
    }

    .account-card {
        padding: 24px 18px;
    }

    .site-footer__inner {
        min-height: 80px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
    }
}

@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;
    }
}
.password-toggle {
    position: absolute;

    top: 49.5%;
    right: 40px;

    width: 24px;
    height: 24px;

    padding: 3px;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: var(--muted);

    cursor: pointer;
}

.password-toggle svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

/* Password is currently visible */
.password-toggle.is-visible {
    color:var(--cyan-glow);
}


.register-grid .password-field {
    position: relative;
    width: 100%;
}

.register-grid .password-field input {
    width: 100%;
    padding-right: 50px;
}

.register-grid .password-toggle {
    position: absolute;
    right: 8px;

    width: 24px;
    height: 24px;

    transform: translateY(-50%);

    z-index: 2;
}
