:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --secondary: #f59e0b;
    --accent: #22c55e;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-gray: #475569;
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 span {
    color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.btn-white {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-full {
    width: 100%;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--primary));
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sub-cta {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-visual {
    position: relative;
}

.energy-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 24px;
    width: 250px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.savings-card {
    margin-left: 4rem;
    border-color: var(--accent);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.card-price {
    font-size: 2rem;
    font-weight: 700;
}

.card-price span {
    font-size: 1rem;
    color: var(--text-gray);
}

.savings-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.icon-yellow { color: var(--secondary); }
.icon-green { color: var(--accent); }

/* Features */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 148, 136, 0.05);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    width: 32px;
    height: 32px;
}

/* How it works */
.how-it-works {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.02);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* CTA Banner */
.cta-banner {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 4rem;
    border-radius: 32px;
    text-align: center;
    color: white;
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* FAQ */
.faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    display: none;
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 1rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: #f1f5f9;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-brand p {
    color: var(--text-gray);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions, .sub-cta {
        justify-content: center;
    }
    .hero-visual {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }
    .energy-card { margin-left: 0; width: 45%; }
    .steps-container {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    .mobile-sticky-cta {
        display: block;
    }
    .hero { padding: 60px 0; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}

/* Mobile Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 20, 0.9);
    backdrop-filter: blur(8px);
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.popup-content {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    padding: 3rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: popupFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-popup {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.popup-header {
    margin-bottom: 1.5rem;
}

.pulse-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    background: rgba(13, 148, 136, 0.1);
    padding: 1rem;
    border-radius: 50%;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.popup-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.popup-subtext {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.fomo-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pulse-green {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 1.5s infinite;
}

.popup-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Ensure consistent display */
@media (max-width: 768px) {
    .popup-overlay.active {
        display: flex;
    }
}
