:root {
    --accent: #5c94ff;
    --ink-0: #f7f8ff;
    --ink-1: rgba(236, 240, 255, 0.9);
    --ink-2: rgba(205, 215, 243, 0.86);
    --line-soft: rgba(184, 212, 255, 0.33);
    --line-strong: rgba(146, 188, 255, 0.66);
    --surface: rgba(8, 14, 31, 0.54);
    --surface-hover: rgba(12, 20, 43, 0.66);
    --blue-cta: #355fc1;
    --blue-cta-hover: #4677dd;
    --page-bg: #050711;
    --header-bg: rgba(4, 7, 17, 0.56);
    --header-border: rgba(180, 206, 255, 0.18);
    --nav-hover-bg: rgba(150, 189, 255, 0.12);
    --nav-hover-text: #ffffff;
    --menu-bg: rgba(6, 10, 26, 0.97);
    --menu-shadow: 0 24px 64px rgba(0, 0, 10, 0.7);
    --menu-card-hover: rgba(146, 188, 255, 0.08);
    --menu-icon-bg: rgba(146, 188, 255, 0.09);
    --menu-toggle-color: #e8eeff;
    --ghost-button-bg: transparent;
    --ghost-button-text: #c8d8ff;
    --ghost-button-border: rgba(146, 188, 255, 0.35);
    --ghost-button-hover-bg: rgba(146, 188, 255, 0.08);
    --launch-btn-bg: rgba(22, 35, 66, 0.5);
    --launch-btn-border: rgba(146, 188, 255, 0.6);
    --outline-btn-bg: rgba(8, 14, 33, 0.42);
    --outline-btn-border: rgba(168, 198, 255, 0.72);
    --outline-btn-hover-bg: rgba(49, 90, 172, 0.32);
    --outline-btn-text: var(--ink-0);
    --btn-primary-start: #3f74df;
    --btn-primary-end: var(--blue-cta);
    --btn-primary-hover-start: #4c84fb;
    --btn-primary-hover-end: var(--blue-cta-hover);
    --btn-primary-text: #f7f8ff;
    --control-bg: rgba(8, 14, 31, 0.5);
    --control-border: rgba(146, 188, 255, 0.24);
    --control-active-bg: rgba(92, 148, 255, 0.12);
    --control-active-border: rgba(146, 188, 255, 0.5);
    --panel-soft: rgba(255, 255, 255, 0.03);
    --panel-strong: rgba(8, 14, 31, 0.54);
    --field-bg: rgba(4, 7, 15, 0.7);
    --field-placeholder: rgba(205, 215, 243, 0.35);
    --select-option-bg: #080e1f;
    --warning-bg: rgba(255, 200, 80, 0.04);
    --warning-border: rgba(255, 200, 80, 0.14);
    --warning-label: rgba(255, 210, 100, 0.8);
    --legal-page-bg: #04070f;
    --legal-header-bg: rgba(8, 11, 24, 0.98);
    --community-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    --community-gif-border: rgba(166, 201, 255, 0.22);
    --community-gif-bg:
        radial-gradient(circle at top left, rgba(92, 148, 255, 0.22), transparent 48%),
        linear-gradient(180deg, rgba(12, 20, 44, 0.92), rgba(7, 12, 28, 0.98));
    --focus-ring: rgba(92, 148, 255, 0.18);
    --surface-shadow: none;
    --surface-shadow-soft: none;
    --container: 1180px;
}

html[data-theme="light"] {
    --accent: #245fd1;
    --ink-0: #182235;
    --ink-1: rgba(33, 45, 69, 0.9);
    --ink-2: rgba(88, 100, 122, 0.9);
    --line-soft: rgba(107, 122, 151, 0.22);
    --line-strong: rgba(73, 100, 153, 0.34);
    --surface: rgba(255, 255, 255, 0.94);
    --surface-hover: rgba(255, 255, 255, 0.99);
    --blue-cta: #245fd1;
    --blue-cta-hover: #1e51b7;
    --page-bg: #f6f5f0;
    --header-bg: rgba(252, 251, 247, 0.84);
    --header-border: rgba(115, 126, 150, 0.18);
    --nav-hover-bg: rgba(36, 95, 209, 0.06);
    --nav-hover-text: #142341;
    --menu-bg: rgba(255, 255, 255, 0.98);
    --menu-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    --menu-card-hover: rgba(36, 95, 209, 0.05);
    --menu-icon-bg: rgba(36, 95, 209, 0.07);
    --menu-toggle-color: #2d436e;
    --ghost-button-bg: rgba(255, 255, 255, 0.92);
    --ghost-button-text: #1f3f78;
    --ghost-button-border: rgba(96, 118, 161, 0.22);
    --ghost-button-hover-bg: rgba(36, 95, 209, 0.06);
    --launch-btn-bg: rgba(36, 95, 209, 0.06);
    --launch-btn-border: rgba(36, 95, 209, 0.26);
    --outline-btn-bg: rgba(255, 255, 255, 0.9);
    --outline-btn-border: rgba(96, 118, 161, 0.28);
    --outline-btn-hover-bg: rgba(36, 95, 209, 0.08);
    --outline-btn-text: #1f4ba5;
    --btn-primary-start: #4d7be0;
    --btn-primary-end: #2f66d4;
    --btn-primary-hover-start: #5a88eb;
    --btn-primary-hover-end: #2559c3;
    --btn-primary-text: #fdfefe;
    --control-bg: rgba(255, 255, 255, 0.92);
    --control-border: rgba(107, 122, 151, 0.24);
    --control-active-bg: rgba(36, 95, 209, 0.08);
    --control-active-border: rgba(36, 95, 209, 0.24);
    --panel-soft: rgba(255, 255, 255, 0.88);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --field-bg: rgba(255, 255, 255, 0.94);
    --field-placeholder: rgba(88, 100, 122, 0.52);
    --select-option-bg: #fbfcfd;
    --warning-bg: rgba(228, 179, 73, 0.11);
    --warning-border: rgba(186, 136, 25, 0.18);
    --warning-label: rgba(122, 81, 0, 0.84);
    --legal-page-bg: #f5f4ef;
    --legal-header-bg: rgba(252, 251, 247, 0.96);
    --community-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 250, 0.94));
    --community-gif-border: rgba(107, 122, 151, 0.18);
    --community-gif-bg:
        radial-gradient(circle at top left, rgba(36, 95, 209, 0.1), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 245, 249, 0.98));
    --focus-ring: rgba(36, 95, 209, 0.12);
    --surface-shadow: 0 20px 48px rgba(15, 23, 42, 0.07);
    --surface-shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-weight: 300;
    color: var(--ink-0);
    background: var(--page-bg);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.cosmos-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(to bottom, rgba(2, 5, 14, 0.18), rgba(2, 5, 14, 0.63)),
        url("../images/hero-bg-4k.jpg") center 35% / cover no-repeat,
        url("../images/hero-bg.jpg") center 35% / cover no-repeat;
}

html[data-theme="light"] .cosmos-bg {
    opacity: 1;
    filter: none;
    background:
        radial-gradient(circle at 14% 12%, rgba(36, 95, 209, 0.12), transparent 0 25%),
        radial-gradient(circle at 86% 10%, rgba(228, 179, 73, 0.1), transparent 0 18%),
        linear-gradient(rgba(111, 129, 164, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 129, 164, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, #fcfcfa 0%, #f6f6f2 38%, #eef2f7 100%);
    background-size: auto, auto, 34px 34px, 34px 34px, auto;
    background-position: center;
}

.cosmos-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1240px 700px at 50% 35%, rgba(255, 180, 108, 0.17), transparent 58%);
}

html[data-theme="light"] .cosmos-bg::before {
    background:
        radial-gradient(960px 420px at 50% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
        radial-gradient(720px 360px at 24% 30%, rgba(36, 95, 209, 0.08), transparent 66%);
}

.cosmos-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3, 6, 15, 0.66) 0%,
        rgba(3, 6, 15, 0.2) 28%,
        rgba(3, 6, 15, 0.08) 50%,
        rgba(3, 6, 15, 0.48) 74%,
        rgba(3, 6, 15, 0.76) 100%
    );
}

html[data-theme="light"] .cosmos-bg::after {
    background: linear-gradient(
        to bottom,
        rgba(252, 252, 250, 0.86) 0%,
        rgba(252, 252, 250, 0.38) 24%,
        rgba(247, 248, 244, 0.16) 52%,
        rgba(243, 246, 250, 0.58) 80%,
        rgba(241, 244, 248, 0.9) 100%
    );
}

/* ── Cosmos star burst ──────────────────────────────────────────────────── */
.star-burst {
    position: absolute;
    pointer-events: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* Horizontal diffraction spike */
.star-burst::before,
.star-burst::after {
    content: '';
    position: absolute;
    border-radius: 2px;
    opacity: 0;
    transform-origin: center;
    transition: opacity 0s;
}
.star-burst::before {
    width: 1px;
    height: 80px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to bottom, transparent, rgba(255, 220, 160, 0.7) 50%, transparent);
}
.star-burst::after {
    width: 80px;
    height: 1px;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, transparent, rgba(255, 220, 160, 0.7) 50%, transparent);
}

.star-burst.active {
    animation: starBurstCore 10s ease-out forwards;
}
.star-burst.active::before,
.star-burst.active::after {
    animation: starBurstSpike 10s ease-out forwards;
}

@keyframes starBurstCore {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
        box-shadow: none;
    }
    5% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.8);
        box-shadow:
            0 0 0  2px rgba(255, 255, 255, 0.95),
            0 0 10px  4px rgba(255, 240, 200, 1),
            0 0 28px 10px rgba(255, 190,  80, 0.75),
            0 0 70px 26px rgba(255, 150,  40, 0.40),
            0 0 140px 60px rgba(255, 100,  20, 0.15);
    }
    50% {
        opacity: 0.75;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow:
            0 0 0  1px rgba(255, 255, 255, 0.6),
            0 0  7px  3px rgba(255, 230, 170, 0.65),
            0 0 22px  9px rgba(255, 170,  55, 0.30),
            0 0 90px 38px rgba(255, 120,  25, 0.10);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        box-shadow: none;
    }
}

@keyframes starBurstSpike {
    0%   { opacity: 0; }
    5%   { opacity: 0.85; }
    50%  { opacity: 0.45; }
    100% { opacity: 0; }
}

.container {
    width: min(var(--container), calc(100% - 2.8rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--header-border);
}

.topbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.topbar-leading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand img {
    height: 48px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink-1);
    font-weight: 400;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 0.58rem 1.08rem;
    border-radius: 0.5rem;
    transition: color 160ms ease, background-color 160ms ease;
}

.main-nav a:hover {
    color: var(--nav-hover-text);
    background: var(--nav-hover-bg);
}

/* ── Mega menu ───────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-1);
    font-family: inherit;
    font-weight: 400;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 0.58rem 1.08rem;
    border-radius: 0.5rem;
    transition: color 160ms ease, background-color 160ms ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
    color: var(--nav-hover-text);
    background: var(--nav-hover-bg);
}

.dropdown-chevron {
    transition: transform 220ms ease;
    flex-shrink: 0;
}

.nav-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: min(720px, calc(100vw - 2rem));
    background: var(--menu-bg);
    border: 1px solid var(--line-soft);
    border-radius: 0.8rem;
    backdrop-filter: blur(18px);
    box-shadow: var(--menu-shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 100;
}

.nav-dropdown.open .mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.5rem;
}

.mega-col {
    padding: 1.2rem 1rem;
    border-right: 1px solid var(--line-soft);
}

.mega-col:last-child {
    border-right: none;
}

.mega-col-heading {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 0.9rem 0.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line-soft);
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.7rem 0.6rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 150ms ease;
    margin-bottom: 0.15rem;
}

.mega-item:hover {
    background: var(--menu-card-hover);
}

.mega-item-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 0.45rem;
    background: var(--menu-icon-bg);
    border: 1px solid var(--line-soft);
    display: grid;
    place-items: center;
    color: var(--ink-1);
}

.mega-item-icon svg {
    width: 16px;
    height: 16px;
}

.mega-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-item-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-0);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    line-height: 1.3;
}

.mega-item-desc {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--ink-2);
    line-height: 1.5;
}

.mega-badge {
    font-family: "Space Mono", monospace;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    padding: 0.18em 0.55em;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-popular {
    background: rgba(74, 192, 126, 0.15);
    color: #6ddba0;
    border: 1px solid rgba(74, 192, 126, 0.3);
}

.badge-new {
    background: rgba(92, 148, 255, 0.15);
    color: #8ab4ff;
    border: 1px solid rgba(92, 148, 255, 0.3);
}

.badge-ai {
    background: rgba(168, 120, 255, 0.15);
    color: #c4a0ff;
    border: 1px solid rgba(168, 120, 255, 0.3);
}

.badge-trial {
    background: rgba(255, 185, 60, 0.13);
    color: #ffd080;
    border: 1px solid rgba(255, 185, 60, 0.28);
}

.login-btn-nav {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ghost-button-text);
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--ghost-button-border);
    border-radius: 6px;
    background: var(--ghost-button-bg);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.login-btn-nav:hover {
    color: var(--nav-hover-text);
    border-color: var(--launch-btn-border);
    background: var(--ghost-button-hover-bg);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--ghost-button-border);
    border-radius: 999px;
    background: var(--ghost-button-bg);
    color: var(--ghost-button-text);
    font: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.theme-toggle:hover {
    color: var(--nav-hover-text);
    border-color: var(--launch-btn-border);
    background: var(--ghost-button-hover-bg);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.theme-toggle-icons {
    position: relative;
    width: 1rem;
    height: 1rem;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.theme-toggle-icon {
    position: absolute;
    inset: 0;
    width: 1rem;
    height: 1rem;
    transition: opacity 160ms ease, transform 160ms ease;
}

html[data-theme="dark"] .theme-toggle-icon-sun,
html:not([data-theme]) .theme-toggle-icon-sun {
    opacity: 1;
    transform: scale(1);
}

html[data-theme="dark"] .theme-toggle-icon-moon,
html:not([data-theme]) .theme-toggle-icon-moon {
    opacity: 0;
    transform: scale(0.72);
}

html[data-theme="light"] .theme-toggle-icon-sun {
    opacity: 0;
    transform: scale(0.72);
}

html[data-theme="light"] .theme-toggle-icon-moon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle-label {
    font-family: "Space Mono", monospace;
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.launch-btn {
    border: 1px solid var(--launch-btn-border);
    background: var(--launch-btn-bg);
    padding-inline: 1.8rem !important;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.4rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: var(--menu-toggle-color);
    margin: 4px 0;
}

.hero {
    min-height: 72vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 7.2rem 0 5.8rem;
}

.hero-inner {
    max-width: 980px;
}

.hero h1 {
    margin: 0;
    font-family: "Syne", "Inter", sans-serif;
    font-size: clamp(2.6rem, 4.6vw, 4.4rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 1.6rem auto 0;
    color: var(--ink-1);
    line-height: 1.6;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 300;
    max-width: 980px;
}

.hero strong {
    color: #ffffff;
}

html[data-theme="light"] .hero strong {
    color: var(--ink-0);
}

/* ── Trust pillars ────────────────────────────────────────── */
.trust-section {
    padding: 3.5rem 0 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 0.8rem;
    overflow: hidden;
}

.trust-item {
    background: var(--surface);
    padding: 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: background 200ms ease;
}

.trust-item:hover {
    background: var(--surface-hover);
}

.trust-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.trust-icon svg {
    width: 100%;
    height: 100%;
}

.trust-item strong {
    font-family: "Syne", sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--ink-0);
}

.trust-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.6;
}

@media (max-width: 860px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 0 1.5rem;
    }
}

.hero-badge {
    display: inline-block;
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    border: 1px solid var(--line-soft);
    border-radius: 2rem;
    padding: 0.32rem 0.9rem;
    margin: 0 0 1.4rem;
}

.hero-accent {
    background: linear-gradient(90deg, #5c94ff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    margin: 1.4rem auto 0;
    color: var(--ink-1);
    line-height: 1.65;
    font-size: clamp(1.02rem, 1.8vw, 1.2rem);
    max-width: 640px;
}

.hero-stats {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--line-soft);
    border-radius: 0.7rem;
    background: var(--surface);
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.hero-stat {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.2rem 1rem;
    border-right: 1px solid var(--line-soft);
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat-num {
    font-family: "Syne", "Inter", sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink-0);
    line-height: 1;
}

.hero-stat-label {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    text-decoration: none;
    padding: 0.82rem 1.45rem;
    border-radius: 0.52rem;
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease;
}

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

.btn-primary {
    background: linear-gradient(180deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    border-color: rgba(165, 196, 255, 0.5);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--btn-primary-hover-start) 0%, var(--btn-primary-hover-end) 100%);
}

.btn-outline {
    background: var(--outline-btn-bg);
    border-color: var(--outline-btn-border);
    color: var(--outline-btn-text);
}

.btn-outline:hover {
    background: var(--outline-btn-hover-bg);
}

.roadmap {
    padding: 7.9rem 0 2.9rem;
    text-align: center;
}

.section-label {
    font-family: "Space Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent);
    margin: 0 0 0.9rem;
}

.step-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.18s, border-color 0.18s;
}
.step-link:hover {
    color: #60a5fa;
    border-bottom-color: rgba(96, 165, 250, 0.5);
}

.step-label {
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0.6rem 0 0.3rem;
}

.roadmap h2 {
    font-family: "Syne", "Inter", sans-serif;
    margin: 0;
    font-weight: 500;
    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: -0.01em;
}

.intro {
    margin: 1.2rem auto 0;
    max-width: 1080px;
    color: var(--ink-1);
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
}

.cards {
    margin-top: 3.6rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    position: relative;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--ink-1);
    padding-left: 1.4em;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.card-learn-link {
    display: inline-block;
    margin-top: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #f59e0b;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}
.card-learn-link:hover { color: #fcd34d; }

.cards::before {
    content: "";
    position: absolute;
    inset: 47% 1.4rem auto;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(130, 175, 255, 0.58), transparent);
    pointer-events: none;
}

.card {
    border: 1px solid var(--line-soft);
    background: var(--surface);
    border-radius: 0.46rem;
    padding: 1.55rem 1.12rem 1.32rem;
    text-align: left;
    backdrop-filter: blur(3px);
    position: relative;
    transition: border-color 200ms ease, background-color 200ms ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
}

.icon {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(166, 201, 255, 0.42);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #cbddff;
    margin-bottom: 0.95rem;
}

html[data-theme="light"] .icon {
    color: #5c94ff;
}

.icon svg {
    width: 30px;
    height: 30px;
}

.card h3 {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    font-family: "Syne", "Inter", sans-serif;
}

.card p {
    margin: 0.8rem 0 0;
    color: var(--ink-2);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ── Roadmap Journey ─────────────────────────────────────── */
@keyframes trail-draw {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes node-pop {
    0%   { transform: scale(0.4); opacity: 0; }
    60%  { transform: scale(1.18); }
    80%  { transform: scale(0.94); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(92, 148, 255, 0.55), 0 0 14px rgba(92, 148, 255, 0.4); }
    70%  { box-shadow: 0 0 0 10px rgba(92, 148, 255, 0),  0 0 14px rgba(92, 148, 255, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(92, 148, 255, 0),     0 0 14px rgba(92, 148, 255, 0.4); }
}

@keyframes mountains-drift {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(-8px); }
    100% { transform: translateX(0); }
}

.roadmap-journey {
    padding-bottom: 5rem;
}

.journey {
    position: relative;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.journey-mountains {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    border-radius: 0.6rem;
    overflow: hidden;
    animation: mountains-drift 18s ease-in-out infinite;
}

.journey-trail {
    position: absolute;
    left: 2.6rem;
    top: 1.8rem;
    bottom: 1.8rem;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(92, 148, 255, 0.7) 0%,
        rgba(92, 148, 255, 0.45) 40%,
        rgba(92, 148, 255, 0.15) 100%
    );
    z-index: 1;
    transform: scaleY(0);
    transform-origin: top;
    transition: none;
}

.journey-trail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(4px);
    opacity: 0.5;
}

.journey.trail-visible .journey-trail {
    animation: trail-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.journey-stage {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    padding: 2rem 0;
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 550ms ease, transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-stage.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.journey-node {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid;
    background: #060c1e;
    transform: scale(0.4);
    opacity: 0;
    transition: transform 0ms, opacity 0ms;
}

.journey-stage.is-visible .journey-node {
    animation: node-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.18s;
}

.journey-node svg {
    width: 22px;
    height: 22px;
}

.completed .journey-node {
    border-color: #4caf7d;
    color: #4caf7d;
    box-shadow: 0 0 14px rgba(76, 175, 125, 0.35);
}

.in-progress .journey-node {
    border-color: #5c94ff;
    color: #5c94ff;
    animation: node-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               pulse-ring 2.2s ease-out 0.73s infinite !important;
}

.upcoming .journey-node {
    border-color: rgba(184, 212, 255, 0.3);
    color: rgba(184, 212, 255, 0.45);
}

.journey-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 0.6rem;
    padding: 1.6rem 1.5rem;
    backdrop-filter: blur(4px);
}

.completed .journey-card {
    border-color: rgba(76, 175, 125, 0.28);
}

.in-progress .journey-card {
    border-color: rgba(92, 148, 255, 0.35);
}

.journey-card h3 {
    margin: 0.5rem 0 0.7rem;
    font-size: 1.22rem;
    font-weight: 500;
    font-family: "Syne", "Inter", sans-serif;
    letter-spacing: 0.01em;
}

.journey-card > p {
    margin: 0 0 0.6rem;
    color: var(--ink-2);
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.6;
}

.stage-badge {
    display: inline-block;
    font-family: "Space Mono", monospace;
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.22em 0.75em;
    border-radius: 999px;
}

.badge-done {
    background: rgba(76, 175, 125, 0.15);
    color: #6ddba0;
    border: 1px solid rgba(76, 175, 125, 0.3);
}

.badge-active {
    background: rgba(92, 148, 255, 0.15);
    color: #8ab4ff;
    border: 1px solid rgba(92, 148, 255, 0.35);
}

.badge-upcoming {
    background: rgba(184, 212, 255, 0.07);
    color: rgba(184, 212, 255, 0.6);
    border: 1px solid rgba(184, 212, 255, 0.18);
}

.stage-progress {
    font-size: 0.85rem !important;
    font-weight: 600;
    color: var(--ink-1) !important;
    margin-bottom: 0.9rem !important;
}

.stage-milestones {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stage-milestones li {
    font-size: 0.9rem;
    padding-left: 1.5em;
    position: relative;
    color: var(--ink-2);
}

.stage-milestones li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}

.ms-done {
    color: var(--ink-1) !important;
}

.ms-done::before {
    content: "✓";
    color: #4caf7d;
}

.ms-active::before {
    content: "●";
    color: #5c94ff;
}

.ms-upcoming::before {
    content: "○";
    color: rgba(184, 212, 255, 0.45);
}

.ms-active a {
    color: #8ab4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.closing-cta {
    padding: 4.2rem 0 8.2rem;
    text-align: center;
}

.closing-cta .container {
    border-top: 1px solid rgba(156, 194, 255, 0.22);
    padding-top: 3rem;
}

.closing-cta p {
    margin: 0;
    font-family: "Syne", "Inter", sans-serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    letter-spacing: -0.01em;
}

.closing-cta .sub {
    margin: 0.9rem 0 2.1rem;
    color: var(--ink-1);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
}

/* ── Slot-machine scroll ─────────────────────────────────── */
main {
    transition: transform 280ms ease, opacity 280ms ease;
}

body.slot-spinning main {
    opacity: 0.85;
    transform: scaleY(0.994);
    transition: transform 0ms, opacity 0ms;
}

body.slot-spinning-up main {
    opacity: 0.85;
    transform: translateY(-28px) scale(0.993);
    transition: transform 0ms, opacity 0ms;
}

body.slot-spinning-down main {
    opacity: 0.85;
    transform: translateY(28px) scale(0.993);
    transition: transform 0ms, opacity 0ms;
}

@keyframes slotEnterFromTop {
    from { transform: translateY(-28px) scale(0.993); opacity: 0.15; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes slotEnterFromBottom {
    from { transform: translateY(28px) scale(0.993); opacity: 0.15; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
body.slot-enter-from-top main {
    animation: slotEnterFromTop 0.42s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}
body.slot-enter-from-bottom main {
    animation: slotEnterFromBottom 0.42s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

/* Global locations */
.locations-section {
    padding: 5.3rem 0 3.2rem;
    text-align: center;
}

/* Tighten spacing specifically between Infrastructure and Global Smart Proxies */
#infrastructure {
    padding-bottom: 1.8rem;
}

#global-smart-proxies {
    padding-top: 3.8rem;
}

.locations-controls {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.locations-filters {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.loc-filter-btn,
.loc-sort-btn {
    border: 1px solid var(--control-border);
    background: var(--control-bg);
    color: var(--ink-2);
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.loc-filter-btn:hover,
.loc-sort-btn:hover,
.loc-filter-btn.is-active {
    color: var(--ink-0);
    border-color: var(--control-active-border);
    background: var(--control-active-bg);
}

.locations-summary {
    margin: 0.9rem 0 1rem;
    text-align: left;
    color: var(--ink-2);
    font-size: 0.8rem;
    font-weight: 300;
}

.latency-summary {
    margin: 0 0 1rem;
    color: var(--ink-2);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.latency-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.42rem;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--panel-soft);
    font-size: 0.72rem;
}

.latency-pill strong {
    color: var(--ink-0);
    font-family: "Space Mono", monospace;
    font-weight: 700;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.location-card {
    display: block;
    text-align: left;
    border: 1px solid var(--line-soft);
    background: var(--surface);
    border-radius: 0.7rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.location-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: var(--surface-hover);
}

.location-card.is-hidden {
    display: none;
}

.location-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.location-head h3 {
    margin: 0;
    font-family: "Syne", "Inter", sans-serif;
    font-size: 1.04rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.location-flag {
    width: 2rem;
    height: 1.4rem;
    border-radius: 0.25rem;
    display: inline-block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(168, 198, 255, 0.35);
    box-shadow:
        0 7px 14px rgba(2, 7, 20, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(20, 34, 66, 0.45);
    transform: perspective(220px) rotateX(8deg);
    flex-shrink: 0;
    vertical-align: middle;
}

.location-line {
    height: 1px;
    margin: 0.75rem 0 0.7rem;
    background: rgba(184, 212, 255, 0.24);
}

.location-card p {
    margin: 0;
    color: var(--ink-1);
    font-size: 0.9rem;
    font-weight: 400;
}

.location-ip {
    font-family: "Space Mono", monospace;
    color: var(--ink-0);
}

.location-live {
    display: inline-block;
    margin-top: 0.4rem;
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ab4ff;
    opacity: 0.95;
}

.location-live.is-up {
    color: #3ecf8e;
}

.location-live.is-down {
    color: #f87171;
}

.locations-cta {
    margin-top: 1.25rem;
}

.locations-cta .btn {
    min-width: 210px;
}

.blog-section {
    padding: 3.4rem 0 5.2rem;
}

.blog-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.blog-section-head h2,
.blog-hero-content h1 {
    margin: 0;
    font-family: "Syne", "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.blog-section-head h2 {
    font-size: clamp(2rem, 3.2vw, 2.9rem);
}

.blog-head-cta {
    min-width: 220px;
}

.blog-grid,
.blog-list,
.blog-hero-shell,
.blog-article-shell {
    display: grid;
    gap: 0.85rem;
}

.blog-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
}

.blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
}

.blog-hero {
    padding: 4rem 0 2.4rem;
}

.blog-main {
    padding-bottom: 5.4rem;
}

.blog-hero-shell {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: end;
}

.blog-hero-content h1 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.04;
}

.blog-hero-copy,
.blog-feature-aside p,
.blog-card p,
.blog-note p,
.article-content p,
.article-content li,
.article-sidebar-card p,
.article-cta p {
    color: var(--ink-1);
    line-height: 1.7;
    font-weight: 300;
}

.blog-hero-copy {
    margin: 1.25rem 0 0;
    max-width: 780px;
    font-size: clamp(1rem, 1.55vw, 1.18rem);
}

.blog-card,
.blog-note,
.blog-feature-aside,
.blog-article-card,
.article-sidebar-card,
.article-cta {
    border: 1px solid var(--line-soft);
    background: var(--surface);
    border-radius: 0.8rem;
    backdrop-filter: blur(5px);
}

.blog-card,
.blog-note,
.blog-feature-aside {
    padding: 1.45rem;
}

.blog-card-feature {
    background:
        radial-gradient(circle at top right, rgba(92, 148, 255, 0.2), transparent 40%),
        linear-gradient(180deg, rgba(11, 20, 45, 0.78), rgba(8, 14, 31, 0.62));
}

.blog-kicker,
.article-eyebrow,
.blog-tag,
.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Space Mono", monospace;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
}

.blog-kicker,
.blog-tag {
    border: 1px solid rgba(146, 188, 255, 0.28);
    background: rgba(92, 148, 255, 0.09);
    color: #b8ccff;
}

.article-eyebrow,
.article-tag {
    border: 1px solid rgba(245, 191, 115, 0.26);
    background: rgba(245, 191, 115, 0.09);
    color: #f5bf73;
}

.blog-card h3,
.blog-note h3,
.blog-feature-aside h2,
.article-content h2,
.article-cta h3 {
    margin: 0.8rem 0 0;
    font-family: "Syne", "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.blog-card h3,
.blog-note h3 {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    line-height: 1.08;
}

.blog-card h3 a,
.blog-link,
.blog-inline-link {
    text-decoration: none;
}

.blog-card h3 a:hover,
.blog-link:hover,
.blog-inline-link:hover {
    color: #ffffff;
}

.blog-card p,
.blog-note p,
.blog-feature-aside p {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
}

.blog-meta,
.blog-feature-meta,
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.blog-link,
.blog-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.15rem;
    color: #8ab4ff;
    font-weight: 500;
}

.blog-note {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.35rem;
}

.blog-note-list,
.article-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-note-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.blog-note-list li,
.article-content li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--ink-1);
}

.blog-note-list li::before,
.article-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8ab4ff;
}

.blog-feature-aside {
    align-self: stretch;
}

.blog-feature-aside h2 {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.14;
}

.blog-feature-aside .btn {
    min-width: 0;
    width: 100%;
    margin-top: 1.2rem;
}

.blog-index-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.blog-simple-head {
    max-width: 980px;
    margin: 0 auto 2.6rem;
    text-align: center;
}

.blog-index-hero .hero-badge {
    margin: 0 auto;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.blog-simple-list {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.blog-simple-item {
    border-top: 1px solid var(--line-soft);
}

.blog-simple-item:last-child {
    border-bottom: 1px solid var(--line-soft);
}

.blog-simple-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    text-decoration: none;
}

.blog-simple-main {
    min-width: 0;
}

.blog-simple-main h2 {
    margin: 0;
    font-family: "Syne", "Inter", sans-serif;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.blog-simple-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
    color: var(--ink-2);
    font-family: "Space Mono", monospace;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-simple-arrow {
    flex: 0 0 auto;
    color: #8ab4ff;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 160ms ease, color 160ms ease;
}

.blog-simple-link:hover .blog-simple-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

.blog-article-shell {
    grid-template-columns: minmax(0, 1.32fr) minmax(250px, 0.68fr);
    align-items: start;
}

.blog-article-card {
    padding: 1.8rem;
}

.article-lead {
    margin: 1.2rem 0 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.article-content h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.14;
    margin-top: 2rem;
}

.article-content h2:first-of-type {
    margin-top: 1.5rem;
}

.article-content p,
.article-content ul {
    margin: 1rem 0 0;
    font-size: 0.97rem;
}

.article-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 0.85rem;
}

.article-sidebar-card {
    padding: 1.25rem;
}

.article-sidebar-card h3 {
    margin: 0.85rem 0 0;
    font-family: "Syne", "Inter", sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.article-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.7rem;
}

.article-sidebar-card li {
    color: var(--ink-1);
    font-size: 0.9rem;
    line-height: 1.55;
}

.article-cta {
    margin-top: 1.8rem;
    padding: 1.4rem;
}

.article-cta .btn {
    min-width: 0;
    width: 100%;
    margin-top: 1rem;
}

.launch-post {
    padding-bottom: 5.4rem;
}

.launch-hero {
    padding: 4.2rem 0 1.8rem;
}

.launch-hero-wrap {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.launch-back {
    justify-content: center;
    margin-bottom: 1rem;
}

.launch-hero h1,
.launch-cta h2,
.launch-compare-top h2 {
    margin: 0;
    font-family: "Syne", "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.launch-hero h1 {
    font-size: clamp(2.5rem, 4.3vw, 4.4rem);
    line-height: 1.04;
}

.launch-hero-copy {
    margin: 1.3rem auto 0;
    max-width: 760px;
    color: var(--ink-1);
    line-height: 1.7;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    font-weight: 300;
}

.launch-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: var(--ink-2);
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.launch-copy,
.launch-section-copy {
    max-width: 820px;
    margin: 1.2rem auto 0;
    color: var(--ink-1);
    line-height: 1.75;
    font-size: 1rem;
    font-weight: 300;
    text-align: center;
}

.launch-visual,
.launch-compare-card,
.launch-cta {
    border: 1px solid var(--line-soft);
    background: var(--surface);
    border-radius: 0.9rem;
    backdrop-filter: blur(5px);
}

.launch-visual {
    margin-top: 2rem;
    padding: 1.45rem;
    background:
        radial-gradient(circle at top center, rgba(92, 148, 255, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(10, 18, 39, 0.84), rgba(8, 14, 31, 0.64));
}

.launch-visual-head {
    max-width: 700px;
    margin: 0 auto 1rem;
    text-align: center;
}

.launch-visual-head p:last-child {
    margin: 0.8rem 0 0;
    color: var(--ink-1);
    line-height: 1.7;
    font-weight: 300;
}

.launch-network-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.12fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.network-stage {
    min-height: 260px;
    border-radius: 1rem;
    border: 1px solid rgba(184, 212, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.network-stage-user {
    background:
        radial-gradient(circle at top center, rgba(92, 148, 255, 0.12), transparent 48%),
        rgba(255, 255, 255, 0.03);
}

.network-stage-core {
    background:
        radial-gradient(circle at top center, rgba(92, 148, 255, 0.2), transparent 48%),
        linear-gradient(180deg, rgba(10, 18, 39, 0.82), rgba(8, 14, 31, 0.62));
}

.network-stage-exit {
    background:
        radial-gradient(circle at top center, rgba(245, 191, 115, 0.12), transparent 48%),
        rgba(255, 255, 255, 0.03);
}

.network-stage-icon {
    width: 58px;
    height: 58px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(184, 212, 255, 0.24);
    background: rgba(255, 255, 255, 0.04);
    color: #d9e7ff;
}

.network-stage-icon svg {
    width: 26px;
    height: 26px;
}

.network-stage-kicker {
    margin: 1rem 0 0;
    color: var(--ink-2);
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.network-stage h3 {
    margin: 0.7rem 0 0;
    font-family: "Syne", "Inter", sans-serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.network-stage p:last-child {
    margin: 0.8rem 0 0;
    color: var(--ink-1);
    line-height: 1.65;
    font-size: 0.98rem;
    font-weight: 300;
}

.network-core-map {
    position: relative;
    width: 94px;
    height: 94px;
    margin-top: 0.1rem;
}

.network-core-node,
.network-core-link {
    position: absolute;
    display: block;
}

.network-core-node {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #5c94ff;
    border: 2px solid rgba(216, 231, 255, 0.5);
    box-shadow: 0 0 18px rgba(92, 148, 255, 0.38);
}

.network-core-node-center {
    top: 39px;
    left: 39px;
}

.network-core-node-top {
    top: 4px;
    left: 39px;
}

.network-core-node-left {
    top: 39px;
    left: 4px;
}

.network-core-node-right {
    top: 39px;
    right: 4px;
}

.network-core-node-bottom {
    bottom: 4px;
    left: 39px;
}

.network-core-link {
    background: linear-gradient(180deg, rgba(184, 212, 255, 0.2), rgba(92, 148, 255, 0.8));
}

.network-core-link-top,
.network-core-link-bottom {
    width: 2px;
    left: 46px;
    height: 24px;
}

.network-core-link-top {
    top: 18px;
}

.network-core-link-bottom {
    bottom: 18px;
}

.network-core-link-left,
.network-core-link-right {
    height: 2px;
    top: 46px;
    width: 24px;
    background: linear-gradient(90deg, rgba(184, 212, 255, 0.2), rgba(92, 148, 255, 0.8));
}

.network-core-link-left {
    left: 18px;
}

.network-core-link-right {
    right: 18px;
}

.network-bridge {
    width: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.network-bridge-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(146, 188, 255, 0.28);
    background: rgba(6, 10, 26, 0.92);
    color: #a8c6ff;
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.network-bridge-line {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(92, 148, 255, 0.25), rgba(56, 189, 248, 0.95));
    box-shadow: inset 0 0 0 1px rgba(184, 212, 255, 0.12);
}

.network-bridge-line::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #38bdf8;
}

.network-signal-strip {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.network-signal-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 212, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-1);
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.launch-compare-section {
    padding-top: 1.4rem;
}

.launch-compare-grid {
    display: grid;
    gap: 0.85rem;
}

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

.launch-section-title {
    margin: 0.9rem auto 0;
    max-width: 760px;
    text-align: center;
    font-family: "Syne", "Inter", sans-serif;
    font-size: clamp(1.95rem, 3vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.06;
}

.launch-compare-card {
    padding: 1.4rem;
}

.launch-compare-top h2 {
    margin-top: 0.85rem;
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    line-height: 1.08;
}

.launch-compare-card p:last-child,
.launch-cta p {
    margin: 0.9rem 0 0;
    color: var(--ink-1);
    font-weight: 300;
    line-height: 1.7;
}

.compare-flow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.15rem;
}

.compare-stage {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    gap: 0.4rem;
}

.compare-stage-label {
    text-align: center;
    color: var(--ink-2);
    font-family: "Space Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.compare-node {
    padding: 0.92rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(184, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    color: var(--ink-0);
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
}

.compare-node-user {
    border-color: rgba(146, 188, 255, 0.28);
    background: rgba(92, 148, 255, 0.08);
}

.compare-node-danger {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(73, 14, 18, 0.42);
    color: #ffd7d7;
}

.compare-node-core {
    border-color: rgba(92, 148, 255, 0.38);
    background: rgba(92, 148, 255, 0.12);
}

.compare-node-exit {
    border-color: rgba(245, 191, 115, 0.3);
    background: rgba(245, 191, 115, 0.08);
}

.compare-arrow {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 2px;
    background: linear-gradient(to right, rgba(92, 148, 255, 0.18), rgba(92, 148, 255, 0.9));
}

.compare-arrow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #5c94ff;
}

.launch-compare-new {
    background:
        radial-gradient(circle at top right, rgba(62, 207, 142, 0.13), transparent 42%),
        linear-gradient(180deg, rgba(10, 18, 39, 0.8), rgba(8, 14, 31, 0.64));
}

.compare-focus {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(184, 212, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.compare-focus strong {
    display: block;
    color: var(--ink-0);
    font-family: "Space Mono", monospace;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.compare-focus p {
    margin: 0.55rem 0 0;
}

.compare-focus-danger {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(73, 14, 18, 0.24);
}

.compare-focus-safe {
    border-color: rgba(62, 207, 142, 0.24);
    background: rgba(8, 42, 30, 0.22);
}

.launch-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.45rem;
}

.launch-tech-card {
    border: 1px solid var(--line-soft);
    background: var(--surface);
    border-radius: 0.9rem;
    padding: 1.3rem;
    backdrop-filter: blur(5px);
}

.launch-tech-code {
    margin: 0;
    color: #8ab4ff;
    font-family: "Space Mono", monospace;
    font-size: 0.63rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.launch-tech-card h3 {
    margin: 0.85rem 0 0;
    font-family: "Syne", "Inter", sans-serif;
    font-size: 1.42rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.launch-tech-card p:last-child {
    margin: 0.85rem 0 0;
    color: var(--ink-1);
    line-height: 1.68;
    font-size: 1rem;
    font-weight: 300;
}

.launch-cta {
    margin-top: 1.2rem;
    padding: 1.75rem;
    text-align: center;
    background:
        radial-gradient(circle at top center, rgba(245, 191, 115, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(10, 18, 39, 0.82), rgba(8, 14, 31, 0.64));
}

.launch-cta h2 {
    margin-top: 0.95rem;
    font-size: clamp(1.85rem, 2.8vw, 2.7rem);
    line-height: 1.06;
}

.launch-actions {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.3rem;
}

.launch-actions .btn {
    min-width: 240px;
}

@media (max-width: 1150px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards::before {
        display: none;
    }

    .blog-grid,
    .blog-list,
    .blog-hero-shell,
    .blog-article-shell {
        grid-template-columns: 1fr;
    }

    .launch-compare-grid {
        grid-template-columns: 1fr;
    }

    .launch-tech-grid {
        grid-template-columns: 1fr;
    }

    .blog-simple-link {
        align-items: flex-start;
    }

    .blog-index-hero {
        padding-top: 4.2rem;
        padding-bottom: 3rem;
    }

    .article-sidebar {
        position: static;
    }

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

@media (max-width: 860px) {
    .journey-trail {
        left: 1.8rem;
    }

    .journey-node {
        width: 40px;
        height: 40px;
    }

    .journey-node svg {
        width: 18px;
        height: 18px;
    }

    .journey-stage {
        gap: 1.1rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.5rem);
        background: var(--menu-bg);
        border: 1px solid var(--line-soft);
        border-radius: 0.6rem;
        padding: 0.5rem;
        display: grid;
        gap: 0.2rem;
        transform: scale(0.98) translateY(-8px);
        transform-origin: top;
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .theme-toggle {
        padding: 0.45rem;
    }

    .theme-toggle-label {
        display: none;
    }

    .main-nav.open {
        transform: scale(1) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-dropdown {
        width: 100%;
        min-width: 0;
    }

    .nav-dropdown-trigger {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
    }

    .mega-menu {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 0.35rem;
        transform: none;
        display: none;
        box-shadow: none;
    }

    .nav-dropdown.open .mega-menu {
        display: block;
        transform: none;
    }

    .mega-inner {
        grid-template-columns: 1fr;
    }

    .mega-col {
        border-right: none;
        border-bottom: 1px solid var(--line-soft);
    }

    .mega-col:last-child {
        border-bottom: none;
    }

    .launch-btn {
        text-align: center;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 1.5rem));
    }

    .hero {
        min-height: 58vh;
        padding-top: 4.2rem;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.1rem);
    }

    .hero p,
    .intro {
        font-size: clamp(1.02rem, 4.4vw, 1.25rem);
    }

    .roadmap h2,
    .closing-cta p,
    .blog-section-head h2,
    .blog-hero-content h1,
    .launch-hero h1 {
        font-size: clamp(1.9rem, 8.2vw, 2.5rem);
    }

    .card h3 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .card p,
    .closing-cta .sub {
        font-size: clamp(1rem, 4.3vw, 1.2rem);
    }

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

    .blog-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .launch-hero {
        padding-top: 3.6rem;
    }

    .launch-visual,
    .launch-compare-card,
    .launch-tech-card,
    .launch-cta {
        padding: 1.2rem;
    }

    .compare-distributed {
        grid-template-columns: 1fr;
    }

    .launch-meta {
        gap: 0.55rem;
    }

    .launch-actions .btn {
        min-width: 0;
    }

    .launch-network-board {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .network-stage {
        min-height: 0;
    }

    .network-bridge {
        width: 100%;
    }

    .network-bridge-line {
        width: 2px;
        height: 34px;
        margin: 0 auto;
        background: linear-gradient(180deg, rgba(92, 148, 255, 0.25), rgba(56, 189, 248, 0.95));
    }

    .network-bridge-line::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -2px;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid #38bdf8;
        border-bottom: 0;
    }

    .compare-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .compare-arrow {
        flex: 0 0 24px;
        width: 2px;
        height: 24px;
        margin: 0 auto;
        background: linear-gradient(to bottom, rgba(92, 148, 255, 0.18), rgba(92, 148, 255, 0.9));
    }

    .compare-arrow::after {
        left: 50%;
        right: auto;
        top: auto;
        bottom: -1px;
        transform: translateX(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid #5c94ff;
        border-bottom: 0;
    }

    .locations-controls {
        justify-content: center;
    }

    .locations-summary {
        text-align: center;
    }

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

    .btn {
        width: 100%;
        min-width: 0;
        font-size: 1.14rem;
    }

    .blog-card,
    .blog-note,
    .blog-feature-aside,
    .blog-article-card,
    .article-sidebar-card,
    .article-cta {
        padding: 1.2rem;
    }

    .card {
        width: 100%;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn {
        transition: none;
    }
}

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line-soft);
}

.footer-logo {
    height: 24px;
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

.footer-brand p {
    color: var(--ink-2);
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.55;
    max-width: 240px;
    margin: 0 0 0.75rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    border: 1px solid rgba(146, 188, 255, 0.2);
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.footer-social-link:hover {
    color: #fff;
    border-color: rgba(146, 188, 255, 0.5);
    background: rgba(146, 188, 255, 0.08);
}

.footer-heading {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 0.6rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--ink-2);
    font-size: 0.88rem;
    font-weight: 300;
    transition: color 150ms ease;
}

.footer-col ul li a:hover {
    color: var(--ink-0);
}

/* Disclaimer block */
.footer-disclaimer {
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 0.5rem;
}

.disclaimer-label {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--warning-label);
    margin: 0 0 0.7rem;
}

.footer-disclaimer p:last-child {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--ink-2);
    line-height: 1.7;
}

.footer-disclaimer strong {
    color: var(--ink-1);
    font-weight: 500;
}

.footer-disclaimer a {
    color: rgba(138, 180, 255, 0.85);
    text-underline-offset: 3px;
}

/* Bottom bar */
.footer-bottom {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--ink-2);
    opacity: 0.7;
}

.footer-built strong {
    color: var(--ink-1);
    font-weight: 500;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Community Section ─────────────────────────────────────── */
.community-section {
    padding: 7rem 0;
    background: var(--surface);
}

.community-section .intro {
    max-width: 620px;
    color: var(--ink-2);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    margin: 0.75rem 0 3rem;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.community-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--line-soft);
    background: var(--community-panel-bg);
    min-height: 18rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.community-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.community-gif {
    position: relative;
    min-height: 7.8rem;
    border-radius: 0.6rem;
    border: 1px solid var(--community-gif-border);
    background: var(--community-gif-bg);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.community-gif::after {
    content: "";
    position: absolute;
    inset: -20% auto -20% -25%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    transform: skewX(-18deg);
    animation: communitySweep 4.8s ease-in-out infinite;
}

.community-gif svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.community-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.community-label {
    margin: 0;
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.community-quote {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ink-1);
    line-height: 1.55;
    margin: 0;
    font-style: italic;
}

.community-name {
    font-family: "Space Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0.15rem 0 0;
}

.community-frame,
.community-link,
.community-arrow,
.community-arrow-head {
    stroke: rgba(156, 196, 255, 0.72);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-frame {
    fill: rgba(11, 21, 46, 0.48);
}

.community-line,
.community-bar,
.community-node,
.community-orb,
.community-ping {
    transform-box: fill-box;
    transform-origin: center;
}

.community-line {
    fill: rgba(163, 203, 255, 0.34);
    transform-origin: left center;
    animation: communityLinePulse 2.8s ease-in-out infinite;
}

.community-line--2 { animation-delay: 0.24s; }
.community-line--3 { animation-delay: 0.48s; }

.community-ping {
    fill: #8ab4ff;
    filter: drop-shadow(0 0 8px rgba(138, 180, 255, 0.45));
    animation: communityPing 2s ease-in-out infinite;
}

.community-link {
    stroke-dasharray: 8 10;
    animation: communityDash 8s linear infinite;
}

.community-node {
    fill: rgba(148, 194, 255, 0.88);
    filter: drop-shadow(0 0 6px rgba(92, 148, 255, 0.42));
    animation: communityNodePulse 2.6s ease-in-out infinite;
}

.community-node--2 { animation-delay: 0.35s; }
.community-node--3 { animation-delay: 0.7s; }
.community-node--4 { animation-delay: 1.05s; }

.community-bar {
    fill: rgba(142, 188, 255, 0.82);
    transform-origin: center bottom;
    animation: communityBars 1.9s ease-in-out infinite;
}

.community-bar--2 { animation-delay: 0.2s; }
.community-bar--3 { animation-delay: 0.4s; }
.community-bar--4 { animation-delay: 0.6s; }

.community-arrow,
.community-arrow-head {
    animation: communityArrowGlow 2.8s ease-in-out infinite;
}

.community-orb {
    fill: rgba(120, 177, 255, 0.92);
    filter: drop-shadow(0 0 8px rgba(120, 177, 255, 0.45));
    animation: communityRise 2.8s ease-in-out infinite;
}

.community-orb--2 { animation-delay: 0.3s; }
.community-orb--3 { animation-delay: 0.6s; }

@keyframes communitySweep {
    0%, 18% { transform: translateX(-180%) skewX(-18deg); opacity: 0; }
    28%, 62% { opacity: 1; }
    82%, 100% { transform: translateX(460%) skewX(-18deg); opacity: 0; }
}

@keyframes communityLinePulse {
    0%, 100% { opacity: 0.38; transform: scaleX(0.74); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes communityPing {
    0%, 100% { opacity: 0.55; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes communityDash {
    to { stroke-dashoffset: -72; }
}

@keyframes communityNodePulse {
    0%, 100% { opacity: 0.68; transform: scale(0.84); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes communityBars {
    0%, 100% { transform: scaleY(0.62); opacity: 0.72; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes communityArrowGlow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes communityRise {
    0%, 100% { transform: translateY(6px); opacity: 0.7; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* Community stats bar */
.community-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    overflow: hidden;
}

.c-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--surface);
    gap: 0.3rem;
}

.c-stat-num {
    font-family: "Syne", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink-0);
    line-height: 1;
}

.c-stat-label {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-align: center;
}

@media (max-width: 860px) {
    .community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-card {
        min-height: auto;
    }

    .community-gif {
        min-height: 6.8rem;
    }

    .community-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Legal Pages ────────────────────────────────────────────── */

.legal-page {
    background: var(--legal-page-bg);
}

/* Hide the hero background image on legal pages */
.legal-page .cosmos-bg {
    display: none;
}

.legal-page .site-header {
    background: var(--legal-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.legal-page main {
    padding-bottom: 0;
    background: var(--legal-page-bg);
}

.legal-hero {
    padding: 8rem 0 3.5rem;
    border-bottom: 1px solid var(--line-soft);
}

/* Contact hero overrides */
.contact-hero {
    padding: 7.2rem 0 3.1rem;
    border-bottom: 1px solid var(--line-soft);
}

.contact-hero h1 {
    font-family: "Syne", sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--ink-0);
    margin: 0 0 0.6rem;
    line-height: 1.15;
}
.contact-hero-sub {
    max-width: 520px;
    color: var(--ink-2);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    margin: 0.75rem 0 0;
}

/* Hero underline accent */
.hero-underline {
    position: relative;
    display: inline-block;
}
.hero-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    border-radius: 2px;
}

/* Hero badges */
.contact-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--panel-soft);
    border: 1px solid var(--line-soft);
    border-radius: 2rem;
    color: var(--ink-2);
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 0.35rem 0.85rem;
}

/* Form intro */
.contact-form-intro {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding: 1.1rem 1.25rem;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 0.75rem;
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.65;
}
.contact-form-intro p { margin: 0; }
.form-intro-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.4;
}
.contact-form-intro strong { color: var(--ink-1); }

/* Quick-topic chips */
.contact-chips {
    margin-bottom: 1.75rem;
}
.contact-chips-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 0.65rem;
}
.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.topic-chip {
    background: var(--panel-soft);
    border: 1px solid var(--line-soft);
    border-radius: 2rem;
    color: var(--ink-2);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    padding: 0.35rem 0.85rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.topic-chip:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--ink-0);
}
.topic-chip.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.55);
    color: #f59e0b;
}

/* Success state */
.success-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}
.success-sign {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--ink-2);
    font-style: italic;
}

/* Team note */
.contact-team-note {
    background: var(--panel-soft);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--ink-2);
    line-height: 1.6;
}
.contact-team-avatars {
    display: flex;
    gap: -0.5rem;
    margin-bottom: 0.75rem;
    gap: 0.4rem;
}
.team-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    border: 2px solid #0a0f1e;
}

.legal-hero h1 {
    font-family: "Syne", sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--ink-0);
    margin: 0 0 0.6rem;
    line-height: 1.15;
}

.legal-updated {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.legal-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    padding: 4rem 0 6rem;
    align-items: start;
}

/* Sticky table of contents */
.legal-toc {
    position: sticky;
    top: 6rem;
}

.legal-toc-label {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 1rem;
}

.legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    counter-reset: toc;
}

.legal-toc ol li { counter-increment: toc; }

.legal-toc ol li a {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--ink-2);
    line-height: 1.4;
    padding: 0.2rem 0;
    transition: color 150ms ease;
}

.legal-toc ol li a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.7;
}

.legal-toc ol li a:hover { color: var(--ink-0); }

/* Article body */
.legal-body {
    min-width: 0;
}

.legal-body h2 {
    font-family: "Syne", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink-0);
    margin: 3rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
}

.legal-body h2:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.legal-body p {
    color: var(--ink-2);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    margin: 0 0 1rem;
}

.legal-body ul, .legal-body ol {
    margin: 0.5rem 0 1rem 1.2rem;
    color: var(--ink-2);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
}

.legal-body li { margin-bottom: 0.4rem; }

.legal-body a {
    color: rgba(138, 180, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-body strong { color: var(--ink-1); font-weight: 500; }

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.83rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.5rem;
    overflow: hidden;
}

.cookie-table th {
    text-align: left;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.04);
    color: var(--ink-1);
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 400;
}

.cookie-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
    color: var(--ink-2);
    font-weight: 300;
    line-height: 1.6;
}

.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table tbody tr:hover td { background: rgba(255,255,255,0.025); }

@media (max-width: 820px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0 4rem;
    }

    .legal-toc { position: static; }

    .cookie-table { font-size: 0.78rem; }
    .cookie-table th, .cookie-table td { padding: 0.5rem 0.6rem; }
}

/* ─── Chat Widget ────────────────────────────────────────────── */

.chat-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9000;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.75rem;
    background: #1e3a5f;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.chat-fab:hover {
    transform: translateY(-2px);
    background: #1e40af;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.chat-fab-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: #fff;
    position: absolute;
    transition: opacity 200ms ease, transform 200ms ease;
}

.chat-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.7);
}

.chat-fab[aria-expanded="true"] .chat-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.7);
}

.chat-fab[aria-expanded="true"] .chat-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 200ms ease, transform 200ms ease;
}

.chat-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.chat-panel {
    position: fixed;
    bottom: 5.25rem;
    right: 1.75rem;
    z-index: 9000;
    width: 360px;
    max-height: 560px;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 1.1rem;
    background: #04070f;
    border-bottom: 1px solid #e2e8f0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.chat-title {
    font-family: "Syne", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #f1f5f9;
    margin: 0;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: rgba(186, 230, 253, 0.75);
    margin: 0;
}

.chat-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.chat-header-close {
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0.35rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    transition: background 150ms ease, color 150ms ease;
}

.chat-header-close svg { width: 1rem; height: 1rem; }
.chat-header-close:hover { background: rgba(255,255,255,0.22); color: #fff; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    background: #f8fafc;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.chat-bubble {
    max-width: 86%;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    font-size: 0.855rem;
    line-height: 1.65;
    font-weight: 400;
}

.chat-bubble--user {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
    box-shadow: 0 3px 12px rgba(14, 165, 233, 0.28);
}

.chat-bubble--bot {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.chat-bubble--bot a.chat-link {
    color: #2563eb;
    text-underline-offset: 3px;
    font-weight: 500;
}

.chat-typing {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 1.1rem;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: typing-bounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Quick-reply chips */
.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem 0.35rem;
    background: #f8fafc;
}

.chat-chip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 2rem;
    color: #2563eb;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
    white-space: nowrap;
}

.chat-chip:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.chat-live-bar {
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    background: #f0f9ff;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chat-live-label {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0369a1;
    margin: 0;
}

.chat-live-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-input-field {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.55rem 0.8rem;
    color: #1e293b;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 400;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    resize: none;
}

.chat-input-field::placeholder { color: #94a3b8; }
.chat-input-field:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
}

.chat-textarea { min-height: 70px; }

.chat-live-submit {
    display: block;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.84rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    padding: 0.7rem 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 150ms ease, transform 120ms ease;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.chat-live-submit:hover { opacity: 0.9; transform: translateY(-1px); }

.chat-live-confirm {
    font-size: 0.82rem;
    color: #16a34a;
    margin: 0;
}

.chat-footer {
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 0.85rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: #ffffff;
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.6rem 0.9rem;
    color: #1e293b;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 400;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.chat-input::placeholder { color: #94a3b8; }
.chat-input:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

.chat-send {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 150ms ease, transform 120ms ease;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
}

.chat-send:hover { opacity: 0.9; transform: translateY(-1px); }
.chat-send svg { width: 0.9rem; height: 0.9rem; color: #fff; }

.chat-footer-note {
    font-size: 0.68rem;
    color: #94a3b8;
    margin: 0;
    text-align: center;
}

.chat-agent-btn {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 0.68rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 5.25rem;
    }

    .chat-fab {
        right: 1rem;
        bottom: 1.25rem;
    }
}

/* ─── Contact Page ─────────────────────────────────────────── */
.contact-section {
    padding: 4rem 0 6rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

/* Form */
.contact-form-wrap {
    background: var(--panel-strong);
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    padding: 2.5rem;
}

.form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-1);
    letter-spacing: 0.02em;
}

.form-group .required {
    color: var(--accent, #4dacff);
}

.form-group input,
.form-group textarea {
    background: var(--field-bg);
    border: 1px solid var(--line-soft);
    border-radius: 0.5rem;
    color: var(--ink-0);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    width: 100%;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--field-placeholder);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(77, 172, 255, 0.12);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 80, 80, 0.5);
}

/* Select */
.select-wrap {
    position: relative;
}

.select-wrap select {
    appearance: none;
    background: var(--field-bg);
    border: 1px solid var(--line-soft);
    border-radius: 0.5rem;
    color: var(--ink-0);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    outline: none;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    transition: border-color 0.18s, box-shadow 0.18s;
    width: 100%;
}

.select-wrap select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(77, 172, 255, 0.12);
}

.select-wrap select option {
    background: var(--select-option-bg);
    color: var(--ink-0);
}

.select-chevron {
    color: var(--ink-2);
    pointer-events: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Field errors */
.field-error {
    color: rgba(255, 100, 100, 0.9);
    font-size: 0.78125rem;
    font-family: 'Inter', sans-serif;
    min-height: 1em;
}

/* hCaptcha dark theme adjustments */
.h-captcha {
    margin-bottom: 0.25rem;
}

/* Submit button */
.contact-submit {
    align-items: center;
    background: var(--blue-cta);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem;
    transition: background 0.18s, transform 0.12s;
    width: 100%;
}

.contact-submit:hover:not(:disabled) {
    background: var(--blue-cta-hover);
    transform: translateY(-1px);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.7s linear infinite;
    display: none;
}

.btn-spinner.is-active {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-privacy {
    color: var(--ink-2);
    font-size: 0.78125rem;
    font-family: 'Inter', sans-serif;
    margin-top: 1rem;
    text-align: center;
}

.form-privacy a {
    color: var(--ink-1);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Success state */
.contact-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3.25rem 1rem;
    text-align: center;
}

.contact-success[hidden] {
    display: none !important;
}

.contact-success svg {
    flex-shrink: 0;
}

.contact-success h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink-0);
    margin: 0;
}

.contact-success p {
    color: var(--ink-2);
    max-width: 460px;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Success circle animation */
.success-circle-wrap {
    margin-bottom: 0.7rem;
}
.success-circle {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.32), transparent 34%),
        linear-gradient(135deg, #10b981, #0891b2);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow:
        0 18px 34px rgba(6, 182, 212, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.18);
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-circle svg {
    width: 2rem;
    height: 2rem;
}
@keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.success-what-next {
    background: var(--panel-soft);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    padding: 1.1rem 1.25rem;
    max-width: 430px;
    width: 100%;
    text-align: left;
}
.success-what-next-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 0.6rem;
}
.success-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.success-links a {
    color: var(--accent, #4dacff);
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.success-links a:hover { color: var(--ink-0); }

/* Message footer (char counter row) */
.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.char-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.6875rem;
    color: var(--ink-2);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* "What happens next" sidebar steps */
.contact-next-steps {
    background: var(--panel-strong);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    padding: 1.25rem;
}
.next-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    counter-reset: steps;
}
.next-steps-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    color: var(--ink-2);
    line-height: 1.55;
    counter-increment: steps;
}
.next-steps-list li::before {
    content: counter(steps, decimal-leading-zero);
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--accent, #4dacff);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Info sidebar */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 6rem;
}

.contact-info-card {
    background: var(--panel-strong);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
}

.contact-info-icon {
    color: var(--accent, #4dacff);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.contact-info-label {
    color: var(--ink-2);
    font-family: 'Space Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.25rem;
}

.contact-info-value {
    color: var(--ink-0);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0;
    text-decoration: none;
}

a.contact-info-value:hover {
    color: var(--accent, #4dacff);
}

.contact-topics {
    background: var(--panel-strong);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.contact-topics-heading {
    color: var(--ink-2);
    font-family: 'Space Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.contact-topics ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-topics li a {
    color: var(--ink-1);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s;
}

.contact-topics li a::before {
    content: '→';
    color: var(--accent, #4dacff);
    font-size: 0.75rem;
}

.contact-topics li a:hover {
    color: var(--ink-0);
}

html[data-theme="light"] .blog-card h3 a:hover,
html[data-theme="light"] .blog-link:hover,
html[data-theme="light"] .blog-inline-link:hover,
html[data-theme="light"] .blog-simple-link:hover .blog-simple-arrow {
    color: var(--ink-0);
}

html[data-theme="light"] .article-lead {
    color: var(--ink-0);
}

html[data-theme="light"] .blog-card-feature,
html[data-theme="light"] .launch-visual,
html[data-theme="light"] .launch-compare-new,
html[data-theme="light"] .launch-cta {
    background:
        radial-gradient(circle at top right, rgba(92, 148, 255, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 243, 253, 0.92));
}

html[data-theme="light"] .network-stage,
html[data-theme="light"] .network-stage-user,
html[data-theme="light"] .network-stage-exit,
html[data-theme="light"] .network-signal-chip,
html[data-theme="light"] .compare-node,
html[data-theme="light"] .compare-focus {
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .network-stage-core {
    background:
        radial-gradient(circle at top center, rgba(92, 148, 255, 0.15), transparent 48%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(231, 239, 252, 0.94));
}

html[data-theme="light"] .network-stage-icon,
html[data-theme="light"] .network-bridge-label {
    background: rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] .network-stage-icon {
    color: #29406d;
}

html[data-theme="light"] .network-bridge-label {
    color: #2e63d6;
}

html[data-theme="light"] .compare-node-danger,
html[data-theme="light"] .compare-focus-danger {
    background: rgba(248, 113, 113, 0.08);
    color: #8f3947;
}

html[data-theme="light"] .compare-node-core {
    background: rgba(46, 99, 214, 0.1);
}

html[data-theme="light"] .compare-node-exit {
    background: rgba(216, 158, 42, 0.1);
}

html[data-theme="light"] .compare-focus-safe {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

html[data-theme="light"] .contact-form-intro strong,
html[data-theme="light"] .footer-disclaimer strong {
    color: var(--ink-0);
}

html[data-theme="light"] .hero-badge,
html[data-theme="light"] .blog-kicker,
html[data-theme="light"] .blog-tag,
html[data-theme="light"] .article-eyebrow,
html[data-theme="light"] .article-tag,
html[data-theme="light"] .network-bridge-label,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .login-btn-nav {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

html[data-theme="light"] .site-header {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .mega-menu,
html[data-theme="light"] .hero-stats,
html[data-theme="light"] .prod-stats,
html[data-theme="light"] .trust-grid,
html[data-theme="light"] .card,
html[data-theme="light"] .journey-card,
html[data-theme="light"] .location-card,
html[data-theme="light"] .blog-card,
html[data-theme="light"] .blog-note,
html[data-theme="light"] .blog-feature-aside,
html[data-theme="light"] .blog-article-card,
html[data-theme="light"] .article-sidebar-card,
html[data-theme="light"] .article-cta,
html[data-theme="light"] .launch-visual,
html[data-theme="light"] .launch-compare-card,
html[data-theme="light"] .launch-tech-card,
html[data-theme="light"] .launch-cta,
html[data-theme="light"] .prod-feature-card,
html[data-theme="light"] .usecase-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .community-card,
html[data-theme="light"] .community-stats,
html[data-theme="light"] .contact-form-wrap,
html[data-theme="light"] .contact-next-steps,
html[data-theme="light"] .contact-info-card,
html[data-theme="light"] .contact-topics,
html[data-theme="light"] .success-what-next,
html[data-theme="light"] .footer-disclaimer {
    backdrop-filter: none;
    box-shadow: var(--surface-shadow-soft);
}

html[data-theme="light"] .trust-item,
html[data-theme="light"] .c-stat,
html[data-theme="light"] .network-stage,
html[data-theme="light"] .network-signal-chip,
html[data-theme="light"] .compare-node,
html[data-theme="light"] .compare-focus {
    backdrop-filter: none;
}

html[data-theme="light"] .main-nav.open {
    box-shadow: var(--surface-shadow);
}

html[data-theme="light"] .community-section,
html[data-theme="light"] .prod-section-alt,
html[data-theme="light"] .legal-hero,
html[data-theme="light"] .contact-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
}

html[data-theme="light"] .closing-cta .container,
html[data-theme="light"] .footer-grid {
    border-color: rgba(107, 122, 151, 0.18);
}

html[data-theme="light"] .mega-item-title,
html[data-theme="light"] .blog-simple-main h2,
html[data-theme="light"] .location-head h3,
html[data-theme="light"] .contact-info-value {
    color: var(--ink-0);
}

html[data-theme="light"] .topic-chip:hover {
    background: rgba(216, 158, 42, 0.08);
    color: var(--ink-0);
}

html[data-theme="light"] .topic-chip.active {
    background: rgba(216, 158, 42, 0.14);
    border-color: rgba(202, 143, 22, 0.45);
    color: #b36c00;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .contact-info-card,
    .contact-topics {
        flex: 1 1 200px;
    }
}

@media (max-width: 560px) {
    .form-row--half {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        padding: 1.5rem 1.25rem;
    }
    .contact-info {
        flex-direction: column;
    }
}
