:root {
    --bg: #030b12;
    --bg-2: #06131d;
    --panel: rgba(6, 17, 28, 0.68);
    --panel-soft: rgba(8, 21, 34, 0.52);
    --panel-strong: rgba(8, 21, 34, 0.84);
    --border: rgba(172, 231, 226, 0.2);
    --line: rgba(172, 231, 226, 0.2);
    --line-strong: rgba(172, 231, 226, 0.34);
    --text: #f4f8fb;
    --muted: #b5c3ce;
    --subtle: #78909d;
    --teal: #83e6cf;
    --teal-bright: #a5fff0;
    --accent: #83e6cf;
    --accent-strong: #5fd6bf;
    --accent-dark: #062922;
    --glow: 0 0 34px rgba(131, 230, 207, 0.24);
    --violet: #a75cff;
    --amber: #eea944;
    --blue: #4aa7ff;
    --green: #7cd66a;
    --danger: #f86f4f;
    --radius: 8px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    --max: 1360px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(104, 221, 208, 0.08), transparent 18rem),
        radial-gradient(circle at 86% 42%, rgba(77, 151, 255, 0.06), transparent 22rem),
        linear-gradient(180deg, #02080f 0%, #06121b 42%, #02080f 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 9% 18%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
        radial-gradient(circle at 32% 7%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.5px),
        radial-gradient(circle at 66% 28%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.5px),
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px);
    background-size: 370px 310px, 510px 430px, 420px 360px, 620px 520px;
    opacity: 0.28;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
}

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

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-grid {
    width: min(calc(100% - 56px), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(3, 10, 17, 0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: top 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    border-bottom-color: transparent;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header.is-scrolled {
    top: 14px;
}

.site-header.is-open {
    top: 10px;
}

.header-inner {
    width: min(calc(100% - 56px), var(--max));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 38px;
    border: 1px solid transparent;
    border-radius: 0;
    overflow: visible;
    transition: width 220ms ease, min-height 220ms ease, padding 220ms ease, border-color 220ms ease, border-radius 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled .header-inner,
.site-header.is-open .header-inner {
    width: min(calc(100% - 32px), 1120px);
    min-height: 64px;
    padding: 0 20px;
    border-color: rgba(131, 230, 207, 0.22);
    border-radius: 999px;
    background: rgba(3, 12, 20, 0.82);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.38), 0 0 38px rgba(95, 214, 191, 0.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    background-clip: padding-box;
}

.site-header::before,
.site-header::after {
    content: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: max-content;
    font-size: 28px;
    line-height: 1;
    color: #eef8f8;
}

.brand-mark {
    width: 46px;
    height: 46px;
    color: var(--accent);
}

.brand-mark circle,
.brand-mark path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-left: auto;
    color: rgba(246, 251, 255, 0.9);
    font-size: 15px;
}

.site-nav > a,
.nav-dropdown-button,
.login-link,
.nav-link-button {
    color: rgba(246, 251, 255, 0.9);
    transition: color 150ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.nav-dropdown-button:hover,
.nav-dropdown-button:focus-visible,
.login-link:hover,
.login-link:focus-visible,
.nav-link-button:hover,
.nav-link-button:focus-visible,
.site-nav > a.is-active {
    color: var(--accent);
}

.site-nav > a.is-active {
    text-shadow: 0 0 18px rgba(131, 230, 207, 0.38);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-dropdown-button .icon {
    width: 14px;
    height: 14px;
    transition: transform 160ms ease;
}

.nav-dropdown.is-open .nav-dropdown-button .icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    min-width: 210px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 15, 25, 0.96);
    box-shadow: var(--shadow);
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown.is-open .dropdown-menu {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--muted);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    color: var(--text);
    background: rgba(131, 230, 207, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.header-logout-form {
    margin: 0;
}

.nav-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.user-menu {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.user-menu-button {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(131, 230, 207, 0.28);
    border-radius: 50%;
    color: var(--accent);
    background: rgba(4, 14, 24, 0.58);
    box-shadow: 0 0 0 rgba(131, 230, 207, 0);
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.user-menu-button:hover,
.user-menu-button:focus-visible,
.user-menu-button.is-active,
.user-menu.is-open .user-menu-button {
    border-color: rgba(131, 230, 207, 0.7);
    background: rgba(131, 230, 207, 0.1);
    box-shadow: 0 0 24px rgba(131, 230, 207, 0.22);
}

.user-menu-button:hover,
.user-menu-button:focus-visible {
    transform: translateY(-1px);
}

.user-avatar,
.user-avatar img,
.user-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.user-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(131, 230, 207, 0.12);
}

.user-avatar img {
    object-fit: cover;
}

.user-avatar-fallback {
    display: grid;
    place-items: center;
    color: #061611;
    background: linear-gradient(135deg, #9cf0dd, #52cdb8);
    font-size: 15px;
    font-weight: 800;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 1200;
    min-width: 210px;
    padding: 9px;
    border: 1px solid rgba(131, 230, 207, 0.24);
    border-radius: 8px;
    background: rgba(4, 13, 22, 0.96);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), 0 0 30px rgba(95, 214, 191, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.user-menu.is-open .user-dropdown,
.user-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown-link {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    border: 0;
    border-radius: 6px;
    color: rgba(246, 251, 255, 0.88);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.user-dropdown-link:hover,
.user-dropdown-link:focus-visible {
    color: var(--accent);
    background: rgba(131, 230, 207, 0.09);
}

.user-dropdown-divider {
    height: 1px;
    margin: 8px 4px;
    background: rgba(172, 231, 226, 0.14);
}

.user-dropdown-form {
    margin: 0;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.mobile-toggle-line {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-open .mobile-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .mobile-toggle-line:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .mobile-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.icon-menu-close {
    display: none;
}

.site-header.is-open .icon-menu-open {
    display: none;
}

.site-header.is-open .icon-menu-close {
    display: block;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #061611;
    background: linear-gradient(180deg, #94ead7, #67d6be);
    box-shadow: 0 16px 36px rgba(90, 220, 190, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: linear-gradient(180deg, #a3f2df, #71dec7);
    box-shadow: 0 20px 46px rgba(90, 220, 190, 0.3);
}

.button-secondary,
.button-ghost {
    color: var(--text);
    border-color: rgba(184, 232, 227, 0.26);
    background: rgba(6, 15, 25, 0.52);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: rgba(131, 230, 207, 0.55);
    background: rgba(131, 230, 207, 0.08);
}

.button-small {
    min-height: 46px;
    padding: 0 23px;
    font-size: 15px;
}

.site-nav > .button.button-small {
    border-radius: 999px;
}

.mobile-nav-only {
    display: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-weight: 650;
}

.text-link .icon {
    transition: transform 160ms ease;
}

.text-link:hover .icon,
.text-link:focus-visible .icon {
    transform: translateX(4px);
}

.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -76px;
    padding: 150px 0 140px;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-night-valley.jpg");
    background-size: cover;
    background-position: center;
    transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.035);
    transition: transform 300ms ease-out;
    z-index: -3;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 9, 15, 0.94) 0%, rgba(2, 9, 15, 0.72) 35%, rgba(2, 9, 15, 0.28) 66%, rgba(2, 9, 15, 0.36) 100%),
        linear-gradient(180deg, rgba(2, 9, 15, 0.48) 0%, rgba(2, 9, 15, 0.1) 46%, #030b12 100%);
    z-index: -2;
}

.hero-content {
    width: min(calc(100% - 56px), var(--max));
    margin: 0 auto;
    padding-top: 56px;
}

.hero h1 {
    max-width: 790px;
    margin: 0;
    font-size: 72px;
    line-height: 1.06;
    font-weight: 760;
    color: rgba(247, 250, 255, 0.95);
    text-wrap: balance;
}

.hero h1 span {
    color: var(--accent);
}

.hero-content > p {
    max-width: 560px;
    margin: 34px 0 0;
    color: rgba(244, 249, 252, 0.88);
    font-size: 22px;
    line-height: 1.48;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 42px;
}

.proof-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.avatars {
    display: flex;
    padding-left: 8px;
}

.avatar {
    width: 42px;
    height: 42px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid rgba(3, 13, 20, 0.9);
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 222, 193, 0.95) 0 16%, transparent 17%),
        linear-gradient(160deg, #283747, #947060);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35);
}

.avatar-two {
    background:
        radial-gradient(circle at 50% 35%, rgba(235, 196, 172, 0.95) 0 16%, transparent 17%),
        linear-gradient(160deg, #1d4550, #85523f);
}

.avatar-three {
    background:
        radial-gradient(circle at 50% 35%, rgba(244, 210, 185, 0.95) 0 16%, transparent 17%),
        linear-gradient(160deg, #27415c, #c3a78a);
}

.proof-row p {
    max-width: 520px;
    margin: 0;
    color: rgba(218, 229, 235, 0.82);
    font-size: 14px;
}

.feature-section {
    position: relative;
    z-index: 3;
    margin-top: -62px;
}

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

.feature-card {
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 46px 38px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    isolation: isolate;
}

.feature-card::before,
.event-card::before,
.final-cta::before,
.map-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 10, 17, 0.72) 0%, rgba(3, 10, 17, 0.34) 45%, rgba(3, 10, 17, 0.84) 100%),
        linear-gradient(90deg, rgba(3, 10, 17, 0.48), rgba(3, 10, 17, 0.08));
    z-index: -1;
}

.feature-card-explore::before {
    background-image: url("../images/feature-explore.jpg");
}

.feature-card-report::before {
    background-image: url("../images/feature-report.jpg");
}

.feature-card-discover::before {
    background-image: url("../images/map-discover.jpg");
}

.feature-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(131, 230, 207, 0.34);
    border-radius: 50%;
    color: var(--accent);
    background: rgba(17, 70, 66, 0.32);
    box-shadow: 0 0 34px rgba(131, 230, 207, 0.16);
}

.feature-card-report .feature-icon {
    color: #d098ff;
    border-color: rgba(167, 92, 255, 0.45);
    background: rgba(81, 33, 121, 0.42);
    box-shadow: 0 0 34px rgba(167, 92, 255, 0.18);
}

.feature-card-discover .feature-icon {
    color: #ffc069;
    border-color: rgba(238, 169, 68, 0.45);
    background: rgba(112, 66, 15, 0.42);
    box-shadow: 0 0 34px rgba(238, 169, 68, 0.18);
}

.feature-icon .icon {
    width: 32px;
    height: 32px;
}

.feature-copy {
    max-width: 390px;
    margin-top: auto;
    padding-bottom: 110px;
}

.feature-copy h2 {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.08;
}

.feature-copy p {
    margin: 0;
    color: rgba(232, 240, 244, 0.86);
}

.feature-card .text-link {
    position: absolute;
    left: 38px;
    bottom: 34px;
}

.feature-card-report .text-link {
    color: #d098ff;
}

.feature-card-discover .text-link {
    color: #ffc069;
}

.map-section {
    padding-top: 40px;
}

.map-panel {
    position: relative;
    display: grid;
    grid-template-columns: 0.43fr 0.57fr;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.map-panel::before {
    background-image: url("../images/map-discover.jpg");
    background-position: center right;
    opacity: 0.74;
    transform: translate3d(var(--map-x, 0), var(--map-y, 0), 0) scale(1.03);
    transition: transform 300ms ease-out;
}

.map-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 10, 17, 0.95) 0%, rgba(3, 10, 17, 0.83) 32%, rgba(3, 10, 17, 0.26) 67%, rgba(3, 10, 17, 0.16) 100%),
        linear-gradient(180deg, rgba(5, 16, 26, 0.42), rgba(5, 16, 26, 0.7));
    z-index: -1;
}

.map-copy {
    position: relative;
    z-index: 2;
    padding: 48px 48px 40px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 760;
    text-transform: uppercase;
}

.map-copy h2,
.final-cta h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.12;
    text-wrap: balance;
}

.map-copy > p {
    max-width: 390px;
    margin: 22px 0 0;
    color: rgba(229, 239, 244, 0.84);
}

.map-benefits {
    display: grid;
    gap: 15px;
    margin: 34px 0 28px;
    padding: 0;
    list-style: none;
    color: rgba(228, 238, 243, 0.86);
    font-size: 15px;
}

.map-benefits li {
    display: flex;
    align-items: center;
    gap: 13px;
}

.map-benefits span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(131, 230, 207, 0.25);
    border-radius: 50%;
    color: var(--accent);
    background: rgba(131, 230, 207, 0.08);
}

.button-ghost {
    min-height: 52px;
    padding: 0 24px;
}

.map-canvas {
    position: relative;
    min-height: 520px;
}

.map-preview-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.map-preview-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -4px;
}

.map-preview-cta {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 4;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid rgba(131, 230, 207, 0.36);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(3, 12, 20, 0.84);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), 0 0 26px rgba(131, 230, 207, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-weight: 750;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.map-preview-cta .icon {
    width: 18px;
    height: 18px;
}

.map-preview-link:hover .map-preview-cta,
.map-preview-link:focus-visible .map-preview-cta {
    color: #03120f;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 32px rgba(131, 230, 207, 0.24);
    transform: translateY(-2px);
}

.map-toolbar {
    position: absolute;
    top: 22px;
    right: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.search-control,
.map-filter {
    min-height: 44px;
    border: 1px solid rgba(184, 232, 227, 0.2);
    border-radius: var(--radius);
    background: rgba(3, 10, 17, 0.64);
    backdrop-filter: blur(12px);
}

.search-control {
    width: 235px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: var(--muted);
}

.search-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.search-control input::placeholder {
    color: rgba(213, 226, 233, 0.68);
}

.map-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    color: var(--text);
    cursor: pointer;
}

.cluster {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 17px;
    font-weight: 800;
    background: color-mix(in srgb, var(--cluster-color) 72%, rgba(0, 0, 0, 0.25));
    box-shadow:
        0 0 0 7px color-mix(in srgb, var(--cluster-color) 18%, transparent),
        0 0 34px color-mix(in srgb, var(--cluster-color) 82%, transparent);
    transform: translate(-50%, -50%);
}

.cluster::after {
    content: "";
    position: absolute;
    inset: -18px;
    border: 1px solid color-mix(in srgb, var(--cluster-color) 24%, transparent);
    border-radius: 50%;
    animation: pulse 2.8s ease-out infinite;
}

.map-empty-note {
    position: absolute;
    left: 50%;
    top: 52%;
    z-index: 2;
    width: min(280px, calc(100% - 48px));
    padding: 16px 18px;
    border: 1px solid rgba(131, 230, 207, 0.22);
    border-radius: var(--radius);
    color: rgba(232, 240, 244, 0.82);
    text-align: center;
    background: rgba(3, 10, 17, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}

.pin-dot {
    position: absolute;
    z-index: 2;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px currentColor;
}

.pin-dot-one {
    left: 28%;
    top: 30%;
    color: var(--accent);
}

.pin-dot-two {
    left: 56%;
    top: 23%;
    color: var(--blue);
}

.pin-dot-three {
    left: 83%;
    top: 48%;
    color: var(--danger);
}

.pin-dot-four {
    left: 65%;
    top: 73%;
    color: var(--green);
}

.pin-dot-five {
    left: 88%;
    top: 76%;
    color: #9bbdff;
}

.map-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    overflow: hidden;
    border: 1px solid rgba(184, 232, 227, 0.22);
    border-radius: var(--radius);
    background: rgba(3, 10, 17, 0.64);
    backdrop-filter: blur(12px);
}

.map-controls button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-bottom: 1px solid rgba(184, 232, 227, 0.16);
    background: transparent;
    color: var(--text);
    font-size: 24px;
}

.map-controls button:last-child {
    border-bottom: 0;
    font-size: 18px;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 19, 31, 0.72);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 130px;
    padding: 28px 38px;
    border-right: 1px solid rgba(172, 231, 226, 0.17);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item > .icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
}

.stat-item strong,
.stat-item span,
.stat-item small {
    display: block;
}

.stat-item strong {
    font-size: 35px;
    line-height: 1;
}

.stat-item span {
    margin-top: 7px;
    font-weight: 700;
}

.stat-item small {
    margin-top: 4px;
    color: var(--subtle);
}

.events-section {
    padding: 36px 0 28px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.events-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.event-card {
    position: relative;
    min-height: 348px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
    isolation: isolate;
}

.event-card::before {
    background-image: var(--event-image);
    background-position: center;
    filter: brightness(1.48) saturate(1.12);
    transition: transform 260ms ease;
}

.event-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 10, 17, 0.02) 0%, rgba(3, 10, 17, 0.15) 44%, rgba(3, 10, 17, 0.82) 100%),
        linear-gradient(90deg, rgba(3, 10, 17, 0.12), rgba(3, 10, 17, 0));
    z-index: -1;
}

.event-card:hover::before {
    transform: scale(1.045);
}

.event-card-empty {
    grid-column: 1 / -1;
    min-height: 190px;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(131, 230, 207, 0.1), rgba(65, 167, 255, 0.06)),
        var(--panel);
}

.event-card-empty::before,
.event-card-empty::after {
    display: none;
}

.event-card-empty p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--muted);
}

.event-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(232, 240, 244, 0.76);
    font-size: 13px;
}

.event-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.event-icon-teal {
    color: var(--accent);
    background: rgba(75, 210, 188, 0.2);
    box-shadow: 0 0 25px rgba(75, 210, 188, 0.22);
}

.event-icon-amber {
    color: #ffd18a;
    background: rgba(238, 169, 68, 0.2);
    box-shadow: 0 0 25px rgba(238, 169, 68, 0.22);
}

.event-icon-green {
    color: #a2e38d;
    background: rgba(124, 214, 106, 0.18);
    box-shadow: 0 0 25px rgba(124, 214, 106, 0.22);
}

.event-icon-purple {
    color: #c7a1ff;
    background: rgba(166, 92, 255, 0.18);
    box-shadow: 0 0 25px rgba(166, 92, 255, 0.24);
}

.event-icon-blue {
    color: #8fc8ff;
    background: rgba(74, 167, 255, 0.18);
    box-shadow: 0 0 25px rgba(74, 167, 255, 0.24);
}

.event-copy {
    padding-right: 32px;
}

.event-copy time {
    display: block;
    margin-bottom: 14px;
    color: rgba(226, 237, 243, 0.7);
    font-size: 13px;
}

.home-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.home-event-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid rgba(172, 231, 226, 0.22);
    border-radius: 999px;
    color: rgba(235, 255, 250, 0.86);
    background: rgba(3, 10, 17, 0.52);
    font-size: 11px;
    font-weight: 800;
}

.home-event-badge.event-badge--historical {
    color: #d5bdff;
    border-color: rgba(166, 92, 255, 0.42);
}

.home-event-badge.event-badge--featured {
    color: #ffe5a8;
    border-color: rgba(217, 175, 25, 0.5);
}

.event-copy h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.22;
    text-wrap: balance;
}

.event-copy p {
    margin: 8px 0 0;
    color: rgba(226, 237, 243, 0.78);
    font-size: 13px;
}

.event-card-link {
    position: relative;
    z-index: 2;
    width: fit-content;
    margin-top: 16px;
    font-size: 14px;
}

.bookmark-button {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 32px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: rgba(236, 246, 249, 0.82);
    background: transparent;
    cursor: pointer;
}

.bookmark-button:hover,
.bookmark-button:focus-visible {
    color: var(--accent);
}

.event-next {
    position: absolute;
    right: -19px;
    top: 50%;
    z-index: 4;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(6, 17, 28, 0.74);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
    transform: translateY(-50%) rotate(-90deg);
    cursor: pointer;
}

.final-cta {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 6px;
    border-top: 1px solid rgba(172, 231, 226, 0.1);
    border-bottom: 1px solid rgba(172, 231, 226, 0.1);
    isolation: isolate;
}

.final-cta::before {
    background-image: url("../images/observatory-cta.jpg");
    background-position: center;
    transform: scale(1.02);
}

.final-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 10, 17, 0.35) 0%, rgba(3, 10, 17, 0.68) 33%, rgba(3, 10, 17, 0.62) 67%, rgba(3, 10, 17, 0.72) 100%),
        linear-gradient(180deg, rgba(3, 10, 17, 0.12), rgba(3, 10, 17, 0.64));
    z-index: -1;
}

.final-cta-inner {
    width: min(calc(100% - 48px), 720px);
    margin: 0 auto;
    text-align: center;
}

.final-cta h2 {
    font-size: 34px;
}

.final-cta p {
    margin: 18px auto 28px;
    max-width: 660px;
    color: rgba(232, 240, 244, 0.88);
    font-size: 17px;
}

.final-cta small {
    display: block;
    margin-top: 18px;
    color: rgba(232, 240, 244, 0.76);
}

.site-footer {
    background: rgba(2, 8, 14, 0.96);
}

.footer-inner {
    width: min(calc(100% - 56px), var(--max));
    min-height: 96px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
}

.brand-footer {
    font-size: 22px;
}

.brand-footer .brand-mark {
    width: 34px;
    height: 34px;
}

.footer-inner p,
.footer-links a {
    color: rgba(220, 232, 238, 0.68);
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 38px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent);
}

.socials {
    display: flex;
    gap: 14px;
}

.socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(172, 231, 226, 0.16);
    border-radius: 50%;
    color: rgba(229, 239, 244, 0.78);
    background: rgba(255, 255, 255, 0.03);
}

.socials a:hover,
.socials a:focus-visible {
    color: var(--accent);
    border-color: rgba(131, 230, 207, 0.38);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 90;
    max-width: min(420px, calc(100% - 40px));
    padding: 13px 18px;
    border: 1px solid rgba(131, 230, 207, 0.36);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(4, 14, 23, 0.92);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes pulse {
    0% {
        opacity: 0.9;
        transform: scale(0.82);
    }
    100% {
        opacity: 0;
        transform: scale(1.28);
    }
}

@media (max-width: 1180px) {
    .header-inner {
        gap: 24px;
    }

    .site-nav {
        gap: 22px;
    }

    .hero h1 {
        font-size: 60px;
    }

    .feature-card {
        min-height: 510px;
        padding: 38px 30px 32px;
    }

    .feature-copy h2 {
        font-size: 34px;
    }

    .stat-item {
        padding: 24px;
        gap: 18px;
    }

    .stat-item strong {
        font-size: 29px;
    }
}

@media (max-width: 980px) {
    .section-grid,
    .header-inner,
    .hero-content,
    .footer-inner {
        width: min(calc(100% - 36px), var(--max));
    }

    .header-inner {
        min-height: 70px;
    }

    .brand {
        font-size: 23px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .site-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: calc(100% + 10px);
        display: grid;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(4, 13, 22, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
    }

    .site-header.is-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-nav > a,
    .site-nav .button,
    .nav-dropdown-button,
    .nav-link-button {
        width: 100%;
        justify-content: space-between;
        padding: 14px 12px;
        border-radius: 6px;
    }

    .site-nav > a:hover,
    .site-nav > a:focus-visible,
    .site-nav .button:hover,
    .site-nav .button:focus-visible,
    .nav-dropdown-button:hover,
    .nav-dropdown-button:focus-visible,
    .nav-link-button:hover,
    .nav-link-button:focus-visible {
        background: rgba(131, 230, 207, 0.08);
    }

    .desktop-user-menu {
        display: none;
    }

    .site-nav .mobile-nav-only {
        display: flex;
    }

    .mobile-logout-form {
        width: 100%;
        margin: 0;
    }

    .header-logout-form {
        width: 100%;
    }

    .user-menu {
        width: 100%;
        display: grid;
        justify-items: start;
        padding: 8px 12px;
    }

    .user-dropdown {
        position: static;
        width: 100%;
        min-width: 0;
        display: none;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .user-menu.is-open .user-dropdown,
    .user-dropdown.is-open {
        display: grid;
        transform: none;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0 0 8px 14px;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 1px solid rgba(131, 230, 207, 0.2);
        background: transparent;
        box-shadow: none;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }

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

    .mobile-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero {
        min-height: 680px;
        margin-top: -70px;
        padding: 126px 0 116px;
    }

    .hero h1 {
        max-width: 690px;
        font-size: 54px;
    }

    .hero-content > p {
        font-size: 20px;
    }

    .feature-section {
        margin-top: -46px;
    }

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

    .feature-card {
        min-height: 430px;
    }

    .feature-copy {
        max-width: 520px;
        padding-bottom: 74px;
    }

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

    .map-panel::after {
        background:
            linear-gradient(180deg, rgba(3, 10, 17, 0.94) 0%, rgba(3, 10, 17, 0.68) 38%, rgba(3, 10, 17, 0.18) 100%),
            linear-gradient(90deg, rgba(3, 10, 17, 0.54), rgba(3, 10, 17, 0.16));
    }

    .map-copy {
        padding: 38px 34px 8px;
    }

    .map-canvas {
        min-height: 480px;
    }

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

    .stat-item:nth-child(even) {
        border-right: 0;
    }

    .stat-item:nth-child(-n + 4) {
        border-bottom: 1px solid rgba(172, 231, 226, 0.17);
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 28px 0;
        gap: 22px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .section-grid,
    .header-inner,
    .hero-content,
    .footer-inner {
        width: min(calc(100% - 28px), var(--max));
    }

    .brand {
        gap: 11px;
        font-size: 20px;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
    }

    .hero {
        min-height: 640px;
        padding-bottom: 92px;
    }

    .hero::before {
        background-color: #030b12;
        background-position: 76% 72px;
        background-repeat: no-repeat;
        background-size: 165% auto;
        transform: none;
    }

    .hero::after {
        background:
            linear-gradient(90deg, rgba(2, 9, 15, 0.88), rgba(2, 9, 15, 0.42)),
            linear-gradient(180deg, rgba(2, 9, 15, 0.3) 0%, rgba(2, 9, 15, 0.48) 48%, #030b12 76%);
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-content > p {
        margin-top: 24px;
        font-size: 18px;
    }

    .hero-actions,
    .proof-row {
        align-items: stretch;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
        min-height: 54px;
        padding: 0 18px;
    }

    .proof-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .feature-section {
        margin-top: -24px;
    }

    .feature-card {
        min-height: 430px;
        padding: 28px 24px 28px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon .icon {
        width: 26px;
        height: 26px;
    }

    .feature-copy {
        padding-bottom: 64px;
    }

    .feature-copy h2 {
        font-size: 30px;
    }

    .feature-card .text-link {
        left: 24px;
        bottom: 24px;
    }

    .map-section {
        padding-top: 26px;
    }

    .map-copy {
        padding: 28px 24px 0;
    }

    .map-copy h2,
    .final-cta h2 {
        font-size: 31px;
    }

    .map-benefits {
        gap: 12px;
        margin-top: 28px;
    }

    .map-canvas {
        min-height: 430px;
    }

    .map-preview-cta {
        right: 18px;
        bottom: 18px;
        left: 18px;
        min-height: 48px;
    }

    .map-toolbar {
        left: 18px;
        right: 18px;
        top: 20px;
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .search-control {
        width: auto;
        min-width: 0;
    }

    .map-filter {
        padding: 0 12px;
    }

    .cluster {
        width: 46px;
        height: 46px;
        font-size: 15px;
    }

    .map-controls {
        right: 18px;
        bottom: 18px;
    }

    .map-controls button {
        width: 44px;
        height: 44px;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .stat-item {
        min-height: 108px;
        border-right: 0;
        border-bottom: 1px solid rgba(172, 231, 226, 0.17);
    }

    .stat-item:last-child {
        border-bottom: 0;
    }

    .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(172, 231, 226, 0.17);
    }

    .events-section {
        padding-top: 28px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

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

    .event-card {
        min-height: 330px;
    }

    .event-next {
        display: none;
    }

    .final-cta {
        min-height: 390px;
        justify-content: flex-end;
        padding: 48px 0;
    }

    .final-cta::before {
        background-position: 22% center;
    }

    .final-cta-inner {
        text-align: left;
    }

    .final-cta-inner .button {
        width: auto;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
