:root {
    /* Color Palette */
    --bg-deep: #020203;
    --bg-base: #050506;
    --bg-elevated: #0a0a0c;

    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);

    --foreground: #EDEDEF;
    --foreground-muted: #8A8F98;
    --foreground-subtle: rgba(255, 255, 255, 0.60);

    --accent: #5E6AD2;
    --accent-bright: #6872D9;
    --accent-glow: rgba(94, 106, 210, 0.3);

    --border-default: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.10);

    /* Typography */
    --font-stack: 'Inter', system-ui, sans-serif;

    /* Spacing & Layout */
    --nav-height: 80px;
}

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

body {
    background-color: var(--bg-base);
    color: var(--foreground);
    font-family: var(--font-stack);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

h1 {
    font-size: 4.5rem;
    /* text-7xl equivalent */
    line-height: 1.1;
    background: linear-gradient(to bottom, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

p {
    color: var(--foreground-muted);
    line-height: 1.6;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--foreground-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Background Layers */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Layer 1: Base Gradient */
#bg-base-gradient {
    z-index: -5;
    background: radial-gradient(ellipse at top, #0a0a0f 0%, #050506 50%, #020203 100%);
}

/* Layer 2: Noise */
#bg-noise {
    z-index: -4;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Layer 3: Blobs (Handled by JS inject or Canvas) -> Using CSS for simplicity & performance */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 10s ease-in-out infinite;
    z-index: -3;
}

.blob-1 {
    /* Primary Top Center */
    top: -10%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: var(--accent);
    opacity: 0.15;
    animation-delay: 0s;
}

.blob-2 {
    /* Left Side */
    top: 20%;
    left: -10%;
    width: 30vw;
    height: 30vw;
    background: #FF3366;
    /* Red hint */
    opacity: 0.08;
    animation-delay: -2s;
}

.blob-3 {
    /* Right Side */
    top: 40%;
    right: -10%;
    width: 35vw;
    height: 35vw;
    background: #33FF66;
    /* Green hint */
    opacity: 0.08;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(0, -30px) rotate(2deg);
    }
}

/* Layer 4: Grid */
#bg-grid {
    z-index: -2;
    opacity: 0.02;
    background-size: 64px 64px;
    background-image:
        linear-gradient(to right, white 1px, transparent 1px),
        linear-gradient(to bottom, white 1px, transparent 1px);
}



/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    background: rgba(5, 5, 6, 0.7);
    /* translucent bg-base */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
    z-index: 1000;
    /* Above particles */
}

.nav-logo {
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
}

font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.nav-links a {
    color: var(--foreground-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--foreground);
}

.page-container {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Card Styling */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 2.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: none;
    -webkit-text-fill-color: var(--foreground);
}

.card p {
    font-size: 0.95rem;
    color: var(--foreground-muted);
}

/* Spotlight Effect specific */
.spotlight-overlay {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    border-radius: inherit;
    /* Gradient handled by JS */
}