@font-face {
    font-family: 'NCLGasdrifo';
    src: url('./assets/fonts/NCLGasdrifo-Demo.otf') format('opentype');
}

/* ========== ROOT ========== */
:root {
    --bg: #040406;
    --brand: #FF1493;
    --brand-glow: rgba(255,20,147,0.3);
    --surface: rgba(255,255,255,0.025);
    --border: rgba(255,255,255,0.07);
    --text: #FFFFFF;
    --muted: #888899;
    --faint: rgba(255,255,255,0.04);
    --heading: 'NCLGasdrifo', sans-serif;
    --body: 'Inter', sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-font-smoothing:antialiased; }

html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }

body {
    background: transparent;
    color: var(--text);
    font-family: var(--body);
    overflow-x: hidden;
}

/* Background Gradient & Noise */
.noisy-gradient-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Using the "Sunset Glow" / exact orange gradient from the original component */
    background: radial-gradient(125% 125% at 50% 101%, rgba(245,87,2,1) 10.5%, rgba(245,120,2,1) 16%, rgba(245,140,2,1) 17.5%, rgba(245,170,100,1) 25%, rgba(238,174,202,1) 40%, rgba(202,179,214,1) 65%, rgba(148,201,233,1) 100%);
    pointer-events: none;
}
#noiseCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ========== SECTIONS ========== */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ──────────────────────────────────────
   SECTION 1: HERO
────────────────────────────────────── */
.hero-section { background: transparent; }

.navbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 60px;
    z-index: 100;
}

.logo {
    font-family: var(--heading);
    font-size: 28px;
    letter-spacing: 2px;
    background: linear-gradient(135deg,#fff,#888);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo span { -webkit-text-fill-color: var(--brand); }

.nav-contact {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    transition: color .2s;
}
.nav-contact:hover { color: #fff; }

.hero-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left */
.hero-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px 60px;
    z-index: 10;
    /* Smooth dark fade so text is perfectly readable, but without harsh lines */
    background: linear-gradient(90deg, rgba(6,6,12,0.95) 0%, rgba(6,6,12,0.7) 30%, rgba(6,6,12,0) 80%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 28px;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px var(--brand);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:.5; transform:scale(1.4); }
}

.hero-title {
    font-family: var(--heading);
    font-size: 76px;
    line-height: .95;
    letter-spacing: -1px;
    margin-bottom: 28px;
    background: linear-gradient(170deg, #FFFFFF 0%, #AAAAAA 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 400px;
    margin-bottom: 48px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Form */
.waitlist-form { width: 100%; max-width: 460px; }
.form-row {
    display: flex;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.form-row:focus-within {
    border-color: rgba(255,20,147,.35);
    box-shadow: 0 0 30px rgba(255,20,147,.08);
}
.email-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 20px;
    font-size: 15px;
    color: #fff;
    font-family: var(--body);
    outline: none;
}
.email-input::placeholder { color: #444450; }

.cta-btn {
    background: var(--brand);
    border: none;
    padding: 0 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, box-shadow .2s;
    white-space: nowrap;
}
.cta-btn:hover {
    background: #ff3da7;
    box-shadow: -4px 0 20px var(--brand-glow);
}
.btn-arrow { transition: transform .2s; }
.cta-btn:hover .btn-arrow { transform: translateX(3px); }

.form-msg {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}
.form-msg.success { color: #4ade80; }
.form-msg.error { color: #f87171; }

/* Scroll hint */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 56px;
    color: #444450;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.scroll-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #444450, transparent);
}

/* Right: Map World */
.hero-right {
    position: relative;
    overflow: hidden;
}

.map-world {
    position: absolute;
    inset: 0;
    background: transparent;
    perspective: 1500px;
}

/* Realistic 3D SVG City Grid */
.city-grid {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    transform: rotateX(calc(60deg - var(--mouse-y, 0) * 10deg)) rotateZ(calc(-35deg + var(--mouse-x, 0) * 12deg)) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.85;
    -webkit-mask-image: radial-gradient(circle at center, black 15%, transparent 60%);
    mask-image: radial-gradient(circle at center, black 15%, transparent 60%);
    animation: slowMapDrift 120s linear infinite;
}

@keyframes slowMapDrift {
    0% { background-position: 0 0; }
    100% { background-position: -200px -200px; }
}

.street-h, .street-v, .street-d {
    stroke: rgba(255,255,255,0.06);
    stroke-width: 1;
}
.street-h.major, .street-v.major { stroke: rgba(255,255,255,0.1); }
.street-d { stroke: rgba(255,255,255,0.04); }
.street-h.faint, .street-v.faint { stroke: rgba(255,255,255,0.03); }

.glow-route {
    stroke: rgba(255,20,147,0.35);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 4px rgba(255,20,147,0.5));
}

.block {
    fill: rgba(255,255,255,0.015);
    rx: 2;
}
.block.warm { fill: rgba(255,20,147,0.02); }

.moving-dot {
    fill: var(--brand);
    filter: drop-shadow(0 0 6px var(--brand));
}

/* Map Overlays - Removed black distortion per user request */
.map-fade-top { display: none; }
.map-fade-left { display: none; }
.map-fade-bottom { display: none; }

/* "You" Marker */
.you-marker {
    position: absolute;
    top: 53%;
    left: 40%;
    transform: translate(-50%,-50%);
    z-index: 20;
}
.you-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    animation: ringExpand 3s ease-out infinite;
}
@keyframes ringExpand {
    0% { width:16px;height:16px;opacity:.6; }
    100% { width:100px;height:100px;opacity:0; }
}
.you-dot {
    width: 14px; height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2), 0 0 20px rgba(255,255,255,0.4);
}
.you-label {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .5px;
}

/* Radius ring */
.radius-ring {
    position: absolute;
    top: 53%; left: 40%;
    width: 280px; height: 280px;
    border: 1px dashed rgba(255,20,147,0.2);
    border-radius: 50%;
    transform: translate(-50%,-50%) rotateX(calc(60deg - var(--mouse-y, 0) * 10deg)) rotateZ(calc(-35deg + var(--mouse-x, 0) * 12deg));
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 5;
}

/* Profile Pins */
.map-pin {
    position: absolute;
    z-index: 30;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: pinFloat 5s ease-in-out infinite alternate;
    cursor: pointer;
    /* Interactive Parallax */
    translate: calc(var(--mouse-x, 0) * var(--depth, 0px)) calc(var(--mouse-y, 0) * var(--depth, 0px));
    transition: translate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.map-pin:nth-child(odd) { animation-direction: alternate-reverse; }
.map-pin:hover .pin-card { opacity: 1; transform: translateY(0) scale(1); }

@keyframes pinFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.pin-1 { top: 30%; left: 55%; --depth: -25px; }
.pin-2 { top: 65%; left: 70%; animation-delay: 1s; --depth: 40px; }
.pin-3 { top: 45%; left: 80%; animation-delay: 2s; --depth: -10px; }
.pin-4 { top: 20%; left: 72%; animation-delay: .5s; --depth: 20px; }

.pin-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    flex-shrink: 0;
    object-fit: cover;
    background: #333;
}
.grad-pink { background: linear-gradient(135deg, #FF1493, #FF6B6B); }
.grad-cyan { background: linear-gradient(135deg, #00C9FF, #4FACFE); }
.grad-orange { background: linear-gradient(135deg, #FF8C42, #FFBE0B); }
.grad-green { background: linear-gradient(135deg, #06D6A0, #118AB2); }

.pin-card {
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 110px;
    opacity: 0;
    transform: translateY(4px) scale(.95);
    transition: all .3s ease;
    pointer-events: none;
}
.pin-1 .pin-card, .pin-3 .pin-card { opacity: 1; transform: none; }

.pin-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}
.pin-dist {
    font-size: 11px;
    color: var(--muted);
}
.online-now {
    font-size: 10px;
    color: #4ade80;
    margin-top: 4px;
    font-weight: 500;
}
.event-tag {
    font-size: 10px;
    color: var(--brand);
    margin-top: 4px;
    font-weight: 500;
}
.mutual-tag {
    font-size: 10px;
    color: #60a5fa;
    margin-top: 4px;
    font-weight: 500;
}

/* ──────────────────────────────────────
   SECTION 2: PROBLEM
────────────────────────────────────── */
.problem-section {
    background: rgba(7,7,9,0.5);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border);
}

.section-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
}
.section-inner.wide { max-width: 1100px; }

.label-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--muted);
    margin-bottom: 24px;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
}
.label-tag.pink {
    color: var(--brand);
    border-color: rgba(255,20,147,0.25);
    background: rgba(255,20,147,0.05);
}

.section-title {
    font-family: var(--heading);
    font-size: 56px;
    line-height: 1.1;
    background: linear-gradient(170deg,#fff 0%,#888 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}
.section-title em {
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, var(--brand), #ff6eb0);
    -webkit-background-clip: text; background-clip: text;
}

.section-sub {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 60px;
    font-weight: 300;
}

/* Stats */
.stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--faint);
}
.stat-card {
    flex: 1;
    padding: 40px 32px;
    text-align: center;
}
.stat-num {
    font-family: var(--heading);
    font-size: 52px;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #999);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.stat-num span { font-size: 30px; }
.stat-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 300;
}
.stat-divider {
    width: 1px;
    height: 80px;
    background: var(--border);
    flex-shrink: 0;
}

/* ──────────────────────────────────────
   SECTION 3: HOW IT WORKS
────────────────────────────────────── */
.how-section {
    background: rgba(5,5,8,0.5);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border);
}

.how-section .section-inner { text-align: center; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
}

.step-card {
    background: var(--faint);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
}
.step-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.step-card.featured {
    background: rgba(255,20,147,0.04);
    border-color: rgba(255,20,147,0.2);
}
.step-card.featured:hover { border-color: rgba(255,20,147,0.4); }

.step-num {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.step-icon {
    font-size: 28px;
    margin-bottom: 16px;
}
.step-title {
    font-family: var(--heading);
    font-size: 28px;
    color: #fff;
    margin-bottom: 14px;
    font-weight: normal;
}
.step-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 300;
}
.step-glow {
    position: absolute;
    bottom: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
    filter: blur(30px);
}
.step-glow.pink {
    background: var(--brand-glow);
}

/* ──────────────────────────────────────
   SECTION 4: FEATURES BENTO
────────────────────────────────────── */
.features-section {
    background: rgba(4,4,6,0.5);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border);
}
.features-section .section-inner { text-align: left; }
.features-section .section-title { text-align: left; }
.features-section .label-tag { display: block; text-align: left; }

.features-bento {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    margin-top: 48px;
}

.bento-card {
    background: var(--faint);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    transition: border-color .3s;
    position: relative;
    overflow: hidden;
}
.bento-card:hover { border-color: rgba(255,255,255,0.12); }

.bento-large {
    grid-row: span 2;
}
.bento-wide {
    grid-column: span 3;
    background: rgba(255,20,147,0.03);
    border-color: rgba(255,20,147,0.12);
}
.pink-card {
    background: rgba(255,20,147,0.04);
    border-color: rgba(255,20,147,0.15);
}

.bento-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 14px;
}
.bento-card h3 {
    font-family: var(--heading);
    font-size: 26px;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}
.bento-wide h3 {
    font-size: 20px;
    color: var(--muted);
}
.bento-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 300;
}

/* Mini map inside bento */
.bento-visual.map-mini {
    position: absolute;
    bottom: 24px; right: 24px;
    width: 140px; height: 100px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.mini-grid-line {
    position: absolute;
    background: rgba(255,255,255,0.05);
}
.mini-grid-line.h { top: 50%; left: 0; right: 0; height: 1px; }
.mini-grid-line.v { left: 50%; top: 0; bottom: 0; width: 1px; }
.mini-dot {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    transform: translate(-50%,-50%);
}
.mini-dot.a { background: #00C9FF; top: 30%; left: 30%; box-shadow: 0 0 8px #00C9FF; }
.mini-dot.b { background: var(--brand); top: 70%; left: 65%; box-shadow: 0 0 8px var(--brand); }
.mini-dot.self { background: #fff; top: 50%; left: 50%; box-shadow: 0 0 10px #fff; width:10px; height:10px; }

/* ──────────────────────────────────────
   SECTION 5: FINAL CTA
────────────────────────────────────── */
.final-section {
    background: rgba(4,4,6,0.5);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.final-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,20,147,0.06) 0%, transparent 70%);
    transform: translate(-50%,-50%);
    pointer-events: none;
}

.final-inner {
    text-align: center;
    padding: 80px 40px;
    max-width: 660px;
    margin: 0 auto;
    z-index: 1;
}

.final-title {
    font-family: var(--heading);
    font-size: 80px;
    line-height: .95;
    background: linear-gradient(170deg,#fff 0%,#888 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    margin-top: 16px;
}

.final-sub {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 44px;
    font-weight: 300;
    line-height: 1.7;
}

.final-form { max-width: 480px; margin: 0 auto 60px; }

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #333340;
    font-size: 13px;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: #333340;
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--muted); }

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .hero-left { padding: 120px 32px 60px; }
    .hero-title { font-size: 56px; }
    
    .steps-grid { grid-template-columns: 1fr; }
    .features-bento {
        grid-template-columns: 1fr 1fr;
    }
    .bento-large { grid-row: span 1; }
    .bento-wide { grid-column: span 2; }

    .section-title { font-size: 40px; }
    .final-title { font-size: 52px; }
    
    .stat-row { flex-direction: column; }
    .stat-divider { width: 100%; height: 1px; }
    
    html { scroll-snap-type: none; }
}

@media (max-width: 640px) {
    .navbar { padding: 24px 24px; }
    .hero-left { padding: 100px 24px 48px; }
    .hero-title { font-size: 44px; }
    
    .section-inner { padding: 60px 24px; }
    .section-title { font-size: 34px; }

    .form-row { flex-direction: column; border-radius: 12px; }
    .cta-btn { padding: 16px; justify-content: center; border-radius: 0 0 12px 12px; }

    .features-bento { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
}
