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

:root {
    --primary: #DD5E89;
    --secondary: #ff943f;
    --text: #1a202c;
    --text-light: #2c2c2c;
    --text-muted: #718096;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --border: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-badge {
    padding: 0.25rem 0.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.btn-nav {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.btn-nav:hover {
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Hero */
.hero {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.announcement {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: slideDown 0.6s ease;
}

.announcement span a {
    text-decoration: none;
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: slideUp 0.8s ease 0.1s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease 0.2s backwards;
}

.btn-primary, .btn-secondary, .btn-white, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

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

.icon {
    width: 20px;
    height: 20px;
}

.stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease 0.3s backwards;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: #f093fb;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -10s;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features {
    background: var(--bg-alt);
}

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

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    gap: 4rem;
}

.screenshot-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.screenshot-item.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.screenshot-item.reverse .screenshot-image {
    order: 2;
}

.screenshot-image {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.screenshot-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

.screenshot-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.screenshot-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Get Started */
.get-started {
    background: var(--bg-alt);
}

.install-grid {
    display: grid;
    /* "Be 450px if you can, but never wider than the screen" */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 2rem;
}

.install-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.install-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.install-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.install-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.install-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.install-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.code-block {
    background: #2d3748;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.code-block pre {
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    line-height: 1.7;
}

.install-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.install-note code {
    padding: 0.25rem 0.5rem;
    background: var(--bg-alt);
    border-radius: 0.375rem;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

.install-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.full-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: gap 0.2s ease;
}

.full-guide-link:hover {
    text-decoration: underline;
    gap: 0.8rem;
}

.full-guide-link svg {
    transition: transform 0.2s ease;
}



/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.use-case-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

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

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.use-case-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.use-case-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

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

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-white:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-light);
    transition: all 0.2s;
}

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

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-meta {
    display: flex;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .screenshot-item, .screenshot-item.reverse {
        grid-template-columns: 1fr !important;
    }
    
    .screenshot-item.reverse .screenshot-image {
        order: 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
}

@media (max-width: 768px) {
    .nav-links {
        /* Remove display: none */
        display: flex; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        gap: 1rem;
        
        /* Transition settings */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        
        /* Ensure it stays above other content */
        z-index: 1000; 
    }

    .nav-links.active {
        /* Do NOT add display: flex here, it's already set above */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== Tutorials Section ===== */
.tutorials-preview {
    background: var(--bg-alt);
}

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

.tutorial-card {
    display: block;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.tutorial-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tutorial-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.tutorial-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tutorial-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.tutorials-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Tutorials Page ===== */
.tutorials-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

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

.page-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
}

.tutorials-list {
    padding: 4rem 0;
}

.tutorial-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.tutorial-card-large {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.tutorial-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.tutorial-card-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.tutorial-card-content {
    flex: 1;
}

.tutorial-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.tutorial-card-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tutorial-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tutorial-time, .tutorial-level {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===== Article Page ===== */
.article-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.article-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

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

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

.article-content code {
    padding: 0.25rem 0.5rem;
    background: var(--bg-alt);
    border-radius: 0.25rem;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

.article-content pre {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #2d3748;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.article-content pre code {
    padding: 0;
    background: none;
    color: #e2e8f0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background: var(--bg-alt);
    border-radius: 0 0.5rem 0.5rem 0;
}

.article-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--text);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.article-nav-item {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.article-nav-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-nav-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.article-nav-title {
    font-weight: 600;
    color: var(--text);
}

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

@media (max-width: 768px) {
    .tutorial-card-large {
        flex-direction: column;
    }
    
    .article-nav {
        flex-direction: column;
    }
}
