:root {
    /* ================= CORE BACKGROUND ================= */
    --bg-dark: #050b1a;        /* Midnight navy */
    --bg-soft: #0b1533;        /* Soft deep blue */

    /* ================= BLUE SYSTEM ================= */
    --blue-main: #2f6fff;
    --blue-soft: #6ea0ff;
    --blue-dark: #1e49b6;

    /* ================= TEXT ================= */
    --text-white: #ffffff;
    --text-muted: #b9c9ff;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BODY ================= */

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.75;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ================= TYPOGRAPHY ================= */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-white);
    letter-spacing: 0.08em;
    font-weight: 500;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 7vw, 9rem);
    line-height: 0.95;
    letter-spacing: 0.12em;
}

p {
    color: var(--text-white);
    font-weight: 400;
    max-width: 70ch;
}

.text-muted {
    color: var(--text-muted);
}

/* ================= META / SMALL CAPS ================= */

.sc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--blue-soft);
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 11, 26, 0.85);
    backdrop-filter: blur(18px);
    z-index: 1000;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-white);
    position: relative;
    text-decoration: none;
    opacity: 0.85;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--blue-main);
    transition: width 0.35s ease;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

/* ================= BUTTONS ================= */

.btn-ember {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 1.1rem 2.8rem;
    border: 1px solid rgba(47, 111, 255, 0.35);
    color: var(--text-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-ember:hover {
    background: var(--blue-main);
    color: var(--bg-dark);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(47, 111, 255, 0.45);
}

/* ================= SECTIONS ================= */

.page-section {
    min-height: 100vh;
    padding: 10rem 6%;
    background: linear-gradient(
        180deg,
        var(--bg-dark),
        var(--bg-soft)
    );
}

/* ================= CARDS ================= */

.card-container {
    background: var(--bg-soft);
    border: 1px solid rgba(47, 111, 255, 0.15);
    padding: 3rem;
    transition: all 0.6s ease;
}

.card-container:hover {
    transform: translateY(-6px);
    border-color: var(--blue-main);
    box-shadow: 0 22px 60px rgba(47, 111, 255, 0.18);
}

/* ================= ANIMATIONS ================= */

@keyframes riseSoft {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-story {
    animation: riseSoft 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--blue-main);
    border-radius: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

/* ================= SCROLL TRACKER ================= */

#scroll-tracker {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--blue-dark),
        var(--blue-soft)
    );
    z-index: 9999;
}
