/* ============================================================
   SeekBytes Modern Theme
   Windows-inspired: Segoe UI, clean palette, familiar UX
   ============================================================ */

/* Force correct rem baseline — Metronic sets html to 14px which makes all rem values small */
html { font-size: 16px !important; }

/* ---- CSS Variables (Windows-inspired palette) ---- */
:root {
    --primary:      #0078D4;   /* Windows accent blue */
    --primary-dark: #106EBE;
    --primary-light:#50E6FF;
    --text:         #201F1E;  /* Windows text */
    --text-muted:   #605E5C;   /* Windows secondary text */
    --bg-light:     #FAF9F8;   /* Windows surface alt */
    --bg-white:     #FFFFFF;
    --border:       #EDEBE9;   /* Windows border */
    --radius:       4px;       /* Windows Fluent corners */
    --radius-lg:    8px;
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.06);
    --shadow:       0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg:    0 8px 24px rgba(0,0,0,0.1);
    --transition:   all 0.2s ease;
    --font:         'Segoe UI', 'Segoe UI Variable', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-code:    'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}

/* ============================================================
   BASE RESETS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body.corporate {
    font-family: var(--font) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: var(--text);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force Segoe UI on all elements so Metronic doesn't override */
body.corporate *,
body.corporate h1, body.corporate h2,
body.corporate h3, body.corporate h4,
body.corporate h5, body.corporate h6,
body.corporate p, body.corporate a,
body.corporate label, body.corporate span,
body.corporate li, body.corporate td, body.corporate th {
    font-family: var(--font) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;   /* Semibold - Windows style */
    color: var(--text) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    margin-top: 0 !important;
}
h1 { font-size: 2.5rem   !important; }
h2 { font-size: 2rem     !important; }
h3 { font-size: 1.5rem   !important; }
h4 { font-size: 1.25rem  !important; }
h5 { font-size: 1.0625rem!important; }
h6 { font-size: 0.9375rem!important; }

p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.0625rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: none; }

/* ============================================================
   BOOTSTRAP 3 → 4/5 UTILITY COMPAT LAYER
   (safe overrides – always loaded after BS3 bundle)
   ============================================================ */
.d-flex          { display: flex !important; }
.d-inline-flex   { display: inline-flex !important; }
.d-block         { display: block !important; }
.d-inline-block  { display: inline-block !important; }
.d-none          { display: none !important; }
.d-grid          { display: block !important; } /* graceful fallback */

.flex-column     { flex-direction: column !important; }
.flex-shrink-0   { flex-shrink: 0 !important; }
.flex-wrap       { flex-wrap: wrap !important; }

.align-items-center   { align-items: center !important; }
.align-items-start    { align-items: flex-start !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end     { justify-content: flex-end !important; }

.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem  !important; }
.gap-3 { gap: 1rem   !important; }
.gap-4 { gap: 1.5rem !important; }

/* Spacing */
.m-0  { margin: 0 !important; }
.mb-0 { margin-bottom: 0     !important; }
.mb-1 { margin-bottom: .25rem!important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem  !important; }
.mb-4 { margin-bottom: 1.5rem!important; }
.mb-5 { margin-bottom: 3rem  !important; }
.mt-0 { margin-top: 0        !important; }
.mt-2 { margin-top: .5rem    !important; }
.mt-3 { margin-top: 1rem     !important; }
.mt-4 { margin-top: 1.5rem   !important; }
.mt-5 { margin-top: 3rem     !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem  !important; }
.mr-3 { margin-right: 1rem   !important; }
.ml-2 { margin-left: .5rem   !important; }
.ml-3 { margin-left: 1rem    !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-0 { padding: 0      !important; }
.p-3 { padding: 1rem   !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem   !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-2 { padding-top: .5rem   !important; padding-bottom: .5rem   !important; }
.py-3 { padding-top: 1rem    !important; padding-bottom: 1rem    !important; }
.pt-3 { padding-top: 1rem    !important; }
.pb-0 { padding-bottom: 0    !important; }

/* Colors */
.text-white   { color: #fff !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-primary { color: var(--primary)    !important; }
.text-dark    { color: var(--text)       !important; }
.text-center  { text-align: center !important; }
.text-left    { text-align: left   !important; }

.bg-white  { background-color: var(--bg-white) !important; }
.bg-light  { background-color: var(--bg-light) !important; }
.bg-dark   { background-color: #1a1a2e         !important; }
.bg-black  { background-color: #0d0d0d         !important; }

/* Borders & shapes */
.border-0      { border: 0 !important; }
.border-top    { border-top: 1px solid var(--border) !important; }
.rounded-circle{ border-radius: 50% !important; }
.rounded-pill  { border-radius: 50rem !important; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow     { box-shadow: var(--shadow)   !important; }
.shadow-lg  { box-shadow: var(--shadow-lg)!important; }

/* Sizes */
.w-100 { width: 100%  !important; }
.h-100 { height: 100% !important; }

/* Typography */
.lead           { font-size: 1.15rem; font-weight: 400; color: var(--text-muted); }
.small          { font-size: 87.5% !important; }
.font-italic    { font-style: italic !important; }
.font-weight-bold { font-weight: 700 !important; }
.text-uppercase { text-transform: uppercase !important; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-section {
    padding: 80px 0;
}
.page-section.compact {
    padding: 60px 0;
}
/* Modern Pattern for Alt Backgrounds (Windows surface) */
.alt-bg { 
    background-color: var(--bg-light);
    background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Full-width layout for visual impact (desktop); mobile unchanged */
.container-readable {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* Why Choose section: reduced side padding to utilize more horizontal space */
.why-choose-section .container-readable {
    padding-left: 20px;
    padding-right: 20px;
}
/* Why Choose wide: maximize horizontal space for 6-card layout */
.why-choose-section .why-choose-wide {
    max-width: 1440px;
}

/* How It Works: same margins as Why Teams Choose (20px L/R, 1440px max) for larger diagram font */
.how-it-works-section .container-readable {
    padding-left: 20px;
    padding-right: 20px;
}
.how-it-works-section .how-it-works-wide {
    max-width: 1440px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: var(--radius);
    border: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,120,212,0.2);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,120,212,0.3);
}
.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.btn-light {
    background: #fff;
    color: var(--primary);
}
.btn-light:hover {
    background: #f0f4ff;
    color: var(--primary-dark);
}
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 13px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control {
    font-family: var(--font) !important;
    font-size: 15px !important;
    padding: 12px 15px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: #fff !important;
    color: var(--text) !important;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: auto !important;
    box-shadow: none !important;
}
.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(0,120,212,0.15) !important;
    outline: none !important;
}
.form-group label,
.form-group .form-label {
    font-weight: 500 !important;
    font-size: 15px !important;
    color: var(--text) !important;
    margin-bottom: 7px !important;
    display: block;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.card.no-hover:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   HEADER  (OneEnterprise-style mega-menu)
   ============================================================ */
.sb-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1050;
}
.sb-header-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
}
.sb-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
    flex-shrink: 0;
}
.sb-logo img { display: block; height: 42px; width: auto; }
.sb-mobi-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--text);
    margin-left: 16px;
}

/* Nav list */
.sb-nav { margin-left: 24px; }
.sb-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.sb-nav-item { position: relative; }
.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 14px;
    font-size: 15px !important;
    font-weight: 500;
    color: var(--text) !important;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.sb-nav-link:hover,
.sb-nav-item.sb-active > .sb-nav-link {
    color: var(--primary);
    background: rgba(0,120,212,0.08);
    text-decoration: none;
}
.sb-nav-item.sb-active > .sb-nav-link {
    border-bottom: 2px solid var(--primary);
}
.sb-caret {
    font-size: 9px;
    opacity: 0.55;
    transition: transform 0.2s;
}
.sb-has-mega:hover .sb-caret { transform: rotate(180deg); }

/* Login CTA button */
.sb-btn-login {
    display: inline-block;
    padding: 7px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    margin-left: 6px;
}
.sb-btn-login:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* Mega-panel */
.sb-mega-panel {
    /* Display state managed by opacity/visibility for transition */
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 12px); /* Start slightly lower for slide-up effect */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    z-index: 2000;
    min-width: 500px;
    padding: 8px;
    transition: all 0.2s ease-in-out;
}
.sb-mega-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.09);
    border-top: 1px solid rgba(0,0,0,0.09);
    transform: translateX(-50%) rotate(45deg);
}
.sb-has-mega {
    position: relative;
}
/* Invisible bridge to prevent menu closing when moving mouse over gap */
.sb-has-mega::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; /* Covers the gap to the panel */
}

.sb-has-mega:hover .sb-mega-panel { 
    visibility: visible;
    opacity: 1;
    top: calc(100% + 8px); /* End position */
}

.sb-mega-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sb-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.18s;
}
.sb-mega-item:hover {
    background: rgba(0,120,212,0.06);
    text-decoration: none;
}
.sb-mega-item:hover .sb-mega-icon {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.sb-mega-item:hover .sb-mega-text strong {
    color: var(--primary) !important;
}
.sb-mega-icon {
    width: 48px; height: 48px;
    background: rgba(0,120,212,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}
.sb-mega-icon svg {
    width: 22px; height: 22px;
    display: block;
    stroke: var(--primary);
    color: var(--primary);
    flex-shrink: 0;
}
.sb-mega-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sb-mega-text strong {
    font-size: 15px !important; font-weight: 600; color: var(--text) !important; display: block;
}
.sb-mega-text small {
    font-size: 13px !important; color: var(--text-muted) !important; line-height: 1.45; display: block;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-banner {
    /* Modern deep blue/black gradient with subtle noise/pattern */
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    padding: 40px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Overlay pattern for Hero */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.hero-banner .hero-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Quote Rotator */
.hero-quote-rotator {
    position: relative;
    min-height: 140px;
    margin-bottom: 16px;
}
.hero-quote-items {
    position: relative;
    min-height: 140px;
    padding: 0 24px;
}
.hero-quote-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}
.hero-quote-item.active {
    opacity: 1;
    pointer-events: auto;
}
.hero-quote-item h1 {
    margin-bottom: 8px !important;
    font-size: clamp(1.5rem, 3.2vw, 2.25rem) !important;
}
.hero-quote-desc {
    font-size: 0.95rem !important;
    color: rgba(255,255,255,0.9) !important;
    max-width: 640px;
    margin: 0 auto !important;
    line-height: 1.35 !important;
}
.hero-quote-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}
.hero-quote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, border-color 0.25s;
}
.hero-quote-dot:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.8);
}
.hero-quote-dot.active {
    background: #fff;
    border-color: #fff;
}

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-banner h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 24px !important;
}
.hero-banner p {
    font-size: 1.25rem !important;
    color: rgba(255,255,255,0.88) !important;
    max-width: 640px;
    margin: 0 auto 36px !important;
    line-height: 1.6 !important;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 14px !important; }
.section-header p  { font-size: 1.15rem !important; max-width: 640px; margin: 0 auto; color: var(--text-muted); }

/* ============================================================
   FAQ LIST (numbered list, improved typography)
   ============================================================ */
.faq-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.faq-item {
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}
.faq-item:last-child {
    margin-bottom: 0;
}
.faq-question {
    display: block;
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin-bottom: 0.5rem;
    line-height: 1.4 !important;
}
.faq-answer {
    display: block;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
}

#faq .section-header {
    margin-bottom: 2rem;
}
#faq .section-header h2 {
    font-size: 1.75rem !important;
}
#faq .section-header p {
    font-size: 1rem !important;
}

/* ============================================================
   FEATURE CARDS (Solutions section)
   ============================================================ */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: rgba(0,120,212,0.2);
}
.feature-icon {
    width: 56px; height: 56px;
    background: rgba(0,120,212,0.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}
.feature-icon svg {
    width: 26px; height: 26px;
    display: block;
    stroke: var(--primary);
    color: var(--primary);
    flex-shrink: 0;
}
.feature-card h5 {
    font-size: 1.125rem !important;   /* 18px */
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    color: var(--text) !important;
    line-height: 1.3 !important;
}
.feature-card p {
    font-size: 0.9375rem !important; /* 15px */
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--text-muted) !important;
}
.feature-card-link:hover .feature-card {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: rgba(0,120,212,0.3);
}
/* Solutions section - improved alignment */
.solutions-section .feature-card {
    text-align: left;
    height: 100%;
}
.solutions-section .feature-icon {
    margin-bottom: 16px;
}

/* ============================================================
   WHY CHOOSE SECTION (improved typography & alignment)
   ============================================================ */
.why-choose-section .section-header h2 {
    font-size: 1.75rem !important;
    margin-bottom: 10px !important;
}
.why-choose-section .section-header p {
    font-size: 1rem !important;
}
.why-choose-item {
    padding: 16px 20px 20px 0;
}
.why-choose-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    transition: var(--transition);
}
.why-choose-link:hover {
    color: inherit !important;
}
.why-choose-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.why-choose-item .why-choose-icon {
    flex-shrink: 0;
    color: var(--primary);
}
.why-choose-item .why-choose-header h4 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: var(--text) !important;
    line-height: 1.35 !important;
}
.why-choose-item p {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    color: var(--text-muted) !important;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.pricing-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(0,120,212,0.25);
    transform: translateY(-3px);
}
.pricing-card.no-hover:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
    transform: none;
}
.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow);
}
.pricing-badge-wrapper {
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    overflow: visible;
}
.pricing-badge-most-popular {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    background-color: var(--primary);
    color: white;
    border-radius: 12px;
    white-space: nowrap;
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.pricing-card .price {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0 16px;
    line-height: 1.1;
    font-family: var(--font) !important;
}
.pricing-card h4.pricing-panel-title {
    font-family: var(--font) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}
.pricing-card ul li {
    font-family: var(--font) !important;
    font-size: 0.95rem !important;
}
.pricing-card .text-muted.small {
    font-size: 0.85rem !important;
    font-family: var(--font) !important;
}

/* Pricing & Plans */
.pricing-plans-section .pricing-plans-row {
    align-items: stretch;
    justify-content: center;
    margin-left: -12px;
    margin-right: -12px;
}
.pricing-plans-row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}
.pricing-plans-row > .col-lg-3 {
    max-width: 290px; /* Adjust width to fit the 4 columns cleanly */
}
@media (max-width: 991px) {
    .pricing-plans-row > .col-lg-3 {
        max-width: 320px; /* On tablet, center them and make slightly wider */
    }
    .pricing-card.featured {
        transform: none; /* Disable scale overlap on smaller screens */
    }
    .pricing-card.featured:hover {
        transform: translateY(-3px);
    }
}
@media (max-width: 768px) {
    .pricing-plans-row > .col-lg-3 {
        max-width: 100%;
    }
}
.pricing-panel-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}
.pricing-calculator-card #priceDisplay {
    font-size: 2.25rem !important;
}
@media (max-width: 767px) {
    .pricing-plans-section .pricing-calculator-card,
    .pricing-plans-section .pricing-plans-card {
        min-height: 0;
    }
    .pricing-plans-section .col-md-6:first-child {
        margin-bottom: 24px;
    }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    border: 1px solid var(--border);
}

/* ============================================================
   API PLAYGROUND  (light, matches site palette)
   ============================================================ */
.api-playground-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.api-playground-container {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.api-pane-request {
    background: #1e293b;
    padding: 24px;
    min-height: 260px;
}
.api-pane-response {
    background: #0f172a;
    padding: 24px;
    min-height: 260px;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.api-pane-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.45);
}
.api-pane-request pre {
    color: #e2e8f0;
    font-family: var(--font-code);
    font-size: 13px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    white-space: pre;
}
.terminal-output {
    font-family: var(--font-code);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
}
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-page-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 40px 20px;
}
.auth-card {
    background: #fff;
    padding: 40px 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
}
.auth-card-wide { max-width: 560px; }
.auth-card h1 {
    font-size: 1.9rem !important;
    text-align: center;
    margin-bottom: 8px !important;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 16px !important;
}
.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 24px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-form-wrap {
    max-width: 740px;
    margin: 0 auto;
}
/* Ensure contact info column headings are readable */
.contact-info-col h5 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}
.contact-info-col p {
    font-size: 15px !important;
    line-height: 1.7;
}
.contact-info-icon {
    width: 64px; height: 64px;
    background: rgba(0,120,212,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    margin: 0 auto 16px;
}
.contact-info-icon svg {
    width: 28px; height: 28px;
    display: block;
    stroke: var(--primary);
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #111827;
    color: #fff;
    padding: 28px 0;
    position: relative;
    z-index: 10;
}
.footer .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}
.social-footer {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; gap: 14px;
}
.social-footer a {
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
    display: inline-flex; align-items: center;
}
.social-footer a svg {
    width: 20px; height: 20px;
    display: block;
    fill: currentColor;
}
.social-footer a:hover { color: #fff; }

/* ============================================================
   ANIMATION
   ============================================================ */
.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.2,0.8,0.2,1) forwards;
    opacity: 0;
    transform: translateY(18px);
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ============================================================
   HOW IT WORKS ROW (tighter layout, content closer to diagram)
   ============================================================ */
.how-it-works-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.how-it-works-col-center {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.how-it-works-col-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ============================================================
   HOW IT WORKS STEPS (icon aligned with text)
   ============================================================ */
.how-it-works-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.how-it-works-step-right {
    flex-direction: row;
}
.how-it-works-step-right .how-it-works-text {
    text-align: left;
}
.how-it-works-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.how-it-works-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    color: inherit;
}
.how-it-works-text h5 {
    margin-bottom: 4px !important;
}
.how-it-works-text p {
    margin-bottom: 0 !important;
}

/* ============================================================
   PIPELINE DIAGRAM  (How It Works)
   ============================================================ */
.arch-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}
.arch-step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    width: 148px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.arch-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.arch-step i { font-size: 30px; color: var(--primary); margin-bottom: 12px; display: block; }
.arch-step p { font-size: 14px !important; font-weight: 600 !important; color: var(--text) !important; margin: 0; }
.arch-arrow { color: var(--text-muted); font-size: 1.2rem; }

/* ============================================================
   KNOWLEDGE BASE
   ============================================================ */
.kb-page-bg {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, hsla(210, 100%, 95%, 1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(220, 100%, 97%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(190, 100%, 95%, 1) 0, transparent 50%);
    min-height: calc(100vh - 80px);
}
.kb-banner {
    /* Match homepage hero: same dark navy palette for consistent theme */
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.kb-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    pointer-events: none;
}
.kb-banner h2 {
    color: #fff !important;
    margin-bottom: 28px !important;
    font-weight: 600 !important;
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    position: relative;
    z-index: 1;
}
.kb-search-box {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.kb-search-box input {
    width: 100%;
    padding: 18px 24px 18px 52px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s, transform 0.2s;
    font-family: var(--font);
}
.kb-search-box input:focus {
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}
.kb-search-box svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.kb-article-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
}
.kb-article-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
    transform: translateX(4px);
}

.kb-search-results {
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.kb-search-results h4 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}
.kb-result-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.kb-result-item:last-child {
    border-bottom: none;
}
.kb-result-item .kb-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.kb-result-snippet {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0 0 !important;
}
.kb-result-item .kb-article-link {
    font-size: 1.05rem;
}
.kb-result-item mark {
    background: rgba(0,120,212,0.2);
    color: var(--primary-dark);
    padding: 0 2px;
    border-radius: 2px;
}

/* ============================================================
   MISC
   ============================================================ */
/* Custom range (pricing slider) */
input[type=range].custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #dde3f0;
    outline: none;
}
input[type=range].custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* Alert */
.alert { border-radius: var(--radius); }

/* Blockquote footer */
.blockquote-footer::before { content: "\2014\00A0"; }
.blockquote-footer { color: var(--primary); font-size: 14px; }

/* Remove stray margin from .main wrapper */
.main { overflow-x: hidden; }

@media (max-width: 575px) {
    .pricing-calculator-card .col-sm-4 {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .pricing-calculator-card .col-sm-4:last-child {
        border-bottom: none;
    }
}

@media (max-width: 991px) {
    /* Tablet/mobile: reset column alignment when stacked */
    .how-it-works-col-left,
    .how-it-works-col-right {
        align-items: center;
    }
}
@media (max-width: 768px) {
    /* Mobile: layout unchanged - full-width applies only to desktop */
    .how-it-works-step {
        justify-content: center;
    }
    .how-it-works-step-right {
        flex-direction: row;
    }
    .how-it-works-step-right .how-it-works-text {
        text-align: left;
    }
    /* Hero: prevent overlap on mobile */
    .hero-quote-rotator { min-height: 300px; margin-bottom: 16px; }
    .hero-quote-items { min-height: 260px; padding: 0 24px; }
    .hero-quote-item h1 { font-size: 1.4rem !important; line-height: 1.25 !important; }
    .hero-quote-desc { font-size: 0.875rem !important; line-height: 1.4 !important; }
    .hero-quote-dots { margin-top: 12px; flex-shrink: 0; }
    .hero-banner { padding: 32px 20px 40px; }
    .hero-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 16px;
    }
    .hero-cta-buttons .btn { width: 100%; margin: 0 !important; }
    .sb-nav { display: none; }
    .sb-mobi-toggle { display: block; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .auth-card { padding: 28px 24px; }
    .page-section { padding: 52px 0; }

    /* Mobile Menu Open State */
    .sb-header.sb-menu-open .sb-nav {
        display: block;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
        height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .sb-header.sb-menu-open .sb-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .sb-header.sb-menu-open .sb-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .sb-header.sb-menu-open .sb-nav-link {
        width: 100%;
        padding: 14px 0;
        justify-content: space-between;
    }

    /* Mobile Mega Menu */
    .sb-header.sb-menu-open .sb-mega-panel {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 10px 15px;
        min-width: 100%;
        background: transparent;
        display: none;
    }
    
    .sb-header.sb-menu-open .sb-mega-panel::before { display: none; }

    .sb-header.sb-menu-open .sb-has-mega.expanded .sb-mega-panel {
        display: block;
    }

    .sb-header.sb-menu-open .sb-has-mega.expanded .sb-caret {
        transform: rotate(180deg);
    }
    
    /* Login button in mobile menu */
    .sb-header.sb-menu-open .sb-btn-login {
        display: block;
        text-align: center;
        margin: 20px 0 0;
        width: 100%;
    }
    .sb-header.sb-menu-open .sb-cta {
        border-bottom: none;
    }
}
