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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --dark: #0f0f1a;
    --dark-light: #1a1a2e;
    --dark-lighter: #252542;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-dark: #64748b;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 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);
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--light);
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-orb {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--dark-light);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active,
.tab:hover {
    background: var(--dark-lighter);
    color: var(--light);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Featured Section */
.featured-section {
    margin-bottom: 80px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.featured-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.featured-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.featured-card.large {
    display: flex;
    flex-direction: column;
}

.featured-card.large .card-image {
    height: 280px;
}

.featured-card.large h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-image {
    height: 160px;
    width: 100%;
}

.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }

.card-content {
    padding: 24px;
}

.category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.featured-card h3,
.featured-card h4 {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light);
}

.featured-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* Articles Section */
.articles-section {
    margin-bottom: 80px;
}

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

.article-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.article-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light);
}

.article-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.article-card a:hover {
    text-decoration: underline;
}

/* Resources Section */
.resources-section {
    margin-bottom: 80px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.resource-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--light);
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: 10px;
}

.resource-card a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.resource-card a:hover {
    color: var(--primary);
}

/* Tools Section */
.tools-section {
    margin-bottom: 80px;
}

.tools-content {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tools-content .section-desc {
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tool-tag {
    display: inline-flex;
    padding: 10px 20px;
    background: var(--dark-lighter);
    color: var(--light);
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.tool-tag:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-section {
    margin-bottom: 80px;
}

.newsletter-content {
    background: var(--gradient-1);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

/* Footer */
.footer {
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Page Header (for subpages) */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page */
.about-content {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 40px;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

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

.about-text a:hover {
    text-decoration: underline;
}

.topic-list {
    list-style: none;
    margin-top: 20px;
}

.topic-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

.topic-list li:last-child {
    border-bottom: none;
}

.topic-list strong {
    color: var(--light);
    display: block;
    margin-bottom: 4px;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light);
}

.info-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-card.highlight {
    background: var(--gradient-1);
    border: none;
}

.info-card.highlight h4 {
    color: white;
}

.info-card.highlight a {
    color: rgba(255, 255, 255, 0.9);
}

.info-card.highlight a:hover {
    color: white;
}

.blog-links {
    list-style: none;
}

.blog-links li {
    margin-bottom: 8px;
}

.blog-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.team-section {
    padding: 40px 0 80px;
}

.section-intro {
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 600px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.1);
}

.partner-name {
    font-weight: 600;
    color: var(--light);
    margin-bottom: 4px;
}

.partner-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

.cta-section {
    padding: 0 0 80px;
}

.cta-content {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--gray);
    margin-bottom: 24px;
}

/* Resources Page */
.resources-full {
    padding: 60px 0;
}

.resources-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-desc {
    color: var(--gray);
    margin-bottom: 24px;
}

.resource-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.resource-item {
    background: var(--dark-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.resource-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.resource-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 8px;
}

.resource-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

/* Article Page */
.article-page {
    padding-bottom: 80px;
}

.article-header {
    padding: 140px 0 40px;
    text-align: center;
}

.article-header .category {
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--gray);
    font-size: 0.9rem;
}

.article-hero-image {
    height: 300px;
    margin-bottom: 40px;
}

.article-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 48px;
}

.article-body {
    max-width: 700px;
}

.lead {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 32px;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-body p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

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

.article-body li {
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-body a {
    color: var(--primary);
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-cta {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 48px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-cta h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.cta-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 100px;
}

.sidebar-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    margin-bottom: 10px;
}

.sidebar-card a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.sidebar-card a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-column {
        flex-direction: row;
    }
    
    .featured-column .featured-card {
        flex: 1;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1;
        min-width: 280px;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-content {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 280px;
        position: static;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .gradient-orb {
        width: 200px;
        height: 200px;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .featured-column {
        flex-direction: column;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .tools-content {
        padding: 32px 24px;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .about-sidebar {
        flex-direction: column;
    }

    .info-card {
        min-width: auto;
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 32px 24px;
    }

    .resource-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-hero-image {
        height: 200px;
    }

    .article-sidebar {
        flex-direction: column;
    }

    .sidebar-card {
        min-width: auto;
    }

    .cta-links {
        flex-direction: column;
    }

    .cta-links .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .resource-list-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Smooth scrolling offset for fixed nav */
html {
    scroll-padding-top: 100px;
}
