:root {
    --primary: #3b82f6;
    /* Blue-500 */
    --primary-dark: #2563eb;
    /* Blue-600 */
    --secondary: #1e293b;
    /* Slate-800 */
    --text: #334155;
    /* Slate-700 */
    --text-light: #64748b;
    /* Slate-500 */
    --bg: #ffffff;
    --bg-light: #f8fafc;
    /* Slate-50 */
    --bg-dark: #0f172a;
    /* Slate-900 */
    --border: #e2e8f0;
    /* Slate-200 */

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}



.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.mt-4 {
    margin-top: 1.5rem;
}

/* Hugging Face Section */
.huggingface-section {
    padding: 80px 0;
    background: #fffcf4;
    border-top: 1px solid #fef3c7;
}

.hf-text {
    color: #facc15;
    font-size: 1.2em;
    vertical-align: middle;
}

.hf-card {
    background: white;
    border: 1px solid #fef3c7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hf-card:hover {
    border-color: #facc15;
}



/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
}

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

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

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: white;
}

.btn-outline:hover {
    border-color: var(--text-light);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.05rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
}

.logo img {
    height: 32px;
    width: auto;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-trigger i {
    font-size: 0.8em;
    margin-left: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.dropdown-content a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(120deg, #1e3a8a 0%, #3b82f6 50%, #93c5fd 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Utilities for Hero */
.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.text-white {
    color: white !important;
}

.text-white-opacity {
    color: rgba(255, 255, 255, 0.9) !important;
}

.badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-white {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

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

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Code Window */
.code-window {
    background: #1e1e1e;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    color: #e2e8f0;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.9rem;
}

.window-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: #888;
}

.window-body {
    padding: 1.5rem;
}

.key {
    color: #569cd6;
}

.string {
    color: #ce9178;
}

.const {
    color: #dcdcaa;
}

/* Features */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

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

.card {
    padding: 1rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blue {
    background: #eff6ff;
    color: var(--primary);
}

.purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.green {
    background: #f0fdf4;
    color: #22c55e;
}

.orange {
    background: #fff7ed;
    color: #f97316;
}

/* Modules */
.bg-light {
    background: var(--bg-light);
    padding: 80px 0;
}

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

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

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.module-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.module-list {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.module-list li {
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    color: var(--text);
    border: 1px solid var(--border);
}

/* Quickstart */
.quickstart {
    padding: 80px 0;
}

.code-block-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.code-block {
    background: var(--secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
    color: #e2e8f0;
}

.code-header {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

pre {
    font-family: 'Menlo', monospace;
}

.copy-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Community */
.bg-dark {
    background: var(--bg-dark);
    padding: 100px 0;
    color: white;
}

.bg-dark h2 {
    color: white;
    margin-bottom: 1rem;
}

.bg-dark p {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.copyright {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}