:root {
    --globe-blue: #62a8ff;
    --globe-violet: #a77bff;
    --globe-mint: #63f5d2;
    --globe-panel: rgba(5, 8, 22, 0.56);
    --globe-line: rgba(139, 176, 255, 0.2);
    --hero-console: rgba(7, 11, 25, 0.7);
}

.hero {
    justify-content: flex-start;
}

.hero-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(25rem, 0.96fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    width: min(100%, 84rem);
    min-height: 0;
    margin: 0 auto 2.75rem;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    border: 1px solid rgba(139, 176, 255, 0.15);
    border-radius: 2.5rem;
    background:
        radial-gradient(circle at 78% 45%, rgba(98, 168, 255, 0.09), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 40%),
        var(--hero-console);
    box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    overflow: hidden;
    isolation: isolate;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(124, 159, 224, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 159, 224, 0.035) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: linear-gradient(90deg, transparent, #000 58%, #000);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 38rem;
    text-align: left;
}

.hero-content .typewriter {
    width: auto;
    height: 1.75rem;
    max-width: none;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.hero-content .typed-text,
.hero-content .cursor {
    font-size: 1rem;
    line-height: 1.75rem;
    letter-spacing: 0.08em;
}

.hero-content .title-main,
.hero-content .title-sub,
.hero-content .domain,
.hero-content .bookmark-tip,
.hero-content .download {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.hero-content .title-main {
    max-width: 42rem;
    font-size: clamp(3.3rem, 4.6vw, 4.65rem) !important;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 1rem;
}

.hero-content .title-sub {
    font-size: clamp(1.35rem, 2.1vw, 1.9rem) !important;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero-content .domain {
    margin-bottom: 0.5rem;
}

.hero-content .bookmark-tip {
    margin-bottom: 0.75rem;
}

.hero-content .buttons {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.hero-content .download {
    margin-bottom: 1rem;
}

.hero-content .buttons,
.hero-content .download-links {
    justify-content: flex-start;
}

.globe-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 34rem;
    justify-self: center;
    padding: 0 0 0 1.75rem;
    border: 0;
    border-left: 1px solid rgba(139, 176, 255, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
}

.globe-shell::before,
.globe-shell::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
}

.globe-shell::before {
    inset: 14% 0 8% 8%;
    width: auto;
    height: auto;
    background: rgba(98, 168, 255, 0.1);
}

.globe-shell::after {
    display: none;
}

.globe-kicker,
.globe-meta {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(235, 241, 255, 0.6);
    font: 600 0.68rem/1.2 "Montserrat", sans-serif;
    letter-spacing: 0.14em;
}

.globe-kicker {
    justify-content: flex-start;
    padding: 0.25rem 0.5rem 0;
}

.globe-kicker span,
.globe-meta__signal i {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--globe-mint);
    box-shadow: 0 0 0.8rem var(--globe-mint);
}

.globe-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin: -0.2rem 0 -0.5rem;
}

.globe-node-hit {
    position: absolute;
    z-index: 6;
    top: anchor(center);
    left: anchor(center);
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
    translate: -50% -50%;
}

.globe-node-hit.is-front {
    pointer-events: auto;
    opacity: 1;
}

.globe-node-hit::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 0.82rem;
    height: 0.72rem;
    background: #dce8f7;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 0.2rem 0.32rem rgba(0, 0, 0, 0.55));
    transform: translate(-50%, -58%);
    transition: background 0.16s ease, filter 0.16s ease, transform 0.16s ease;
}

.globe-node-tag {
    position: absolute;
    top: 50%;
    z-index: 2;
    min-width: max-content;
    padding: 0.24rem 0.38rem 0.22rem;
    border: 1px solid rgba(139, 176, 255, 0.24);
    border-radius: 0.34rem;
    color: #dfe9f7;
    background: rgba(6, 11, 23, 0.9);
    box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.26);
    font: 700 0.5rem/1 "Montserrat", sans-serif;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
}

.globe-node-hit[data-label-side="right"] .globe-node-tag {
    left: calc(50% + 0.58rem);
}

.globe-node-hit[data-label-side="left"] .globe-node-tag {
    right: calc(50% + 0.58rem);
}

.globe-node-count {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid rgba(162, 197, 255, 0.5);
    border-radius: 50%;
    color: #f7f9ff;
    background: rgba(10, 18, 38, 0.92);
    box-shadow: 0 0 0.8rem rgba(98, 168, 255, 0.24);
    font: 700 0.58rem/1 "Montserrat", sans-serif;
    translate: -50% -50%;
    pointer-events: none;
}

.globe-node-hit:hover::before,
.globe-node-hit:focus-visible::before {
    background: var(--globe-mint);
    filter: drop-shadow(0 0 0.55rem rgba(99, 245, 210, 0.8));
    transform: translate(-50%, -58%) scale(1.14);
}

.globe-node-card {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    gap: 0.12rem;
    min-width: 7.25rem;
    max-width: 15rem;
    padding: 0.55rem 0.72rem 0.6rem;
    border: 1px solid rgba(137, 182, 255, 0.32);
    border-radius: 0.75rem;
    color: #f7f9ff;
    background: rgba(7, 12, 27, 0.9);
    box-shadow: 0 0.85rem 2.5rem rgba(0, 0, 0, 0.32), 0 0 1.6rem rgba(98, 168, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 0.8rem)) scale(0.96);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.globe-node-card::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1px solid rgba(137, 182, 255, 0.32);
    border-bottom: 1px solid rgba(137, 182, 255, 0.32);
    background: rgba(7, 12, 27, 0.9);
    transform: translate(-50%, -50%) rotate(45deg);
}

.globe-node-hit:hover .globe-node-card,
.globe-node-hit:focus-visible .globe-node-card {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 0.8rem)) scale(1);
}

.globe-node-card span {
    color: rgba(182, 205, 249, 0.62);
    font: 600 0.62rem/1.2 "Montserrat", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.globe-node-card strong {
    color: #f7f9ff;
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#cecilGlobe {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
    opacity: 0;
    filter: saturate(1.08) contrast(1.02);
    transition: opacity 0.8s ease;
}

#cecilGlobe:active {
    cursor: grabbing;
}

.globe-shell.is-ready #cecilGlobe {
    opacity: 1;
}

.globe-fallback {
    position: absolute;
    inset: 20%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(98, 168, 255, 0.24);
    border-radius: 50%;
    color: rgba(153, 188, 255, 0.34);
    background: radial-gradient(circle at 40% 35%, rgba(98, 168, 255, 0.16), rgba(5, 8, 22, 0.2) 62%);
    font: 700 clamp(0.8rem, 2vw, 1.1rem)/1.5 "Montserrat", sans-serif;
    letter-spacing: 0.25em;
    text-align: center;
}

.globe-shell.is-ready .globe-fallback {
    opacity: 0;
}

.globe-meta {
    padding: 0 0.5rem 0.25rem;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.globe-meta__signal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.globe-meta__signal i {
    width: 0.35rem;
    height: 0.35rem;
    animation: globe-signal 2.2s ease-in-out infinite;
}

:root[data-theme="light"] {
    --globe-panel: rgba(245, 248, 255, 0.76);
    --globe-line: rgba(61, 91, 150, 0.16);
    --hero-console: rgba(247, 249, 255, 0.78);
}

:root[data-theme="light"] .globe-shell {
    box-shadow: none;
}

:root[data-theme="light"] .globe-kicker,
:root[data-theme="light"] .globe-meta {
    color: rgba(29, 48, 86, 0.62);
}

:root[data-theme="light"] .globe-node-card {
    color: #152442;
    background: rgba(248, 250, 255, 0.94);
    box-shadow: 0 0.85rem 2.5rem rgba(40, 61, 105, 0.18);
}

:root[data-theme="light"] .globe-node-hit::before {
    background: #233b59;
}

:root[data-theme="light"] .globe-node-hit:hover::before,
:root[data-theme="light"] .globe-node-hit:focus-visible::before {
    background: #0aa98a;
}

:root[data-theme="light"] .globe-node-tag {
    color: #183653;
    border-color: rgba(55, 108, 156, 0.2);
    background: rgba(252, 254, 255, 0.94);
    box-shadow: 0 0.3rem 0.9rem rgba(43, 88, 125, 0.14);
}

:root[data-theme="light"] .globe-node-card::after {
    background: rgba(248, 250, 255, 0.94);
}

:root[data-theme="light"] .globe-node-card strong {
    color: #152442;
}

:root[data-theme="light"] .globe-node-count {
    color: #152442;
    background: rgba(248, 250, 255, 0.96);
}

@keyframes globe-signal {
    0%, 100% { opacity: 0.55; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 1050px) {
    .hero-stage {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.78fr);
        gap: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-content .title-main {
        font-size: clamp(3rem, 5vw, 4rem) !important;
    }
}

@media (max-width: 900px) {
    .hero-stage {
        grid-template-columns: 1fr;
        min-height: auto;
        width: min(100%, 36rem);
        margin-top: 0;
        padding: 1.75rem 1.25rem 1.25rem;
        border-radius: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .typewriter,
    .hero-content .title-main,
    .hero-content .title-sub,
    .hero-content .domain,
    .hero-content .bookmark-tip,
    .hero-content .download {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-content .buttons,
    .hero-content .download-links {
        justify-content: center;
    }

    .hero-content .title-main {
        font-size: clamp(2.7rem, 11vw, 4.5rem) !important;
        line-height: 1.02;
    }

    .hero-content .title-sub {
        font-size: clamp(1.25rem, 5vw, 1.85rem) !important;
    }

    .globe-shell {
        width: min(100%, 31rem);
        margin-top: 1.25rem;
        padding: 1.5rem 0 0;
        border-left: 0;
        border-top: 1px solid rgba(139, 176, 255, 0.14);
    }
}

@media (max-width: 480px) {
    .globe-shell {
        width: 100%;
        padding-top: 1.25rem;
    }

    .globe-meta {
        font-size: 0.62rem;
    }

    .globe-meta > span:first-child {
        display: none;
    }

    .globe-meta__signal {
        margin-left: auto;
    }

    .globe-node-tag {
        font-size: 0.44rem;
        padding: 0.2rem 0.28rem;
        opacity: 0;
        transition: opacity 0.16s ease;
    }

    .globe-node-hit:hover .globe-node-tag,
    .globe-node-hit:focus .globe-node-tag {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .globe-meta__signal i {
        animation: none;
    }

    .globe-node-hit::before,
    .globe-node-card {
        transition: none;
    }
}
