/* ====================================================================
   ChargeKrab — More from Payments | Light Theme (Logo-Inspired)
   Background: #e9f3f5 · Gold accent: #f5a623 · Near-black text: #1a1a2e
   ==================================================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Brand */
    --primary: #1a4a4a;
    --primary-dark: #053446;
    --primary-light: #2d7a7a;
    --accent: #f5a623;
    --accent-light: #fabf33;
    --accent-dark: #d4891a;

    /* Backgrounds */
    --bg-body: #e9f3f5;
    --bg-section: #d4e4ea;
    --bg-darker: #c4d8de;
    --card-bg: #ffffff;
    --card-border: #cde0e5;
    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: rgba(0,0,0,0.06);

    /* Text — logo inspired: black / gold */
    --text-heading: #0a0a0a;
    --text-body: #1a1a2e;
    --text-dim: #5a6a7a;
    --text-accent: #f5a623;

    /* Backward-compatible aliases for inline styles */
    --text-light: var(--text-heading);
    --text-muted: var(--text-body);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #e9f3f5 0%, #d4e4ea 100%);
    --gradient-primary: linear-gradient(135deg, #1a4a4a, #2d7a7a);
    --gradient-accent: linear-gradient(135deg, #f5a623, #fabf33);
    --gradient-text: linear-gradient(135deg, #1a4a4a, #2d7a7a);
    --gradient-gold: linear-gradient(135deg, #f5a623, #fabf33);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ========== BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ========== NOISE OVERLAY ========== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========== TEXT EFFECTS ========== */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-accent {
    color: var(--accent);
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    background: #e9f3f5;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.navbar-brand img {
    height: 38px;
    width: auto;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.navbar-links a {
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar-links a:hover {
    color: var(--accent);
}
.btn-nav {
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 0.55rem 1.6rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 74, 74, 0.3);
}
.navbar-links .dropdown {
    position: relative;
}
.navbar-links .dropdown-toggle {
    cursor: pointer;
}
.navbar-links .dropdown-toggle .fa-caret-down,
.navbar-links .dropdown-toggle .fa-chevron-down {
    margin-left: 0.3rem;
    font-size: 0.65rem;
    opacity: 0.7;
}
.navbar-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
    margin-top: 0.5rem;
}
.navbar-links .dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    white-space: nowrap;
}
.navbar-links .dropdown-menu li a:hover {
    background: var(--bg-light, #f5f5f5);
}
.navbar-links .dropdown:hover .dropdown-menu,
.navbar-links .dropdown.active .dropdown-menu {
    display: block;
}
.navbar-links .dropdown-menu .divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0.3rem 0;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-body);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}
.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 74, 74, 0.1);
    border: 1px solid rgba(26, 74, 74, 0.15);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
    letter-spacing: -1px;
}
.hero p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 540px;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Trust bar */
.trust-bar {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.trust-item {
    text-align: left;
}
.trust-item .number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
}
.trust-item .label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Floating badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-body);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.badge-1 { top: 8%; left: -5%; }
.badge-2 { top: 30%; right: -8%; }
.badge-3 { bottom: 20%; left: -8%; }
.badge-4 { bottom: 5%; right: 5%; }
.floating-badge .icon { font-size: 1rem; }

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-body);
    font-size: 1.05rem;
}

/* ========== FEATURES SECTION ========== */
.features {
    padding: 6rem 2rem;
    position: relative;
    background: var(--bg-body);
}
.features .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.2);
    box-shadow: var(--shadow-md);
}
.feature-card .icon-wrap {
    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;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.12);
}
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}
.feature-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    transition: gap 0.3s ease;
}
.feature-card .learn-more:hover {
    gap: 0.7rem;
}

/* ========== NEXT STEPS / CTA SECTION ========== */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-section);
}
.cta-section .container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-heading);
}
.cta-section p {
    color: var(--text-body);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ========== BLOG SECTION ========== */
.blog-section {
    padding: 6rem 2rem;
    background: var(--bg-body);
}
.blog-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.2);
    box-shadow: var(--shadow-md);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: rgba(245, 166, 35, 0.1);
    color: var(--accent-dark);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-heading);
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card .read-more {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
    background: #e9f3f5;
    border-top: 2px solid rgba(245, 166, 35, 0.3);
    padding: 4rem 2rem 2rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    width: 79%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}
.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer ul {
    list-style: none;
}
.footer ul li {
    margin-bottom: 0.6rem;
}
.footer ul a {
    color: var(--text-body);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
.footer ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}
.footer-bottom .social-links {
    display: flex;
    gap: 1rem;
}
.footer-bottom .social-links a {
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.footer-bottom .social-links a:hover {
    color: var(--accent);
}

/* ========== ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero p { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .trust-bar { justify-content: center; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .navbar-links.open { display: flex; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 5rem 1.5rem 3rem; }
    .features, .blog-section, .cta-section { padding: 4rem 1.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .trust-bar { gap: 1.5rem; }
    .floating-badge { display: none; }
}

/* ========== UTILITY ========== */
.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========== ORBS (decorative) ========== */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.25;
    z-index: 0;
}
.orb-teal {
    width: 400px;
    height: 400px;
    background: rgba(26, 74, 74, 0.12);
    top: -200px;
    left: -100px;
}
.orb-gold {
    width: 300px;
    height: 300px;
    background: rgba(245, 166, 35, 0.10);
    bottom: -150px;
    right: -80px;
}
.orb-teal-sm {
    width: 200px;
    height: 200px;
    background: rgba(26, 74, 74, 0.08);
    bottom: -60px;
    right: 10%;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 74, 74, 0.35);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--text-body);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1.5px solid var(--card-border);
    cursor: pointer;
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}