/* ══════════════════════════════════════════════════════════════════
   Kwikinvoices - Modern Web Application Design System (Light Theme)
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --color-primary: #2563eb;       /* Vibrant Blue */
    --color-primary-dark: #1d4ed8;  /* Deep Blue */
    --color-primary-light: #eff6ff; /* Soft Blue Tint */
    --color-secondary: #f59e0b;     /* Warm Accent Amber */
    --color-secondary-dark: #d97706;/* Rich Amber */
    --color-dark: #0f172a;          /* Slate 900 */
    --color-text-muted: #64748b;    /* Slate 500 */
    --color-bg-light: #f8fafc;      /* Slate 50 */
    --color-border: #e2e8f0;         /* Slate 200 */
    --color-white: #ffffff;
    
    /* Font Systems */
    --font-base: 'Plus Jakarta Sans', 'Inter', sans-serif;
    
    /* Box Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
    --shadow-glow-accent: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* ── Base Styles & Layout Reset ── */
body {
    font-family: var(--font-base);
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Smooth gradients for layouts */
.bg-gradient-hero {
    background: radial-gradient(circle at 10% 20%, rgba(239, 246, 255, 0.6) 0%, rgba(255, 255, 255, 0.9) 90%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-dark) 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Header / Sticky Navbar with Blur ── */
.navbar-custom {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--color-dark);
    display: flex;
    align-items: center;
}

.navbar-custom .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark);
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--color-primary);
}

.navbar-custom .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-custom .nav-link.active {
    color: var(--color-primary);
}

.navbar-custom .nav-link.active::after {
    transform: scaleX(1);
}

/* Header language + sign in */
.kwik-header-actions {
    flex-shrink: 0;
}

.kwik-sign-in-btn {
    padding: 0.55rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    white-space: nowrap;
    line-height: 1.2;
}

/* Premium styled Select dropdown */
.lang-select-custom {
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    min-width: 8.75rem;
    min-height: 42px;
    padding: 0.55rem 2.75rem 0.55rem 1.15rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm) !important;
    background-position: right 1rem center;
    background-size: 14px 10px;
    line-height: 1.2;
}

.lang-select-custom:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow) !important;
}

/* ── Interactive Buttons ── */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* ── Interactive Cards & Glassmorphism ── */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hover-lift {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ── Premium Feature Cards ── */
.feature-card {
    border: 1px solid rgba(226, 232, 240, 0.6);
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    height: 100%;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ── Premium Pricing Cards ── */
.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background-color: var(--color-white);
    overflow: hidden;
    position: relative;
}

.pricing-card .card-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 1.5rem 1rem 1.5rem;
}

.pricing-card .card-body {
    padding: 2rem 2rem;
}

.pricing-card.premium-highlight {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card.premium-highlight .popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    box-shadow: var(--shadow-glow-accent);
}

.pricing-features-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.8rem;
    margin-bottom: 2rem;
}

.pricing-features-list li {
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features-list li i {
    color: #10b981; /* Emerald-500 */
    font-size: 1.1rem;
}

/* ── Modern Browser Shell Mockup ── */
.mock-browser {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    background-color: var(--color-white);
}

.mock-browser-header {
    height: 40px;
    background-color: #f1f5f9;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 6px;
}

.mock-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.mock-browser-dot.red { background-color: #f87171; }
.mock-browser-dot.yellow { background-color: #fbbf24; }
.mock-browser-dot.green { background-color: #34d399; }

.mock-browser-content img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ── Form Styling ── */
.form-control,
.form-select,
textarea {
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark);
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: var(--shadow-glow) !important;
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 0.5rem;
}

/* ── Wizard step indicators ── */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    background-color: transparent;
    border: none;
    padding: 0;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-label {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.step-line {
    position: absolute;
    top: 22px;
    height: 3px;
    background-color: var(--color-border);
    z-index: 1;
    transition: all 0.3s ease;
}

/* Position lines dynamically */
.step-indicator .step-line:nth-of-type(1) { left: 12%; right: 62%; }
.step-indicator .step-line:nth-of-type(2) { left: 37%; right: 37%; }
.step-indicator .step-line:nth-of-type(3) { left: 62%; right: 12%; }

/* Step state styles */
.step-item.active .step-circle {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.step-item.active .step-label {
    color: var(--color-primary);
    font-weight: 700;
}

.step-item.completed .step-circle {
    background-color: #10b981;
    border-color: #10b981;
    color: var(--color-white);
}

.step-item.completed .step-label {
    color: #10b981;
    font-weight: 700;
}

.step-line.completed {
    background-color: #10b981;
}

/* Wizard card styling */
.wizard-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

/* ── OTP Verification ── */
.otp-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: var(--shadow-glow) !important;
    outline: none;
}

/* ── Checkmark Pop Animation ── */
.welcome-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #10b981;
    color: var(--color-white);
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    animation: popIn 0.5s cubic-bezier(.17,.67,.3,1.33);
}

@keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Micro-animations ── */
.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
    .wizard-card {
        padding: 1.75rem;
    }
    .step-label {
        font-size: 0.72rem;
    }
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .step-line {
        top: 18px;
    }
    .otp-input {
        width: 38px;
        height: 48px;
        font-size: 1.2rem;
    }
}
