/* ================================================
   Geonex AI — Full Design System
   21st.dev inspired, B&W, ContainerScroll effect
   ================================================ */

:root {
    --bg: #050505;
    --surface: #0a0a0a;
    --card: #0e0e0e;
    --border: rgba(255, 255, 255, 0.07);
    --border-h: rgba(255, 255, 255, 0.14);
    --t1: #f5f5f5;
    --t2: #888;
    --t3: #555;
    --t4: #333;
    --green: #4ade80;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--t1);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

::selection {
    background: rgba(255, 255, 255, 0.15)
}

::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px
}

.hidden {
    display: none !important
}

.brand-dim {
    opacity: .3;
    font-weight: 400
}

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border)
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.02em
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px
}

.nav-link {
    color: var(--t2);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 7px;
    transition: .2s
}

.nav-link:hover {
    color: var(--t1);
    background: rgba(255, 255, 255, 0.04)
}

.nav-cta {
    padding: 7px 18px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 7px;
    font-family: var(--font);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s var(--ease)
}

.nav-cta:hover {
    background: #ddd;
    transform: translateY(-1px)
}

/* ========== HERO SCROLL (ContainerScroll) ========== */
.hero-scroll {
    min-height: 140vh;
    /* tall so scroll animation works */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 130px 24px 0;
    position: relative;
}

.hero-scroll-content {
    text-align: center;
    max-width: 640px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 500;
    color: var(--t2);
    margin-bottom: 24px
}

.pill-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    animation: blink 2s ease infinite
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.hero-h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin-bottom: 18px;
    color: #fff
}

.hero-gradient {
    background: linear-gradient(90deg, #fff 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-p {
    font-size: .95rem;
    color: var(--t2);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto
}

.hero-btns {
    display: flex;
    gap: 10px;
    justify-content: center
}

.btn-w {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 9px;
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s var(--ease)
}

.btn-w:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.07)
}

.btn-o {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    background: transparent;
    color: var(--t1);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: .25s var(--ease)
}

.btn-o:hover {
    border-color: var(--border-h);
    background: rgba(255, 255, 255, 0.03)
}

.btn-lg {
    padding: 13px 28px;
    font-size: .92rem
}

/* 3D Card (the ContainerScroll animation container) */
.scroll-card-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: sticky;
    top: 10vh;
}

.scroll-card {
    transform: rotateX(20deg) scale(1.05);
    transform-origin: center bottom;
    transition: transform 0.05s linear;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #333;
    background: #1a1a1a;
    box-shadow: 0 0 #0000004d, 0 9px 20px #0000004a, 0 37px 37px #00000042, 0 84px 50px #00000026, 0 149px 60px #0000000a;
}

.scroll-card-inner {
    width: 100%;
    height: clamp(300px, 45vw, 500px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.demo-map {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0
}

/* Demo overlay on the card */
.demo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column
}

.demo-topbar {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent)
}

.demo-logo {
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    opacity: .8
}

.demo-btn-fake {
    font-size: .65rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, .1);
    border-radius: 5px;
    color: #fff;
    opacity: .7
}

.demo-result {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 220px;
    padding: 14px;
    background: rgba(14, 14, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: demoSlide 1s ease 2s both;
}

@keyframes demoSlide {
    from {
        opacity: 0;
        transform: translateX(30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.demo-r-badge {
    font-size: .6rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 6px
}

.demo-r-city {
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px
}

.demo-r-coord {
    font-size: .62rem;
    color: var(--t3);
    font-family: monospace;
    margin-bottom: 6px
}

.demo-r-conf {
    font-size: .62rem;
    color: var(--t2);
    margin-bottom: 8px
}

.demo-r-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.demo-tag {
    font-size: .55rem;
    padding: 3px 7px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 4px;
    color: var(--t2)
}

/* ========== STATS BAR ========== */
.stats-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px
}

.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap
}

.s-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px
}

.s-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff
}

.s-lbl {
    font-size: .65rem;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .06em
}

.s-sep {
    width: 1px;
    height: 28px;
    background: var(--border)
}

/* ========== SECTIONS ========== */
.sec-wrap {
    max-width: 1100px;
    margin: 0 auto
}

.sec-tag {
    font-size: .65rem;
    font-weight: 600;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 8px
}

.sec-h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 40px;
    color: #fff
}

/* Features */
.features {
    padding: 80px 24px;
    border-bottom: 1px solid var(--border)
}

.f-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.f-card {
    padding: 24px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: .3s var(--ease)
}

.f-card:hover {
    border-color: var(--border-h);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3)
}

.f-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 9px;
    margin-bottom: 14px;
    color: var(--t2)
}

.f-card h3 {
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff
}

.f-card p {
    font-size: .76rem;
    color: var(--t2);
    line-height: 1.6
}

/* How */
.how {
    padding: 70px 24px;
    border-bottom: 1px solid var(--border)
}

.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0
}

.step {
    flex: 1;
    max-width: 260px;
    padding: 28px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: .3s var(--ease)
}

.step:hover {
    border-color: var(--border-h);
    transform: translateY(-3px)
}

.step-n {
    font-size: 2.4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, .05);
    line-height: 1;
    margin-bottom: 12px
}

.step h3 {
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff
}

.step p {
    font-size: .76rem;
    color: var(--t2);
    line-height: 1.6
}

.step-arr {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 1.1rem;
    color: var(--t4)
}

/* CTA */
.cta-sec {
    padding: 40px 24px 70px
}

.cta-box {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 36px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px
}

.cta-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff
}

.cta-box p {
    font-size: .85rem;
    color: var(--t2);
    margin-bottom: 24px
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 18px 24px
}

.footer-in {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.footer-b {
    font-size: .85rem;
    font-weight: 700
}

.footer-c {
    font-size: .68rem;
    color: var(--t3)
}

/* ========== APP VIEW ========== */
.app-view {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    animation: fadeIn .3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

#map {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center center;
}

.map-controls {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--t2);
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mc-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.maplibregl-ctrl-group {
    background: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden;
    margin-left: 20px !important;
    margin-bottom: 20px !important;
}

.maplibregl-ctrl-group button {
    background-color: transparent !important;
}

.maplibregl-ctrl-icon {
    filter: invert(1) opacity(0.7);
    transition: 0.2s;
}

.maplibregl-ctrl-group button:hover .maplibregl-ctrl-icon {
    filter: invert(1) opacity(1);
}

.maplibregl-canvas:focus {
    outline: none;
}

.ai-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
    color: var(--t2);
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.ai-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-action-btn svg {
    flex-shrink: 0;
}

/* AI Image grid */
.ai-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.ai-ref-img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: 0.2s;
}

.ai-ref-img:hover {
    opacity: 1;
    cursor: pointer;
    border-color: var(--border-h);
}

.leaflet-container {
    background: #090909
}

.leaflet-control-zoom {
    border: 1px solid var(--border) !important;
    border-radius: 7px !important;
    overflow: hidden;
    margin: 18px !important
}

.leaflet-control-zoom a {
    background: #111 !important;
    color: var(--t1) !important;
    border-bottom: 1px solid var(--border) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 14px !important
}

.leaflet-control-zoom a:hover {
    background: #1a1a1a !important
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, .7) !important;
    color: #333 !important;
    font-size: 8px !important
}

.leaflet-control-attribution a {
    color: #444 !important
}

.geo-marker,
.geo-pulse {
    background: none !important;
    border: none !important
}

@keyframes mPulse {
    0% {
        transform: scale(.5);
        opacity: .7
    }

    50% {
        transform: scale(1.5);
        opacity: 0
    }

    100% {
        transform: scale(.5);
        opacity: 0
    }
}

/* App bar */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent);
    pointer-events: none
}

.app-bar>* {
    pointer-events: auto
}

.ab-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 700;
    color: #fff
}

.ab-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    color: #fff;
    font-family: var(--font);
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
    transition: .2s
}

.ab-btn:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .2)
}

.ab-upload {
    background: rgba(255, 255, 255, .12)
}

/* Modal */
.mo {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center
}

.mo.open {
    display: flex
}

.mo-box {
    width: 400px;
    max-width: 92vw;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 20px;
    animation: mIn .3s var(--ease)
}

@keyframes mIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.mo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px
}

.mo-head h2 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--t1)
}

.mo-x {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--t2);
    font-size: .7rem;
    cursor: pointer;
    transition: .2s
}

.mo-x:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--t1)
}

/* Drop zone */
.dz {
    border: 1.5px dashed rgba(255, 255, 255, .08);
    border-radius: 10px;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .012)
}

.dz:hover,
.dz.drag {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .025)
}

.dz.drag {
    border-color: #fff
}

.dz-content {
    text-align: center;
    padding: 16px
}

.dz-icon {
    opacity: .12;
    margin-bottom: 8px
}

.dz-t {
    font-size: .84rem;
    font-weight: 500;
    color: var(--t1);
    margin-bottom: 3px
}

.dz-s {
    font-size: .74rem;
    color: var(--t2)
}

.dz-f {
    font-size: .6rem;
    color: var(--t4);
    margin-top: 8px;
    display: block
}

.dz-prev {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #090909
}

.dz-prev.on {
    display: flex
}

.dz-prev img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px
}

.rm-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: #fff;
    font-size: .6rem;
    cursor: pointer;
    transition: .2s
}

.rm-btn:hover {
    background: rgba(220, 38, 38, .6)
}

.pred-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 11px;
    margin-top: 12px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 7px;
    font-family: var(--font);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s
}

.pred-btn:disabled {
    opacity: .1;
    cursor: not-allowed
}

.pred-btn:not(:disabled):hover {
    background: #e0e0e0;
    transform: translateY(-1px)
}

.ld {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0 4px
}

.ld.on {
    display: flex
}

.ld-ring {
    width: 30px;
    height: 30px;
    border: 2.5px solid rgba(255, 255, 255, .06);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.ld-txt {
    font-size: .74rem;
    color: var(--t2)
}

.ld-bar {
    width: 100%;
    max-width: 240px;
    height: 3px;
    background: rgba(255, 255, 255, .04);
    border-radius: 2px;
    overflow: hidden
}

.ld-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    transition: width .35s ease
}

/* ========== RESULTS PANEL ========== */
.rp {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 100vw;
    z-index: 250;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    padding: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rp.open {
    transform: translateX(0)
}

.rp::-webkit-scrollbar {
    width: 3px
}

.rp::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .06);
    border-radius: 2px
}

.rp-head {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.rp-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 100px;
    background: rgba(74, 222, 128, .07);
    border: 1px solid rgba(74, 222, 128, .12);
    font-size: .68rem;
    font-weight: 600;
    color: var(--green)
}

.rp-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    animation: blink 2s ease infinite
}

.rp-head-btns {
    display: flex;
    gap: 4px
}

.rp-minimize,
.rp-x {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--t3);
    font-size: .65rem;
    cursor: pointer;
    transition: .2s;
}

.rp-minimize:hover,
.rp-x:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--t1)
}

.rp-body {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.rp-thumb {
    border-radius: 9px;
    overflow: hidden;
    max-height: 160px;
    border: 1px solid var(--border);
    background: #080808
}

.rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.rp-rows {
    display: flex;
    flex-direction: column
}

.rp-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border)
}

.rp-row:last-child {
    border-bottom: none
}

.rp-lbl {
    font-size: .6rem;
    font-weight: 500;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: .06em
}

.rp-val {
    font-size: .84rem;
    font-weight: 500;
    color: var(--t1)
}

.rp-mono {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: .76rem;
    color: var(--t2)
}

.rp-coord {
    display: flex;
    align-items: center;
    gap: 8px
}

.rp-copy {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--t3);
    cursor: pointer;
    transition: .2s
}

.rp-copy:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--t1)
}

.rp-conf {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px
}

.rp-conf-bar {
    flex: 1;
    max-width: 130px;
    height: 4px;
    background: rgba(255, 255, 255, .04);
    border-radius: 2px;
    overflow: hidden
}

.rp-conf-fill {
    height: 100%;
    width: 0%;
    background: var(--green);
    border-radius: 2px;
    transition: width 1s cubic-bezier(.16, 1, .3, 1)
}

.rp-conf-v {
    font-size: .74rem;
    font-weight: 600;
    color: var(--green)
}

/* Detected features section */
.rp-section {
    padding: 10px 0
}

.rp-sec-title {
    font-size: .62rem;
    font-weight: 600;
    color: var(--t4);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-bottom: 8px
}

.rp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px
}

.rp-tag {
    font-size: .68rem;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: .2s;
    cursor: default;
}

.rp-tag:hover {
    background: rgba(255, 255, 255, .06);
    border-color: var(--border-h)
}

/* Social media search items */
.rp-search-items {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.rp-search-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--t2);
    font-size: .72rem;
    font-weight: 500;
    transition: .2s var(--ease);
    cursor: pointer;
}

.rp-search-link:hover {
    background: rgba(255, 255, 255, .06);
    border-color: var(--border-h);
    color: var(--t1)
}

.rp-search-link svg {
    flex-shrink: 0;
    opacity: .5
}

.rp-desc {
    padding: 12px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    font-size: .72rem;
    line-height: 1.6;
    color: var(--t2);
    font-family: 'SF Mono', 'Consolas', monospace;
    /* Terminal/AI vibe */
}

.ai-report {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-line {
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.ai-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ai-key {
    color: var(--t3);
    font-weight: 600;
}

.ai-val {
    color: #fff;
    font-weight: 500;
}

.ai-reasoning {
    margin-top: 4px;
}

.ai-text {
    display: inline-block;
    margin-top: 4px;
    color: #aaa;
    line-height: 1.5;
}

.ai-similar {
    margin-top: 4px;
    color: var(--t1);
    padding-left: 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.rp-acts {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px
}

.rp-act {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--t2);
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 500;
    cursor: pointer;
    transition: .2s var(--ease);
}

.rp-act:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--t1)
}

.rp-act-w {
    background: #fff;
    color: #000;
    border-color: #fff
}

.rp-act-w:hover {
    background: #ddd;
    color: #000;
    transform: translateY(-1px)
}

/* Minimized tab */
.rp-minimized-tab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 260;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--t1);
    font-family: var(--font);
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: .3s var(--ease);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.rp-minimized-tab:hover {
    background: rgba(20, 20, 20, 0.95);
    border-color: var(--border-h);
    transform: translateY(-2px)
}

.rp-tab-expand {
    font-size: .55rem;
    opacity: .5
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(70px);
    padding: 8px 18px;
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-family: var(--font);
    font-size: .78rem;
    font-weight: 500;
    color: var(--t1);
    z-index: 9999;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1)
}

.toast.show {
    transform: translateX(-50%) translateY(0)
}

/* ========== 3D TILT CTA CARD ========== */
.tilt-sec {
    padding: 60px 24px 90px;
    perspective: 1500px;
}

.tilt-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.tilt-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 60px 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tilt-content {
    position: relative;
    z-index: 20;
    transform: translateZ(30px);
}

.tilt-h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tilt-p {
    font-size: 0.9rem;
    color: var(--t2);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Floating Cards attached to the Tilt Card */
.float-card {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.float-bl {
    bottom: -60px;
    left: -50px;
    width: 320px;
    height: 170px;
    z-index: 10;
}

.float-tr {
    top: -40px;
    right: -40px;
    width: 240px;
    height: 120px;
    z-index: 10;
}

.float-card-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1499856871958-5b9627545d1a?auto=format&fit=crop&q=80&w=600');
    /* Paris dark */
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) grayscale(100%);
}

.float-bg-2 {
    background-image: url('https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&q=80&w=600');
    /* Tokyo dark */
}

.float-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.float-card-content {
    position: relative;
    z-index: 5;
    padding: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-align: left;
}

.fc-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 2px;
}

.fc-coord {
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 500;
    margin-bottom: 6px;
}

.fc-conf {
    font-size: 0.6rem;
    color: var(--t2);
    margin-bottom: 8px;
}

.fc-tags {
    display: flex;
    gap: 4px;
}

.fc-tags span {
    font-size: 0.55rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
@media(max-width:900px) {
    .f-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:640px) {
    .nav-link {
        display: none
    }

    .f-grid {
        grid-template-columns: 1fr
    }

    .steps {
        flex-direction: column;
        align-items: center
    }

    .step-arr {
        transform: rotate(90deg);
        padding: 4px 0
    }

    .step {
        max-width: 100%
    }

    .rp {
        width: 100vw
    }

    .hero-scroll {
        min-height: 120vh
    }

    .scroll-card-inner {
        height: 260px
    }
}

/* ─── Drawing Tools ─── */
.mc-sep {
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 4px auto;
}

.draw-tools {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 1;
}

.draw-tools.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.mc-btn.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    color: #60a5fa !important;
}

.mc-btn-danger:hover {
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ef4444 !important;
}

.distance-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4ade80;
    z-index: 100;
    pointer-events: none;
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
}

.distance-label.hidden {
    display: none;
}

/* ─── Try Demo Samples ─── */
.demo-samples {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ds-lbl {
    font-size: 0.8rem;
    color: var(--t3);
    font-weight: 500;
}

.ds-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ds-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--t2);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.ds-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

.ds-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ─── Cinematic Intro Screen ─── */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    transform-origin: center center;
}

.intro-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.5);
}

.intro-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #10b981;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1;
    opacity: 0.15;
    pointer-events: none;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-all;
}

.intro-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 2;
}

.intro-logo {
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: 0.25em;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.intro-logo.show {
    opacity: 1;
    transform: scale(1);
}

.intro-globe {
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease 0.3s;
    color: var(--t1);
}

.intro-globe.show {
    opacity: 1;
    transform: scale(1.5) rotate(360deg);
    transition: all 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.intro-globe svg {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation: pulse-globe 2s infinite alternate;
}

@keyframes pulse-globe {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
        transform: scale(1.05);
    }
}