/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    /* Colors */
    --color-bg-dark: #0f172a;
    --color-bg-darker: #0b1120;
    --color-bg-slate: #111827;
    --color-primary: #06b6d4;
    --color-primary-dark: #0891b2;
    --color-secondary: #8b5cf6;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-border: rgba(148, 163, 184, 0.1);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Font sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-glow: 0 8px 32px rgba(6, 182, 212, 0.15);

    /* Transitions */
    --transition-base: 0.2s ease;
    --transition-slow: 0.5s ease;

    /* Theme-dependent (dark defaults) */
    --navbar-bg: rgba(11, 17, 32, 0.85);
    --code-bg: rgba(15, 23, 42, 0.9);
    --hero-gradient: linear-gradient(135deg, #0b1120 0%, #0f172a 50%, #1a1f35 100%);
    --heatmap-tooltip-bg: #1b1f23;
    --heatmap-tooltip-color: #e1e4e8;
    --heatmap-tooltip-border: rgba(255, 255, 255, 0.1);
    --heatmap-empty: rgba(255, 255, 255, 0.04);
    --heatmap-outline: rgba(255, 255, 255, 0.03);
    --heatmap-outline-hover: rgba(255, 255, 255, 0.3);
}

/* ===========================
   Light Theme
   =========================== */
[data-theme="light"] {
    --color-bg-dark: #f8fafc;
    --color-bg-darker: #f1f5f9;
    --color-bg-slate: #ffffff;
    --color-primary: #0891b2;
    --color-primary-dark: #0e7490;
    --color-secondary: #7c3aed;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-border: rgba(15, 23, 42, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 8px 32px rgba(8, 145, 178, 0.12);
    --navbar-bg: rgba(248, 250, 252, 0.85);
    --code-bg: #1e293b;
    --hero-gradient: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 50%, #e2e8f0 100%);
    --heatmap-tooltip-bg: #24292f;
    --heatmap-tooltip-color: #e1e4e8;
    --heatmap-tooltip-border: rgba(0, 0, 0, 0.15);
    --heatmap-empty: #ebedf0;
    --heatmap-outline: rgba(27, 31, 35, 0.06);
    --heatmap-outline-hover: rgba(27, 31, 35, 0.3);
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

ul {
    list-style: none;
}

/* ===========================
   Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    flex-shrink: 0;
}

.logo-icon {
    font-size: var(--font-size-2xl);
}

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

.nav-links a {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
    white-space: nowrap;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle .icon {
    width: 24px;
    height: 24px;
}

/* ===========================
   Nav Actions & Theme Toggle
   =========================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--color-primary);
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.08);
}

.theme-toggle .icon {
    width: 18px;
    height: 18px;
}

/* Dark mode: show sun icon, hide moon */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

/* Light mode: show moon icon, hide sun */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

.btn-primary .icon,
.btn-secondary .icon {
    width: 16px;
    height: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px var(--spacing-lg);
    background: var(--glass-bg);
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: var(--hero-gradient);
    padding: 140px 0 var(--spacing-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 93, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Sections
   =========================== */
.section,
.use-cases {
    padding: var(--spacing-3xl) 0;
}

.section + .section,
.section + .use-cases {
    border-top: 1px solid var(--color-border);
}

.section h2,
.use-cases h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    letter-spacing: -0.01em;
}

.section > .container > p:first-of-type,
.use-cases > .container > p:first-of-type {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Stats Grid
   =========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.2);
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===========================
   Contribution Heatmap
   =========================== */
.heatmap-wrapper {
    margin-top: var(--spacing-2xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.heatmap-header {
    margin-bottom: var(--spacing-md);
}

.heatmap-title {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.heatmap-container {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.heatmap-container::-webkit-scrollbar {
    height: 6px;
}

.heatmap-container::-webkit-scrollbar-track {
    background: transparent;
}

.heatmap-container::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.heatmap-day-labels {
    display: grid;
    grid-template-rows: repeat(7, 13px);
    gap: 3px;
    padding-top: 22px;
    flex-shrink: 0;
}

.heatmap-day-labels span {
    font-size: 10px;
    color: var(--color-text-muted);
    line-height: 13px;
    text-align: right;
    padding-right: 6px;
    min-width: 30px;
}

.heatmap-scroll {
    overflow-x: auto;
    flex: 1;
    min-width: 0;
}

.heatmap-months {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(13px + 3px);
    gap: 0;
    height: 20px;
    margin-bottom: 2px;
}

.heatmap-month-label {
    font-size: 10px;
    color: var(--color-text-muted);
    line-height: 20px;
    white-space: nowrap;
}

.heatmap-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 13px);
    grid-auto-columns: 13px;
    gap: 3px;
}

.heatmap-cell {
    width: 13px;
    height: 13px;
    border-radius: 2px;
    outline: 1px solid var(--heatmap-outline);
    cursor: pointer;
    transition: outline-color 0.1s ease;
}

.heatmap-cell:hover {
    outline-color: var(--heatmap-outline-hover);
}

.heatmap-cell.level-0 { background: var(--heatmap-empty); }
.heatmap-cell.level-1 { background: #0e4429; }
.heatmap-cell.level-2 { background: #006d32; }
.heatmap-cell.level-3 { background: #26a641; }
.heatmap-cell.level-4 { background: #39d353; }

.heatmap-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: var(--spacing-md);
}

.heatmap-legend {
    display: flex;
    gap: 3px;
}

.heatmap-legend .heatmap-cell {
    cursor: default;
    outline: none;
}

.heatmap-legend-label {
    font-size: 10px;
    color: var(--color-text-muted);
}

.heatmap-tooltip {
    position: fixed;
    z-index: 200;
    background: var(--heatmap-tooltip-bg);
    color: var(--heatmap-tooltip-color);
    font-size: 11px;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--heatmap-tooltip-border);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
    white-space: nowrap;
    text-align: center;
}

.heatmap-tooltip.visible {
    opacity: 1;
}

.heatmap-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--heatmap-tooltip-bg);
}

/* ===========================
   Features Grid
   =========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===========================
   Timeline
   =========================== */
.timeline {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    padding-left: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
}

.timeline-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.2);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: -48px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-base);
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    z-index: 1;
}

.timeline-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===========================
   Setup Steps
   =========================== */
.setup-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.setup-step {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
}

.setup-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.2);
}

.step-number {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.setup-step h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.setup-step p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.setup-step pre {
    background: var(--code-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: var(--font-size-sm);
    overflow-x: auto;
    line-height: 1.6;
}

.setup-step code {
    color: var(--color-primary);
    background: transparent;
}

.setup-step p code {
    background: rgba(6, 182, 212, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
}

.setup-step p a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.setup-step p a:hover {
    color: var(--color-text-primary);
}

/* ===========================
   Use Cases Grid
   =========================== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.use-case-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    text-align: center;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.2);
}

.use-case-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.use-case-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.use-case-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--spacing-xl);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-section > p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-section h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

/* ===========================
   Error State
   =========================== */
.error-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-xl);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.error-message button {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
}

.error-message button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ===========================
   Animations
   =========================== */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out both;
}

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

/* Stagger animation for grid children */
.features-grid .feature-card:nth-child(2),
.use-cases-grid .use-case-card:nth-child(2) { animation-delay: 0.05s; }
.features-grid .feature-card:nth-child(3),
.use-cases-grid .use-case-card:nth-child(3) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(4),
.use-cases-grid .use-case-card:nth-child(4) { animation-delay: 0.15s; }
.features-grid .feature-card:nth-child(5),
.use-cases-grid .use-case-card:nth-child(5) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(6),
.use-cases-grid .use-case-card:nth-child(6) { animation-delay: 0.25s; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .features-grid,
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
    }

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

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 120px 0 var(--spacing-2xl);
    }

    .hero h1 {
        font-size: var(--font-size-3xl);
    }

    .hero p {
        font-size: var(--font-size-base);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section h2,
    .use-cases h2 {
        font-size: var(--font-size-2xl);
    }

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

    .features-grid,
    .use-cases-grid,
    .setup-steps {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 19px;
    }

    .timeline-number {
        left: -40px;
        width: 32px;
        height: 32px;
        font-size: var(--font-size-sm);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: var(--font-size-2xl);
    }

    .hero h1 {
        font-size: var(--font-size-2xl);
    }
}

/* ===========================
   Reduced Motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
