/* ==========================================================================
   Bellaaaaa AI Agent Hub - Modern Calm Design System
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Calm Dark Mode (Default) */
    --bg-base: #090d16;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #151f36;
    --bg-glass: rgba(15, 23, 42, 0.75);
    --bg-glass-subtle: rgba(15, 23, 42, 0.45);
    --bg-card: rgba(21, 31, 54, 0.65);
    --bg-card-hover: rgba(28, 41, 71, 0.85);

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-highlight: rgba(56, 189, 248, 0.35);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-highlight: #e2e8f0;

    /* Calm Sophisticated Accents */
    --accent-cyan: #38bdf8;
    --accent-indigo: #818cf8;
    --accent-teal: #34d399;
    --accent-amber: #fbbf24;
    --accent-rose: #fb7185;

    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-glow: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
    --gradient-surface: linear-gradient(180deg, rgba(21, 31, 54, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --canvas-dots: rgba(56, 189, 248, 0.65);
    --canvas-lines: rgba(129, 140, 248, 0.16);
    --canvas-glow: rgba(56, 189, 248, 0.3);

    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --font-display: 'Outfit', 'Pretendard', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-subtle: rgba(248, 250, 252, 0.65);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: #ffffff;

    --border-subtle: rgba(15, 23, 42, 0.07);
    --border-medium: rgba(15, 23, 42, 0.12);
    --border-highlight: rgba(14, 165, 233, 0.45);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-highlight: #0284c7;

    --accent-cyan: #0284c7;
    --accent-indigo: #6366f1;
    --accent-teal: #0d9488;
    --accent-amber: #d97706;
    --accent-rose: #e11d48;

    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
    --gradient-glow: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.8) 100%);

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.12);

    --canvas-dots: rgba(2, 132, 199, 0.55);
    --canvas-lines: rgba(99, 102, 241, 0.14);
    --canvas-glow: rgba(2, 132, 199, 0.22);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.brand-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    border: 1px solid var(--border-highlight);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

@media (max-width: 860px) {
    .nav-menu {
        display: none;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease, background 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-subtle);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-info-highlight {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-info-highlight:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

/* ==========================================================================
   Hero Section with Dot-Line Canvas Animation
   ========================================================================== */

.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-ambient-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 650px;
    height: 450px;
    background: var(--gradient-glow);
    filter: blur(90px);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    pointer-events: auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    color: var(--accent-cyan);
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.8s ease backwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    animation: fadeInUp 0.9s ease backwards 0.1s;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.25rem auto;
    line-height: 1.65;
    font-weight: 400;
    animation: fadeInUp 0.9s ease backwards 0.2s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.9s ease backwards 0.3s;
}

.hero-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.9s ease backwards 0.4s;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-item svg, .meta-item i {
    color: var(--accent-cyan);
}

.meta-item strong {
    color: var(--text-primary);
}

/* ==========================================================================
   Section Title & Header
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Server Dashboard (4 Cards - Right below Hero)
   ========================================================================== */

.dashboard-section {
    padding: 30px 0 80px 0;
    position: relative;
    z-index: 10;
}

.dashboard-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

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

@media (max-width: 640px) {
    .dashboard-grid-4 {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.metric-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.metric-card.mem .metric-icon-wrap {
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent-indigo);
    border-color: rgba(129, 140, 248, 0.2);
}

.metric-card.disk .metric-icon-wrap {
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-teal);
    border-color: rgba(52, 211, 153, 0.2);
}

.metric-card.net .metric-icon-wrap {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-amber);
    border-color: rgba(251, 191, 36, 0.2);
}

.metric-badge {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-teal);
    border: 1px solid rgba(52, 211, 153, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.metric-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.metric-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.metric-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.metric-bar-container {
    width: 100%;
    height: 6px;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.metric-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card.disk .metric-bar-fill {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.metric-card.net .metric-bar-fill {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.metric-subtext {
    display: flex;
    justify-content: space-between;
    font-size: 0.775rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.dashboard-banner-link {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.dashboard-banner-link:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* ==========================================================================
   AI Agent Features Section (Feature Links & Action Cards)
   ========================================================================== */

.features-section {
    padding: 60px 0 100px 0;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.feature-card-top {
    margin-bottom: 1.5rem;
}

.feature-icon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: all 0.25s ease;
}

.feature-card:hover .feature-icon-box {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.status-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pill.active {
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-teal);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-pill.beta {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-pill.progress {
    background: rgba(129, 140, 248, 0.12);
    color: var(--accent-indigo);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.status-pill.planned {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.tag-item {
    font-size: 0.725rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
}

.feature-card-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

.feature-card-actions .btn {
    flex: 1;
    font-size: 0.825rem;
    padding: 0.55rem 0.9rem;
}

/* ==========================================================================
   Live AI Agent Playground / Sandbox Terminal
   ========================================================================== */

.console-section {
    padding: 40px 0 100px 0;
    position: relative;
    z-index: 10;
}

.console-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.console-header {
    background: var(--bg-surface-elevated);
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-window-controls {
    display: flex;
    gap: 6px;
}

.win-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.win-dot.red { background: #ef4444; }
.win-dot.yellow { background: #f59e0b; }
.win-dot.green { background: #10b981; }

.console-title-bar {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.console-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
    color: var(--text-primary);
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.log-entry {
    display: flex;
    gap: 0.75rem;
    line-height: 1.5;
}

.log-prefix {
    color: var(--accent-cyan);
    user-select: none;
    font-weight: 600;
}

.log-prefix.ai {
    color: var(--accent-indigo);
}

.log-prefix.system {
    color: var(--accent-teal);
}

.log-text {
    color: var(--text-primary);
    word-break: break-word;
}

.console-preset-pills {
    padding: 0.75rem 1.5rem;
    background: var(--bg-surface-elevated);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.preset-pill-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.25rem;
}

.preset-btn {
    font-size: 0.775rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.preset-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

.console-input-area {
    padding: 0.85rem 1.25rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.console-input {
    flex: 1;
    background: var(--bg-base);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.console-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    max-width: 580px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--bg-surface-elevated);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    margin-top: auto;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 30px 0;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand-p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.85rem;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 3.5rem;
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}
