/* CSS Custom Properties */
:root {
    --primary: 210 100% 50%; /* #0066FF */
    --primary-dark: 210 100% 40%; /* #0052CC */
    --secondary: 195 100% 45%; /* #0099E6 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 210 24% 16%; /* #1A2332 */
    --text-secondary: 210 16% 40%; /* #5A6B7D */
    --text-muted: 210 12% 60%; /* #8A9BAE */
    --border: 210 16% 90%; /* #E5E9ED */
    --shadow: 210 40% 8%; /* #0F1419 */
    --success: 145 63% 49%; /* #16A34A */
    --warning: 38 92% 50%; /* #F59E0B */
    --error: 0 72% 51%; /* #DC2626 */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-secondary));
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-link {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
}

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

.btn-link {
    background: none;
    color: hsl(var(--text-secondary));
    padding: 8px 12px;
}

.btn-link:hover {
    color: hsl(var(--primary));
}

/* Navigation */
.navbar {
    background-color: hsl(var(--surface));
    box-shadow: 0 2px 10px hsla(var(--shadow), 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo, .footer-logo {
    height: 40px;
    width: auto;
}

.brand-text, .footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: hsl(var(--text-primary));
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: hsl(var(--primary));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--secondary) / 0.05) 100%);
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: hsl(var(--text-secondary));
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-svg {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: hsl(var(--surface));
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--text-primary));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px hsla(var(--shadow), 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

/* Comparison Preview */
.comparison-preview {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--surface)) 100%);
}

.comparison-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.comparison-highlights {
    list-style: none;
    margin: 2rem 0;
}

.comparison-highlights li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: hsl(var(--text-secondary));
}

.comparison-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: hsl(var(--success));
    font-weight: bold;
}

.comparison-chart {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Blog Preview */
.blog-preview {
    padding: 80px 0;
    background-color: hsl(var(--surface));
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.12);
}

.blog-card h3 a {
    text-decoration: none;
    color: hsl(var(--text-primary));
}

.blog-card h3 a:hover {
    color: hsl(var(--primary));
}

.read-more {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.newsletter-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    color: hsl(var(--text-primary));
}

.newsletter-form input::placeholder {
    color: hsl(var(--text-muted));
}

/* Footer */
.footer {
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-brand-text {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.social-links img:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 1rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn-primary {
    background-color: hsl(var(--primary));
    font-size: 0.875rem;
    padding: 8px 16px;
}

.cookie-buttons .btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    padding: 8px 16px;
}

.cookie-buttons .btn-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    padding: 8px 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsl(var(--surface));
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px hsla(var(--shadow), 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content,
    .comparison-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        order: 2;
        text-align: center;
    }
    
    .hero-image {
        order: 1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .newsletter-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero, .features, .comparison-preview, .blog-preview, .newsletter {
        padding: 40px 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styles */
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

/* Article Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
}
