/* ============================================================================
   CSS Variables
   ============================================================================ */
:root {
    /* Colors */
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a24;
    --color-surface: #1e1e2a;
    --color-surface-hover: #252532;
    --color-border: #2a2a3a;
    --color-border-light: #3a3a4a;

    --color-text: #ffffff;
    --color-text-secondary: #a0a0b0;
    --color-text-tertiary: #6a6a7a;

    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-primary-glow: rgba(99, 102, 241, 0.4);

    --color-accent: #22d3ee;
    --color-accent-glow: rgba(34, 211, 238, 0.3);

    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #22d3ee 50%, #a855f7 100%);
    --gradient-glow: radial-gradient(ellipse at center, var(--color-primary-glow) 0%, transparent 70%);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px var(--color-primary-glow);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================================
   Utilities
   ============================================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   Animations
   ============================================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--color-primary-glow); }
    50% { box-shadow: 0 0 40px var(--color-primary-glow), 0 0 60px var(--color-accent-glow); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* AOS-like scroll animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-down"] {
    transform: translateY(-40px);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    animation: gradientShift 3s ease infinite;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

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

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

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

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

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

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

/* ============================================================================
   Navigation
   ============================================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a:not(.btn) {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    color: var(--color-text);
}

.nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    transition: all var(--transition-base);
}

.nav-github:hover {
    background: var(--color-surface-hover);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
                radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-primary-light);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero-visual {
    position: relative;
}

/* Code Window */
.code-window {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(99, 102, 241, 0.1);
    animation: float 6s ease-in-out infinite;
}

.code-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.code-dots {
    display: flex;
    gap: var(--space-sm);
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca40; }

.code-title {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

.code-content {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content code {
    display: block;
}

.code-keyword { color: #c792ea; }
.code-string { color: #a5d6ff; }
.code-function { color: #7ee787; }
.code-comment { color: #6a737d; }
.code-boolean { color: #79c0ff; }
.code-number { color: #f2cc60; }

/* ============================================================================
   Logos Section
   ============================================================================ */
.logos {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.logos-title {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3xl);
}

.logo-item {
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.logo-item:hover {
    opacity: 1;
}

.logo-text-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* ============================================================================
   Section Styles
   ============================================================================ */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

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

/* ============================================================================
   Features Section
   ============================================================================ */
.features {
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

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

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.feature-list li {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    padding-left: var(--space-md);
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

/* ============================================================================
   How It Works Section
   ============================================================================ */
.how-it-works {
    background: var(--color-bg-secondary);
}

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

.step {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.step-code {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent);
}

/* ============================================================================
   SDK Section
   ============================================================================ */
.sdk-section {
    background: var(--color-bg);
}

.sdk-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
}

.sdk-content .section-title {
    text-align: left;
}

.sdk-content .section-description {
    text-align: left;
}

.sdk-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.sdk-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-secondary);
}

.sdk-feature svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-success);
    flex-shrink: 0;
}

.sdk-code-examples {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.code-tabs {
    display: flex;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.code-tab {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    transition: all var(--transition-base);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.code-tab:hover {
    color: var(--color-text-secondary);
}

.code-tab.active {
    color: var(--color-primary-light);
    border-bottom-color: var(--color-primary);
}

.code-panels {
    padding: var(--space-lg);
}

.code-panel {
    display: none;
}

.code-panel.active {
    display: block;
}

.code-panel pre {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    overflow-x: auto;
}

/* ============================================================================
   Architecture Section
   ============================================================================ */
.architecture {
    background: var(--color-bg-secondary);
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.arch-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.arch-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.arch-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-md);
}

.arch-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary-light);
}

.arch-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.arch-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================================================
   CTA Section
   ============================================================================ */
.cta {
    position: relative;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
}

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

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.cta-code {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs);
    color: white;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.copy-btn:hover {
    opacity: 1;
}

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin: var(--space-md) 0;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

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

/* ============================================================================
   Responsive Styles
   ============================================================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

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

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

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

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

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

    .sdk-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .sdk-content {
        text-align: center;
    }

    .sdk-content .section-title,
    .sdk-content .section-description {
        text-align: center;
    }

    .sdk-features {
        align-items: center;
    }

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

/* Tablets */
@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Navigation */
    .nav {
        padding: var(--space-sm) 0;
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        padding: calc(70px + var(--space-xl)) var(--space-lg) var(--space-lg);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        gap: var(--space-md);
        z-index: 999;
    }

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

    .nav-links a:not(.btn) {
        font-size: 1.125rem;
        padding: var(--space-md);
        border-radius: var(--radius-lg);
        background: var(--color-surface);
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-md);
    }

    .nav-links .nav-github {
        width: 100%;
        border-radius: var(--radius-lg);
        justify-content: center;
        gap: var(--space-sm);
    }

    .nav-links .nav-github::after {
        content: 'GitHub';
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero */
    .hero {
        padding-top: calc(60px + var(--space-2xl));
        min-height: auto;
        padding-bottom: var(--space-3xl);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .stat {
        flex: 1;
        min-width: 80px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    /* Code Window (show simplified version on mobile) */
    .code-window {
        animation: none;
    }

    .code-content {
        padding: var(--space-md);
        font-size: 0.75rem;
        line-height: 1.6;
    }

    /* Logos */
    .logos {
        padding: var(--space-xl) 0;
    }

    .logos-grid {
        gap: var(--space-lg);
    }

    .logo-text-brand {
        font-size: 1rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature-card {
        padding: var(--space-lg);
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Steps */
    .step {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .step-code {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .step-code code {
        font-size: 0.75rem;
    }

    /* SDK */
    .code-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .code-tabs::-webkit-scrollbar {
        display: none;
    }

    .code-tab {
        padding: var(--space-sm) var(--space-md);
        flex-shrink: 0;
    }

    .code-panels {
        padding: var(--space-md);
    }

    .code-panel pre {
        font-size: 0.75rem;
        overflow-x: auto;
    }

    /* Architecture */
    .arch-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .arch-card {
        padding: var(--space-lg);
    }

    /* Footer */
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

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

    .footer-links {
        padding-top: var(--space-md);
        border-top: 1px solid var(--color-border);
    }

    .footer-links h4 {
        margin-bottom: var(--space-md);
    }

    .footer-links ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --space-4xl: 3rem;
        --space-3xl: 2rem;
        --space-2xl: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.6875rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }

    .hero-stats {
        justify-content: space-around;
    }

    .stat-value {
        font-size: 1.125rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .logos-title {
        font-size: 0.75rem;
    }

    .logos-grid {
        gap: var(--space-md);
    }

    .logo-text-brand {
        font-size: 0.875rem;
    }

    .section-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    .feature-list li {
        font-size: 0.8125rem;
    }

    .arch-icon {
        width: 48px;
        height: 48px;
    }

    .arch-icon svg {
        width: 24px;
        height: 24px;
    }

    .arch-card h3 {
        font-size: 0.9375rem;
    }

    .arch-card p {
        font-size: 0.8125rem;
    }

    .cta-title {
        font-size: 1.375rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .cta-code {
        font-size: 0.75rem;
        padding: var(--space-sm) var(--space-md);
        width: 100%;
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .feature-card,
    .arch-card {
        padding: var(--space-md);
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(60px + var(--space-xl)) 0 var(--space-xl);
    }

    .hero-stats {
        flex-direction: row;
    }

    .stat-divider {
        display: block;
    }
}

/* Improve touch targets */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }

    .nav-links a:not(.btn) {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .code-tab {
        min-height: 44px;
    }

    .footer-links a {
        display: inline-block;
        padding: var(--space-xs) 0;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .code-window {
        animation: none;
    }

    .hero-glow {
        animation: none;
    }

    .cta {
        animation: none;
    }
}
