:root {
    /* Brand Colors - Professional & Trustworthy Blue */
    --primary-h: 220;
    --primary-s: 90%;
    --primary-l: 52%;
    /* Slightly darker/richer blue */
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 40%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 96%);
    /* Very subtle background tint */
    --primary-rgb: 37, 99, 235;
    /* Tailwind blue-600 match */

    /* Secondary/Accent */
    --accent: #0ea5e9;
    /* Sky blue */

    /* Neutrals - Slate/Inter Grays for sharpness */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --text-main: var(--gray-800);
    --text-muted: var(--gray-500);

    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-secondary: var(--gray-50);

    /* Shadows meant for depth, not effect */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------- */
/*                                 Base Styles                                */
/* -------------------------------------------------------------------------- */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    /* Tight tracking for modern look */
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-balance {
    text-wrap: balance;
}

/* Better headers */

/* -------------------------------------------------------------------------- */
/*                                 Components                                 */
/* -------------------------------------------------------------------------- */

/* Standardized Card (Replaces Glass) */
.card-modern {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    /* For grid consistency */
    display: flex;
    flex-direction: column;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Subtle glass effect only where appropriate (e.g., sticky headers) */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-custom {
    background-color: white;
    border-color: var(--gray-200);
    color: var(--gray-700);
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--gray-50);
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--gray-900) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--gray-50);
}

.nav-link.active {
    color: #FFFFFF !important;
    background-color: var(--gray-50);
}

/* -------------------------------------------------------------------------- */
/*                               Sections & Layout                            */
/* -------------------------------------------------------------------------- */

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-surface-secondary {
    background-color: var(--bg-surface-secondary);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

/* Hero Pages (Uniform) */
.hero-page {
    position: relative;
    padding: 5rem 0 6rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--gray-100);
}

.hero-page h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
}

.hero-page .lead {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* Icons within cards */
.icon-box-modern {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Feature Check Lists */
.list-checked li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-600);
}

.list-checked li::before {
    content: "\f00c";
    /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 0.85em;
}

.list-checked.list-checked-white li {
    color: rgba(255, 255, 255, 0.8);
}

.list-checked.list-checked-white li::before {
    color: #4ade80;
    /* Tailwind green-400 */
}

/* Form Controls */
.form-control {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-success {
    background-color: #ecfdf5;
    color: #047857;
}

.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
}

.alert-info {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* -------------------------------------------------------------------------- */
/*                                 New Effects                                */
/* -------------------------------------------------------------------------- */

/* Abstract Blobs for Backgrounds */
.absolute-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* 3xl equivalent */
    z-index: 0;
    opacity: 0.15;
    transition: all 1s ease;
}

.blur-3xl {
    filter: blur(64px);
}

/* Ensure Cards sit above blobs */
.card-modern {
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Keep content inside */
    background: var(--bg-surface);
    /* Standard background, overridable */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Status Dots */
.api-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Hover Arrow Animation */
.hover-arrow i {
    transition: transform 0.2s;
}

.hover-arrow:hover i {
    transform: translateX(4px);
}

/* Z-Index Utility */
.z-n1 {
    z-index: -1;
}

/* Vstack */
.vstack {
    display: flex;
    flex-direction: column;
}

/* Avatar Group */
.avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid white;
}

.hide {
    display: none;
}