
:root {
    --bg: #000;
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.62);
    --faint: rgba(255,255,255,0.38);
    --line: rgba(255,255,255,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    }

html {
    height: 100%;
    overflow: hidden; /* Prevent native scroll to allow smooth scroll hijacking */
}

body {
    background: #000;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    height: 100%;
    overflow: hidden; /* Hide native scrollbar */
    position: relative;
}

.star-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/starfield.png') center/cover no-repeat;
    opacity: 0.8;
    z-index: -1;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    pointer-events: none;
}

/* Content Wrapper */
#content-wrapper {
    position: relative;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    z-index: 1;
}

/* NAV */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 48px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.28) 60%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

.navbar img.logo,
.navbar .nav-links {
    pointer-events: auto;
}

.navbar img.logo {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: #fff;
}

.nav-separator {
    color: rgba(255,255,255,0.3);
    font-size: 15px;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.hero-flex {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.planet-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 46%;
    max-width: 620px;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    background: #000;
}

.planet-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-inner {
    flex: 0 1 640px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero h1 {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 720px;
}

.hero p + p {
    margin-top: 14px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    z-index: 2;
    text-decoration: none;
    cursor: pointer;
}

/* SECTIONS */
section {
    padding: 140px 24px;
    position: relative;
}

section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 1px;
    background: var(--line);
}

section#intent::after {
    display: none;
}

section#intent {
    border-top: 1px solid var(--line);
}

.container {
    max-width: 980px;
    margin: 0 auto;
}

.row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    align-items: start;
}

.row-title h2 {
    margin-bottom: 0;
}

h2 {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 14px;
}

ul {
    padding-left: 0;
    color: var(--muted);
    list-style: none;
}

li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 25px;
}

li::before {
    content: "»";
    position: absolute;
    left: 10px;
    color: var(--muted);
}

/* CLOSING */
.closing {
    text-align: center;
    padding: 160px 24px;
    border-top: 1px solid var(--line);
}

.closing-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 28px;
    display: block;
}

.closing h2 {
    font-size: 40px;
}

.closing p {
    max-width: 600px;
    margin: 0 auto;
}

/* FOOTER */
footer {
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--faint);
    font-size: 13px;
    border-top: 1px solid var(--line);
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.row-title.reveal {
    transition-delay: 0s;
}

.row > div:not(.row-title).reveal {
    transition-delay: 0.12s;
}

.closing .reveal:nth-child(1) { transition-delay: 0s; }
.closing .reveal:nth-child(2) { transition-delay: 0.1s; }
.closing .reveal:nth-child(3) { transition-delay: 0.2s; }

.hero-inner .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-inner .reveal:nth-child(2) { transition-delay: 0.28s; }
.hero-inner .reveal:nth-child(3) { transition-delay: 0.42s; }
.hero-inner .reveal:nth-child(4) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* CUSTOM SCROLLBAR (desktop only) */
.custom-scrollbar-track {
    position: fixed;
    top: 0;
    right: 0;
    width: 12px;
    height: 100%;
    z-index: 60;
    background: transparent;
    cursor: pointer;
}

.custom-scrollbar-thumb {
    position: absolute;
    right: 4px;
    width: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease;
    cursor: grab;
}

.custom-scrollbar-thumb:hover,
.custom-scrollbar-thumb.dragging {
    background: rgba(255, 255, 255, 0.55);
}

.custom-scrollbar-thumb.dragging {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .custom-scrollbar-track {
        display: none;
    }
}
@media (max-width: 768px) {
    .navbar {
        padding: 24px 24px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 13px;
    }

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

    .hero-flex {
        flex-direction: column-reverse;
        justify-content: center;
        padding: 0 24px;
        gap: 24px;
        text-align: center;
    }

    .hero-inner {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .planet-wrap {
        width: 70%;
        justify-content: center;
        opacity: 0.85;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    section {
        padding: 100px 24px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
