/* ============================================================
   Landing Page — Dark-purple theme  (AI Tool / SaaS style)
   ============================================================ */

/* ---------- palette ---------- */
:root {
    --lp-bg: #00151b;
    /* deep navy-black              */
    --lp-bg2: #00232b;
    /* slightly lighter panel        */
    --lp-surface: #00313d;
    /* card / elevated surface       */
    --lp-border: rgba(255, 255, 255, .08);
    --lp-text: #e0f2fe;
    /* body copy                    */
    --lp-muted: #94a3b8;
    /* secondary / labels           */
    --lp-heading: #ffffff;
    --lp-accent: #32a1c4;
    /* primary-600 approx           */
    --lp-accent-l: #53C5E0;
    /* primary-400 lighter           */
    --lp-purple: #7acae3;
    /* glow                          */
    --lp-glow: rgba(83, 197, 224, .35);
}

/* ---------- page root ---------- */
html.lp-page,
body.lp-page {
    background: var(--lp-bg);
    color: var(--lp-text);
}

/* ---------- layout wrap ---------- */
.lp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

@media (min-width: 640px) {
    .lp-wrap {
        padding: 0 1.5rem;
    }
}

/* ==========================================================
   NAV — integrated into the dark hero (no white bar)
   ========================================================== */
.lp-page #main-header.lp-hero-nav {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--lp-border) !important;
    backdrop-filter: none !important;
    position: relative;
    /* not sticky on landing */
}

/* white logo text */
.lp-page #main-header .text-2xl.font-bold {
    background: linear-gradient(135deg, #fff, var(--lp-accent-l)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* logo SVG */
.lp-page #main-header svg.w-10 {
    color: var(--lp-accent-l) !important;
}

/* nav links */
.lp-page #main-header a.nav-link,
.lp-page #main-header a[href].text-gray-700 {
    color: var(--lp-muted) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.88rem;
}

.lp-page #main-header a.nav-link:hover,
.lp-page #main-header a[href].text-gray-700:hover {
    color: #fff !important;
}

/* Login link */
.lp-page #main-header a[data-auth-modal="login"] {
    color: var(--lp-text) !important;
}

.lp-page #main-header a[data-auth-modal="login"]:hover {
    color: #fff !important;
}

/* Register / Sign-up button */
.lp-page #main-header .btn-gradient-primary {
    background: var(--lp-accent) !important;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0.5rem;
    color: #fff !important;
    font-weight: 600;
    transition: box-shadow .25s, background .25s;
}

.lp-page #main-header .btn-gradient-primary:hover {
    background: #6d28d9 !important;
    box-shadow: 0 0 24px var(--lp-glow);
}

/* underline hover-bar → use purple glow */
.lp-page #main-header .h-0\.5 {
    background: var(--lp-accent) !important;
}

/* ==========================================================
   HERO
   ========================================================== */
.lp-hero {
    position: relative;
    overflow: hidden;
    background: var(--lp-bg);
    padding-bottom: 6rem;
}

/* subtle grid pattern */
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* radial purple glow behind content */
.lp-hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    translate: -50% 0;
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, var(--lp-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.lp-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding-top: 3rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .lp-hero-inner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        gap: 3rem;
        padding-top: 5rem;
    }
}

.lp-hero-content {
    flex: 1;
    max-width: 100%;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .lp-hero-content {
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .lp-hero-content {
        max-width: 600px;
    }
}

/* small tag */
.lp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(83, 197, 224, .15);
    color: var(--lp-accent-l);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(83, 197, 224, .25);
    margin-bottom: 1.5rem;
}

.lp-hero-tag::before {
    content: '✦';
    color: var(--lp-purple);
}

/* title */
.lp-hero-title {
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lp-heading);
    margin-bottom: 1rem;
}

.lp-hero-title span {
    color: var(--lp-accent-l);
}

@media (min-width: 640px) {
    .lp-hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .lp-hero-title {
        font-size: 3.75rem;
        line-height: 1.08;
        letter-spacing: -0.03em;
        margin-bottom: 1.25rem;
    }
}

/* description */
.lp-hero-desc {
    font-size: 0.9rem;
    color: var(--lp-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .lp-hero-desc {
        font-size: 1.0625rem;
        margin-bottom: 2.25rem;
        line-height: 1.65;
    }
}

/* button row */
.lp-hero-btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

@media (min-width: 640px) {
    .lp-hero-btns {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        width: auto;
    }
}

@media (min-width: 1024px) {
    .lp-hero-btns {
        justify-content: flex-start;
    }
}

.lp-hero-btns .lp-btn {
    width: 100%;
}

@media (min-width: 640px) {
    .lp-hero-btns .lp-btn {
        width: auto;
    }
}

/* stats */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lp-border);
    justify-content: center;
    align-items: flex-start;
}

.lp-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 640px) {
    .lp-stats {
        gap: 2rem;
        margin-top: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .lp-stats {
        gap: 2.5rem;
        margin-top: 3.5rem;
        padding-top: 2rem;
        justify-content: flex-start;
    }
    .lp-stats > div {
        align-items: flex-start;
    }
}

.lp-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    display: block;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .lp-stat-num {
        font-size: 1.5rem;
    }
}

.lp-stat-label {
    font-size: 0.8125rem;
    color: var(--lp-muted);
}

/* hero visual (right-side SVG) */
.lp-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    color: var(--lp-accent-l);
    width: 100%;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .lp-hero-visual {
        margin-top: 0;
    }
}

.lp-hero-visual svg {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 0 40px var(--lp-glow));
}

/* Mobile: Disable absolute positioning for showcase cards */
@media (max-width: 767px) {
    .lp-showcase {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .lp-showcase-glow {
        display: none !important;
    }
    
    .lp-sc-card {
        position: relative !important;
        width: 100% !important;
        height: 180px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        animation: lp-fadeUp .7s forwards !important;
        opacity: 1 !important;
    }
    
    .lp-sc-card:hover {
        transform: scale(1.02) !important;
    }
    
    .lp-sc-a,
    .lp-sc-b,
    .lp-sc-c {
        animation: lp-fadeUp .7s forwards !important;
    }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: all .25s;
    cursor: pointer;
}

.lp-btn-primary {
    background: var(--lp-accent);
    color: #fff;
    box-shadow: 0 0 18px var(--lp-glow);
}

.lp-btn-primary:hover {
    background: #2a82a3;
    box-shadow: 0 0 30px rgba(83, 197, 224, .5);
    transform: translateY(-2px);
}

.lp-btn-outline {
    background: transparent;
    color: var(--lp-text);
    border: 1px solid rgba(255, 255, 255, .15);
}

.lp-btn-outline:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.lp-section {
    padding: 6rem 0;
    background: var(--lp-bg);
    overflow-x: hidden;
}

.lp-section-white {
    padding: 6rem 0;
    background: #f8fafc;
}

.lp-section-dark {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--lp-bg2) 0%, var(--lp-bg) 100%);
}

.lp-section-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0e3d4d 0%, #0a5c70 50%, #0e3d4d 100%);
    position: relative;
    overflow: hidden;
}
.lp-section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(50,161,196,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.lp-section-light {
    padding: 6rem 0;
    /* softer dark center section (not too black) */
    background: linear-gradient(180deg, #0f1f29 0%, #132836 100%);
}

/* Text & component overrides inside light sections */
.lp-section-light .lp-heading-label {
    color: #7fd3ea;
}
.lp-section-light .lp-heading {
    color: #f8fafc;
}
.lp-section-light .lp-heading-desc {
    color: #c7d2e0;
}
.lp-section-light .lp-card {
    background: rgba(19, 40, 54, 0.92);
    border-color: rgba(127, 211, 234, 0.25);
    box-shadow: 0 6px 20px rgba(0,0,0,.24);
}
.lp-section-light .lp-card:hover {
    box-shadow: 0 14px 36px rgba(0,0,0,.35);
    border-color: rgba(127, 211, 234, .45);
}
.lp-section-light .lp-card-icon {
    background: rgba(127, 211, 234, .18);
}
.lp-section-light .lp-card-title {
    color: #f8fafc;
}
.lp-section-light .lp-card-text {
    color: #c7d2e0;
}
.lp-section-light .lp-card-link {
    color: #8bdcf0;
}
.lp-section-light .lp-feature-box {
    background: linear-gradient(135deg, rgba(127, 211, 234, .14), rgba(60, 120, 145, .12));
    border-color: rgba(127, 211, 234, .3);
}
.lp-section-light .lp-feature-box-title,
.lp-section-light .lp-list-title {
    color: #f8fafc;
}
.lp-section-light .lp-list-desc {
    color: #c7d2e0;
}
.lp-section-light .lp-services-step-title {
    color: #fff !important;
}
.lp-section-light .lp-services-steps h4 {
    color: #fff !important;
}
.lp-section-light .lp-services-steps p {
    color: #c7d2e0 !important;
}

/* ---------- headings ---------- */
.lp-heading-wrap {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 4rem auto;
}

.lp-heading-label {
    color: var(--lp-accent-l);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.lp-heading {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--lp-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.lp-heading-desc {
    font-size: 1.0625rem;
    color: var(--lp-muted);
    line-height: 1.6;
}

/* ==========================================================
   SERVICE CARDS
   ========================================================== */
.lp-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .lp-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lp-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.lp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(83, 197, 224, .12);
    border-color: rgba(83, 197, 224, .25);
}

.lp-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(83, 197, 224, .15);
    color: var(--lp-accent-l);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.lp-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.lp-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.lp-card-text {
    color: var(--lp-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lp-card-link {
    color: var(--lp-accent-l);
    font-weight: 600;
    font-size: 0.9rem;
}

.lp-card-link:hover {
    color: #c4b5fd;
}

/* ==========================================================
   TWO-COL FEATURE
   ========================================================== */
.lp-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .lp-two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.lp-order-1 {
    order: 1;
}

.lp-order-2 {
    order: 2;
}

.lp-feature-box {
    background: linear-gradient(135deg, rgba(83, 197, 224, .12), rgba(50, 161, 196, .08));
    border: 1px solid rgba(83, 197, 224, .15);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
}

.lp-feature-box-image {
    display: block;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 1.5rem;
    border: 1px solid rgba(83, 197, 224, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.lp-feature-box-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(83, 197, 224, .15);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-accent-l);
    box-shadow: 0 0 30px var(--lp-glow);
}

.lp-feature-box-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.lp-feature-box-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* LIST */
.lp-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.lp-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 768px) {
    .lp-list li {
        align-items: flex-start;
    }
}

.lp-list-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-list-icon.indigo {
    background: rgba(83, 197, 224, .15);
    color: var(--lp-accent-l);
}

.lp-list-icon.green {
    background: rgba(16, 185, 129, .15);
    color: #34d399;
}

.lp-list-icon.amber {
    background: rgba(245, 158, 11, .15);
    color: #fbbf24;
}

.lp-list-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.lp-list-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.lp-list-desc {
    font-size: 0.925rem;
    color: var(--lp-muted);
}

.lp-mt {
    margin-top: 2rem;
}

/* ==========================================================
   CTA
   ========================================================== */
.lp-cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.lp-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.lp-cta-desc {
    font-size: 1.0625rem;
    color: var(--lp-muted);
    margin-bottom: 2rem;
}

.lp-cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================
   SCROLL ELEMENTS
   ========================================================== */
.lp-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--lp-muted);
    animation: lp-bounce 2s infinite;
    z-index: 2;
}

.lp-scroll-hint svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lp-scroll-hint.lp-scroll-hint-hidden {
    opacity: 0;
    pointer-events: none;
}

.lp-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--lp-surface);
    color: var(--lp-text);
    border: 1px solid var(--lp-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    transition: all .3s;
    cursor: pointer;
}

.lp-scroll-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

.lp-scroll-top:hover {
    background: var(--lp-accent);
    color: #fff;
    box-shadow: 0 0 18px var(--lp-glow);
}

.lp-scroll-top.lp-scroll-top-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* ChatBot Styles */
.lp-chatbot-container {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 50;
    font-family: inherit;
}

.lp-chatbot-toggle {
    width: 3.5rem;
    height: 3.5rem;
    background: #53C5E0;
    color: #00232b;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(83, 197, 224, 0.3);
    transition: all .3s;
    font-size: 1.5rem;
}

.lp-chatbot-toggle:hover {
    background: #32a1c4;
    box-shadow: 0 6px 20px rgba(50, 161, 196, 0.4);
    transform: scale(1.08);
}

.lp-chatbot-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lp-chatbot-window {
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 500px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    animation: slideUp .3s ease-out;
}

.lp-chatbot-window.lp-chatbot-hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-chatbot-header {
    padding: 1rem;
    background: linear-gradient(135deg, #00232b, #1a5a6f);
    color: #fff;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.lp-chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

.lp-chatbot-close:hover {
    transform: rotate(90deg);
}

.lp-chatbot-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-chatbot-message {
    display: flex;
    margin-bottom: .5rem;
}

.lp-chatbot-message.lp-chatbot-bot {
    justify-content: flex-start;
}

.lp-chatbot-message.lp-chatbot-bot p {
    background: #f0f0f0;
    color: #333;
    padding: .75rem 1rem;
    border-radius: .75rem;
    max-width: 80%;
    word-wrap: break-word;
}

.lp-chatbot-message.lp-chatbot-user {
    justify-content: flex-end;
}

.lp-chatbot-message.lp-chatbot-user p {
    background: #53C5E0;
    color: #fff;
    padding: .75rem 1rem;
    border-radius: .75rem;
    max-width: 80%;
    word-wrap: break-word;
}

.lp-chatbot-message p {
    margin: 0;
}

.lp-chatbot-questions {
    padding: .5rem 1rem;
    border-top: 1px solid #e0e0e0;
    overflow-y: auto;
    max-height: 150px;
}

.lp-chatbot-question-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: .75rem;
    margin: .5rem 0;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: .5rem;
    cursor: pointer;
    font-size: .875rem;
    color: #333;
    transition: all .2s;
}

.lp-chatbot-question-btn:hover {
    background: #e8f4f8;
    border-color: #53C5E0;
    color: #00232b;
}

.lp-chatbot-question-btn.lp-chatbot-active {
    background: #e8f4f8;
    border-color: #53C5E0;
    font-weight: 600;
}

@media (max-width: 480px) {
    .lp-chatbot-toggle {
        bottom: 1rem;
        right: 1rem;
    }
    .lp-chatbot-window {
        width: calc(100vw - 2rem);
        bottom: 5.5rem;
        right: -0.5rem;
    }
}

@keyframes lp-bounce {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(-8px) translateX(-50%);
    }
}

/* ==========================================================
   PRODUCTS PAGE SPECIFIC
   ========================================================== */
.lp-mini-hero {
    position: relative;
    padding: 6rem 0 3rem 0;
    text-align: center;
    background: var(--lp-bg);
}

.lp-mini-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, var(--lp-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.lp-mini-hero-inner {
    position: relative;
    z-index: 1;
}

.lp-filter-wrap {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lp-filter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .lp-filter-form {
        grid-template-columns: 2fr 2fr 1fr;
        align-items: end;
    }
}

.lp-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lp-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-text);
}

.lp-input,
.lp-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.lp-input:focus,
.lp-select:focus {
    outline: none;
    border-color: var(--lp-accent-l);
    box-shadow: 0 0 10px rgba(83, 197, 224, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.lp-select option {
    background: var(--lp-bg2);
    color: #fff;
}

.lp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.lp-prod-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.lp-prod-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(83, 197, 224, 0.1);
    border-color: rgba(83, 197, 224, 0.3);
}

.lp-prod-img {
    height: 220px;
    background: linear-gradient(135deg, rgba(83, 197, 224, 0.05), rgba(0, 35, 43, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--lp-border);
}

.lp-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.lp-prod-card:hover .lp-prod-img img {
    transform: scale(1.05);
}

.lp-prod-placeholder {
    font-size: 48px;
    opacity: 0.2;
    filter: grayscale(1);
}

.lp-prod-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lp-prod-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.lp-prod-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lp-accent);
    background: rgba(83, 197, 224, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
}

.lp-prod-stock-ok {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10B981;
}

.lp-prod-stock-out {
    font-size: 0.75rem;
    font-weight: 600;
    color: #EF4444;
}

.lp-prod-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.lp-prod-desc {
    font-size: 0.95rem;
    color: var(--lp-muted);
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.lp-prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-prod-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--lp-accent-l);
}

/* ==========================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ========================================================== */

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Mission Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Desktop: align icon and title side by side - consistent across all cards */
    .mv-card-header,
    .cv-card-header {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Desktop: Core Values title styles - allow wrapping if needed */
    .cv-card-header h3 {
        overflow: visible;
        text-overflow: clip;
        line-height: 24px;
        margin: 0;
        font-size: 0.9375rem;
    }

    /* Desktop: smaller icon for Core Values to show full title */
    .cv-card-header > div:first-child {
        width: 24px !important;
        height: 24px !important;
        border-radius: 5px !important;
        flex-shrink: 0;
    }

    .cv-card-header > div:first-child svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Desktop: Mission/Vision keep slightly larger icon */
    .mv-card-header > div:first-child {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        flex-shrink: 0;
    }

    .mv-card-header > div:first-child svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Desktop: adjust Core Values title alignment with smaller icon */
    .cv-card-header h3 {
        line-height: 24px;
    }
}

/* Why Us Grid */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* Restore desktop layout for Why Printflow content - force left alignment */
    .why-us-content {
        text-align: left !important;
    }

    .why-us-content h2,
    .why-us-content p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .why-us-buttons {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

    .why-us-buttons .lp-btn {
        width: auto;
    }

    /* Desktop: left align buttons */
    .why-us-buttons {
        justify-content: flex-start !important;
    }
}

@media (max-width: 767px) {
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Mission/Vision mobile */
    .mission-vision-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Align icon and title in one line on mobile - vertically centered */
    .mv-card-header {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Why Us section mobile */
    .why-us-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Center Why Printflow content on mobile */
    .why-us-content {
        text-align: center !important;
    }

    .why-us-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .why-us-buttons .lp-btn {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    /* Hero title mobile */
    .lp-hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    /* Center hero content on mobile */
    .lp-hero-content {
        text-align: center !important;
    }

    .lp-hero-content .lp-hero-tag {
        text-align: center !important;
    }

    .lp-hero-content .lp-hero-title {
        text-align: center !important;
    }

    .lp-hero-content .lp-hero-desc {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero-content .lp-hero-btns {
        justify-content: center !important;
    }
    
    /* Section padding mobile */
    .lp-section,
    .lp-section-light,
    .lp-section-cta {
        padding: 3rem 0 !important;
    }
    
    /* Card padding mobile */
    .lp-card {
        padding: 1.5rem !important;
    }
    
    /* Button stacking mobile */
    .lp-cta-btns {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }
    
    .lp-cta-btns .lp-btn {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    /* Text sizes mobile */
    .lp-heading {
        font-size: 1.75rem !important;
    }
    
    .lp-cta-title {
        font-size: 1.875rem !important;
    }
    
    /* Values grid mobile */
    .lp-cards {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Service cards: icon and title side-by-side, vertically centered */
    .lp-card {
        display: flex !important;
        flex-direction: column !important;
    }

    .lp-card-icon {
        margin-bottom: 0 !important;
        margin-right: 1rem !important;
    }

    .lp-card-title {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        min-height: 3rem !important;
    }

    /* Why Choose Us section mobile - center heading content */
    .lp-order-1 .lp-heading-label,
    .lp-order-1 .lp-heading,
    .lp-order-1 .lp-heading-desc {
        text-align: center !important;
    }

    /* List items: icon and title side-by-side, top-aligned */
    .lp-list li {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .lp-list-title {
        text-align: left !important;
    }

    .lp-list-desc {
        text-align: left !important;
    }

    /* Center the Get Started button */
    .lp-order-1 .lp-mt {
        text-align: center !important;
    }

    /* Align icon and title in one line for Core Values cards on mobile - vertically centered */
    .cv-card-header {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Team grid mobile */
    .team-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }

    /* Hero buttons mobile */
    .lp-hero-btns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .lp-hero-btns .lp-btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    /* Mini hero buttons - equal width on mobile */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .hero-buttons .lp-btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    /* Mini hero padding */
    .lp-mini-hero {
        padding: 0 0 2rem 0 !important;
    }

    .lp-mini-hero-inner {
        padding-top: 0 !important;
    }

    /* Wrap padding */
    .lp-wrap {
        padding: 0 1rem !important;
    }

    /* Reduce scroll-to-top and chatbot icon sizes on mobile */
    .ft-bubble {
        width: 40px !important;
        height: 40px !important;
        bottom: 12px !important;
    }

    .ft-bubble-left {
        left: 12px !important;
    }

    .ft-bubble-right {
        right: 12px !important;
    }

    .ft-bubble svg {
        width: 18px !important;
        height: 18px !important;
    }

    #chatbot-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Services page: keep dense content inside narrow mobile viewports */
    .lp-services-hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .lp-services-hero-actions .lp-btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    .lp-services-quick-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.25rem .75rem !important;
        margin-top: 2.5rem !important;
        padding-top: 2rem !important;
    }

    .lp-services-grid,
    .lp-services-steps,
    .lp-services-tech-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .lp-services-grid .lp-card,
    .lp-services-grid .lp-card * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .lp-services-grid .lp-card-link {
        white-space: normal !important;
        word-break: break-word !important;
    }

    .lp-services-feature-box {
        border-radius: 1rem !important;
    }

    .lp-services-feature-box .lp-feature-box-title {
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
    }

    .lp-services-feature-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: .75rem !important;
        padding: 1rem !important;
    }

    .lp-services-feature-stats > div {
        min-width: 0 !important;
    }

    .lp-services-feature-stats p {
        overflow-wrap: anywhere !important;
    }

    /* Products page: match services mobile containment */
    .lp-products-hero-title,
    .lp-products-hero-desc {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    .lp-products-hero-title {
        font-size: 2rem !important;
        letter-spacing: 0 !important;
    }

    .lp-products-hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .lp-products-hero-actions .lp-btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    .lp-products-category-head {
        align-items: flex-start !important;
        gap: .75rem !important;
        margin-bottom: 2rem !important;
    }

    .lp-products-category-head > div:first-child {
        min-width: 0 !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .lp-products-category-line {
        width: 100% !important;
        max-width: none !important;
        flex: 1 1 100% !important;
    }

    .lp-products-category-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .lp-products-card,
    .lp-products-card * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .lp-products-card-body {
        padding: 1rem !important;
    }

    .lp-products-card-footer {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: .85rem !important;
    }

    .lp-products-card-footer a {
        width: auto !important;
        justify-content: center !important;
        margin-left: auto !important;
    }
}


/* Force white color for step titles */
.lp-services-steps h4 {
    color: #ffffff !important;
}
.lp-services-step-title {
    color: #ffffff !important;
}
