:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --accent: #bf00ff;
    --bg-dark: #050a14;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* Typography */
h1 { font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 1.5rem; }
p { font-size: 1.125rem; }
.text-center { text-align: center; }

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

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.4);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    z-index: -1;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

/* Features */
.features {
    padding: 8rem 0;
}

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

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* How it Works */
.glass-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, transparent, rgba(112, 0, 255, 0.05), transparent);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.step-list {
    list-style: none;
    margin-top: 2rem;
}

.step-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Code Preview */
.code-preview {
    padding: 1.5rem;
    border-radius: 12px;
    font-family: var(--font-mono);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.file-name {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

pre {
    color: #a5d6ff;
    padding: 0.5rem;
}

.keyword { color: #ff7b72; }
.function { color: #d2a8ff; }

.code-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
}

/* CTA Section */
.cta-section {
    padding: 10rem 0;
}

.cta-group {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-group code {
    background: #1e1e1e;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: var(--primary);
    font-family: var(--font-mono);
    border: 1px solid var(--glass-border);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 30px;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.animate-fade-in {
    opacity: 0;
}

.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Article Styles */
.small-hero {
    height: 40vh;
    min-height: 300px;
}

.article-body {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.prose h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.prose p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

.prose .lead {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.prose ol, .prose ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.prose li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.glass-code {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.pill {
    padding: 0.5rem 1.25rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.prose th, .prose td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.prose th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.prose tr:last-child td {
    border-bottom: none;
}

.prose code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* Mermaid */
.mermaid-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
}

.mermaid {
    background: transparent !important;
}

@media (max-width: 968px) {
    h1 { font-size: 3rem; }
    .split-layout { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
