/* ===== Global Typography ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lead { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }

/* ===== Buttons — Pill-shaped ===== */
.btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
}

.btn-lg {
    padding: 0.85rem 2.25rem;
    font-size: 1.05rem;
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: #0f172a;
}

.btn-light:hover {
    background: #f1f5f9;
    border-color: #f1f5f9;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

/* ===== Navbar — Transparent to solid ===== */
.navbar {
    background: transparent !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1040;
}

.navbar-scrolled {
    background: rgba(10, 10, 26, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* ===== Hero Sections ===== */
.hero-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 40%, #0f2460 70%, #0a1628 100%);
    position: relative;
    overflow: hidden;
    padding-top: 7rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-home .container {
    position: relative;
    z-index: 1;
}

/* ===== Marketplace Hero ===== */
.marketplace-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #0f3460 50%, #1a365d 100%);
    position: relative;
    overflow: hidden;
    padding-top: 7rem;
}

.marketplace-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== Product Hero (detail pages) ===== */
.product-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding-top: 7rem;
}

.product-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== Section Spacing ===== */
.py-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 992px) {
    .py-section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* ===== Section Backgrounds ===== */
.bg-dark-gradient {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f172a 100%);
}

.bg-subtle {
    background-color: #f8fafc;
}

/* ===== Cards — Premium ===== */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.product-card .card-body {
    padding: 1.75rem;
}

.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Product Icons ===== */
.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.product-icon-wallet { background: linear-gradient(135deg, #667eea, #764ba2); }
.product-icon-digifi { background: linear-gradient(135deg, #f093fb, #f5576c); }
.product-icon-temrr { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.product-icon-cashflow { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.product-icon-impact { background: linear-gradient(135deg, #fa709a, #fee140); }

.product-icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 2rem;
}

/* ===== Value Prop Icon Containers ===== */
.icon-container {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.05));
    color: #4f46e5;
}

/* ===== Status Badges ===== */
.badge-beta {
    background-color: #4f46e5;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3em 0.8em;
    border-radius: 20px;
}

.badge-preview {
    background-color: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3em 0.8em;
    border-radius: 20px;
}

/* ===== CRM Status Badges ===== */
.badge-new { background-color: #4f46e5; }
.badge-contacted { background-color: #6f42c1; }
.badge-qualified { background-color: #ffc107; color: #000; }
.badge-proposal { background-color: #0dcaf0; color: #000; }
.badge-won { background-color: #198754; }
.badge-lost { background-color: #dc3545; }

/* ===== Category Tags ===== */
.product-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2em 0.65em;
    border-radius: 20px;
    background-color: #f1f5f9;
    color: #475569;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

/* ===== Feature Items ===== */
.feature-item {
    padding: 1.75rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* ===== Pricing Cards ===== */
.pricing-card {
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    border-color: #4f46e5;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.pricing-card.featured {
    border-color: #4f46e5;
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.12);
}

/* ===== Stats Bar ===== */
.stats-bar .stat-item {
    padding: 0.75rem 0;
}

.stats-bar .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}

.stats-bar .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== Trust Stats (dark variant) ===== */
.trust-stat-value {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ===== Activity Timeline ===== */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.activity-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4f46e5;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #4f46e5;
}

.activity-item.completed::before {
    background-color: #198754;
    box-shadow: 0 0 0 2px #198754;
}

/* Stat Card Hover */
.stat-card {
    transition: transform 0.15s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
}

/* ===== Footer ===== */
.footer-section {
    background: linear-gradient(180deg, #0a0a1a 0%, #0f172a 100%);
}

.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff !important;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.85rem;
    border-color: rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}

.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== Scroll Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f2460 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .hero-home {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .trust-stat-value {
        font-size: 2rem;
    }
}
