/* ===== LANDING PAGE STYLES ===== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

/* ===== NAVBAR ===== */
.landing-navbar {
    background: linear-gradient(135deg, #1a237e 0%, #1565c0 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1040;
}

.landing-navbar .navbar-brand {
    font-size: 1.4rem;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.landing-navbar .nav-link {
    font-weight: 500;
    transition: opacity 0.2s;
}

.landing-navbar .nav-link:hover {
    opacity: 0.85;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #1e88e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 16px 48px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;  right: -15%;
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* ── Outer wrapper ── */
.hc-wrap {
    width: 100%;
    max-width: 980px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ── Slide track ── */
.hc-track {
    margin-bottom: 40px;
}

/* All slides hidden by default */
.hc-slide {
    display: none;
    flex-direction: column;
    align-items: center;
}

/* Only the active slide is shown, with a fade-up animation */
.hc-slide.hc-active {
    display: flex;
    animation: hcFadeUp 0.45s ease both;
}

@keyframes hcFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Icon box */
.hc-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 20px;
}

/* Tag */
.hc-tag {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    margin-bottom: 16px;
}

/* Headline */
.hc-title {
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.18;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

/* Yellow accent bar */
.hc-divider {
    width: 56px;
    height: 4px;
    background: #ffc107;
    border-radius: 2px;
    margin: 0 auto 22px;
}

/* Description */
.hc-desc {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    margin-bottom: 26px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature pills */
.hc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hc-pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── CTA buttons ── */
.hc-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

/* ── Nav: ← · · · · → ── */
.hc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hc-arrow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.hc-arrow:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.65);
    transform: scale(1.1);
}

.hc-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.32);
    cursor: pointer;
    transition: width 0.25s, background 0.25s, border-radius 0.25s;
}

.hc-dot.hc-dot-active {
    width: 22px;
    border-radius: 4px;
    background: #ffc107;
}

/* ===== PAIN POINTS SECTION ===== */
.pain-card {
    border-left: 4px solid #dc3545 !important;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.pain-card h5 {
    color: #2c2c2c;
    font-size: 1.05rem;
    line-height: 1.5;
}

.pain-card .text-danger {
    opacity: 0.85;
}

/* ===== FEATURES SECTION ===== */
.feature-card {
    background: #f4f6ff;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.feature-card .text-primary {
    color: #1565c0 !important;
}

/* ===== BENEFITS / TRUST SECTION ===== */
.benefits-section {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

.benefits-section i {
    opacity: 0.9;
}

.benefits-section p {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section .btn-primary {
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
    border: none;
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.35);
}

/* ===== LOGIN & SIGNUP MODALS ===== */
#loginModal .modal-content,
#signUpModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#loginModal .modal-header,
#signUpModal .modal-header {
    padding: 1.25rem 1.5rem 0.5rem;
}

#loginModal .modal-body,
#signUpModal .modal-body {
    padding: 0 1.5rem 1.5rem;
}

#loginModal .s-Panel,
#signUpModal .s-Panel {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

#loginModal .password-container,
#signUpModal .password-container {
    width: 100% !important;
}

#loginModal .password-container input,
#signUpModal .password-container input {
    width: 100% !important;
    min-width: 0;
}

#signUpModal .s-form-title-logo,
#signUpModal .text-center.p-4 {
    display: none;
}

#signUpModal h5.text-center.my-4 {
    display: none;
}

/* ===== BODY OVERRIDES ===== */
body.landing-page {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    /* Force light mode regardless of OS/browser dark-theme setting */
    color-scheme: light;
    background-color: #fff;
    color: #212529;
}

/* Sections without an explicit Bootstrap bg class get a white base */
body.landing-page #features,
body.landing-page .cta-section {
    background-color: #fff;
}

/* Ensure Bootstrap bg-light resolves to a real colour in all themes */
body.landing-page .bg-light {
    background-color: #f8f9fa !important;
}

body.landing-page .bg-white {
    background-color: #fff !important;
}

/* Prevent browser dark-mode from inverting form inputs inside modals */
body.landing-page input,
body.landing-page select,
body.landing-page textarea {
    color-scheme: light;
}

body.landing-page #PageBackground {
    display: none !important;
}

/* ===== FOOTER ===== */
.landing-footer {
    background: #1a1a2e;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.landing-footer a:hover {
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 16px 40px;
    }
}

@media (max-width: 767px) {
    .hc-icon {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .hc-cta {
        flex-direction: column;
        align-items: center;
    }

    .hc-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .pain-card {
        padding: 1rem !important;
    }

    .pain-card h5 {
        font-size: 0.95rem;
    }

    .landing-navbar .btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ===== HC TITLE HIGHLIGHT ===== */
.hc-title-highlight {
    color: #ffc107;
}

/* ===== STATS BAND ===== */
.stats-band {
    background: #0f172a;
    padding: 72px 0;
}

.stats-band-heading {
    color: #fff;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.stats-band-sub {
    color: #94a3b8;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 28px 24px;
    border-top: 4px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.stat-card--red   { border-top-color: #ef4444; }
.stat-card--amber { border-top-color: #f59e0b; }
.stat-card--green { border-top-color: #22c55e; }
.stat-card--blue  { border-top-color: #3b82f6; }

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-unit {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0;
}

.stat-label {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-top: 4px;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 2.6rem;
    }

    .stat-card {
        padding: 20px 16px;
    }
}
