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

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.1);
    --success: #10b981;
    --info: #3b82f6;
    --text: #0f172a;
    --text-muted: #64748b;
    --terminal-bg: #0f172a;
    --panel-bg: #fdfdfd;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mesh {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    z-index: -1;
}

header {
    height: 70px;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links button, .nav-links a {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
}

.nav-links button.active {
    color: var(--accent);
    background: #f1f5f9;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.view {
    display: none;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    animation: slideUp 0.4s ease-out;
}

.view.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.hero-view { text-align: center; }

.hero-view h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 950;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.hero-view h1 span { color: var(--accent); }

.hero-view p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
}

.workstation-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    height: 100%;
}

.sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pipeline-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.pipeline-card:hover { border-color: var(--accent); }
.pipeline-card.active {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.pipeline-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.25rem; }
.pipeline-card p { font-size: 0.8rem; color: var(--text-muted); }

.main-workstation {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.05);
}

.workstation-toolbar {
    padding: 1.2rem 2.5rem;
    background: #fdfdfd;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workstation-shell {
    flex: 1;
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
}

.terminal-panel {
    background: var(--terminal-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.panel-title {
    padding: 0.75rem 1.5rem;
    background: rgba(0,0,0,0.2);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    letter-spacing: 0.1em;
}

.terminal-logs {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.preview-panel {
    background: var(--panel-bg);
    display: flex;
    flex-direction: column;
}

.preview-grid {
    flex: 1;
    padding: 1.5rem;
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    background: white;
}

.data-table th {
    background: #f8fafc;
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 800;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
}

.data-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
}

.log-line { margin-bottom: 0.4rem; }
.log-prompt { color: var(--accent); margin-right: 10px; font-weight: 700; opacity: 0.8; }
.log-success { color: var(--success); font-weight: 800; }

.input-field {
    background: white;
    border: 1px solid var(--border);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    width: 250px;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.75rem;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

footer {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    background: white;
}
