@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #090c10;
    --bg-card: rgba(15, 22, 36, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.3);
    --primary-accent: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary-accent: #f59e0b;
    --success-accent: #10b981;
    --text-main: #f3f4f6;
    --text-muted: #8e9cae;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Gradients */
.bg-glow-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.bg-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

header {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-text {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.05rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.5rem auto 0;
    font-weight: 300;
}

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
}

@media (min-width: 900px) {
    .top-grid {
        grid-template-columns: 1.15fr 0.85fr; /* 1.15 to 0.85 split for stepper vs preview */
        align-items: stretch;
    }
}

.bottom-portal-card {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-group-full {
        grid-column: span 2;
    }
    .track-selector-wrapper {
        grid-column: span 2;
    }
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.05);
}

/* Stepper Component */
.stepper-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stepper-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background: var(--primary-accent);
    border-radius: 4px;
}

.stepper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.step-node {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.step-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.step-content p {
    font-size: 0.925rem;
    color: var(--text-muted);
    font-weight: 300;
}

.step-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.step-details-inner {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Active Step Styling */
.step-node.active .step-badge {
    border-color: var(--primary-accent);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
    background: var(--primary-accent);
}

.step-node.active .step-content {
    background: rgba(99, 102, 241, 0.03);
    border-color: rgba(99, 102, 241, 0.15);
}

.step-node.active .step-details {
    max-height: 500px;
}

.step-node.completed .step-badge {
    border-color: var(--success-accent);
    background: var(--success-accent);
    color: #fff;
}

/* Submission Form */
.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background: var(--secondary-accent);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(17, 24, 39, 0.8);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-accent) 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Notebook Link highlight */
.notebook-link {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px dashed var(--primary-accent);
}

.notebook-link:hover {
    color: #a5b4fc;
    border-bottom-style: solid;
}

/* Success Overlay Animation */
.success-card {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem;
    animation: fadeIn 0.5s ease forwards;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-accent);
    border-radius: 50%;
    color: var(--success-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

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

/* Platform Icons */
.platform-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.platform-badge:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Disclaimer Footer */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.disclaimer-card {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.cc-badge {
    display: inline-block;
    border: 1px solid var(--text-muted);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Visual Stage Sandbox / Preview styles */
#sandbox-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sandbox-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sandbox-title svg {
    color: var(--primary-accent);
}

.preview-container {
    background: rgba(5, 7, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1;
    min-height: 280px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-label {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: monospace;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

/* Mempool State Preview */
.state-mempool {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    line-height: 1.45;
}

.state-mempool .commentary {
    color: #a5b4fc;
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
}

/* Template State Preview */
.state-template {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.mock-player {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mock-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.mock-waveform {
    flex: 1;
    height: 24px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12) 3px, transparent 3px, transparent 7px);
    border-radius: 3px;
}

.mock-video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
}

.mock-video-thumb::after {
    content: '▶ Cinematic Infographic (Mosaic)';
    position: absolute;
    background: rgba(0,0,0,0.7);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
}

/* Chain State Preview (mdBook mockup) */
.state-chain {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
    height: 100%;
}

.mock-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mock-sidebar-node {
    padding: 0.1rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mock-sidebar-node.indent-1 {
    padding-left: 0.75rem;
}

.mock-sidebar-node.indent-2 {
    padding-left: 1.5rem;
    font-weight: 500;
}

.mock-sidebar-node.active {
    color: var(--secondary-accent);
}

.mock-article {
    font-size: 0.85rem;
    line-height: 1.5;
}

.mock-article h4 {
    color: #fff;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
}

.mock-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-accent);
    color: var(--success-accent);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    display: inline-block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.vector-engine-tag {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--success-accent);
}

/* deepMind Terminal Styling */
.terminal-card {
    background: #06090e;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow), 0 10px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #0f141c;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success-accent);
    box-shadow: 0 0 8px var(--success-accent);
}

.notebook-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary-accent) 0%, #4f46e5 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.notebook-btn-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.terminal-body {
    padding: 1.5rem;
    min-height: 200px;
    max-height: 480px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    line-height: 1.5;
}

.terminal-welcome {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border-left: 2px solid var(--primary-accent);
    padding-left: 0.75rem;
}

.terminal-input-row {
    background: #0a0e14;
    border-top: 1.5px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.terminal-prompt {
    color: var(--secondary-accent);
    font-weight: bold;
    font-family: monospace;
    user-select: none;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
}

.terminal-send-btn {
    background: transparent;
    border: none;
    color: var(--primary-accent);
    font-weight: bold;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.terminal-send-btn:hover {
    color: #fff;
}

.quick-queries {
    padding: 0.75rem 1.5rem;
    background: #070b10;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

.query-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.query-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.2s ease;
}

.query-tag:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-accent);
    color: #fff;
}

/* Styled response formatting */
.terminal-user-msg {
    color: #fff;
    margin: 0.75rem 0;
    font-weight: bold;
}

.terminal-system-msg {
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.response-card {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 1.25rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.response-card h3 {
    font-size: 1.15rem;
    color: #fff;
    margin: 1.25rem 0 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.25rem;
}

.response-card h3:first-of-type {
    margin-top: 0.5rem;
}

.response-card p {
    margin-bottom: 0.85rem;
    font-size: 0.925rem;
    color: var(--text-muted);
}

.response-card ul {
    margin: 0.5rem 0 1rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.response-card li {
    margin-bottom: 0.4rem;
}

.response-card hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin: 1.25rem 0;
}

.response-card strong {
    color: #fff;
}

.response-card a,
.response-card a:visited {
    color: var(--secondary-accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-accent);
    transition: all 0.2s ease;
}

.response-card a:hover,
.response-card a:active {
    color: #fff;
    border-bottom-style: solid;
}

/* Hook Banner Showcase styles */
.hook-banner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-color: var(--border-color);
    background: linear-gradient(135deg, rgba(15, 22, 36, 0.8) 0%, rgba(99, 102, 241, 0.04) 100%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hook-banner:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.05);
}

.hook-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.hook-icon-wrap {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.hook-text h2 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.hook-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hook-link,
.hook-link:visited {
    color: var(--secondary-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-accent);
    transition: all 0.2s ease;
}

.hook-link:hover,
.hook-link:active {
    color: #fff;
    border-bottom-style: solid;
}

.hook-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.benefit-check {
    color: var(--primary-accent);
    font-weight: bold;
}

.hook-action {
    flex-shrink: 0;
}

.hook-cta-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.hook-cta-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-accent);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    #sandbox-card {
        display: none !important;
    }
}

/* Mobile Optimization adjustments */
@media (max-width: 600px) {
    header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    main {
        padding: 0.75rem;
        gap: 1.5rem;
    }
    
    .glass-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .hook-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .hook-content {
        gap: 1rem;
    }

    .hook-text h2 {
        font-size: 1.2rem;
    }

    .hook-action {
        width: 100%;
        text-align: center;
    }

    .hook-cta-btn {
        width: 100%;
        text-align: center;
    }
    
    .terminal-card {
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }
    
    .terminal-header {
        padding: 0.6rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .terminal-dots {
        display: none; /* Hide dots on mobile to save space */
    }

    .terminal-title {
        font-size: 0.75rem;
        flex: 1 1 auto;
    }

    .notebook-btn-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .quick-queries {
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
    }

    .query-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }

    .preview-container {
        padding: 1rem;
        min-height: 240px;
    }

    .state-chain {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mock-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-right: 0;
        padding-bottom: 0.75rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .mock-sidebar-node.indent-1 {
        padding-left: 0;
    }

    .mock-sidebar-node.indent-2 {
        padding-left: 0;
    }

    .step-content h3 {
        font-size: 1.05rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .disclaimer-card {
        padding: 0.75rem;
    }

    .platform-links {
        gap: 0.5rem;
    }

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

/* Track Selector Styles */
.track-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.track-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.track-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.track-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.track-tab.active {
    background: var(--primary-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

#tab-startup.active {
    background: var(--secondary-accent);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Conditional Field Styling */
.form-group-conditional {
    display: none !important;
}

.form-group-conditional.active {
    display: flex !important;
    flex-direction: column;
}



