/* ==========================================================================
   MeroSite Design System
   Palette derived from the MeroSite logo (blue "M" mark + navy wordmark):
     #0662F8 / #3D97F7  -> brand blue (primary)
     #192144             -> brand navy (secondary / ink)
   Look & feel: modern SaaS product, glassmorphism (frosted, translucent
   surfaces + soft ambient gradient background + blue glow accents).
   ========================================================================== */

:root {
    /* Brand core */
    --primary: #0b5fff;
    --primary-rgb: 11, 95, 255;
    --primary-light: #3d97f7;
    --primary-lighter: #eaf1ff;
    --primary-dark: #0a3fc7;

    --secondary: #131b3d;      /* navy ink, from logo wordmark */
    --secondary-rgb: 19, 27, 61;
    --secondary-light: #29365f;

    --accent-cyan: #4cc9f0;
    --success: #16b364;

    /* Legacy variable names kept so any template/CSS still referencing them
       resolves to the new blue palette instead of the old red one. */
    --primary-base: var(--primary);
    --accent-teal: var(--accent-cyan);
    --accent-purple: var(--primary-light);
    --success-green: var(--success);

    /* Glass surfaces */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-strong: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(19, 27, 61, 0.1);

    --ink: #131b3d;
    --ink-muted: #5b6785;
}

/* Apply Inter font globally */
body {
    font-family: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink-muted);
}

/* --------------------------------------------------------------------
   Ambient background — soft blue mesh so glass surfaces have something
   to refract. Fixed so it stays put while sections scroll over it.
   -------------------------------------------------------------------- */
body {
    background-color: #f5f8ff;
    background-image:
        radial-gradient(60rem 40rem at 8% -10%, rgba(11, 95, 255, 0.14) 0%, rgba(11, 95, 255, 0) 60%),
        radial-gradient(50rem 36rem at 100% 0%, rgba(76, 201, 240, 0.16) 0%, rgba(76, 201, 240, 0) 55%),
        radial-gradient(46rem 40rem at 50% 100%, rgba(19, 27, 61, 0.06) 0%, rgba(19, 27, 61, 0) 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
}

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

::selection {
    background: rgba(var(--primary-rgb), 0.25);
    color: var(--ink);
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border-color: var(--primary) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.6rem !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.28) !important;
    transition: all 0.25s ease !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.38) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
}
.text-primary {
    color: var(--primary) !important;
}
.border-primary {
    border-color: var(--primary) !important;
}
.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}

/* --------------------------------------------------------------------
   Header / Navbar — glassmorphism
   -------------------------------------------------------------------- */
.header-main .navbar {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(19, 27, 61, 0.06) !important;
    transition: all 0.25s ease;
}
.navbar-brand h1 {
    font-weight: 800;
    color: var(--secondary) !important;
    font-size: 1.8rem;
    margin: 0;
}
.nav-link {
    font-weight: 500;
    color: var(--secondary) !important;
    position: relative;
}
.nav-link:hover {
    color: var(--primary) !important;
}
.header-main .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.header-main .navbar-nav > .nav-item > .nav-link:hover::after {
    transform: scaleX(1);
}

/* Hero Badge */
.hero-badge {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    backdrop-filter: blur(6px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
}
.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
}
.hero-section::before {
    width: 26rem;
    height: 26rem;
    top: -10rem;
    right: -8rem;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25), rgba(var(--primary-rgb), 0) 70%);
}
.hero-section::after {
    width: 22rem;
    height: 22rem;
    bottom: -10rem;
    left: -6rem;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.22), rgba(76, 201, 240, 0) 70%);
}
.hero-section > .container {
    position: relative;
    z-index: 1;
}
.hero-section .text-danger,
.hero-section span.text-danger {
    color: var(--primary) !important;
}

/* Browser mockup card in hero */
.hero-section .border.rounded-3.overflow-hidden {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-lighter) 100%) !important;
    border-color: rgba(var(--primary-rgb), 0.15) !important;
    box-shadow: 0 20px 50px rgba(19, 27, 61, 0.15);
}

/* --------------------------------------------------------------------
   Glass cards — applies broadly (feature cards, portfolio, blog,
   contact form wrapper, etc. all use Bootstrap's .card)
   -------------------------------------------------------------------- */
.card {
    background: var(--glass-bg-strong) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border) !important;
    border-radius: 1rem !important;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(19, 27, 61, 0.14);
}
.card-header {
    background: rgba(var(--primary-rgb), 0.06) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}
.card-footer {
    background: transparent !important;
    border-top: 1px solid var(--glass-border) !important;
}
.card-img-top {
    border-radius: 1rem 1rem 0 0 !important;
}

/* Stats Card */
.stat-card {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(19, 27, 61, 0.14);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

/* --------------------------------------------------------------------
   Industries chips
   -------------------------------------------------------------------- */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}
.industry-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.industry-chip i {
    color: var(--primary);
    font-size: 1.1rem;
}
.industry-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(19, 27, 61, 0.14);
    color: var(--primary);
}

/* Feature Icons */
.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(76, 201, 240, 0.1) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.feature-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

/* Section headings */
.section-heading h2,
.section-heading .h1,
.section-heading .display-4 {
    color: var(--ink);
    font-weight: 800;
}
.section-heading .lead {
    color: var(--ink-muted);
}

/* --------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------- */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}
.pricing-period-label {
    font-weight: 600;
    color: var(--secondary);
    margin: 0 1rem;
    font-size: 1.1rem;
}
.pricing-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}
.pricing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.pricing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccd3e0;
    transition: .4s;
    border-radius: 34px;
}
.pricing-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(19, 27, 61, 0.25);
}
input:checked + .pricing-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
input:checked + .pricing-slider:before {
    transform: translateX(30px);
}

.pricing-card {
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 10px 30px rgba(19, 27, 61, 0.08);
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(19, 27, 61, 0.16) !important;
}
.pricing-card.popular {
    border-top: 4px solid var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
    position: relative;
    box-shadow: 0 16px 44px rgba(var(--primary-rgb), 0.22);
}
.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
}

/* --------------------------------------------------------------------
   Forms — contact / signup
   -------------------------------------------------------------------- */
.form-control {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(19, 27, 61, 0.12) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.1rem !important;
    backdrop-filter: blur(6px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.form-control:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15) !important;
}
.form-group label {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.4rem;
}
.rd-mailform {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #0a3fc7 100%);
    color: white;
    padding: 5rem 0;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute;
    width: 26rem;
    height: 26rem;
    top: -10rem;
    right: -6rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.3), rgba(76, 201, 240, 0) 70%);
    filter: blur(50px);
}
.cta-section .btn-primary {
    background: white !important;
    color: var(--primary) !important;
    border-color: white !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}
.cta-section .btn-primary:hover {
    background: var(--primary-lighter) !important;
    transform: translateY(-2px) !important;
}

/* --------------------------------------------------------------------
   Footer — deep navy glass
   -------------------------------------------------------------------- */
footer.footer {
    background: linear-gradient(180deg, var(--secondary) 0%, #0c1330 100%);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}
.text-brand {
    color: #ffffff !important;
}
.text-brand-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}
footer.footer .footer-links a,
footer.footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer.footer .footer-links a:hover,
footer.footer a:hover {
    color: #ffffff;
}
footer.footer .icon.bg-white {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}
footer.footer .icon.bg-white:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
footer.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* --------------------------------------------------------------------
   Testimonial initials avatar (no external image dependency)
   -------------------------------------------------------------------- */
.testimonial-avatar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 100%);
    color: #ffffff;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------- */
.faq-accordion .accordion-item {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--glass-shadow);
}
.faq-accordion .accordion-button {
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}
.faq-accordion .accordion-button::after {
    filter: brightness(0.6);
}

/* Custom-plan callout */
.custom-plan-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------
   Badges / misc accents
   -------------------------------------------------------------------- */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}

/* macOS-style browser mockup dots keep their semantic red/amber/green */
.hero-section .rounded-circle.bg-danger,
.hero-section .rounded-circle.bg-warning,
.hero-section .rounded-circle.bg-success {
    box-shadow: none;
}

/* --------------------------------------------------------------------
   WhatsApp floating button
   -------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float i {
    font-size: 1.8rem;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* END: MeroSite Design System */
