@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=DM+Mono:wght@300;400;500&display=swap');

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

:root {
    /* Brandbook colors */
    --purple-100: #f0ecf9;
    --purple-200: #c4b5fd;
    --purple-300: #a78bfa;
    --purple-400: #8b5cf6;
    --purple-500: #7c3aed;
    --purple-600: #6d28d9;
    --purple-700: #5b21b6;
    --magenta: #c026d3;
    
    --bg: #06030d;
    --surface: #0c0818;
    --surface-2: #140e24;
    --surface-3: #1c1430;
    --border: rgba(124,58,237,0.06);
    --border-h: rgba(124,58,237,0.18);
    --text: #f0ecf9;
    --text-s: #9f97b3;
    --text-d: #605878;
    
    --radius: 14px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg); color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; line-height: 1.7;
}

/* PARTICLES */
canvas#particles {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.page { position: relative; z-index: 1; }

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 2rem; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.4s ease;
}
nav.scrolled {
    background: rgba(6,3,13,0.9);
    backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-logo svg { height: 32px; width: auto; filter: drop-shadow(0 0 16px rgba(124,58,237,0.25)); }
.nav-logo .wordmark {
    font-size: 1.05rem; font-weight: 800; color: var(--text);
    letter-spacing: -0.04em;
}
.nav-logo .wordmark span { color: var(--purple-300); font-weight: 300; letter-spacing: 0.12em; font-size: 0.7rem; display: block; margin-top: -2px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    font-size: 0.78rem; font-weight: 500; color: var(--text-d);
    text-decoration: none; transition: color 0.3s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--purple-300); }
.nav-cta {
    font-size: 0.75rem; font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    padding: 0.5rem 1.2rem; border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,0.3); }

/* SECTIONS */
.s { padding: 6rem 1.5rem; position: relative; }
.c { max-width: 1000px; margin: 0 auto; }
.label {
    font-family: 'DM Mono', monospace; font-size: 0.65rem;
    color: var(--purple-400); text-transform: uppercase;
    letter-spacing: 0.2em; margin-bottom: 0.8rem;
}
.title {
    font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800;
    letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1rem;
}
.title span {
    background: linear-gradient(135deg, var(--purple-300), var(--magenta));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.desc {
    color: var(--text-s); font-size: 0.95rem;
    max-width: 560px; line-height: 1.85;
}
.sep { border-top: 1px solid var(--border); }

/* REVEAL */
.r { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.16,1,0.3,1); }
.r.v { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }
.rd4 { transition-delay: .4s; }

/* PAGE HERO (sub-pages) */
.page-hero {
    padding: 9rem 1.5rem 4rem; text-align: center; position: relative;
}
.page-hero .orb {
    position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none;
    width: 500px; height: 400px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.07), transparent 70%);
    top: -60px; left: 50%; transform: translateX(-50%);
}
.page-hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900;
    letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1.2rem;
    position: relative;
}
.page-hero h1 span {
    background: linear-gradient(135deg, var(--purple-300), var(--magenta));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero .desc { margin: 0 auto; text-align: center; position: relative; }

/* BUTTONS */
.btn {
    display: inline-block; font-weight: 700; font-size: 0.9rem;
    padding: 0.9rem 2rem; border-radius: 10px;
    text-decoration: none; transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: white;
    box-shadow: 0 8px 28px rgba(124,58,237,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,58,237,0.35); }
.btn-ghost {
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(124,58,237,0.15);
    color: var(--purple-300);
}
.btn-ghost:hover { background: rgba(124,58,237,0.14); transform: translateY(-1px); }

/* FOOTER */
footer {
    text-align: center; padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border);
}
footer p { font-size: 0.72rem; color: var(--text-d); }
footer a { color: var(--purple-400); text-decoration: none; }
footer .foot-links { margin-bottom: 0.8rem; display: flex; justify-content: center; gap: 1.5rem; }
footer .foot-links a { font-size: 0.72rem; color: var(--text-d); transition: color 0.3s; }
footer .foot-links a:hover { color: var(--text); }

/* HAMBURGER */
.hamburger {
    display: none; cursor: pointer; background: none; border: none;
    width: 36px; height: 36px; position: relative; z-index: 110;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span {
    display: block; width: 22px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-5px); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: rgba(6,3,13,0.97); backdrop-filter: blur(24px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 1.8rem; transition: right 0.35s ease; z-index: 105;
        border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1rem; }
    .nav-cta { display: inline-block !important; font-size: 0.85rem; padding: 0.6rem 1.5rem; }
    
    nav { padding: 0 1rem; }
    .s { padding: 3.5rem 1.2rem; }
    .page-hero { padding: 7rem 1.2rem 2.5rem; }
    .title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
    .desc { font-size: 0.88rem; }
    
    .nav-logo .wordmark { font-size: 0.9rem; }
    .nav-logo .wordmark span { font-size: 0.6rem; }
}
