/* 
  QrJust Modern SaaS Landing Page
  Design System & Tokens 
*/
:root {
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-hover: #4338CA;
    --secondary: #06B6D4;
    /* Cyan 500 */
    --surface-dark: #0F172A;
    /* Slate 900 */
    --surface-light: #F8FAFC;
    /* Slate 50 */
    --text-primary: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

    /* Shadows */
    --shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 40px -10px rgba(79, 70, 229, 0.4);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 90px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Typography Helpers */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 99px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-dark {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline-dark:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    z-index: 1030;
}

.navbar-brand div {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 12px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1.25rem !important;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 1. Hero Section */
.hero-section {
    padding: 140px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

.hero-mockup-wrapper {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-mockup-wrapper:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

/* Glass & Mocks */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.mobile-mockup {
    border-radius: 36px;
    border: 10px solid #1E293B;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.15);
    background: white;
    overflow: hidden;
}

/* 2. Social Proof Counters */
.stats-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    background: white;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

/* 3. The Why - Value Proposition */
.value-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.icon-box-lg {
    width: 72px;
    height: 72px;
    background: var(--surface-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* 4. Showcase Tabs */
.showcase-tabs .nav-pills {
    background: var(--surface-light);
    padding: 0.5rem;
    border-radius: 99px;
    display: inline-flex;
}

.showcase-tabs .nav-link {
    border-radius: 99px;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
    color: var(--text-muted) !important;
}

.showcase-tabs .nav-link.active {
    background: white;
    color: var(--primary) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tab-pane-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

/* 5. Dark AI Section */
.dark-section {
    background: var(--surface-dark);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.dark-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.chat-bubble {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 20px 4px;
    display: inline-block;
    max-width: 80%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

/* 6. FAQ Section */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--surface-light);
    color: var(--primary);
}

/* 7. Final CTA */
.cta-box {
    background: var(--gradient-primary);
    border-radius: 36px;
    padding: 5rem 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box .btn {
    background: white;
    color: var(--primary);
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    margin-right: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- Mobile Responsiveness (Media Queries) --- */
@media (max-width: 991.98px) {

    /* Navbar collapse box for mobile */
    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--border-color);
    }

    /* Hero Section compact padding */
    .hero-section {
        padding: 110px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    /* Center the showcase tabs */
    .showcase-tabs .nav-pills {
        flex-direction: column;
        width: 100%;
        background: transparent;
    }

    .showcase-tabs .nav-link {
        background: var(--surface-light);
        margin-bottom: 0.5rem;
    }

    /* Make stats grid stack nice */
    .stat-item {
        margin-bottom: 2rem;
    }

    .stat-item:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {

    /* Optional adjustments for desktop floating card */
    .glass-panel.position-absolute {
        left: -20% !important;
        transform: none !important;
        bottom: 10% !important;
    }
}