@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
    background: #0c0c0c;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════ LANDING ══════ */
#landing {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease;
}

#landing.fade-out { opacity: 0; pointer-events: none; }

#polvoCanvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* Landing content (subtitle + CTA) */
.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    opacity: 0;
    pointer-events: none;
    animation: fadeUp 2s ease 1.8s forwards;
    transition: opacity 0.4s ease;
}

.subtitle {
    font-weight: 200;
    font-size: 0.72rem;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.cta {
    cursor: pointer;
    padding: 0.72rem 2.4rem;
    border: 1px solid rgba(255,255,255,0.18);
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: background 0.4s, color 0.4s, border-color 0.4s;
    pointer-events: auto;
}

.cta:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

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

/* ══════════════════════════════════════════════════ HOME ═════ */
#home {
    min-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease 0.3s;
}

#home.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1000px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo svg {
    height: 18px;
    width: auto;
    fill: #fff;
    display: block;
    transition: opacity 0.3s;
}
.nav-logo:hover svg { opacity: 0.6; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }

.nav-links .nav-cta {
    padding: 0.5rem 1.3rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    color: rgba(255,255,255,0.8);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-links .nav-cta:hover {
    background: #fff;
    color: #0c0c0c;
    border-color: #fff;
}

/* Burger (mobile) */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 1px;
    background: #fff;
    transition: opacity 0.3s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind hero text */
.hero::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 820px;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    font-weight: 200;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.45s forwards;
}

.hero-sub {
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.65s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.85s forwards;
}

.btn-primary {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    background: #fff;
    color: #0c0c0c;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: background 0.35s, color 0.35s, transform 0.3s;
}
.btn-primary:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: border-color 0.35s, color 0.35s, transform 0.3s;
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 1s ease 1.2s forwards;
}
.hero-scroll span {
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}
.scroll-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.5);
    animation: scrollSlide 2s ease-in-out 1.5s infinite;
}
@keyframes scrollSlide {
    from { left: -100%; }
    to   { left: 100%; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    #navbar { 
        padding: 0.8rem 1.5rem; 
        width: 95%; 
        top: 1rem;
    }

    .nav-links { display: none; }

    .nav-burger { display: flex; }

    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .hero-scroll { left: 1.5rem; }
}
