/* Kernel Landing Page — Cinematic Observatory */

:root {
    --bg: #06060c;
    --surface: #0e0e18;
    --accent: #c05555;
    --accent-glow: rgba(192, 85, 85, 0.3);
    --text: #e8e8ed;
    --muted: #6b6b7b;
    --dim: #2a2a3a;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.ln-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(to bottom, rgba(6,6,12,0.9) 0%, rgba(6,6,12,0) 100%);
    transition: background 0.3s;
}

.ln-nav-brand {
    color: #fff;
    text-decoration: none;
    -webkit-font-smoothing: auto;
}

.ln-logo {
    width: 24px;
    height: 24px;
}

.ln-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ln-nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.ln-nav-link:hover {
    color: var(--text);
}

.ln-nav-cta {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ln-nav-cta:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ---- HERO ---- */
.ln-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ln-hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 30%, var(--bg) 80%),
        linear-gradient(to bottom, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.ln-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 0 2rem;
    animation: heroFadeIn 1.2s ease-out both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.ln-headline {
    font-family: 'Geist Pixel Square', monospace;
    font-weight: 800;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.ln-headline-line {
    display: block;
}

.ln-headline-accent {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ln-subline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: heroFadeIn 1.2s ease-out 0.3s both;
}

.ln-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: heroFadeIn 1.2s ease-out 0.5s both;
}

/* ---- BUTTONS ---- */
.ln-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.ln-btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.ln-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.ln-btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--dim);
}

.ln-btn-ghost:hover {
    border-color: var(--muted);
    color: var(--text);
}

.ln-btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ---- SCROLL HINT ---- */
.ln-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--dim);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: hintBounce 2s ease-in-out infinite;
    transition: opacity 0.5s;
}

.ln-scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes hintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- VALUE PROPS ---- */
.ln-props {
    padding: 8rem 0 8rem 2.5rem;
    max-width: none;
    margin: 0;
}

.ln-props-split {
    display: grid;
    grid-template-columns: minmax(360px, 520px) 1fr;
    gap: 3rem;
    align-items: center;
}

.ln-props-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: max(0px, calc((100vw - 1400px) / 2));
}

.ln-props-preview {
    position: relative;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-right: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ln-props-preview-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

.ln-props-frame {
    width: 100%;
    height: 900px;
    border: none;
    pointer-events: none;
    display: block;
}

.ln-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.ln-prop {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s, background 0.3s;
}

.ln-prop:hover {
    border-color: rgba(192, 85, 85, 0.15);
    background: rgba(192, 85, 85, 0.03);
}

.ln-prop h3 {
    font-family: 'Geist Pixel Square', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.ln-prop p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ln-prop em {
    color: var(--text);
    font-style: normal;
    font-weight: 500;
}

.ln-prop-icon {
    display: block;
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.ln-prop-stat {
    display: block;
    font-family: 'Geist Pixel Square', monospace;
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

/* ---- HOW IT WORKS ---- */
/* ---- EXPLORE (HOW IT WORKS + MAP) ---- */
.ln-explore {
    padding: 8rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.ln-explore-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.ln-explore-heading {
    font-family: 'Geist Pixel Square', monospace;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.ln-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ln-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ln-step-num {
    font-family: 'Geist Pixel Square', monospace;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.4;
    flex-shrink: 0;
    width: 2.5rem;
}

.ln-step p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.ln-explore-cta {
    margin-top: 2.5rem;
}

.ln-explore-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ln-explore-map-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.ln-explore-map-hint {
    color: var(--dim);
    font-size: 0.65rem;
}

.ln-teaser-wrap {
    position: relative;
    width: 100%;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    cursor: grab;
}

.ln-teaser-wrap:active {
    cursor: grabbing;
}

#teaser-canvas {
    width: 100%;
    height: 100%;
}

.ln-teaser-tooltip {
    display: none;
    position: absolute;
    background: rgba(14, 14, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem;
    gap: 0.6rem;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    max-width: 250px;
}

.ln-teaser-tooltip img {
    width: 36px;
    height: 54px;
    border-radius: 3px;
    object-fit: cover;
}

#teaser-tooltip-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

#teaser-tooltip-meta {
    font-size: 0.7rem;
    color: var(--muted);
}

.ln-teaser-legend {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
    font-size: 0.6rem;
    color: var(--muted);
    z-index: 5;
}

.ln-legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ln-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}


/* ---- FINAL CTA ---- */
.ln-final {
    padding: 10rem 2.5rem;
    text-align: center;
    position: relative;
}

.ln-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.ln-final-inner {
    position: relative;
    z-index: 1;
}

.ln-final h2 {
    font-family: 'Geist Pixel Square', monospace;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.ln-final p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ---- FOOTER ---- */
.ln-footer {
    text-align: center;
    padding: 2rem;
    color: var(--dim);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.ln-footer a {
    color: var(--muted);
    text-decoration: none;
}

/* ---- REVEAL ANIMATIONS ---- */
.ln-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ln-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .ln-nav {
        padding: 1rem 1.5rem;
    }

    .ln-props {
        padding: 4rem 1.5rem;
    }

    .ln-props-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ln-props-cards {
        padding-left: 0;
    }

    .ln-props-preview {
        order: -1;
        border-radius: 12px;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .ln-props-frame {
        height: 500px;
    }

    .ln-props-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ln-explore-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ln-step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ln-teaser-wrap {
        height: 350px;
    }

    .ln-hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
