/* ==========================================================================
   1. Advanced Variables & Design Tokens
   ========================================================================== */
:root {
    --bg-main: #06090c;         /* Cinematic obsidian black */
    --bg-surface: #0e1318;     /* Surface layer elements */
    --bg-card: #151c24;        /* Component containers */
    --accent-green: #00e676;   /* Electric Neon Green */
    --accent-emerald: #00a048; /* Alternate darker emerald tone */
    --glow-color: rgba(0, 230, 118, 0.2);
    --text-primary: #f1f5f9;   /* Crisp off-white text */
    --text-muted: #8a99ad;     /* Highly readable secondary text */
    --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Global Document Normalization & Base Elements
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* Modern Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-green) 0%, #baffd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-green {
    color: var(--accent-green);
}

/* Reusable Dynamic Section Header Layout */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* Custom Page Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-emerald));
    z-index: 2000;
    transform-origin: left;
}

/* ==========================================================================
   3. Interactive Buttons & Badge Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-premium);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-main);
    box-shadow: 0 8px 24px var(--glow-color);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 230, 118, 0.45);
    background: #1aff8c;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-4px);
}

.badge {
    display: inline-flex;
    padding: 8px 16px;
    background: rgba(0, 230, 118, 0.06);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--accent-green);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
}

/* ==========================================================================
   4. Premium Navigation Architecture
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1500;
    background: rgba(6, 9, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-premium);
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition-premium);
}

.nav-item:hover::after {
    width: 100%;
}

.menu-toggle, .hamburger {
    display: none;
}

/* ==========================================================================
   5. Hero Section Configuration
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 32px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* High Tech Image Frame Housing ecocharge.jpg */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-frame-glow {
    position: relative;
    border-radius: 32px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.image-frame-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--accent-green), transparent, var(--accent-emerald));
    z-index: -1;
    opacity: 0.4;
}

.brand-hero-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 22px;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   6. Infinite Continuous Loop Ticker (Marquee)
   ========================================================================== */
.ticker-zone {
    background: #0b1015;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding: 24px 0;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: continuousMarquee 25s linear infinite;
    gap: 40px;
}

.ticker-track span {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-green);
}

/* ==========================================================================
   7. Live Metrics Infrastructure Grid Layout
   ========================================================================== */
.grid {
    display: grid;
    gap: 32px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-premium);
}

.metric-card:hover {
    border-color: rgba(0, 230, 118, 0.2);
    background: var(--bg-card);
    transform: scale(1.03);
}

.metric-num {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 12px;
}

.metric-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   8. Process Walkthrough Pipeline
   ========================================================================== */
.process-sec {
    background: rgba(255,255,255,0.01);
}

.step-card {
    position: relative;
    background: var(--bg-card);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 230, 118, 0.08);
    position: absolute;
    top: 24px;
    right: 32px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 16px;
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   9. Advanced Bento Grid Ecosystem Layout
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 28px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-premium);
}

.bento-item:hover {
    border-color: rgba(0, 230, 118, 0.25);
    background: var(--bg-card);
}

.bento-large {
    grid-column: span 2;
}

.bento-medium {
    grid-column: span 3;
}

.bento-small {
    grid-column: span 1;
}

.bento-inner .tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--accent-green);
    display: inline-block;
    margin-bottom: 24px;
}

.bento-inner .tag-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.bento-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.bento-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ==========================================================================
   10. Tariff Rates Matrix Pricing
   ========================================================================== */
.price-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    transition: var(--transition-premium);
}

.price-card.popular {
    background: #0f181e;
    border: 2px solid var(--accent-green);
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}

.ribbon {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--accent-green);
    color: var(--bg-main);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
}

.price-card h4 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.price-features {
    list-style: none;
}

.price-features li {
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 900;
}

/* ==========================================================================
   11. Modern Semantic FAQ Accordion
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-premium);
}

.faq-question {
    padding: 24px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--accent-green);
    transition: var(--transition-premium);
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 32px 24px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   12. Horizontal Interactive Corporate CTA Box
   ========================================================================== */
.cta-card-wrapper {
    background: linear-gradient(135deg, #10171e 0%, var(--bg-main) 100%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 32px;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
}

.cta-action-area {
    flex-shrink: 0;
}

/* ==========================================================================
   13. Multi-Column Institutional Footer Layout
   ========================================================================== */
.footer {
    background: #030507;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 64px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.footer-brand h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 360px;
    line-height: 1.6;
}

.footer-nav-col h5 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-nav-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: var(--transition-premium);
}

.footer-nav-col a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   14. Animations System Keyframes
   ========================================================================== */
.animate-slide-up {
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: softFloat 6s ease-in-out infinite alternate;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes softFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-16px); }
}

@keyframes continuousMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   15. Advanced Device Breakpoints (Responsive CSS Ecosystem)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large, .bento-small, .bento-medium {
        grid-column: span 1;
    }

    .cta-card-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 48px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    /* Pure CSS Hamburger Mobile Framework Toggle Trigger logic */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1600;
    }

    .hamburger span {
        display: block;
        width: 26px;
        height: 2px;
        background-color: var(--text-primary);
        transition: var(--transition-premium);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: #090d12;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        box-shadow: -20px 0 60px rgba(0,0,0,0.7);
        transition: var(--transition-premium);
    }

    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}