/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #161616;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --accent-blue: #4a9eff;
    --accent-purple: #8b5cf6;
    --accent-cyan: #22d3ee;
    --accent-green: #10b981;
    --gradient-1: linear-gradient(135deg, #4a9eff, #8b5cf6);
    --gradient-2: linear-gradient(135deg, #8b5cf6, #22d3ee);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(74, 158, 255, 0.3);
    color: #fff;
}

/* ═══════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: 1400px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
    border-bottom: 1px solid var(--border-subtle);
}

.nav--scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid var(--border-subtle);
}

.nav--no-transition {
    transition: none !important;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav__logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.5px;
}

.nav__logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.nav__link:hover {
    color: var(--text-primary);
}

.nav__cta {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav__cta:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__mobile-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu--open {
    display: flex;
}

.mobile-menu a {
    font-size: 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copy {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer__links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer__link {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   SHARED RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }

    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
