* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg-gradient);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-glow {
    position: fixed;
    inset: auto -14rem -20rem auto;
    width: 46rem;
    aspect-ratio: 1;
    border: 1px solid var(--glow-line);
    border-radius: 50%;
    box-shadow: 0 0 0 7rem color-mix(in srgb, var(--glow-line) 18%, transparent), 0 0 0 14rem color-mix(in srgb, var(--glow-line) 12%, transparent);
    pointer-events: none;
}

.landing-main {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: grid;
    align-content: start;
    width: var(--public-width);
    margin: 0 auto;
    padding: clamp(20px, 4vh, 46px) 0 30px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
    align-items: center;
    gap: clamp(44px, 8vw, 110px);
}


.eyebrow {
    margin: 0 0 16px;
    color: var(--accent-ink);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

h1 {
    max-width: 760px;
    margin: 0 0 32px;
    font-size: clamp(3.1rem, 7vw, 6.8rem);
    line-height: .92;
    letter-spacing: -.075em;
}

.map-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 360px);
    padding: 18px 26px;
    border-radius: 16px;
    color: var(--on-accent);
    background: var(--accent);
    box-shadow: 0 18px 50px rgba(9, 18, 46, .26);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -.005em;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.map-cta:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(9, 18, 46, .34); }

.map-cta.secondary {
    color: var(--accent-ink);
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.map-cta.secondary:hover { box-shadow: inset 0 0 0 2px var(--accent), 0 18px 40px rgba(9, 18, 46, .18); }

.hero-ctas { display: flex; flex-direction: column; gap: 14px; }

.map-preview {
    position: relative;
    display: block;
    justify-self: center;
    width: min(100%, 390px);
    padding: 44px 36px 58px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    color: var(--text);
    background: linear-gradient(145deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .025));
    box-shadow: 0 40px 90px rgba(9, 18, 46, .32);
    text-decoration: none;
    transform: rotate(2.2deg);
    transition: transform .25s ease, border-color .25s ease;
}

.map-preview:hover { transform: rotate(0) translateY(-5px); border-color: var(--accent); }
.map-preview img { display: block; width: 100%; max-height: 48vh; object-fit: contain; filter: saturate(.8) contrast(1.03); opacity: .92; }
.preview-label { position: absolute; top: 18px; left: 22px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.preview-action { position: absolute; right: 22px; bottom: 18px; font-size: .86rem; font-weight: 800; }
.preview-action b { margin-left: 8px; color: var(--accent-ink); }

.map-preview--off {
    display: grid;
    min-height: 260px;
    place-items: center;
    padding: 64px 32px;
    transform: none;
    cursor: default;
}
.map-preview--off:hover { transform: none; border-color: var(--border); }
.preview-off__text { margin: 0; max-width: 24rem; color: var(--muted); font-size: .95rem; line-height: 1.6; text-align: center; }

html[data-theme="light"] .map-preview {
    background: var(--surface);
    box-shadow: 0 40px 90px rgba(23, 33, 71, .12);
}

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; gap: 52px; }
    h1 { font-size: clamp(3.5rem, 16vw, 5.6rem); }
    .map-preview { width: min(88vw, 390px); }
}

@media (max-width: 480px) {
    .hero { gap: 44px; }
    .map-cta { width: 100%; min-width: 0; }
    .map-preview { padding: 42px 30px 54px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
