/* Base Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #fafafa 0%, #f0f4f8 100%);
}

main {
    flex: 1;
}

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

a {
    text-decoration: none;
    color: #0a63d8;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: #0850b5;
}

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

.container>img {
    width: 100%;
}

/* Header */
.site-header {
    border-bottom: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0a63d8 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    background: linear-gradient(135deg, #0a63d8 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.site-nav a {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.site-nav a:hover {
    background: #f0f4f8;
}

.site-nav a.active {
    background: linear-gradient(135deg, #0a63d8 0%, #667eea 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 99, 216, 0.3);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #f9fafb;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.banner-decoration {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(165, 180, 252, 0.3);
}

.banner h1 {
    font-size: 48px;
    margin: 0 0 24px;
    line-height: 1.2;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner p {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.7;
    color: #cbd5e1;
}

.banner-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #0a63d8 0%, #667eea 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(10, 99, 216, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 99, 216, 0.5);
}

.btn-primary.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

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

.banner-image {
    justify-self: end;
}

.image-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Stats Section */
.stats-section {
    background: #fff;
    padding: 48px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #0a63d8 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 40px;
    margin: 0 0 16px;
    font-weight: 800;
    color: #111827;
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0a63d8 0%, #667eea 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #0a63d8;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 20px;
    margin: 0 0 12px;
    color: #111827;
    font-weight: 700;
}

.category-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
}

.category-count {
    display: inline-block;
    background: #f0f4f8;
    color: #0a63d8;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 80px 24px;
}

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

.featured-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #0a63d8;
}

.featured-card.highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    border-color: transparent;
}

.featured-card.highlight h3 a {
    color: #fff;
}

.featured-card.highlight p {
    color: #cbd5e1;
}

.featured-card.highlight .tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.featured-card.highlight .reading-time {
    color: #cbd5e1;
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.featured-card h3 {
    font-size: 22px;
    margin: 0 0 12px;
    font-weight: 700;
}

.featured-card h3 a {
    color: #111827;
}

.featured-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.reading-time {
    font-size: 13px;
    color: #6b7280;
}

/* Tutorials Section */
.tutorials-section {
    background: #fff;
    padding: 80px 24px;
}

.tutorial-category {
    margin-bottom: 48px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e5e7eb;
}

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

.tutorial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    color: #111827;
}

.tutorial-item:hover {
    background: #fff;
    border-color: #0a63d8;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(10, 99, 216, 0.15);
}

.item-title {
    font-weight: 600;
    font-size: 15px;
}

.item-arrow {
    font-size: 20px;
    color: #0a63d8;
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 80px 24px;
    margin: 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    color: #fff;
    margin: 0 0 16px;
    font-weight: 800;
}

.cta-content p {
    font-size: 18px;
    color: #cbd5e1;
    margin: 0 0 32px;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 14px;
    color: #6b7280;
}

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

.footer-links a {
    color: #6b7280;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0a63d8;
}

/* Page Styles (keeping existing) */
.page-layout {
    padding: 24px 0;
}

.page-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
    gap: 32px
}

.page-title {
    font-size: 24px;
    margin: 0 0 12px
}

.page-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px
}

.page-main img.page-hero {
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb
}

.page-main h2 {
    font-size: 18px;
    margin: 20px 0 8px
}

.page-main p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px;
    color: #111827
}

.page-main ul {
    padding-left: 18px;
    margin: 0 0 12px
}

.page-main li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 4px
}

.sidebar {
    font-size: 14px;
    color: #4b5563
}

.sidebar-section {
    margin-bottom: 16px
}

.sidebar-section h3 {
    font-size: 14px;
    margin: 0 0 8px
}

.sidebar-section a {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #0a63d8
}

.legal-page main {
    padding: 24px 16px
}

.legal-page h1 {
    font-size: 24px;
    margin: 0 0 12px
}

.legal-page h2 {
    font-size: 18px;
    margin: 20px 0 8px
}

.legal-page p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px;
    color: #111827
}

.legal-page ul {
    padding-left: 18px;
    margin: 0 0 12px
}

.legal-page li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 4px
}

.legal-hero {
    max-width: 520px;
    margin: 0 auto 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb
}

@media(max-width:768px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 8px 0;
        height: 100vh;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 8px 5px;
    }

    .banner {
        padding: 48px 0;
    }

    .banner h1 {
        font-size: 32px;
    }

    .banner p {
        font-size: 16px;
    }

    .banner-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .banner-image {
        justify-self: center;
    }

    .banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .banner-actions .btn-primary,
    .banner-actions .btn-secondary {
        text-align: center;
        width: fit-content;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .section {
        padding: 48px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

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

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .page-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-links {
        flex-direction: column;
        padding: 0 5px;
    }
}