:root {
    /* Colors - Premium & Elegant Palette */
    --primary: #1e1b4b;
    /* Deep Indigo */
    --primary-bright: #2563eb;
    /* Electric Blue */
    --accent: #f97316;
    /* Sunset Orange */
    --secondary: #0f172a;
    --background: #fbfcfe;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.75);
    --text-main: #111827;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --border-light: rgba(229, 231, 235, 0.5);

    /* Typography - Refined */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing - Generous */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 56px;
    --space-3xl: 96px;

    /* Effects */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08);
    --shadow-md: 0 12px 20px -5px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 25px 40px -10px rgb(0 0 0 / 0.12);
    --radius-md: 14px;
    --radius-lg: 28px;
    --radius-full: 9999px;

    /* Animation Tokens */
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 800px;
}

/* Scroll Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.site-header {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header.scrolled {
    height: 75px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo span {
    color: var(--primary-bright);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-bright);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: var(--space-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #312e81 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(30, 27, 75, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px 0 rgba(30, 27, 75, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-bright);
    color: var(--primary-bright);
    background: transparent;
}

/* Layout Parts */
.section {
    padding: var(--space-3xl) 0;
}

.text-center {
    text-align: center;
}

/* Grid Helpers */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 640px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid {
        gap: var(--space-lg);
    }
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Decorative background elements */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.1;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}