/* --- Apple/Modern SaaS Aesthetics --- */
:root {
    --app-accent: #2997ff;
    --app-accent-hover: #0077ed;
    --app-bg-light: #f5f5f7;
    --app-card-light: #ffffff;
    --app-bg-dark: #000000;
    --app-card-dark: #1c1c1e;
    --card-radius: 24px;
    --transition-speed: 0.4s;
}
body {
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 { letter-spacing: -0.025em; font-weight: 700; }
p { letter-spacing: -0.01em; line-height: 1.6; }
.text-gradient {
    background: linear-gradient(135deg, #2997ff 0%, #9f55ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar Glass & Responsive Tweaks */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 70px;
    transition: background-color var(--transition-speed);
}
[data-bs-theme="dark"] .navbar {
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Mobile Menu Styling Fix */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--app-card-light);
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }
    [data-bs-theme="dark"] .navbar-collapse {
        background-color: #1c1c1e; /* Match card dark */
        border: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    [data-bs-theme="dark"] .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .mobile-actions {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Buttons */
.btn { border-radius: 99px; font-weight: 500; padding: 10px 24px; font-size: 14px; transition: all 0.2s ease; }
.btn-primary { background-color: var(--app-accent); border: none; }
.btn-primary:hover { background-color: var(--app-accent-hover); transform: scale(1.02); }

/* Cards */
.bento-card {
    background-color: var(--app-card-light);
    border-radius: var(--card-radius);
    padding: 40px;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[data-bs-theme="dark"] .bento-card {
    background-color: var(--app-card-dark);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: none;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* Workflow Visuals */
.workflow-node {
    background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
    border-radius: 12px; padding: 15px; width: 100%; position: relative; z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.workflow-line { width: 2px; height: 30px; background: var(--bs-border-color); margin: 0 auto; }
.workflow-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* Tool Creation Visual (Added back) */
.tool-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    position: relative;
    padding: 0 15px;
}
.tool-circle {
    width: 60px;
    height: 60px;
    background: var(--app-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    border: 5px solid var(--bs-body-bg);
    box-shadow: 0 0 0 2px var(--app-accent);
    z-index: 10;
}
.tool-line {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--bs-border-color);
    z-index: 1;
}
.tool-step:not(:last-child) .tool-line {
    left: 50%;
    width: 100%;
    transform: translate(-50%, 0);
}
@media (min-width: 768px) {
    .tool-line {
        width: calc(100% - 30px);
        left: 50%;
        transform: translate(-50%, 0);
    }
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 16px; padding: 1rem; background-color: rgba(0,0,0,0.03); border: 1px solid transparent; font-size: 15px;
}
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select {
    background-color: rgba(255,255,255,0.07); color: white;
}
.form-control:focus { background-color: transparent; border-color: var(--app-accent); box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.15); }

.bg-soft { background-color: var(--app-bg-light); }
[data-bs-theme="dark"] .bg-soft { background-color: #09090a; }

/* Page Header generic */
.page-header { padding: 8rem 0 4rem; text-align: center; }
