/* Base Styles & Variables */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #0d9488;
    --secondary-light: #14b8a6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --text-base: 1rem;
    --text-sm: 0.875rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.btn--primary {
    background-color: var(--primary);
    color: white;
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn--outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn--outline:hover {
    background-color: rgba(37, 99, 235, 0.1);
    text-decoration: none;
}

/* Header */
.header {
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--text-xl);
    line-height: 1.2;
}

.logo__subtext {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--text-secondary);
}

/* Navigation */
.nav__list {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav__link:hover, .nav__link.active {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero__content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
    color: var(--text-primary);
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.hero__cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero__illustration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 600px;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background-color: var(--surface);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-card__text {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Articles Section */
.articles {
    padding: var(--space-3xl) 0;
    background-color: var(--background);
}

.articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card__image {
    height: 180px;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.article-card__excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.article-card__link {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.article-card__link::after {
    content: '→';
    margin-left: 0.5em;
    transition: transform 0.2s ease;
}

.article-card__link:hover::after {
    transform: translateX(3px);
}

/* Footer */
.footer {
    background-color: var(--surface);
    padding: var(--space-3xl) 0 var(--space-md);
    border-top: 1px solid var(--border);
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer__nav-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer__nav-list {
    list-style: none;
}

.footer__nav-list li {
    margin-bottom: var(--space-sm);
}

.footer__nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer__nav-list a:hover {
    color: var(--primary);
    text-decoration: none;
}

.partner-link {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--background);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.partner-link:hover {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
    opacity: 1;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -20px;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero__illustration {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin-top: var(--space-xl);
        transform: none;
        top: auto;
        right: auto;
    }
    
    .hero__content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero__cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--surface);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 6rem 2rem 2rem;
        z-index: 900;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .nav__link {
        display: block;
        padding: var(--space-sm);
    }
    
    .features__grid,
    .articles__grid,
    .footer__top {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero__subtitle {
        font-size: var(--text-lg);
    }
    
    .hero__cta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
