:root {
    --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;
    --container: 1180px;
}

*,
*::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: #050711;
    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;
}

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

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

/* ── 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: rgba(4, 7, 17, 0.56);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(180, 206, 255, 0.18);
}

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

.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: #ffffff;
    background: rgba(150, 189, 255, 0.12);
}

/* ── 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: #ffffff;
    background: rgba(150, 189, 255, 0.12);
}

.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: rgba(6, 10, 26, 0.97);
    border: 1px solid var(--line-soft);
    border-radius: 0.8rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 64px rgba(0, 0, 10, 0.7);
    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: rgba(146, 188, 255, 0.08);
}

.mega-item-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 0.45rem;
    background: rgba(146, 188, 255, 0.09);
    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: #c8d8ff;
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(146, 188, 255, 0.35);
    border-radius: 6px;
    background: transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.login-btn-nav:hover {
    color: #fff;
    border-color: rgba(146, 188, 255, 0.7);
    background: rgba(146, 188, 255, 0.08);
}

.launch-btn {
    border: 1px solid rgba(146, 188, 255, 0.6);
    background: rgba(22, 35, 66, 0.5);
    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: #e8eeff;
    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.6vw, 1.4rem);
    font-weight: 300;
    max-width: 980px;
}

.hero strong {
    color: #ffffff;
}

/* ── 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: 0.98rem;
    font-weight: 600;
    color: var(--ink-0);
}

.trust-item p {
    margin: 0;
    font-size: 0.82rem;
    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 2.4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-soft);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0;
}

.hero-stat-num {
    font-family: "Syne", sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    color: var(--ink-0);
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    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, #3f74df 0%, var(--blue-cta) 100%);
    border-color: rgba(165, 196, 255, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #4c84fb 0%, var(--blue-cta-hover) 100%);
}

.btn-outline {
    background: rgba(8, 14, 33, 0.42);
    border-color: rgba(168, 198, 255, 0.72);
}

.btn-outline:hover {
    background: rgba(49, 90, 172, 0.32);
}

.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: 0.7rem;
    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;
}

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

.card h3 {
    margin: 0;
    font-size: 1.25rem;
    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: 0.92rem;
    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.1rem;
    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.9rem;
    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 rgba(146, 188, 255, 0.24);
    background: rgba(8, 14, 31, 0.5);
    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: rgba(146, 188, 255, 0.5);
    background: rgba(92, 148, 255, 0.12);
}

.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: rgba(255, 255, 255, 0.02);
    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;
}

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

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

    .cards::before {
        display: none;
    }

    .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: rgba(8, 13, 26, 0.96);
        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;
    }

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

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

    .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: rgba(255, 200, 80, 0.04);
    border: 1px solid rgba(255, 200, 80, 0.14);
    border-radius: 0.5rem;
}

.disclaimer-label {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 210, 100, 0.8);
    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: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.community-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--surface-hover);
}

.community-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms ease;
}

.community-card:hover img {
    transform: scale(1.04);
}

.community-card--tall {
    grid-row: span 2;
    min-height: 480px;
}

.community-card-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-card-col .community-card {
    flex: 1;
    min-height: 200px;
}

.community-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(4, 6, 16, 0.92) 0%, transparent 100%);
}

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

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

/* 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: 1fr 1fr;
    }

    .community-card--tall:last-child {
        display: none;
    }

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

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

    .community-card--tall {
        min-height: 320px;
    }

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

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

.legal-page {
    background: #04070f;
}

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

.legal-page .site-header {
    background: rgba(8, 11, 24, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.legal-page main {
    padding-bottom: 0;
    background: #04070f;
}

.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: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    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: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    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: rgba(255,255,255,0.04);
    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: rgba(255,255,255,0.03);
    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: rgba(8, 14, 31, 0.54);
    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: rgba(4, 7, 15, 0.7);
    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: rgba(205, 215, 243, 0.35);
}

.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: rgba(4, 7, 15, 0.7);
    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: #080e1f;
    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: 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: 3rem 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.5rem;
    font-weight: 600;
    color: var(--ink-0);
    margin: 0;
}

.contact-success p {
    color: var(--ink-2);
    max-width: 400px;
    margin: 0;
}

/* Success circle animation */
.success-circle-wrap {
    margin-bottom: 0.5rem;
}
.success-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.success-what-next {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    max-width: 380px;
    width: 100%;
    text-align: left;
}
.success-what-next-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.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.875rem;
    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: rgba(8, 14, 31, 0.54);
    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: rgba(8, 14, 31, 0.54);
    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: rgba(8, 14, 31, 0.54);
    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);
}

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