/* CSS Variables - Modern Color Space (OKLCH) */
:root {
    --primary: oklch(60% 0.24 250);
    --primary-dark: oklch(50% 0.24 250);
    --secondary: oklch(70% 0.2 160);
    --text: oklch(20% 0.03 250);
    --text-light: oklch(95% 0.01 250);
    --background: oklch(98% 0.01 250);
    --card-bg: oklch(99% 0.01 250);
    --shadow-color: oklch(0% 0 0 / 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --container-width: min(1200px, 90vw);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Utility Classes */
.container {
    width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Header Styles */
.site-header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    transition: var(--transition);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* Navigation */
.primary-navigation {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-list a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a.active {
    opacity: 0.9;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a:focus::after,
.nav-list a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 5rem 0;
    text-align: center;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding-top: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Content Section */
.content-section {
    padding-bottom: 4rem;
}

.update-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.update-card ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-heading {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.social-links a {
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: color-mix(in oklch, var(--primary), white 15%);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: color-mix(in oklch, var(--primary), white 25%);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid color-mix(in oklch, var(--primary), white 15%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .primary-navigation {
        position: fixed;
        inset: 0 0 0 30%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: min(20vh, 10rem) 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        z-index: 100;
    }
    
    .primary-navigation[data-visible="true"] {
        transform: translateX(0%);
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-list a {
        font-size: 1.25rem;
    }
}

/* Container Queries */
@container (width > 600px) {
    .feature-card {
        padding: 2.5rem;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text: oklch(95% 0.01 250);
        --text-light: oklch(20% 0.03 250);
        --background: oklch(15% 0.01 250);
        --card-bg: oklch(20% 0.01 250);
    }
    
    .feature-card, .update-card {
        box-shadow: 0 4px 6px oklch(0% 0 0 / 0.3);
    }
}padding: 4rem 0;