:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --dim-text: #888888;
    --accent: #22d3ee;
    --border-color: #333333;
    --window-bg: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.nav-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Hero */
.hero {
    text-align: center;
    padding: 7rem 1.5rem 0;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.15;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.75rem;
}

/* Porter Style Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-purple {
    background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-purple:hover {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-gray {
    background-color: #1f2937;
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-gray:hover {
    background-color: #374151;
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Showcase (Split View) */
.showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.window {
    background-color: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    height: 410px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Specific glows */
/* Specific glows */
.browser-window {
    opacity: 0;
    transform: scale(0.7);
    z-index: 4;
    position: absolute;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
}

.browser-window.active {
    opacity: 1;
    transform: translateX(calc(-50% - 1rem)) scale(1);
}

.terminal-window {
    border-color: rgba(255,255,255,0.1);
    z-index: 3;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
}

.terminal-window.pushed {
    transform: translateX(calc(50% + 1rem));
}

/* Rest of the window styles remain */
.window-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: #111;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
}

.dots {
    display: flex;
    gap: 6px;
    position: absolute;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

/* Unfocused Mac Window State */
.window.unfocused .dot.red,
.window.unfocused .dot.yellow,
.window.unfocused .dot.green {
    background-color: #404040;
}

.window.unfocused .title {
    color: #404040;
    transition: color 0.3s;
}

.terminal-window.unfocused .pink-cursor {
    display: none !important;
}

.window .dot {
    transition: background-color 0.3s;
}

.url-bar, .title {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--dim-text);
    font-family: 'Fira Code', monospace;
}

.window-content {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow: hidden; /* Prevent ugly scrollbars */
    flex-grow: 1;
}

.browser-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #050505;
    position: relative;
}

/* Jupyter Theme Styles */
.jupyter-theme {
    background-color: #1e1e1e !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 2rem !important;
}

.jupyter-cell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cell-input-row, .cell-output-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
    position: relative; /* For the blue bars */
}

/* Split blue execution bars */
.cell-input-row::before, 
.cell-output-row::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    border-radius: 2px;
}

.jupyter-cell.running .cell-input-row::before {
    background-color: #f81ce5;
}

.jupyter-cell.completed .cell-input-row::before,
.jupyter-cell.completed .cell-output-row::before {
    background-color: #f81ce5;
}

.cell-output-row {
    opacity: 0;
    transition: opacity 0.5s;
    display: none; /* JS will change to flex */
}
.cell-output-row.visible {
    opacity: 1;
    display: flex;
}

.prompt-col {
    min-width: 65px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    text-align: right;
    padding-right: 10px;
    padding-top: 10px;
    color: #888888;
    white-space: nowrap;
}
.out-prompt {
    padding-top: 0px; /* Align perfectly with output */
}

.code-col {
    flex-grow: 1;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 4px;
    padding: 10px;
}

#jupyter-output {
    flex-grow: 1;
    margin: 0;
    padding: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #e6edf3;
    white-space: pre-wrap;
}

/* Cell Execution Status */
.cell-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--dim-text);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cell-status.visible {
    opacity: 1;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
.spin {
    animation: spin 1.5s linear infinite;
}

/* Pink Blinking Cursor */
.pink-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #f81ce5;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

.pink-cursor.line {
    width: 2px;
}

.pink-highlight {
    background-color: rgba(248, 28, 229, 0.4) !important;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Syntax Highlighting */
.py-keyword { color: #c678dd; font-weight: bold; }
.py-string { color: #98c379; }
.py-number { color: #d19a66; }

.terminal-content {
    color: #e6edf3;
    line-height: 1.42;
    padding: 1rem 1.15rem;
    font-size: 0.76rem;
    white-space: pre-wrap;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.terminal-content::-webkit-scrollbar {
    width: 4px;
}
.terminal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Rich Terminal Success Box */
.term-box {
    border: 1px solid #22c55e;
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    margin: 0.85rem 0 0.5rem;
    position: relative;
    background: rgba(34, 197, 94, 0.04);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.12);
    white-space: normal; /* Prevents terminal's pre-wrap from adding extra empty lines */
    line-height: 1.35;
}

.term-box-title {
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    padding: 0 0.5rem;
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.term-box-endpoint {
    color: #4ade80;
    font-weight: 500;
    margin: 0.2rem 0 0.45rem 0;
    font-size: 0.74rem;
}

.term-box-meta {
    margin: 0.4rem 0 0.45rem 0.65rem;
    font-size: 0.73rem;
    line-height: 1.4;
}

.term-box-meta > div {
    margin: 1px 0;
}

.term-meta-label {
    color: #9ca3af;
    display: inline-block;
    width: 95px;
}

.term-box-hint {
    color: #facc15;
    margin: 0.45rem 0 0.25rem 0;
    font-size: 0.73rem;
}

.term-box-code {
    color: #e5e7eb;
    line-height: 1.38;
    font-size: 0.71rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 9px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    white-space: pre;
    margin-top: 0.25rem;
}




.code-block {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #e6edf3;
    line-height: 1.8;
}

.code-block .prompt {
    color: var(--dim-text);
    margin-right: 8px;
}
.code-block .output {
    color: var(--dim-text);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--dim-text);
    margin-bottom: 2rem;
}

.form-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-container input {
    background-color: #111;
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    width: 60%;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-container input:focus {
    border-color: var(--accent);
}

.form-container button {
    background-color: white;
    color: black;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s;
}

.form-container button:hover {
    background-color: #e5e5e5;
}

.hidden-msg {
    display: none;
    color: #f81ce5 !important;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--dim-text);
    font-size: 0.85rem;
    margin-top: auto;
}

@media (max-width: 900px) {
    .navbar { padding: 1rem; }
    .nav-links { gap: 1rem; }
    .logo { font-size: 1.1rem; }
    .logo-icon { width: 20px; height: 20px; }
    .nav-btn { padding: 0.5rem 1rem; }

    .showcase { flex-direction: column; align-items: center; position: relative; gap: 0; }
    .window { width: 95%; height: auto; min-height: 320px; margin: 0 auto; }
    .window-content { padding: 1rem; }
    .jupyter-theme { padding: 1rem !important; }
    .prompt-col { font-size: 0.75rem; min-width: 45px; padding-right: 5px; }
    .code-col { font-size: 0.75rem; overflow-x: auto; padding: 8px; }
    #jupyter-output { font-size: 0.75rem; }
    .terminal-content { font-size: 0.75rem; }
    
    .browser-window { 
        position: relative !important; 
        display: flex; 
        opacity: 0; 
        margin-bottom: -350px; 
        transform: translateY(60px) scale(0.9) !important; 
        pointer-events: none; 
        z-index: 4;
        transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .browser-window.active { 
        opacity: 1; 
        margin-bottom: 2rem; 
        transform: translateY(0) scale(1) !important; 
        pointer-events: auto; 
    }
    .terminal-window {
        z-index: 3;
        transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .terminal-window.pushed { 
        transform: scale(0.95) !important; 
        opacity: 0.5; 
    }
    .hero h1 { font-size: 2.5rem; }
}
/* About Page */
.about-page { display: flex; max-width: 1000px; margin: 0 auto; padding: 6.5rem 2rem 4rem; gap: 4rem; }
.hash-nav { list-style: none; position: sticky; top: 6rem; height: max-content; min-width: 150px; }
.hash-nav li { margin-bottom: 1rem; }
.hash-nav a { text-decoration: none; color: var(--dim-text); font-size: 0.9rem; transition: color 0.2s; }
.hash-nav a:hover, .hash-nav a.active { color: var(--text-color); }
.about-content { flex-grow: 1; max-width: 700px; }
.about-section { margin-bottom: 6rem; }
.about-section h1 { font-size: 2rem; font-weight: 500; margin-bottom: 0.5rem; }
.about-section h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 2rem; color: var(--text-color); }
.about-section h3 { font-size: 1.1rem; font-weight: 500; margin-top: 2.5rem; margin-bottom: 1rem; }
.heading-anchor { text-decoration: none !important; color: inherit !important; }
.heading-anchor:hover::after { content: ' #'; color: var(--dim-text); }
.mission-text { font-family: 'Fira Code', monospace; font-size: 1.1rem; margin-bottom: 2rem; color: var(--dim-text); }
.about-section p, .about-section ul, .about-section ol { color: var(--dim-text); margin-bottom: 1.5rem; line-height: 1.7; }
.about-section ul, .about-section ol { padding-left: 1.5rem; }
.about-section li { margin-bottom: 0.75rem; }
.about-section a { color: var(--text-color); text-decoration: underline; text-decoration-color: #333; text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.about-section a:hover { text-decoration-color: var(--text-color); }

/* Team */
.team-person { display: flex; gap: 1.5rem; margin-bottom: 3rem; }
.team-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-name { font-weight: 500; margin-bottom: 0.5rem; font-size: 1.1rem; }
.team-flag { vertical-align: middle; margin-left: 4px; margin-bottom: 2px; }
.team-description { font-size: 0.95rem; }

/* Navbar/Footer adjustments */
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--dim-text); text-decoration: none; font-size: 0.875rem; font-weight: 500; line-height: 1; padding: 0.5rem 0; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text-color); }
.footer-nav { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.footer-nav a { color: var(--dim-text); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text-color); }

@media (max-width: 768px) {
    .about-page { flex-direction: column; gap: 2rem; }
    .hash-nav { display: flex; gap: 1.5rem; position: static; overflow-x: auto; }
    .team-person { flex-direction: column; gap: 1rem; }
}

/* Background SVG Illustrations (Porter Glow Style) */
.page-wrapper {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-illustration-top {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(10%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

/* Showcase Container & Animation Background Illustration (Bottom-Left) */
.showcase-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.showcase-illustration {
    position: absolute;
    left: 0;
    bottom: 2.25rem;
    margin-left: -5rem;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

@media (max-width: 1024px) {
    .showcase-illustration {
        display: none;
    }
}

/* Section Dividers (like Markdown ---) */
.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 1100px;
    margin: 0 auto;
    width: calc(100% - 3rem);
}

/* Feature Section (Deploy and scale effortlessly) */
.feature-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.feature-description {
    font-size: 1.15rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-tags {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    color: #e5e7eb;
    font-size: 0.92rem;
    font-weight: 500;
}

.feature-tag svg {
    flex-shrink: 0;
    color: #10b981;
}

.feature-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Community Section with Rounded Gradient Box (Porter Style) */
.community-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.community-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    background: #0f1016;
    border: 2px solid transparent;
    background-image: linear-gradient(#0f1016, #0f1016), 
                      linear-gradient(135deg, #c084fc 0%, #a855f7 30%, #6366f1 70%, #818cf8 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.community-card h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.community-card p {
    font-size: 1.05rem;
    color: #9ca3af;
    margin-bottom: 2.25rem;
}

.community-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.community-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.6rem;
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.community-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Final CTA Section */
.final-cta-section {
    padding: 6rem 2rem 7rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.final-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.final-cta-section p {
    font-size: 1.15rem;
    color: #9ca3af;
    margin-bottom: 2.25rem;
}

/* Responsive adjustments for features & CTA */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .feature-media {
        order: 2;
    }
    .feature-content {
        order: 1;
    }
    .feature-tags {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .final-cta-section .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .final-cta-section .hero-cta .btn {
        width: 100%;
    }
}

