@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

:root {
    /* Color Palette */
    --clr-bg-base: #0B0B0E;
    --clr-bg-glass: rgba(22, 22, 30, 0.4);
    --clr-bg-glass-hover: rgba(30, 30, 45, 0.6);
    --clr-bg-card: #13131A;
    
    --clr-primary: rgba(94, 23, 235, 0.85); /* #5e17eb softened */
    --clr-primary-glow: rgba(94, 23, 235, 0.25);
    
    --clr-secondary: rgba(137, 207, 240, 0.85); /* #89cff0 softened */
    --clr-secondary-glow: rgba(137, 207, 240, 0.25);
    
    --clr-text-main: #F3F4F6;
    --clr-text-muted: #9CA3AF;
    --clr-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-bg-base);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Animated Grid Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

/* Glow Blobs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.15;
}

.bg-glow-purple {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--clr-primary);
    animation: drift 15s infinite alternate ease-in-out;
}

.bg-glow-cyan {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--clr-secondary);
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
    color: var(--clr-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--clr-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
}

/* Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), #6C42FB);
    color: white;
    box-shadow: 0 4px 20px var(--clr-primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px var(--clr-primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF, var(--clr-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

code, pre {
    font-family: var(--font-mono);
}

code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

pre code {
    background: none;
    padding: 0;
}
