/* ============================================
   ENERGIZEI — Landing Page Design System
   Premium dark theme with solar green/amber accents
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1a2236;
    --bg-glass: rgba(17, 24, 39, .65);
    --border-glass: rgba(255, 255, 255, .08);

    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;

    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Gradients */
    --glow-green: 0 0 80px rgba(34, 197, 94, .25);
    --glow-amber: 0 0 80px rgba(245, 158, 11, .2);
    --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #0f1a2e 50%, #0a1a14 100%);
    --gradient-green: linear-gradient(135deg, var(--green-500), var(--green-600));
    --gradient-cta: linear-gradient(135deg, var(--green-500), #059669);

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-py: 100px;
    --container-w: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green-400);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--green-500);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 16px;
}

.section-label i {
    font-size: .65rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 48px;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-cta);
    color: #fff;
    padding: 16px 36px;
    font-size: 1.05rem;
    box-shadow: 0 4px 24px rgba(34, 197, 94, .35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(34, 197, 94, .5);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    padding: 14px 32px;
    border: 2px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--green-400);
    color: var(--green-400);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 12px 24px;
    font-size: .9rem;
    border-radius: 12px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all .4s;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, .92);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-white);
}

.navbar-brand i {
    color: var(--amber-400);
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--text-white);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.navbar-nav a:hover {
    color: var(--text-white);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(34, 197, 94, .12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, .08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--green-400);
    margin-bottom: 28px;
}

.hero-badge i {
    font-size: .7rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--green-400), var(--amber-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.hero-proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-muted);
}

.hero-proof-item i {
    color: var(--green-400);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-dashboard-mockup {
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .5), var(--glow-green);
    overflow: hidden;
}

.hero-float-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
    animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-1 {
    bottom: 10%;
    left: -30px;
}

.hero-float-card.card-2 {
    top: 10%;
    right: -20px;
    animation-delay: -3s;
}

.float-card-label {
    font-size: .7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.float-card-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green-400);
}

.float-card-value.amber {
    color: var(--amber-400);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ---------- Social Proof Stats ---------- */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green-400), var(--amber-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: .9rem;
    color: var(--text-muted);
}

/* ---------- Pain Points ---------- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    opacity: 0;
    transition: opacity .3s;
}

.pain-card:hover {
    border-color: rgba(239, 68, 68, .3);
    transform: translateY(-4px);
}

.pain-card:hover::before {
    opacity: 1;
}

.pain-icon {
    width: 52px;
    height: 52px;
    background: rgba(239, 68, 68, .1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #f87171;
    margin-bottom: 20px;
}

.pain-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pain-card p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-green);
    opacity: 0;
    transition: opacity .3s;
}

.feature-card:hover {
    border-color: rgba(34, 197, 94, .25);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(34, 197, 94, .1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(34, 197, 94, .1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--green-400);
    margin-bottom: 22px;
    transition: all .3s;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-green);
    color: #fff;
    box-shadow: 0 8px 24px rgba(34, 197, 94, .3);
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--green-500), var(--amber-500));
    opacity: .3;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(34, 197, 94, .3);
}

.step-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* ---------- Pricing ---------- */
.pricing-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid rgba(34, 197, 94, .3);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(34, 197, 94, .1);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(34, 197, 94, .08) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-green);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 36px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-glass);
    font-size: .95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--green-400);
    font-size: .9rem;
    width: 20px;
    text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .3s;
}

.faq-item.active {
    border-color: rgba(34, 197, 94, .3);
}

.faq-question {
    width: 100%;
    background: var(--bg-card);
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-white);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: background .2s;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question i {
    color: var(--text-dim);
    transition: transform .3s, color .3s;
    font-size: .8rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--green-400);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1), padding .3s;
    background: var(--bg-card);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.8;
}

/* ---------- Final CTA ---------- */
.final-cta {
    background: linear-gradient(135deg, rgba(34, 197, 94, .08) 0%, rgba(245, 158, 11, .05) 100%);
    border-top: 1px solid rgba(34, 197, 94, .15);
    border-bottom: 1px solid rgba(34, 197, 94, .15);
    text-align: center;
    padding: 80px 0;
}

.final-cta h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.final-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 36px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.footer-brand i {
    color: var(--amber-400);
}

.footer-desc {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.7;
    max-width: 340px;
}

.footer-col h5 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-dim);
    font-size: .9rem;
}

.footer-col ul li a:hover {
    color: var(--green-400);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--text-dim);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}

.reveal-delay-5 {
    transition-delay: .5s;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-proof {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pain-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .steps-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 23, .97);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-glass);
    }

    .navbar-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 64px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-proof {
        flex-direction: column;
    }
}