* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-alt: #f9fafb;
    --border: #e5e7eb;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

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

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Email Signup */
.email-signup {
    padding: 40px 0;
}

.signup-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.signup-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.signup-box h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.signup-box > p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.signup-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.email-input:focus {
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.signup-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 16px;
}

.success-message {
    color: var(--success);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 20px;
}

/* Articles */
.articles {
    padding: 40px 0 60px;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Footer */
.footer {
    background: var(--background-alt);
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-content p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-nav {
    display: flex;
    gap: 16px;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-nav a:hover {
    color: var(--primary);
}

/* Article Page */
.article-hero {
    padding: 40px 0;
    background: var(--background-alt);
}

.article-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
}

.article-hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--text);
}

.article-body p {
    margin-bottom: 16px;
    color: var(--text);
}

.article-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

/* Terms Page */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.terms-content h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.terms-content .last-updated {
    color: var(--text-light);
    margin-bottom: 32px;
}

.terms-content h2 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
}

.terms-content p {
    margin-bottom: 16px;
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .email-input {
        min-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
