/* ========== Global ========== */
:root {
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f4c75 100%);
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #0f3d2e 50%, #0f5a36 100%);
    --accent: #1ca463;
    --accent-dark: #0f5a36;
    --accent-light: #e8f5ef;
    --accent-orange: #ff8c2e;
    --rose: #cf6669;
    --rose-light: #fdf0f0;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --surface: #f8fafc;
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--surface); color: #2d3748; }

/* Force-hide modals and backdrops that are not actively shown */
.modal:not(.show) { display: none !important; }
.modal-backdrop:not(.show) { display: none !important; }

/* ========== Navbar ========== */
.navbar { padding: .75rem 0; }
.navbar-brand { font-size: 1.25rem; letter-spacing: -.025em; color: #fff !important; }
.navbar .nav-link { font-weight: 500; font-size: .9rem; border-radius: .375rem; transition: background .2s; color: #fff !important; }
.navbar .nav-link:hover { background: rgba(255,255,255,.15); color: #fff !important; }
.navbar .btn-logout { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; }
.navbar .btn-logout:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ========== Hero ========== */
.hero-section {
    background: var(--hero-gradient);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,.04);
    transform: rotate(12deg);
    border-radius: 50%;
}
.hero-section h1 { font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hero-section .lead { font-size: 1.15rem; line-height: 1.7; }
.hero-badge { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 500; padding: .35rem .85rem; border-radius: 50px; font-size: .8rem; display: inline-block; backdrop-filter: blur(4px); }
.hero-stat { text-align: center; }
.hero-stat .stat-value { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-stat .stat-label { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }

/* ========== Section ========== */
.section-title { font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; color: var(--navy); }
.section-subtitle { color: #64748b; max-width: 600px; margin: 0 auto 2.5rem; }

/* ========== Cards ========== */
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: 2rem 1.75rem;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    border-color: #86d4a8;
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* ========== Pricing ========== */
.pricing-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    transition: all .3s;
    position: relative;
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(5,150,105,.18);
    transform: scale(1.04);
}
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pricing-card .price small { font-size: .9rem; font-weight: 400; color: #718096; }
.pricing-card ul { list-style: none; padding: 0; }
.pricing-card ul li { padding: .4rem 0; font-size: .925rem; color: #4a5568; }
.pricing-card ul li i { color: var(--accent); margin-right: .5rem; }

/* ========== Scheme tags ========== */
.scheme-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: .5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .875rem;
    transition: all .2s;
}
.scheme-tag:hover { background: #a7f3d0; }

/* ========== Auth pages ========== */
.auth-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--surface);
}
.auth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
}
.auth-card .auth-header {
    background: var(--primary-gradient);
    padding: 2rem;
    text-align: center;
    color: #fff;
}
.auth-card .auth-header h3 { font-weight: 700; margin-bottom: .25rem; }
.auth-card .auth-body { padding: 2rem; }
.auth-card .form-control { border-radius: .5rem; padding: .625rem .875rem; border-color: #e2e8f0; }
.auth-card .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.auth-card .btn-primary { border-radius: .5rem; padding: .625rem; font-weight: 600; background: var(--accent); border-color: var(--accent); }
.auth-card .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.auth-card .form-label { font-weight: 500; font-size: .875rem; color: #4a5568; }

/* ========== Dashboard ========== */
.dashboard-header { background: var(--primary-gradient); color: #fff; padding: 2rem 0; margin-bottom: 2rem; }
.dashboard-header h2 { font-weight: 700; }
.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: 1.5rem;
    transition: all .3s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: .625rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

.project-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.project-card .card-top { height: 4px; }
.project-card .card-body { padding: 1.5rem; }

/* ========== How It Works Steps ========== */
.step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========== Utilities ========== */
.text-gradient { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-accent-light { background: var(--accent-light); }
.border-accent { border-color: var(--accent) !important; }

/* ========== Badges ========== */
.badge { font-weight: 600; letter-spacing: .02em; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-section { padding: 3rem 0 2.5rem; }
    .hero-section h1 { font-size: 2rem; }
    .pricing-card.featured { transform: scale(1); }
}

/* ================================================================
   LANDING PAGE — Professional Redesign (14 Sections)
   ================================================================ */

/* ---------- Extra CSS Variables ---------- */
:root {
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,.10);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
    --radius-sm: .5rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --engine-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ---------- 1. Hero Enhancements ---------- */
.hero-section { padding: 6rem 0 5rem; }
.hero-section .hero-tagline { font-size: 1.05rem; color: rgba(255,255,255,.85); }
.hero-float-card {
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    animation: float 6s ease-in-out infinite;
}
.hero-float-card .mini-stat { text-align: center; }
.hero-float-card .mini-stat .val { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-float-card .mini-stat .lbl { font-size: .72rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- 2. Trust Strip ---------- */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.75rem 0;
}
.trust-strip .trust-item { text-align: center; padding: .5rem 1rem; }
.trust-strip .trust-val { font-size: 1.75rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.trust-strip .trust-lbl { font-size: .78rem; color: #718096; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

/* ---------- 3. Platform Overview ---------- */
.platform-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    height: 100%;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #86d4a8; }
.platform-card .platform-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* ---------- 4. Stakeholder Tabs ---------- */
.stakeholder-tabs .nav-tabs { border: none; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.stakeholder-tabs .nav-tabs .nav-link {
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: .625rem 1.5rem;
    font-weight: 600;
    font-size: .9rem;
    color: #4a5568;
    background: #fff;
    transition: all .25s;
}
.stakeholder-tabs .nav-tabs .nav-link:hover { border-color: var(--accent); color: var(--accent); }
.stakeholder-tabs .nav-tabs .nav-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.stakeholder-tabs .tab-content { margin-top: 2rem; }
.stakeholder-feature-list { list-style: none; padding: 0; margin: 0; }
.stakeholder-feature-list li {
    padding: .6rem 0;
    font-size: .925rem;
    color: #4a5568;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}
.stakeholder-feature-list li i { color: var(--accent); margin-top: .15rem; flex-shrink: 0; }
.stakeholder-visual {
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stakeholder-visual .visual-icon { font-size: 3.5rem; color: var(--accent); margin-bottom: 1rem; }

/* ---------- 5. DPR Types ---------- */
.dpr-type-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all .3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.dpr-type-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary-gradient);
}
.dpr-type-card:hover { box-shadow: var(--shadow-md); border-color: #86d4a8; transform: translateY(-3px); }
.dpr-type-card .type-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.dpr-type-card .type-features { list-style: none; padding: 0; margin: 1rem 0 0; }
.dpr-type-card .type-features li { padding: .35rem 0; font-size: .875rem; color: #4a5568; }
.dpr-type-card .type-features li i { color: var(--accent); margin-right: .4rem; }

/* ---------- 6. Scheme Cards (enhanced) ---------- */
.scheme-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all .3s;
    height: 100%;
}
.scheme-card:hover { box-shadow: var(--shadow-sm); border-color: #86d4a8; transform: translateY(-2px); }
.scheme-card .scheme-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: .75rem;
}
.scheme-card h6 { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.scheme-card .scheme-desc { font-size: .82rem; color: #718096; margin-bottom: .5rem; }
.scheme-card .scheme-range { font-size: .78rem; font-weight: 600; color: var(--accent); }

/* ---------- 7. How It Works Timeline ---------- */
.hiw-timeline { position: relative; display: flex; justify-content: space-between; gap: 1rem; }
.hiw-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 48px;
    right: 48px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}
.hiw-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}
.hiw-step .step-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: .75rem;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
}
.hiw-step:hover .step-circle { background: var(--accent); color: #fff; transform: scale(1.1); }
.hiw-step h6 { font-weight: 700; font-size: .9rem; margin-bottom: .25rem; }
.hiw-step p { font-size: .82rem; color: #718096; margin: 0; }

/* ---------- 8. Financial Engine (dark) ---------- */
.engine-section {
    background: var(--engine-bg);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.engine-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 160%;
    background: rgba(255,255,255,.03);
    transform: rotate(15deg);
    border-radius: 50%;
}
.engine-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50px;
    padding: .5rem 1rem;
    font-size: .82rem;
    color: rgba(255,255,255,.85);
    margin: .25rem;
    transition: all .2s;
}
.engine-pill:hover { background: rgba(255,255,255,.15); }
.engine-pill i { color: #1ca463; }
.engine-stat {
    text-align: center;
    padding: 1.5rem;
}
.engine-stat .val { font-size: 2.5rem; font-weight: 800; color: #1ca463; line-height: 1; }
.engine-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; margin-top: .35rem; }

/* ---------- 9. AI-Powered ---------- */
.ai-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all .3s;
    height: 100%;
}
.ai-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #c3aed6; }
.ai-card .ai-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* ---------- 10. Wallet / Referral / Economy ---------- */
.economy-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: all .3s;
    height: 100%;
}
.economy-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #86d4a8; }
.economy-card .economy-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.economy-card .economy-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.economy-card .economy-list li { padding: .4rem 0; font-size: .9rem; color: #4a5568; }
.economy-card .economy-list li i { color: var(--accent); margin-right: .4rem; }

/* ---------- 11. Pricing (4 columns) ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pricing-card .period { font-size: .82rem; color: #718096; }

/* ---------- 12. Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all .3s;
    height: 100%;
}
.testimonial-card:hover { box-shadow: var(--shadow-sm); }
.testimonial-card .stars { color: #f59e0b; font-size: 1rem; margin-bottom: .75rem; }
.testimonial-card blockquote { font-size: .925rem; color: #4a5568; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card .author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}
.testimonial-card .author-name { font-weight: 700; font-size: .9rem; color: #2d3748; }
.testimonial-card .author-role { font-size: .8rem; color: #718096; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: .5rem 1.25rem;
    font-size: .82rem;
    font-weight: 600;
    color: #4a5568;
}
.trust-badge i { color: var(--accent); }

/* ---------- 13. FAQ ---------- */
.faq-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: .95rem;
    color: #2d3748;
    background: #fff;
    padding: 1.1rem 1.5rem;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--accent); background: var(--accent-light); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.faq-accordion .accordion-body { font-size: .9rem; color: #4a5568; line-height: 1.7; padding: 1rem 1.5rem 1.25rem; }

/* ---------- 14. Final CTA ---------- */
.final-cta {
    background: linear-gradient(135deg, #0f5a36 0%, #1ca463 100%);
    padding: 4rem 0;
}

/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Navbar scroll state ---------- */
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.15); }

/* ---------- Responsive: Tablet (992px) ---------- */
@media (max-width: 992px) {
    .hero-section { padding: 4rem 0 3rem; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .hiw-timeline { flex-wrap: wrap; justify-content: center; }
    .hiw-timeline::before { display: none; }
    .hiw-step { flex: 0 0 45%; }
    .engine-stat .val { font-size: 2rem; }
}

/* ---------- Responsive: Mobile (768px) ---------- */
@media (max-width: 768px) {
    .trust-strip .trust-val { font-size: 1.35rem; }
    .stakeholder-visual { min-height: 200px; padding: 1.5rem; }
    .stakeholder-visual .visual-icon { font-size: 2.5rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hiw-step { flex: 0 0 100%; }
    .engine-section { padding: 3.5rem 0; }
    .testimonial-card { padding: 1.5rem; }
    .trust-badges { gap: .5rem; }
    .trust-badge { padding: .4rem .8rem; font-size: .75rem; }
}

/* ---------- Responsive: Small Mobile (576px) ---------- */
@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.75rem; }
    .hero-float-card { padding: 1.25rem; }
    .hero-float-card .mini-stat .val { font-size: 1.25rem; }
    .trust-strip .row > div { flex: 0 0 33.333%; }
    .platform-card { padding: 1.5rem; }
    .stakeholder-tabs .nav-tabs .nav-link { padding: .5rem 1rem; font-size: .82rem; }
    .engine-pill { font-size: .75rem; padding: .4rem .75rem; }
    .economy-card { padding: 1.5rem; }
    .final-cta { padding: 3rem 0; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-float-card { animation: none; }
    .fade-up { opacity: 1; transform: none; transition: none; }
    .hiw-step .step-circle { transition: none; }
    .feature-card, .platform-card, .dpr-type-card, .scheme-card, .ai-card, .economy-card, .testimonial-card, .pricing-card { transition: none; }
}
