/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f172a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #a855f7;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn,
.user-btn,
.menu-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: color 0.2s ease;
}

.search-btn:hover,
.user-btn:hover,
.menu-btn:hover {
    color: #ffffff;
}

.menu-btn {
    display: block;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 4xl;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    color: #a855f7;
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 2xl;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #7c3aed;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #6d28d9;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    border-color: #64748b;
}

/* Featured Section */
.featured {
    padding: 4rem 0;
}

.featured-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 4xl;
    margin: 0 auto;
}

.featured-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.featured-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #a855f7;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #9333ea;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.feature-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: #7c3aed;
}

.feature-icon {
    color: #a855f7;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #cbd5e1;
}

/* Articles Section */
.articles {
    padding: 4rem 0;
}

.articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.view-all {
    background: none;
    border: none;
    color: #a855f7;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: #9333ea;
}

.articles-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.article-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
}

.article-category {
    color: #a855f7;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background-color: #1e293b;
}

.newsletter-content {
    text-align: center;
    max-width: 2xl;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: md;
    margin: 0 auto;
}

.newsletter-input {
    padding: 0.75rem 1rem;
    background-color: #334155;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-input:focus {
    outline: none;
    border-color: #7c3aed;
}

.newsletter-btn {
    background-color: #7c3aed;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
    background-color: #6d28d9;
}

/* Footer */
.footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-input {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .menu-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 3fr;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}