/* =============================================
   Analytical Software – Modern UI
   ============================================= */

:root {
    --primary:        #1e40af;
    --primary-light:  #3b82f6;
    --primary-dark:   #1e3a8a;
    --accent:         #06b6d4;
    --dark:           #0f172a;
    --text:           #1e293b;
    --text-muted:     #64748b;
    --bg-light:       #f8fafc;
    --border:         #e2e8f0;
    --shadow:         0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
    --radius:         12px;
    --t:              .2s ease;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
    padding-top: 70px;
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

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

/* ── Navbar ── */
.navbar-modern {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    min-height: 68px;
    border-radius: 0;
}

.navbar-modern .navbar-header { padding: 4px 0; }

.navbar-brand-logo {
    display: inline-flex;
    align-items: center;
    padding: 6px 15px;
    line-height: 1;
}

.navbar-modern .navbar-toggle {
    margin-top: 16px;
    border-color: var(--border);
    border-radius: 8px;
}

.navbar-modern .navbar-toggle .icon-bar {
    background-color: var(--text);
}

.navbar-modern .navbar-collapse { padding-top: 0; }

.navbar-modern .navbar-nav > li > a {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 24px 18px;
    position: relative;
    background: transparent !important;
    transition: color var(--t);
}

.navbar-modern .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--t);
}

.navbar-modern .navbar-nav > li > a:hover {
    color: var(--primary-light) !important;
}

.navbar-modern .navbar-nav > li > a:hover::after,
.navbar-modern .navbar-nav > li.active > a::after {
    transform: scaleX(1);
}

/* ── Body content wrapper ── */
.body-content { padding: 0; }

.main-container { padding-bottom: 0; }

/* ── Carousel ── */
.carousel-wrapper { margin-top: 32px; margin-bottom: 48px; }

.carousel {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel img { width: 100%; height: auto; display: block; }

.carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    bottom: 0; left: 0; right: 0;
    padding: 60px 32px 28px;
    text-align: left;
    border-radius: 0;
}

.carousel-caption h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* ── Feature cards (homepage 3-col) ── */
.features-section { padding: 56px 0 16px; }

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: box-shadow var(--t), transform var(--t);
    margin-bottom: 24px;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.feature-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #fff;
}

.feature-card h2 {
    font-size: 19px;
    margin-top: 0;
    margin-bottom: 10px;
}

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

/* ── Product hero cards (jumbotron replacement) ── */
.product-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #0369a1 100%);
    border-radius: 18px;
    padding: 52px 44px;
    margin: 0 0 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}

.product-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -50px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(6,182,212,.12);
    pointer-events: none;
}

.product-hero h1 {
    color: #fff;
    font-size: 24px;
    text-align: center;
    margin: 0 0 16px;
    position: relative; z-index: 1;
}

.product-hero .hero-subtitle {
    color: rgba(255,255,255,.85);
    font-size: 15px;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 36px;
    font-weight: 400;
    position: relative; z-index: 1;
}

.product-hero .btn-hero-cta {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    position: relative; z-index: 1;
}

/* ── Service / product feature cards ── */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    transition: box-shadow var(--t), transform var(--t);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-card h2, .service-card h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ── Page header strip ── */
.page-header-strip {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 28px;
    margin: 32px 0 40px;
}

.page-header-strip h2, .page-header-strip h6 {
    color: var(--primary-dark);
    margin: 0 0 4px;
    font-size: 20px;
}

/* ── Clients section ── */
.clients-section {
    background: var(--bg-light);
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.clients-section-title {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.clients-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px 60px;
}

.client-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .55;
    filter: grayscale(100%);
    transition: opacity var(--t), filter var(--t);
    text-decoration: none !important;
}

.client-logo-link:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ── Footer ── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.55);
    text-align: center;
    padding: 28px 0;
    font-size: 14px;
    margin: 0;
}

.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }

/* ── Buttons ── */
.btn-primary,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(59,130,246,.35);
    transition: opacity var(--t), transform var(--t), box-shadow var(--t);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,.45);
    color: #fff !important;
}

.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: 10px; }

.btn-outline-cta {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 8px;
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    transition: background var(--t), border-color var(--t);
    text-decoration: none !important;
}

.btn-outline-cta:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
}

/* ── Contact page ── */
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 40px auto;
}

.contact-card address a {
    color: var(--primary-light);
    font-weight: 500;
}

/* ── Forms ── */
input, select, textarea {
    max-width: 100%;
    border-radius: 8px !important;
    font-family: inherit !important;
}

.form-control {
    border-color: var(--border) !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    padding: 10px 14px !important;
    height: auto !important;
    transition: border-color var(--t), box-shadow var(--t);
}

.form-control:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
}

/* ── Jumbotron (legacy compat) ── */
.jumbotron {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #0369a1 100%);
    border-radius: 18px;
    padding: 52px 44px;
    margin-bottom: 28px;
    color: #fff;
}

.jumbotron h1, .jumbotron h2, .jumbotron h4 { color: #fff; }

.jumbotronx {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 28px;
    margin-bottom: 40px;
}

.jumbotronx h2, .jumbotronx h6 {
    color: var(--primary-dark);
    margin: 0 0 4px;
    font-size: 20px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .navbar-modern .navbar-nav > li > a { padding: 14px 18px; }
    .navbar-modern .navbar-nav > li > a::after { bottom: 6px; }
}

@media (max-width: 767px) {
    body { padding-top: 60px; }
    .product-hero { padding: 36px 24px; }
    .product-hero h1 { font-size: 20px; }
    .features-section { padding: 36px 0 8px; }
    .clients-grid { gap: 28px 36px; }
    .contact-card { padding: 28px 20px; }
    .carousel-caption h1 { font-size: 18px; }
}
