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

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
    /* Colors (HSL Palette) */
    --color-bg-raw: 230, 35%, 6%;
    --color-bg: hsl(var(--color-bg-raw));
    --color-bg-secondary-raw: 230, 35%, 10%;
    --color-bg-secondary: hsl(var(--color-bg-secondary-raw));
    --color-panel-raw: 230, 35%, 14%;
    --color-panel: hsl(var(--color-panel-raw));
    
    --color-primary: #38b6ff; /* Logo Cyan */
    --color-primary-rgb: 56, 182, 255;
    --color-secondary: #1c7bb2; /* Logo Blue */
    --color-secondary-rgb: 28, 123, 178;
    --color-accent: #8ed1fc;
    
    --color-text-title: hsl(210, 20%, 98%);
    --color-text-body: hsl(210, 14%, 80%);
    --color-text-muted: hsl(210, 10%, 60%);
    
    --color-border-raw: 220, 20%, 20%;
    --color-border: hsla(220, 20%, 20%, 0.5);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    --glass-bg: rgba(var(--color-panel-raw), 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --site-width: 1240px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-body);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient glows */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-title);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
    letter-spacing: -0.03em;
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--color-text-body);
    font-size: 1.05rem;
}

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

a:hover {
    color: var(--color-text-title);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: clamp(60px, 8vw, 120px) 0;
    position: relative;
}

.section-header {
    max-width: 700px;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    margin-bottom: 16px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* Utility Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ==========================================================================
   SCROLL REVEALS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ==========================================================================
   SCROLLBAR & SELECTION
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-full);
    border: 2px solid var(--color-bg);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-panel);
}

::selection {
    background: rgba(var(--color-primary-rgb), 0.25);
    color: var(--color-text-title);
}

/* ==========================================================================
   MEDIA QUERIES (GRID BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
