/* ==========================================================================
   Mikro Masraf - Modern Landing Page Stylesheet
   ========================================================================== */

:root {
    --bg-main: #090d16;
    --bg-surface: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.95);
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);
    --amber: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.3);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animated Gradient Mesh */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.1) 0%, transparent 35%),
                radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
                var(--bg-main);
    pointer-events: none;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-muted) !important;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #818cf8 70%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #818cf8 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    margin-bottom: 1rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

/* Navbar */
.navbar-custom {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    background: rgba(9, 13, 22, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Custom Buttons */
.btn-glow {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
    color: #ffffff;
}

.btn-secondary-glow {
    background: rgba(30, 41, 59, 0.8);
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-glow:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-cyan:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
    color: #ffffff;
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--emerald-glow);
}

.btn-emerald:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

/* Modern Store Badges */
.btn-store {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 0.65rem 1.3rem;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-store:hover {
    background: rgba(30, 41, 59, 1);
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
    color: #ffffff !important;
}

.btn-store-icon {
    font-size: 1.9rem;
    line-height: 1;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.btn-store-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.btn-store-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}


/* Hero Section */
.hero-section {
    padding: 7rem 0 5rem 0;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    font-size: 0.9rem;
    color: #c7d2fe;
    margin-bottom: 1.5rem;
}

.hero-pill-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hero-stat-item h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.hero-stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Interactive Receipt Simulator Showcase */
.simulator-box {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.simulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.sim-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.sim-receipt-card {
    background: #ffffff;
    color: #1e293b;
    border-radius: 12px;
    padding: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sim-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #06b6d4, #6366f1, transparent);
    box-shadow: 0 0 12px #06b6d4;
    animation: scanAnim 3s infinite ease-in-out;
}

@keyframes scanAnim {
    0% { top: 0; opacity: 0.2; }
    50% { top: 95%; opacity: 1; }
    100% { top: 0; opacity: 0.2; }
}

.sim-output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1.2rem;
}

.sim-output-pill {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
}

.sim-output-pill strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
}

/* Feature Icons */
.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.icon-indigo { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); border: 1px solid rgba(99, 102, 241, 0.3); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }

/* Workflow Steps */
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    margin-bottom: 1rem;
}

/* ERP Badges */
.erp-badge {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.erp-badge:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.15);
}

/* FAQ Accordion */
.accordion-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-card) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: none !important;
    padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-light) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Modals */
.modal-content {
    background-color: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #f8fafc;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.4rem 1.8rem;
}

.modal-body {
    padding: 1.8rem;
}

.form-control, .form-select {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 8px;
    padding: 0.7rem 1rem;
}

.form-control:focus, .form-select:focus {
    background-color: #1e293b;
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

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

/* Floating WhatsApp / Contact Action */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(5deg);
    color: #ffffff;
}

.fab-whatsapp {
    background: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.fab-support {
    background: var(--primary);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Footer */
footer {
    background: #060911;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Responsive Tweaks */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-section {
        padding: 5rem 0 3rem 0;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.2rem;
    }
    .simulator-box {
        margin-top: 2rem;
    }
}
