:root {
    --bg-dark: #020203;
    --bg-surface: #0a0a0c;
    --bg-surface-elevated: #111116;
    --text-main: #ffffff;
    --text-muted: #88888e;
    --accent-primary: #4FD1C5;
    --accent-secondary: #8B5CF6;
    --success: #34d399;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --grid-color: rgba(255, 255, 255, 0.02);
    --mouse-x: 50%;
    --mouse-y: 50%;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    letter-spacing: -0.015em;
}

/* Background */
.background-system {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(79, 209, 197, 0.06) 0%, transparent 40%);
}
.grid-system {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at var(--mouse-x) var(--mouse-y), black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x) var(--mouse-y), black 20%, transparent 80%);
    opacity: 0.8;
}

/* Nav */
.navbar {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1rem; letter-spacing: -0.04em; }
.logo svg { filter: drop-shadow(0 0 8px var(--accent-primary)); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-links a:hover { color: var(--text-main); text-shadow: 0 0 10px rgba(255,255,255,0.2); }

/* Buttons */
.btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover { transform: scale(1.04) translateY(-1px); box-shadow: 0 10px 30px rgba(255,255,255,0.1); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.25); }

/* Hero */
.hero {
    max-width: 1400px;
    margin: 5rem auto 4rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-top {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    align-items: center;
    width: 100%;
}
.hero.centered {
    margin: 8rem auto 6rem;
    max-width: 1200px;
}
.hero-content.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-content.centered .hero-title {
    font-size: 7.5rem;
}
.hero-content.centered .hero-subtitle {
    max-width: 700px;
    font-size: 1.5rem;
    margin-bottom: 4rem;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(79, 209, 197, 0.05);
    border: 1px solid rgba(79, 209, 197, 0.15);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}
.badge:not(.monospace-badge)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); }

.monospace-badge {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    letter-spacing: 0;
    background: #000;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    text-transform: none;
    font-weight: 500;
}

.hero-title { font-size: 7.5rem; font-weight: 900; line-height: 0.95; margin-bottom: 2rem; letter-spacing: -0.07em; position: relative; }
.text-gradient { background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.cursor-blink {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    background-color: var(--accent-primary);
    margin-left: 0.3em;
    vertical-align: middle;
    animation: blink 0.8s infinite;
    transform: translateY(-0.05em);
}
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}
.hero-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}
.hero-link:hover {
    color: #fff;
    transform: translateY(-1px);
}
.hero-link svg {
    width: 16px;
    height: 16px;
}

/* Hero Visual Stack */
.hero-visual { position: relative; width: 100%; max-width: 800px; margin: 4rem auto 0; perspective: 1000px; display: none; }

/* CLI Box Updates */
.cli-box.large {
    font-size: 1.3rem;
    padding: 1.5rem 2.5rem;
    max-width: none;
    display: inline-flex;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cli-box.large:hover {
    background: #111115;
    box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.25);
}
.window {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.window:not(.terminal-window) {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(5, 5, 5, 0.4);
    border: 1px solid var(--glass-border);
}
.terminal-window {
    background: #050505;
    border: 1px solid var(--glass-border);
}
.window-header {
    background: #0d0d10;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); }
.window-title { font-family: 'Fira Code', monospace; font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.browser-address-bar {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.3rem 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.window-body { padding: 2rem; font-family: 'Fira Code', monospace; font-size: 0.85rem; line-height: 1.6; }

.terminal-window { position: absolute; top: 0; left: 0; width: 85%; z-index: 20; transform: rotateY(-12deg) rotateX(4deg) translateZ(80px); }
.browser-window { position: absolute; bottom: 0; right: 0; width: 85%; height: 320px; z-index: 10; transform: rotateY(12deg) rotateX(-2deg) translateZ(-80px); opacity: 0.3; filter: grayscale(1) blur(2px); }
.visual-stack.swapped .browser-window { transform: rotateY(0deg) translateZ(120px) scale(1.05); opacity: 1; filter: none; z-index: 100; border-color: rgba(79, 209, 197, 0.4); box-shadow: 0 60px 150px rgba(0,0,0,0.9), 0 0 50px rgba(79, 209, 197, 0.1); }
.visual-stack.swapped .terminal-window { transform: rotateY(-15deg) translateZ(-100px) translateX(-15%); opacity: 0.15; z-index: 10; }
.visual-stack:not(.swapped):hover .browser-window { transform: rotateY(0deg) translateZ(40px); opacity: 0.6; filter: grayscale(0.5) blur(1px); }
.visual-stack.swapped:hover .terminal-window { transform: rotateY(-10deg) translateZ(20px); opacity: 0.5; }

/* Browser Content Styles */
.live-indicator { position: absolute; top: 0; right: 0; background: rgba(52, 211, 153, 0.1); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.2); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.55rem; font-weight: 800; }
.hello-world h1 { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 0.5rem; letter-spacing: -0.03em; }
.hello-world p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.browser-cta-row { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.skeleton-pill { height: 24px; width: 80px; background: var(--accent-primary); opacity: 0.2; border-radius: 100px; }
.skeleton-pill.secondary { width: 60px; background: var(--glass-border); opacity: 1; }

/* NPX Command CTA */
.hero-bottom { margin-top: 8rem; width: 100%; display: flex; justify-content: center; }
.cta-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.cta-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0 0.5rem;
}
.trust-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
}
.trust-signal strong {
    color: #ededed;
    font-weight: 600;
}
.ghost-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease;
}
.ghost-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}
.cta-label { display: flex; align-items: center; gap: 1rem; }
.no-auth-badge { background: var(--accent-primary); color: #000; padding: 0.3rem 1rem; border-radius: 100px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 0 20px rgba(79, 209, 197, 0.4); }
.cta-description { color: var(--text-muted); font-size: 1rem; font-weight: 500; }
.cli-box.large {
    background: #050505; border: 1px solid rgba(255,255,255,0.08); padding: 0.4rem; border-radius: 100px; display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
}
.cli-box.large:hover { border-color: rgba(255,255,255,0.15); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 100px rgba(0,0,0,0.8), 0 0 40px rgba(79, 209, 197, 0.15); background: #0A0A0A; }
.cli-box.large:active { transform: scale(0.98); }
.cli-box code { padding: 1.2rem 2rem 1.2rem 1.5rem; font-family: 'Fira Code', monospace; font-size: 1.25rem; color: #fff; font-weight: 500; display: flex; align-items: center; cursor: pointer !important; }
.cli-box code * { cursor: pointer !important; }


.cli-box .prompt { 
    color: var(--accent-primary); 
    font-weight: bold; 
    margin-right: 0.5rem;
    opacity: 0.5;
    user-select: none;
    -webkit-user-select: none;
}
.cli-box.large::after {
    content: "Click to run in live sandbox";
    position: absolute;
    top: -35px;
    right: 2rem;
    background: #1f1f22;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cli-box.large::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 3.5rem;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #1f1f22 transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
}

.cli-box.large:hover::after,
.cli-box.large:hover::before {
    opacity: 1;
    transform: translateY(0) scale(1);
    top: -45px;
}
.cli-box.large:hover::before {
    top: -16px;
}

.cli-box.copied::after,
.cli-box.copied:hover::after {
    content: "✔ Copied!";
    background: var(--success);
    border-color: var(--success);
    color: #000;
    opacity: 1;
    transform: translateY(0) scale(1);
    top: -45px;
}
.cli-box.copied::before,
.cli-box.copied:hover::before {
    border-color: var(--success) transparent transparent transparent;
    opacity: 1;
    transform: translateY(0) scale(1);
    top: -16px;
}

.scroll-down-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.scroll-down-hint:hover {
    color: var(--accent-primary);
}
.scroll-down-hint svg {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* Staff IDE Playground */
.playground-section { padding: 12rem 2rem; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 8rem; }
.section-header h2 { font-size: 4rem; font-weight: 900; letter-spacing: -0.06em; margin-bottom: 1.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.2rem; }
.shortcut-key { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.2rem 0.6rem; border-radius: 6px; font-family: 'Fira Code', monospace; font-size: 0.9em; color: var(--text-main); box-shadow: 0 2px 0 rgba(255,255,255,0.05); }

.ide-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 700px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 200px 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: 0 60px 120px rgba(0,0,0,0.6);
    transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ide-container.collapsed {
    height: 350px;
}
.ide-sidebar { background: #0a0a0c; border-right: 1px solid rgba(255,255,255,0.03); display: flex; flex-direction: column; }
.sidebar-header { padding: 1rem 1.25rem; font-size: 0.6rem; font-weight: 800; color: var(--text-muted); letter-spacing: 0.12em; border-bottom: 1px solid rgba(255,255,255,0.03); }
.file-list { padding: 1rem 0; }
.file-item {
    padding: 0.3rem 1rem;
    margin: 0.2rem 0;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    letter-spacing: normal;
    display: flex; align-items: center; gap: 0.75rem; font-family: 'Fira Code', monospace; 
}
.file-item:hover { background: rgba(255,255,255,0.03); color: var(--text-main); }
.file-item.active { background: rgba(79, 209, 197, 0.05); color: var(--accent-primary); box-shadow: inset 3px 0 0 var(--accent-primary); }

/* Extension Colors */
.icon-html { color: #E34F26; }
.icon-css { color: #1572B6; }
.icon-js { color: #F7DF1E; }
.icon-config { color: #88888e; }

/* Editor Architecture */
.editor-header { padding: 0 1rem 0; height: 48px; display: flex; align-items: flex-end; background: #000; border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.15s ease; overflow-x: auto; scrollbar-width: none; }
.editor-header::-webkit-scrollbar { display: none; }
.ide-editor { display: flex; flex-direction: column; overflow: hidden; position: relative; }

.editor-tab {
    display: flex; align-items: center; gap: 0.5rem;
    height: 38px; padding: 0 0.8rem;
    background: #0a0a0c;
    border: 1px solid rgba(255,255,255,0.03);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-right: 2px;
    border-top: 2px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}
.editor-tab:hover { background: #0f0f13; color: var(--text-main); }
.editor-tab.active {
    background: #000;
    color: var(--accent-primary);
    border-top-color: var(--accent-primary);
}
.editor-tab .close-btn {
    opacity: 0; margin-left: 0.2rem; padding: 2px 4px; border-radius: 4px; transition: 0.2s; font-size: 1rem; line-height: 1;
}
.editor-tab:hover .close-btn, .editor-tab.active .close-btn { opacity: 1; }
.editor-tab .close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.empty-editor-state {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem;
    position: absolute; top: 48px; bottom: 56px; left: 0; right: 0;
    background: #000;
    z-index: 10;
}
.empty-editor-state svg.hero-icon { width: 64px; height: 64px; color: var(--accent-primary); opacity: 0.8; }

.unsaved-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.8); opacity: 0; transition: opacity 0.2s, transform 0.2s; margin-left: 0.5rem; transform: scale(0.5); }
.unsaved-dot.active { opacity: 1; transform: scale(1); }
.file-item .unsaved-dot { margin-left: auto; }
.editor-container { display: flex; flex-grow: 1; overflow: hidden; position: relative; background: #000; }

/* Terminal View & Bottom Bar */
.ide-bottom-bar {
    width: 100%;
    flex-shrink: 0;
    height: 56px;
    background: #08080a;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 100;
}
.ide-bottom-bar:hover, .ide-bottom-bar:focus {
    background: #0d0d12;
    outline: none;
}
.ide-bottom-bar .bottom-bar-prompt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ide-bottom-bar .prompt {
    color: var(--success);
    font-weight: bold;
}
.ide-bottom-bar .command {
    color: var(--text-main);
}

.terminal-spinner::after {
    content: "⠋";
    animation: braille-spin 0.8s steps(8, end) infinite;
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--accent-primary);
}
@keyframes braille-spin {
    0% { content: "⠋"; }
    12.5% { content: "⠙"; }
    25% { content: "⠹"; }
    37.5% { content: "⠸"; }
    50% { content: "⠼"; }
    62.5% { content: "⠴"; }
    75% { content: "⠦"; }
    87.5% { content: "⠧"; }
    100% { content: "⠋"; }
}

.ide-bottom-bar .bottom-bar-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.ide-bottom-bar:hover .bottom-bar-action {
    color: var(--text-main);
}
.ide-bottom-bar .bottom-bar-action kbd {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
    transition: all 0.2s;
}
.ide-bottom-bar:hover .bottom-bar-action kbd {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    box-shadow: 0 2px 0 rgba(0,0,0,0.8), 0 0 10px rgba(79, 209, 197, 0.4);
}
.ide-bottom-bar .bottom-bar-action svg {
    color: var(--accent-primary);
}

.loading-overlay { 
    position: absolute; 
    top: auto; 
    height: calc(100% - 48px); 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: #000; 
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8), inset 0 10px 20px rgba(0,0,0,0.5);
    display: none; 
    z-index: 200; 
}
.loading-overlay.active { display: flex; }
.ide-terminal-view { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    height: 100%; 
    background: transparent; 
    overflow: hidden; 
}
.terminal-header { padding: 0.75rem 1.5rem; background: #08080a; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.75rem; font-family: 'Fira Code', monospace; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; }
.terminal-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; padding: 4px; border-radius: 4px; transition: 0.2s; }
.terminal-close:hover { background: rgba(255,255,255,0.05); color: #fff; }
.status-dot { width: 8px; height: 8px; background: var(--accent-primary); border-radius: 50%; box-shadow: 0 0 10px var(--accent-primary); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ide-terminal-view .window-body { padding: 2rem; font-size: 0.9rem; flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.terminal-line {
    color: var(--text-main);
    line-height: 1.5;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: normal;
    font-variant-ligatures: contextual;
}
.terminal-line .prompt {
    color: var(--success);
    margin-right: 0.5rem;
}
.terminal-line .typing::after {
    content: "▍";
    animation: cursor-blink 1s step-end infinite;
    color: var(--accent-primary);
    margin-left: 2px;
}
@keyframes cursor-blink {
    50% { opacity: 0; }
}
.terminal-line.dim { color: var(--text-muted); opacity: 0.7; }
.terminal-line.success { color: var(--success); }
.terminal-line.info { color: var(--accent-primary); }
.terminal-line.error { color: #f87171; }

.capability-section { padding: 10rem 2rem; border-top: 1px solid var(--border-color); overflow: hidden; }
.feature-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); padding: 2rem; border-radius: 20px; display: flex; flex-direction: column; gap: 1.5rem; transition: transform 0.3s, border-color 0.3s; }
.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.feature-text { flex-grow: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-text h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.feature-text p { font-size: 1rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.code-card { background: #000; border: 1px solid var(--glass-border); padding: 1.5rem; border-radius: 16px; font-family: 'Fira Code', monospace; font-size: 0.85rem; line-height: 1.6; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); margin-top: auto; }
.code-card .accent { color: var(--accent-primary); }
.code-card .dim { color: var(--text-muted); }

/* Footer */
footer { padding: 8rem 2rem 4rem; border-top: 1px solid var(--border-color); }
.footer-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.06em; }
.footer-links { display: flex; gap: 4rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.footer-links a:hover { color: var(--text-main); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 6rem; opacity: 0.4; font-weight: 500; }

/* CLI Section */
.cli-section {
    position: relative;
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.cli-sticky-wrapper {
    /* Kept class name to avoid HTML changes, but removed sticky properties */
    width: 100%;
}
.cli-container {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch;
}
.cli-sidebar {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cli-tab {
    background: transparent;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    padding: 1.2rem;
    text-align: left;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease;
}
.cli-tab:hover { background: rgba(255,255,255,0.02); }
.cli-tab.active {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--accent-primary);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tab-title { color: var(--text-main); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.tab-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; }

.cli-terminal-wrapper {
    flex: 1;
    background: #0A0A0A;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.window-top {
    display: flex; align-items: center; background: #141414; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.traffic-lights { display: flex; gap: 6px; margin-right: 1rem; }
.traffic-lights .dot { width: 12px; height: 12px; border-radius: 50%; opacity: 0.8; }
.traffic-lights .dot.red { background: #FF5F56; }
.traffic-lights .dot.yellow { background: #FFBD2E; }
.traffic-lights .dot.green { background: #27C93F; }
.window-title { margin: 0 auto; font-size: 0.8rem; color: var(--text-muted); font-family: system-ui; transform: translateX(-24px); }

.cli-terminal-content {
    padding: 1.2rem 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
    flex: 1; /* allow it to fill the container perfectly */
    overflow-y: auto;
}
.cli-line { margin-bottom: 0.2rem; white-space: pre-wrap; word-break: break-word; }
.cli-prompt { color: var(--text-muted); user-select: none; margin-right: 0.6rem; }
.cli-cmd { color: var(--accent-primary); }
.cli-hint-link { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(79, 209, 197, 0.3); text-underline-offset: 4px; transition: all 0.2s; }
.cli-hint-link:hover { color: #fff; text-decoration-color: var(--accent-primary); }
.cli-arg { color: #fbbf24; }
.cli-path { color: #a78bfa; }
.cli-success { color: var(--success); }
.cli-dim { color: var(--text-muted); }
.cli-spinner { display: inline-block; color: var(--accent-primary); margin-right: 0.5rem; }
.cli-cursor {
    display: inline-block; width: 8px; height: 1.2em; background-color: var(--accent-primary); vertical-align: middle; animation: blink 0.8s infinite; margin-left: 2px;
}

/* Scroll Reveal */
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1100px) {
    .hero-title { font-size: 3.5rem; }
    .hero-top { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .hero-content { align-items: center; text-align: center; }
    .hero-visual { justify-content: center; height: auto; }
    .visual-stack { height: 320px; }
    .playground-container, .cap-container { grid-template-columns: 1fr; gap: 4rem; }
    .pane:first-child { border-right: none; border-bottom: 1px solid var(--border-color); }
    .cap-container { text-align: center; }
    .terminal-window, .browser-window { width: 100%; transform: none !important; position: relative; opacity: 1 !important; filter: none !important; }
    .ide-sidebar { display: none; }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 3px solid #000;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}




/* Features Stacked Layout */
.features-stacked {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.feature-row {
    display: flex;
    align-items: center;
    gap: 6rem;
}
.feature-row.reverse {
    flex-direction: row-reverse;
}
.feature-text-block {
    flex: 1;
}
.feature-visual-block {
    flex: 1;
    min-width: 0; /* allows child to shrink/truncate if needed */
}

/* Enhancing code cards for the stacked layout */
.feature-visual-block .code-card {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 40px rgba(255,255,255,0.02);
}

@media (max-width: 900px) {
    .features-stacked {
        gap: 6rem;
    }
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    /* Navbar */
    .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
    .nav-container { flex-direction: column; align-items: center; }

    /* Hero */
    .hero { padding: 4rem 1rem 2rem; }
    .hero-title { font-size: 2.8rem; line-height: 1.1; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-features { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .cli-box.large { padding: 1rem 1.5rem; font-size: 0.8rem; }
    .hero-links { flex-direction: column; align-items: center; gap: 1rem; }

    /* Features Stacked */
    .feature-text-block h2 { font-size: 1.8rem !important; }
    .feature-text-block p { font-size: 1rem !important; }
    .feature-visual-block .code-card { padding: 1.5rem; font-size: 0.75rem; }

    /* Playground IDE */
    .ide-container { height: 600px; border-radius: 12px; }
    .ide-workspace { flex-direction: column; }
    .ide-main { height: 60%; }
    .ide-bottom-bar { flex-direction: column; text-align: center; gap: 1rem; }
    .bottom-bar-action { width: 100%; justify-content: center; }
    
    /* CLI Section */
    .cli-container { flex-direction: column; }
    .cli-sidebar { flex: 0 0 auto; flex-direction: row; overflow-x: auto; padding-bottom: 1rem; }
    .cli-tab { border-left: none; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; white-space: nowrap; }
    .cli-tab.active { border-left: none; border-bottom: 3px solid var(--accent-primary); border-top: none; border-right: none; }
    .tab-desc { display: none; }
}

@media (max-width: 600px) {
    /* Hide the entire playground section on very small devices */
    #playground {
        display: none !important;
    }
    
    /* Hide the Playground nav link */
    .nav-links a[href="#playground"] {
        display: none !important;
    }
    
    /* Hide the "Live Sandbox" link in the hero */
    .hero-links a[href="#playground"] {
        display: none !important;
    }
}
