:root {
    /* Techno color theme with sleek blues, purples, and cyans */
    --bg-primary: #0a0e27;
    --bg-secondary: #151b3d;
    --bg-tertiary: #1a2351;
    --text-primary: #e8ecf5;
    --text-secondary: #a1aac4;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --glass-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --code-bg: #0f1428;
    --code-border: #1e2851;
    --font-main: "Inter", sans-serif;
    --font-mono: "Fira Code", monospace;
}

.light-mode {
    /* Light Theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;
    --accent-pink: #db2777;
    --glass-light: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.08);
    --code-bg: #ffffff;
    --code-border: #e2e8f0;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    /* Subtle animated gradient background */
    background-image: radial-gradient(at 0% 50%, rgba(0, 212, 255, 0.08) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.08) 0px, transparent 40%);
    background-attachment: fixed;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient 5s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(10, 14, 39, 0.7);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.light-mode header {
    background: rgba(248, 250, 252, 0.85);
}

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

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

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

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

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

.nav-cta {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-mascot {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
}

/* Notebook Cell Style */
.notebook-cell {
    display: flex;
    background: var(--code-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid var(--code-border);
    text-align: left;
    margin: 0 auto;
    max-width: 800px;
    font-family: var(--font-mono);
    position: relative;
    backdrop-filter: blur(10px);
}

.cell-gutter {
    width: 50px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--code-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5rem;
    /* Align with code start */
}

.play-button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.cell-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.code-lens {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--code-border);
}

.code-lens a {
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.code-lens a:hover {
    color: var(--accent-cyan);
}

.code-editor {
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    color: var(--text-primary);
}

.result-toolbar {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--code-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.toolbar-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-color: var(--text-muted);
}

/* Syntax Highlighting (VS Code Dark+ inspired) */
.kwd {
    color: #f472b6;
}

/* Keyword */
.func {
    color: #60a5fa;
}

/* Function */
.str {
    color: #34d399;
}

/* String */
.num {
    color: #fbbf24;
}

/* Number */
.comment {
    color: #6b7280;
    font-style: italic;
}

/* Comment */
.type {
    color: #818cf8;
}

/* Type */

/* Light Mode Syntax Overrides */
.light-mode .kwd {
    color: #af00db;
}

.light-mode .func {
    color: #795e26;
}

.light-mode .str {
    color: #a31515;
}

.light-mode .num {
    color: #098658;
}

.light-mode .comment {
    color: #008000;
}

.light-mode .type {
    color: #267f99;
}

/* Result Grid Simulation */
.result-grid {
    background: var(--bg-color);
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--grid-header-bg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--grid-border);
}

.grid-cell {
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--grid-border);
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.85rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--grid-border);
}

.grid-row:last-child {
    border-bottom: none;
}

/* Badge Row */
.badge-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.badge:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}

.badge-label {
    color: var(--text-secondary);
}

.badge-value {
    color: var(--accent-cyan);
    font-weight: 600;
}

.badge-beta {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
    border-color: var(--primary-color);
}

/* Hero Tagline */
.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline strong {
    color: var(--text-color);
}

/* Button Variants */
.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    margin-right: 0.25rem;
}

/* Cell Number */
.cell-number {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Code Lens AI */
.lens-ai {
    color: var(--accent-cyan) !important;
    font-weight: 500;
}

/* Result Info */
.result-info {
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

.toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

/* Stats Bar */
.stats-bar {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 60px;
}

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

/* Loading animation */
.loading-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.why-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

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

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-list {
    list-style: none;
    margin-top: 1rem;
}

.why-list li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.why-list li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Workflow Section */
.workflow-section {
    background: var(--bg-secondary);
}

.workflow-diagram {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    align-items: center;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 180px;
}

.workflow-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.workflow-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.workflow-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.workflow-arrow {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

/* Explorer Demo */
.explorer-demo {
    max-width: 500px;
    margin: 0 auto;
    background: var(--code-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.explorer-demo h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.tree-view {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.tree-icon {
    font-size: 1rem;
}

.tree-label {
    color: var(--text-color);
}

.tree-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
}

.tree-badge.connected {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.tree-children {
    margin-left: 1.5rem;
    border-left: 1px dashed var(--glass-border);
    padding-left: 1rem;
}

/* Feature Cards Enhancement */
.feature-card .feature-list li::before {
    content: "";
}

/* AI Section */
.ai-section {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.03), rgba(124, 58, 237, 0.03));
}

.ai-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    margin: 0 auto 1rem;
}

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

.ai-capability {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ai-capability:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-tertiary);
    transform: translateY(-5px);
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ai-capability h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ai-capability p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* AI Code Demo */
.ai-code-demo {
    max-width: 700px;
    margin: 0 auto;
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.code-demo-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--code-border);
    font-weight: 600;
    color: var(--accent-cyan);
}

.code-demo-subtitle {
    font-size: 12px;
    display: flex;
    align-items: center;
    color: #61afef;
}

.code-demo-content {
    padding: 1.5rem;
}

.user-prompt {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.08);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 6px;
}

.prompt-label {
    font-weight: 600;
    color: var(--accent-cyan);
    margin-right: 0.5rem;
}

.prompt-text {
    font-style: italic;
    color: var(--text-secondary);
}

.prompt-attach {
    color: var(--code-text);
    background-color: var(--code-bg);
    border-radius: 8px;
    padding: 2px 12px;
    font-weight: bold;
    font-size: 14px;
    font-family: var(--font-mono);
    font-style: normal;
    border: var(--code-border) solid 1px;
}

.ai-response {
    padding: 1rem;
    background: rgba(124, 58, 237, 0.08);
    border-left: 3px solid var(--accent-purple);
    border-radius: 6px;
}

.response-label {
    display: block;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.code-block {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Screenshots Section */
.screenshots-section {
    background: rgba(0, 0, 0, 0.2);
}

.screenshots-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.screenshots-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.5) transparent;
    -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

.scroll-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.scroll-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.scroll-indicator {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }

    .screenshots-scroll {
        padding: 0.5rem;
        gap: 1rem;
    }
}

.screenshot-card {
    flex: 0 0 300px;
    min-width: 300px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

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

.screenshot-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--code-bg);
}

.screenshot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.screenshot-card:hover .screenshot-img img {
    transform: scale(1.05);
}

.screenshot-card {
    cursor: pointer;
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h4 {
    margin-bottom: 0.5rem;
}

.screenshot-caption p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Screenshot Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1001;
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-caption-wrapper {
    text-align: center;
    margin-top: 1rem;
}

#modal-caption {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#modal-subcaption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1002;
}

.modal-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-counter {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

/* Quick Start Enhancements */
.code-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.code-preview code {
    font-family: var(--font-mono);
    flex: 1;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--glass-border);
}

.step-alt {
    font-size: 0.9rem;
    color: var(--text-muted);
}

kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--code-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.command-sequence {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.command-sequence .arrow {
    color: var(--primary-color);
}

.command-sequence code {
    padding: 0.3rem 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 4px;
    font-family: var(--font-mono);
}

.connection-form-demo {
    background: var(--code-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.form-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    width: 100px;
    color: var(--text-muted);
}

.form-value {
    color: var(--text-color);
    font-family: var(--font-mono);
}

.action-list {
    list-style: none;
    margin-top: 1rem;
}

.action-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

/* Operations Table */
.operations-table-wrapper {
    overflow-x: auto;
}

.operations-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 1rem;
    overflow: hidden;
}

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

.operations-table th {
    background: var(--code-header-bg);
    font-weight: 600;
}

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

.operations-table tr:hover {
    background: rgba(56, 189, 248, 0.05);
}

.obj-icon {
    margin-right: 0.5rem;
}

/* Shortcuts Section */
.shortcuts-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}

.shortcut-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1));
}

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

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content>p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

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

/* Footer Enhancement */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo {
    font-size: 1.3rem;
    font-weight: 700;
}

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

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

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Features Grid */
.section {
    padding: 6rem 0;
    position: relative;
}

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

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.feature-card {
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-tertiary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Steps / Timeline */
.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: var(--glass-border);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    z-index: 1;
}

.step-content {
    flex: 1;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

/* Animations */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .step {
        flex-direction: column;
        gap: 1rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .notebook-cell {
        margin: 0 1rem;
    }

    .stats-grid {
        gap: 2rem;
    }

    .workflow-diagram {
        flex-direction: column;
        align-items: center;
    }

    .workflow-arrow {
        display: none;
    }

    .ai-capabilities {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .footer-links-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .footer-col {
        min-width: 120px;
    }

    .shortcuts-grid {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Extra small devices (phones, 480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    h4 {
        font-size: 1rem;
    }

    p,
    li {
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Hero section */
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .badge-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .badge-value {
        font-size: 0.75rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

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

    /* Stats bar */
    .stats-bar {
        padding: 1rem 0;
    }

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

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

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

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

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

    /* Why section */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .why-card {
        padding: 0.75rem;
    }

    .why-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .why-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .why-list {
        font-size: 0.7rem;
        padding-left: 0.75rem;
    }

    .why-list li {
        padding: 0.15rem 0;
    }

    .why-list li {
        padding: 0.25rem 0;
    }

    /* Workflow section */
    .workflow-step {
        padding: 1rem;
        min-width: unset;
        width: 100%;
    }

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

    .workflow-content h4 {
        font-size: 0.95rem;
    }

    .workflow-content p {
        font-size: 0.8rem;
    }

    .workflow-arrow {
        font-size: 1rem;
        padding: 0.25rem;
    }

    /* Explorer tree demo */
    .explorer-demo {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .explorer-demo h3 {
        font-size: 1rem;
    }

    .tree-view {
        font-size: 0.8rem;
    }

    .tree-item {
        padding: 0.25rem 0.5rem;
    }

    .tree-icon {
        font-size: 0.9rem;
    }

    .tree-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }

    .tree-children {
        margin-left: 1rem;
    }

    /* Feature cards */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .feature-list {
        font-size: 0.8rem;
    }

    .feature-list li {
        padding: 0.2rem 0;
    }

    /* AI section */
    .ai-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .ai-demo {
        padding: 1rem;
    }

    .ai-demo-title {
        font-size: 1rem;
    }

    .ai-demo-subtitle {
        font-size: 0.75rem;
    }

    .ai-providers {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ai-provider {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .ai-capabilities {
        gap: 0.75rem;
    }

    .ai-capability {
        padding: 0.75rem;
    }

    .capability-icon {
        font-size: 1.25rem;
    }

    .ai-capability h4 {
        font-size: 0.9rem;
    }

    .ai-capability p {
        font-size: 0.75rem;
    }

    .ai-code-demo {
        margin-top: 1.5rem;
    }

    .code-demo-header {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .code-demo-subtitle {
        font-size: 0.75rem;
    }

    .code-demo-content {
        padding: 0.75rem;
    }

    .user-prompt,
    .ai-response {
        font-size: 0.8rem;
    }

    .code-block {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    /* Notebook cell demo */
    .notebook-cell {
        margin: 1rem 0.5rem;
    }

    .cell-gutter {
        padding: 0.5rem;
    }

    .play-button {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .cell-number {
        font-size: 0.7rem;
    }

    .code-lens {
        gap: 0.5rem;
        font-size: 0.7rem;
    }

    .code-editor {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    .result-toolbar {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }

    .toolbar-btn {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .result-grid {
        font-size: 0.7rem;
    }

    .grid-cell {
        padding: 0.35rem 0.5rem;
    }

    /* Screenshots */
    .screenshot-card {
        flex: 0 0 250px;
        min-width: 250px;
    }

    .screenshot-img {
        height: 150px;
    }

    .screenshot-img img {
        border-radius: 0.5rem;
    }

    .screenshot-caption {
        padding: 0.5rem;
    }

    .screenshot-caption h4 {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .screenshot-caption p {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .scroll-indicator {
        font-size: 0.75rem;
    }

    /* Quick start steps */
    .step {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.8rem;
    }

    .code-preview {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .code-preview code {
        word-break: break-all;
    }

    .copy-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
    }

    .command-sequence {
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .command-sequence kbd {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .connection-form-demo {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    .action-list {
        font-size: 0.8rem;
    }

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

    .step-alt kbd {
        font-size: 0.7rem;
    }

    /* Operations table */
    .operations-table-wrapper {
        overflow-x: auto;
    }

    .operations-table {
        font-size: 0.75rem;
        min-width: 500px;
    }

    .operations-table th,
    .operations-table td {
        padding: 0.5rem;
    }

    .obj-icon {
        font-size: 0.9rem;
    }

    /* Shortcuts */
    .shortcut-item {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .shortcut-item kbd {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .shortcut-desc {
        font-size: 0.75rem;
    }

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

    .cta-content h2 {
        font-size: 1.25rem;
    }

    .cta-content p {
        font-size: 0.85rem;
    }

    .cta-note {
        font-size: 0.7rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-brand .logo {
        font-size: 1.1rem;
        justify-content: center;
    }

    .footer-brand p {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        text-align: center;
        width: 100%;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .footer-col h4 {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .footer-col a {
        font-size: 0.65rem;
        padding: 0.15rem 0;
    }

    .footer-bottom {
        font-size: 0.7rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    /* Navigation */
    .logo {
        font-size: 1rem;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-cta {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }
}