/* Fix for admin user avatar image clarity and fit */
.user-avatar-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* --- Enhanced Terms & Privacy Card Layout --- */
.terms-privacy-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px 0 rgba(30,34,90,0.08), 0 1.5px 4px 0 rgba(30,34,90,0.04);
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 48px auto 48px auto;
    padding: 2.5rem 2.2rem 2.2rem 2.2rem;
    position: relative;
}
.terms-privacy-card h1.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    color: var(--text-primary);
    text-align: left;
}
.terms-privacy-card .lead {
    color: var(--text-secondary);
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
    text-align: left;
}
.terms-privacy-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 0.7rem;
    color: var(--text-primary);
}
.terms-privacy-card ul {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    padding-left: 1.3rem;
    font-size: 1.05rem;
    line-height: 1.7;
}
.terms-privacy-card li {
    margin-bottom: 0.5rem;
}
.terms-privacy-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}
@media (max-width: 800px) {
    .terms-privacy-card {
        padding: 1.5rem 0.7rem 1.5rem 0.7rem;
        margin: 32px 8px 32px 8px;
    }
    .terms-privacy-card h1.section-title { font-size: 1.5rem; }
    .terms-privacy-card .lead { font-size: 1rem; }
}
/* --- Public Info Pages (Documentation, About, Careers, Contact, Privacy, Terms, Disclaimer) --- */
.page-docs, .page-about, .page-careers, .page-contact, .page-privacy, .page-terms, .page-disclaimer {
    background: var(--background-color);
    color: var(--text-primary);
    min-height: 70vh;
    margin-top: 32px;
}
.page-docs, .page-about, .page-careers, .page-contact, .page-privacy, .page-terms, .page-disclaimer {
    padding: 48px 0 0 0;
}
.page-docs .container, .page-about .container, .page-careers .container, .page-contact .container, .page-privacy .container, .page-terms .container, .page-disclaimer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.page-docs .section-title, .page-about .section-title, .page-careers .section-title, .page-contact .section-title, .page-privacy .section-title, .page-terms .section-title, .page-disclaimer .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}
.page-docs .lead, .page-about .lead, .page-careers .lead, .page-contact .lead, .page-privacy .lead, .page-terms .lead, .page-disclaimer .lead {
    color: var(--text-secondary);
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
    max-width: 700px;
}
.docs-list, .about-content, .careers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}
.docs-card, .about-block, .career-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex: 1 1 240px;
    min-width: 220px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: box-shadow 0.2s;
}
.docs-card h3, .about-block h3, .career-card h3 {
    color: var(--text-primary);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.docs-card p, .about-block p, .about-block ul, .career-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}
.about-block ul, .page-privacy ul, .page-terms ul, .page-disclaimer ul { padding-left: 1.2rem; }
.about-block li, .page-privacy li, .page-terms li, .page-disclaimer li { margin-bottom: 0.5rem; }
.docs-card .btn, .career-card .btn { font-size: 0.97rem; margin-top: auto; }
.career-card:hover { box-shadow: var(--shadow-md); }
@media (max-width: 900px) {
    .docs-list, .about-content, .careers-list, .contact-flex { flex-direction: column; gap: 1.5rem; }
    .docs-card, .about-block, .career-card { max-width: 100%; }
}
@media (max-width: 600px) {
    .page-docs .section-title, .page-about .section-title, .page-careers .section-title, .page-contact .section-title, .page-privacy .section-title, .page-terms .section-title, .page-disclaimer .section-title { font-size: 1.5rem; }
    .page-docs .lead, .page-about .lead, .page-careers .lead, .page-contact .lead, .page-privacy .lead, .page-terms .lead, .page-disclaimer .lead { font-size: 1rem; }
    .docs-card, .about-block, .career-card, .contact-form { padding: 1.2rem 1rem; }
}
/* Contact page specific */
.contact-flex {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.contact-info {
    flex: 1 1 320px;
    max-width: 400px;
    margin-bottom: 2rem;
}
.contact-icon { margin-bottom: 1.2rem; }
.contact-details {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
}
.contact-details li { margin-bottom: 0.7rem; }
.contact-details a { color: var(--primary-color); text-decoration: underline; }
.contact-form {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem 2rem 2.5rem;
    max-width: 650px;
    width: 100%;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .contact-form { max-width: 100%; padding: 1.2rem 1rem; }
}

/* Privacy & Terms headings */
:root {
    --primary-color: #1E3A8A;
    --primary-dark: #1F4ED8;
    --primary-gradient: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    --secondary-color: #3B82F6;
    --accent-color: #14B8A6;
    --accent-light: #5EEAD4;
    --surface-elevated: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #334155;
    --text-light: #64748B;
    --text-inverse: #FFFFFF;
    --border-color: #E5E7EB;
    --border-light: #F1F5F9;
    --error-color: #EF4444;
    --error-light: #FEE2E2;
    --success-color: #10B981;
    --success-light: #D1FAE5;
    --warning-color: #F59E0B;
    --warning-light: #FEF3C7;
    --info-color: #3B82F6;
    --info-light: #DBEAFE;
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(30, 58, 138, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1F4ED8 0%, #1E3A8A 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: none;
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--background-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-yellow {
    background: #f2a900;
    color: #163a5f;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(242,169,0,0.18);
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(242,169,0,0.22);
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-md);
}

.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* Global button safety: prevent text/icon disappearance across states */
.btn,
.btn i,
.btn span {
    color: inherit;
    -webkit-text-fill-color: currentColor;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
}

.btn-outline,
.btn-outline:focus,
.btn-outline:active {
    color: var(--primary-color);
}

.btn-outline:hover {
    color: #fff;
}

.btn-secondary,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    color: #fff;
}

.btn:disabled,
.btn[disabled],
.btn.disabled {
    opacity: 0.65;
    color: inherit;
    -webkit-text-fill-color: currentColor;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xs);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-toggle::before {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    order: 2;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1100;
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.nav-submenu a.active::after {
    display: none;
}

.nav-submenu a:hover,
.nav-submenu a.active {
    background: #eff6ff;
    color: var(--primary-color);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    background-color: var(--background-color);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}


.hero {
    padding: 160px 0 100px;
    /* Open source SVG background from SVGBackgrounds.com, color-matched to theme */
    background: 
        linear-gradient(135deg, #1E3A8A 0%, #1F4ED8 100%),
        url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 1200 800" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="1200" height="800" fill="url(%23paint0_linear)"/><defs><linearGradient id="paint0_linear" x1="0" y1="0" x2="1200" y2="800" gradientUnits="userSpaceOnUse"><stop stop-color="%231E3A8A"/><stop offset="1" stop-color="%231F4ED8"/></linearGradient></defs></svg>');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30,58,138,0.08); /* subtle overlay for depth */
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-shadow: 0 2px 16px rgba(0,0,0,0.20), 0 1px 2px rgba(0,0,0,0.10);
}

.hero-content .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.7;
    text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 56px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.chat-preview {
    background: rgba(255,255,255,0.96);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    width: 380px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.chat-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.chat-header {
    background: linear-gradient(90deg, #3B82F6 0%, #1E3A8A 100%);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background-color: #fff;
    color: #1E3A8A;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.chat-info h4 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.chat-info span {
    font-size: 13px;
    opacity: 0.8;
}

.chat-messages {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 200px;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    line-height: 1.5;
}

.message.bot {
    background-color: #f3f4fa;
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-sm);
}

.message.user {
    background: linear-gradient(90deg, #14B8A6 0%, #3B82F6 100%);
    color: #fff;
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-sm);
}

.features {
    padding: 120px 0;
    background-color: var(--surface-color);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--primary-light);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: var(--surface-color);
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.how-it-works {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--background-color) 0%, var(--surface-color) 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
}

.step {
    text-align: center;
    padding: 48px 32px;
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    color: white;
    font-size: 24px;
    font-weight: 800;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
}

.step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.cta {
    padding: 120px 0;
    background: var(--background-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta .container {
    position: relative;
}

.cta h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 20px;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: #FFD700;
    color: #1E3A8A;
    box-shadow: 0 8px 32px rgba(255,215,0,0.35), 0 2px 8px rgba(30,58,138,0.15);
    border: none;
    font-size: 1.18rem;
    padding: 18px 38px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.15s, box-shadow 0.15s;
}

.cta .btn-primary:hover {
    background: #FFC107;
    color: #1E3A8A;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 36px rgba(255,215,0,0.45), 0 4px 16px rgba(30,58,138,0.18);
}

/* ── Public front-page CTA buttons: gold on dark/coloured backgrounds ── */

/* Hero section buttons */
.hero-buttons .btn-primary {
    background: #FFD700;
    color: #1E3A8A;
    box-shadow: 0 4px 18px rgba(255,215,0,0.4);
}
.hero-buttons .btn-primary:hover {
    background: #FFC107;
    color: #1E3A8A;
    box-shadow: 0 6px 24px rgba(255,215,0,0.55);
}
.hero-buttons .btn-outline {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}
.hero-buttons .btn-outline:hover {
    background-color: #FFD700;
    color: #1E3A8A;
}

/* Pricing card CTA buttons (both landing and /pricing) */
.pricing-card .btn-primary {
    background: #FFD700;
    color: #1E3A8A;
    box-shadow: 0 4px 14px rgba(255,215,0,0.35);
}
.pricing-card .btn-primary:hover {
    background: #FFC107;
    color: #1E3A8A;
    box-shadow: 0 6px 20px rgba(255,215,0,0.5);
    transform: translateY(-2px);
}
/* Ensure text stays dark on all states */
.hero-buttons .btn-primary,
.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus,
.hero-buttons .btn-primary:active,
.pricing-card .btn-primary,
.pricing-card .btn-primary:hover,
.pricing-card .btn-primary:focus,
.pricing-card .btn-primary:active,
.cta .btn-primary,
.cta .btn-primary:hover,
.cta .btn-primary:focus,
.cta .btn-primary:active {
    color: #1E3A8A;
}

/* Pricing card CTA group: stack buttons and keep spacing consistent */
.pricing-card .hero-ctas {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.pricing-card .hero-ctas .btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(6,24,64,0.08);
    text-align: center;
}

/* Blue CTA for ROI — visually distinct from gold primary */
.btn-red {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37,99,235,0.18);
    border: none;
    font-weight: 700;
}
.btn-red:hover {
    background: linear-gradient(135deg, #1E40FF 0%, #1D4ED8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.22);
}

@media (min-width: 1100px) {
    /* On wide screens keep CTA buttons compact and aligned */
    .pricing-card .hero-ctas { flex-direction: column; }
}

.footer {
    background-color: var(--background-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
}

.footer-brand .logo-text {
    background: none;
    -webkit-text-fill-color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-fast);
}

.footer-column ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-color);
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success-color);
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

.badge-error {
    background-color: var(--error-light);
    color: var(--error-color);
}

.badge-info {
    background-color: var(--info-light);
    color: var(--info-color);
}

.input-group {
    position: relative;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--surface-color);
    transition: all var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-group .input-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

.input-group.error input {
    border-color: var(--error-color);
}

.input-group.error .input-error {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
}

.card {
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-color);
}

.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--background-color);
}

.table td {
    font-size: 14px;
}

.table tbody tr:hover {
    background-color: var(--background-color);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    background: var(--primary-gradient);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 18px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 24px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-color);
}

.alert-error {
    background-color: var(--error-light);
    color: var(--error-color);
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

.alert-info {
    background-color: var(--info-light);
    color: var(--info-color);
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 56px;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 24px;
        letter-spacing: -0.02em;
        color: #fff;
        text-shadow: 0 2px 16px rgba(30,58,138,0.12), 0 1px 2px rgba(0,0,0,0.08);
    }
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .steps::before {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        height: 64px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--surface-color);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-dropdown .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 12px;
        min-width: 0;
    }

    .nav-dropdown .nav-submenu a {
        padding: 8px 0;
        border-radius: 0;
    }

    .nav-dropdown .nav-submenu a:hover,
    .nav-dropdown .nav-submenu a.active {
        background: transparent;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        color: #bfdbfe;
        margin-bottom: 40px;
        max-width: 520px;
        line-height: 1.7;
        text-shadow: 0 1px 8px rgba(30,58,138,0.10);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .cta h2 {
        font-size: 32px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ============================================
   UTILITY CLASSES - REFACTORED FROM INLINE STYLES
   ============================================ */

/* Display Utilities */
.d-none { display: none; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-flex { display: inline-flex !important; }

/* Modal specific utility */
.modal-hidden { display: none !important; }

/* Flexbox Utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.flex-1 { flex: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* Gap Utilities */
.gap-5 { gap: 5px !important; }
.gap-10 { gap: 10px !important; }
.gap-15 { gap: 15px !important; }
.gap-20 { gap: 20px !important; }

/* Margin Utilities */
.m-0 { margin: 0 !important; }
.mt-5 { margin-top: 5px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-5 { margin-bottom: 5px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mr-8 { margin-right: 8px !important; }
.ml-50 { margin-left: 50px !important; }

/* Padding Utilities */
.p-0 { padding: 0 !important; }
.pt-10 { padding-top: 10px !important; }
.pt-20 { padding-top: 20px !important; }
.pb-10 { padding-bottom: 10px !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Font Sizes */
.font-size-12 { font-size: 12px !important; }
.font-size-13 { font-size: 13px !important; }
.font-size-14 { font-size: 14px !important; }
.font-size-2rem { font-size: 2rem !important; }

/* Font Weight */
.font-weight-600 { font-weight: 600 !important; }

/* Colors */
.text-primary-color { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-light { color: var(--text-light) !important; }
.text-muted { color: #666 !important; }
.text-gray { color: #94a3b8 !important; }
.text-completed { color: #22C55E !important; }
.text-transferred { color: #3B82F6!important; }
.text-missed { color: #EF4444 !important; }

/* Backgrounds */
.bg-transparent { background: transparent !important; }
.bg-cover { background-size: cover !important; }
.bg-center { background-position: center !important; }

/* Border */
.border-top { border-top: 1px solid #eee !important; }

/* Width & Height */
.w-100 { width: 100% !important; }
.h-auto { height: auto !important; }
.max-w-150 { max-width: 150px !important; }

/* White Space */
.whitespace-nowrap { white-space: nowrap !important; }

/* Visibility */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Avatar with background image */
.avatar-bg-image {
    background-size: cover;
    background-position: center;
    color: transparent;
}

/* Icon spacing */
.icon-left {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Form section header */
.form-section-header-mt {
    margin-top: 20px;
}

/* Chart placeholder */
.chart-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
}

/* Chart icon */
.chart-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Empty state icon */
.empty-state-icon {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
}

/* Tenant header card */
.tenant-header-card {
    margin-bottom: 20px;
}

.tenant-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tenant-header-info {
    flex: 1;
}

.tenant-header-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.tenant-status-badge {
    font-size: 12px;
}

.tenant-domain-text {
    margin: 5px 0 0 50px;
    color: #64748B;
    font-size: 14px;
}

/* User avatar with background */
.user-avatar-bg {
    background-size: cover;
    background-position: center;
}

/* Plan progress bars */
.plan-progress-bar {
    width: 100%;
}

/* Hour bar with CSS variable height */
.hour-bar-height {
    --height: 0%;
}

/* Modal content variations */
.modal-content-lg {
    max-width: 700px;
}

/* Form grid layouts */
.form-grid-2col {
    grid-template-columns: 1fr 1fr;
}

.form-grid-3col {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Table row inactive */
.table-row-inactive {
    opacity: 0.6;
    background-color: #f9fafb;
}

/* Empty state containers */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    margin-bottom: 0.5rem;
}

.empty-state-text {
    margin: 0;
    color: #888;
}

/* Setup page footer */
.setup-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.setup-footer-text {
    color: #666;
    font-size: 14px;
}

/* Error pages */
.error-exception-box {
    margin: 20px 15px;
    padding: 15px;
    background: #f8f8f8;
    border-left: 4px solid #e74c3c;
    font-family: monospace;
}

.error-trace-box {
    margin: 20px 15px;
    padding: 15px;
    background: #f0f0f0;
    border-left: 4px solid #3498db;
    max-height: 400px;
    overflow-y: auto;
}

.error-trace-pre {
    margin: 10px 0;
    font-size: 11px;
    line-height: 1.4;
}

.error-warning-box {
    margin: 20px 15px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    font-size: 12px;
}

/* Inline form elements */
.inline-form {
    display: inline;
}

/* Settings button margin */
.settings-submit-btn {
    margin-top: 20px;
}

/* Maintenance toggle row */
.maintenance-toggle-row {
    margin-top: 20px;
}

/* --- Landing Page Styles (migrated from landing.php) --- */
.text-center { text-align: center !important; }
.mt-3 { margin-top: 32px !important; }

/* Responsive hero layout */
.hero-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.hero-content {
    flex: 1 1 340px;
    min-width: 320px;
    max-width: 540px;
}
.hero-image {
    flex: 1 1 320px;
    min-width: 300px;
    display: flex;
    justify-content: center;
}
@media (max-width: 900px) {
    .hero-flex { flex-direction: column; gap: 32px; }
    .hero-content, .hero-image { max-width: 100%; }
}
/* Chat animation */
.chat-animate .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: chatFadeIn 0.7s forwards;
}
.chat-animate .fade-in:nth-child(1) { animation-delay: 0.2s; }
.chat-animate .fade-in:nth-child(2) { animation-delay: 0.7s; }
.chat-animate .fade-in:nth-child(3) { animation-delay: 1.2s; }
@keyframes chatFadeIn {
    to { opacity: 1; transform: none; }
}

/* What We Do Section */
.what-we-do-section {
    background: #fff;
    padding: 80px 0 60px;
}
.what-we-do-row {
    display: flex;
    justify-content: center;
}
.what-we-do-content {
    max-width: 600px;
    text-align: left;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    margin-top: 1.2rem;
    color: #0f172a;
}
.section-lead {
    color: #64748b;
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
}
.what-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.what-icon {
    font-size: 1.3em;
    margin-right: 10px;
    vertical-align: middle;
}
@media (max-width: 600px) {
    .what-we-do-section { padding: 48px 0 32px; }
    .section-title { font-size: 1.5rem; }
    .section-lead { font-size: 1rem; }
}

/* Why Choose Us Section */
.why-choose-section {
    background: #f8fafc;
    padding: 80px 0 60px;
}
.why-choose-row {
    display: flex;
    justify-content: center;
}
.why-choose-content {
    max-width: 600px;
    text-align: left;
}
.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.why-icon {
    font-size: 1.3em;
    margin-right: 10px;
    vertical-align: middle;
}
@media (max-width: 600px) {
    .why-choose-section { padding: 48px 0 32px; }
}




/* Responsive hero layout */
.hero-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.hero-content {
    flex: 1 1 340px;
    min-width: 320px;
    max-width: 540px;
}
.hero-image {
    flex: 1 1 320px;
    min-width: 300px;
    display: flex;
    justify-content: center;
}
@media (max-width: 900px) {
    .hero-flex { flex-direction: column; gap: 32px; }
    .hero-content, .hero-image { max-width: 100%; }
}
/* Chat animation */
.chat-animate .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: chatFadeIn 0.7s forwards;
}
.chat-animate .fade-in:nth-child(1) { animation-delay: 0.2s; }
.chat-animate .fade-in:nth-child(2) { animation-delay: 0.7s; }
.chat-animate .fade-in:nth-child(3) { animation-delay: 1.2s; }
@keyframes chatFadeIn {
    to { opacity: 1; transform: none; }
}


/* What We Do Section */
.what-we-do-section {
    background: #fff;
    padding: 80px 0 60px;
}
.what-we-do-row {
    display: flex;
    justify-content: center;
}
.what-we-do-content {
    max-width: 600px;
    text-align: left;
}

.section-lead {
    color: #64748b;
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
}
.what-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.what-icon {
    font-size: 1.3em;
    margin-right: 10px;
    vertical-align: middle;
}
@media (max-width: 600px) {
    .what-we-do-section { padding: 48px 0 32px; }
    .section-title { font-size: 1.5rem; }
    .section-lead { font-size: 1rem; }
}

/* Why Choose Us Section */
.why-choose-section {
    background: #f8fafc;
    padding: 80px 0 60px;
}
.why-choose-row {
    display: flex;
    justify-content: center;
}
.why-choose-content {
    max-width: 600px;
    text-align: left;
}
.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.why-icon {
    font-size: 1.3em;
    margin-right: 10px;
    vertical-align: middle;
}
@media (max-width: 600px) {
    .why-choose-section { padding: 48px 0 32px; }
}



.pricing-cards {
    padding: 80px 0 100px;
    background: #f8fafc;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    margin-top: 40px;
    align-items: start;
}

/* Keep common 4-plan pricing pages balanced as 2x2 instead of 3+1 wrapping. */
.pricing-grid.plans-count-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1400px;
}
.pricing-card {
    background-color: #fff;
    border-radius: 24px;
    padding: 40px 32px 32px 32px;
    box-shadow: 0 4px 24px 0 rgba(30,34,90,0.08), 0 1.5px 4px 0 rgba(30,34,90,0.04);
    border: 2px solid transparent;
    transition: all 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    flex: 1 1 0%;
    box-sizing: border-box;
}
.pricing-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(30,58,138,0.13), 0 2px 8px 0 rgba(30,34,90,0.07);
}
.pricing-card.popular {
    border-color: #1E3A8A;
    box-shadow: 0 8px 32px 0 rgba(30,58,138,0.18), 0 2px 8px 0 rgba(30,34,90,0.09);
    transform: scale(1.05);
    z-index: 1;
}
.popular-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}
.plan-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #0f172a;
}
.plan-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.2rem;
}
.plan-price {
    margin-bottom: 24px;
    font-size: clamp(1.2rem, 2.2vw, 2.1rem);
    font-weight: 800;
    color: #1E3A8A;
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1;
    word-break: break-word;
    hyphens: auto;
}
.plan-price .price {
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    font-weight: 900;
    color: #1E3A8A;
    white-space: nowrap;
}
.plan-price .period, .plan-annual { font-size: 1rem; color: #64748b; font-weight: 400; }
.plan-annual { margin-left: 8px; }
.plan-features {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 1rem;
}
.plan-features .check-icon { color: #10b981; font-weight: 700; }
.plan-note {
    font-size: 0.98rem;
    color: #3B82F6;
    margin-top: 10px;
}
@media (max-width: 1400px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .pricing-grid.plans-count-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

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

/* How It Works Steps Modern */
.how-it-works-steps {
    background: #fff;
    padding: 80px 0 60px;
}

/* Visual Process section styling */
.process-section { padding: 72px 0; background: #fff; }
.process-section .section-title { margin-bottom: 12px; }
.process-lead { color: var(--text-secondary); margin-bottom: 28px; max-width: 820px; margin-left:auto; margin-right:auto; text-align:center; }
.process-steps { display:flex; gap:0; align-items:center; justify-content:center; flex-wrap:wrap; overflow:visible; padding: 14px 8px; max-width:1200px; margin:0 auto; }
.process-step { background:#f8fafc; padding:18px 20px; border-radius:14px; min-width:140px; display:flex; flex-direction:column; align-items:center; text-align:center; box-shadow: 0 4px 18px rgba(6,24,64,0.04); border: 1px solid #eef2f7; flex: 1 1 220px; max-width: 260px; margin: 0; }
.process-step .step-index { width:36px; height:36px; border-radius:50%; background: linear-gradient(135deg,#1E3A8A,#3B82F6); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:8px; }
.process-arrow { font-size:18px; color:#94a3b8; margin: 0 4px; align-self:center; flex: 0 0 28px; }
.process-caption { font-weight:700; margin-top:8px; }
.process-description { color: var(--text-secondary); font-size:0.95rem; margin-top:6px; }

@media (min-width: 1100px) {
    /* Try to fit all steps in a single row by computing step width against arrow widths */
    .process-steps { gap:0; flex-wrap:nowrap; }
    .process-arrow { flex: 0 0 28px; }
    .process-step { box-sizing: border-box; padding:12px 14px; flex: 0 0 calc((100% - (4 * 28px)) / 5); max-width: calc((100% - (4 * 28px)) / 5); }
}

@media (max-width: 1100px) {
    .process-steps { gap:0; }
    .process-step { flex: 1 1 220px; max-width: 280px; }
}

@media (max-width: 720px) {
    /* Stack into two rows (or single column) on small screens and hide arrows for clarity */
    .process-steps { gap:0; }
    .process-step { flex: 0 0 48%; max-width: 48%; }
    .process-arrow { display:none; }
    /* Stack CTAs and make them full-width on small screens */
    .process-section .btn { display:block; width:100%; max-width: 360px; margin: 12px auto; }
    .process-section .btn.btn-outline { box-sizing:border-box; }
    /* Grow video notice to edge with comfortable padding */
    .video-notice { max-width: 100%; margin: 12px 14px; padding: 14px; border-radius: 8px; }
}

@media (max-width: 420px) {
    .process-step { flex: 0 0 100%; max-width: 100%; }
}

/* Video notice */
.video-notice { background: #fff8f0; border-left: 4px solid #ffb020; padding: 14px 18px; margin-top: 18px; border-radius: 8px; color: #6b4226; max-width: 920px; margin-left:auto; margin-right:auto; box-sizing: border-box; line-height:1.5; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 40px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.step-card {
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(30,34,90,0.06);
    padding: 2.2rem 1.7rem 1.7rem 1.7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 180px;
    text-align: left;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
    box-shadow: 0 8px 32px 0 rgba(30,58,138,0.13), 0 2px 8px 0 rgba(30,34,90,0.07);
    transform: translateY(-4px) scale(1.02);
}
.step-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.step-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}
.step-card p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0.7rem;
}
@media (max-width: 600px) {
    .steps-grid { gap: 16px; }
    .step-card { padding: 1.2rem 0.8rem; }
}


.testimonials-spacing {
    margin-bottom: 64px;
}
/* Block Grid System for Modern SaaS */
.block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 32px;
}
.block-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(30,34,90,0.08), 0 1.5px 4px 0 rgba(30,34,90,0.04);
    padding: 2.2rem 1.7rem 1.7rem 1.7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 180px;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #e2e8f0;
}
.block-card:hover {
    box-shadow: 0 8px 32px 0 rgba(30,58,138,0.13), 0 2px 8px 0 rgba(30,34,90,0.07);
    transform: translateY(-4px) scale(1.02);
}
.block-icon {
    font-size: 2.1rem;
    margin-bottom: 18px;
    color: #3B82F6;
}
.block-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}
.block-card p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0.7rem;
}
/* Testimonials Modern Style */
.testimonials-carousel {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.testimonial-card-modern {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1.5px solid #BFDBFE;
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(30,58,138,0.10), 0 2px 8px 0 rgba(30,34,90,0.06);
    padding: 2.5rem 2.2rem 2.2rem 2.2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 320px;
    max-width: 480px;
    flex: 1 1 340px;
    margin: 0 auto;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card-modern:hover {
    box-shadow: 0 12px 40px 0 rgba(30,58,138,0.18), 0 4px 16px 0 rgba(30,34,90,0.10);
    transform: translateY(-6px) scale(1.03);
}
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 700;
    margin-right: 28px;
    box-shadow: 0 2px 8px 0 rgba(30,58,138,0.13);
    flex-shrink: 0;
}
.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.testimonial-card-modern blockquote {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 0.7rem;
    line-height: 1.5;
    quotes: "\201C" "\201D";
}
.testimonial-card-modern blockquote:before {
    content: open-quote;
    color: #3B82F6;
    font-size: 2.2rem;
    vertical-align: -0.4em;
    margin-right: 0.1em;
}
.testimonial-author {
    color: #64748b;
    font-size: 1.02rem;
    margin-top: 0.2rem;
}
@media (max-width: 900px) {
    .testimonials-carousel {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }
    .testimonial-card-modern {
        max-width: 98vw;
        min-width: 0;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .testimonial-card-modern {
        padding: 1.2rem 0.8rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 12px;
    }
}

.faq-section {
  background: #f8fafc;
  padding: 80px 0 60px;
}
.faq-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  color: #0f172a;
  text-align: left;
}
.faq-list-modern {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq-block dt {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: #0f172a;
}
.faq-block dd {
  margin: 0 0 0.5rem 0;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .faq-section { padding: 48px 0 32px; }
  .faq-title { font-size: 1.5rem; }
  .faq-list-modern { gap: 20px; }
}

/* --- Landing page additional styles (restored) --- */
/* Enhanced hero chat preview styling */
.hero-image { display:flex; align-items:center; justify-content:center; }
.chat-preview.chat-animate { width: 360px; height: 540px; background: linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%); border-radius: 18px; padding: 12px; box-shadow: 0 10px 30px rgba(6,24,64,0.35); display:flex; flex-direction:column; }
.chat-preview.chat-animate .chat-header { display:flex; align-items:center; gap:12px; padding:10px; border-radius:12px; background:linear-gradient(90deg,#2b6df6,#4a90e2); color:#fff; font-weight:600; }
.chat-preview.chat-animate .chat-avatar { width:36px; height:36px; border-radius:50%; background:#fff; color:#2b6df6; display:flex; align-items:center; justify-content:center; font-weight:700; }
.chat-preview.chat-animate .chat-messages { flex:1; overflow:hidden; display:flex; flex-direction:column; gap:10px; padding:14px 8px; }
.chat-preview.chat-animate .message { max-width:85%; padding:10px 12px; border-radius:12px; font-size:15px; line-height:1.3; opacity:0; transform: translateY(6px); }
.chat-preview.chat-animate .message.bot { background:#eef6ff; color:#102a43; align-self:flex-start; }
.chat-preview.chat-animate .message.user { background:#e6ffef; color:#0f5132; align-self:flex-end; }
.chat-preview.chat-animate .chat-typing { display:flex; gap:6px; align-items:center; justify-content:flex-start; padding:12px; }
.chat-preview.chat-animate .chat-typing span { width:8px; height:8px; background:#cfd8ff; border-radius:50%; opacity:0.6; animation: blink 1.2s infinite; }
.chat-preview.chat-animate .chat-typing span:nth-child(2) { animation-delay:0.2s; }
.chat-preview.chat-animate .chat-typing span:nth-child(3) { animation-delay:0.4s; }

@keyframes blink { 0% { opacity:0.2; transform: translateY(0); } 50% { opacity:1; transform: translateY(-4px);} 100% { opacity:0.2; transform: translateY(0);} }

.fade-in { animation: fadeInUp 0.6s forwards; }
@keyframes fadeInUp { to { opacity:1; transform: translateY(0); } }

@media (max-width: 900px) {
    .chat-preview.chat-animate { width: 320px; height:480px; }
}

@media (max-width: 520px) {
    .chat-preview.chat-animate { width: 280px; height:420px; }
}

/* Capabilities slider styles */
.capabilities-slider { position: relative; margin: 1rem 0; }
.capabilities-slider .block-grid { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 10px 8px; }
.capabilities-slider .block-grid::-webkit-scrollbar { height: 8px; }
.block-card { background: #fff; padding: 18px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); min-width: 260px; flex: 0 0 auto; scroll-snap-align: center; }
.capabilities-slider .block-grid { scroll-snap-type: x mandatory; }
.cap-prev, .cap-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.55); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }
.cap-prev { left: -10px; }
.cap-next { right: -10px; }
.cap-prev:focus, .cap-next:focus { outline: 2px solid #fff; }

@media (min-width: 900px) {
    .block-card { min-width: 300px; }
}

/* Desktop: show 4 capability cards in view */
@media (min-width: 1100px) {
    .capabilities-slider .block-grid { gap: 24px; padding: 0; }
    .block-card { min-width: auto; flex: 0 0 calc((100% - 72px) / 4); }
}

/* Mobile: show arrows and make cards wider */
@media (max-width: 760px) {
    .block-card { min-width: 88%; flex: 0 0 88%; }
    .cap-prev { left: 8px; }
    .cap-next { right: 8px; }
    .cap-prev, .cap-next { display: flex; width: 36px; height: 36px; }
    .capabilities-slider .block-grid { padding: 10px; gap: 14px; }
}

/* Integrations section styles */
.integrations-blocks .section-subtitle { color: var(--text-secondary); font-size: 1.05rem; }
.integrations-blocks .block-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    justify-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}
.integrations-blocks .block-card { width: 100%; max-width: none; }

@media (max-width: 1100px) {
    .integrations-blocks .block-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .integrations-blocks .block-grid { grid-template-columns: 1fr; }
}

/* Prevent horizontal page overflow caused by large/banner images or elements */
html, body { overflow-x: hidden; }

/* Ensure hero and banner images never exceed viewport width */
.offer-banner-image,
.hero-image img,
.offer-banner-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Defensive: prevent oversized fixed elements from forcing width */
.container { max-width: 1200px; margin-left: auto; margin-right: auto; }
