/* Root Variables for Colors */
:root {
    --primary-color: #0ea129;
    --primary-hover: #0d8b24;
    --secondary-color: #0ea129;     /* Unified primary color */
    --secondary-hover: #0d8b24;  
    --background-color: #fcfcfc;
    --text-color: #333;
    --light-text-color: #64748b;
    --white: #fff;
    --black: #000;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --navbar-background: #f5fff7;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background: var(--background-color);
}

img, canvas, svg, video {
    max-width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--navbar-background);
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: rgba(245, 255, 247, 0.98);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    z-index: 1002;
}

.logo-image {
    width: 44px;
    height: auto;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-spacer {
    display: inline-block;
    width: 3.5rem;
    height: 1px;
    visibility: hidden;
    pointer-events: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.nav-overlay {
    display: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 140px 2rem 80px;
    background: #f5f5f5;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 968px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.hero-tagline {
    color: var(--light-text-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.hero-illustration {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: url('/static/images/solar.webp') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
}

.floating-icon {
    position: absolute;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    bottom: 20%;
    right: -10%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    top: 50%;
    right: -15%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: 80px 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works */
.how-it-works {
    background: #f9fafa;
}

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

.step-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #00C853 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.step-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--light-text-color);
    line-height: 1.6;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--light-text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Dashboard Preview */
.preview {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.dashboard-mockup {
    background: #333;
    border-radius: 20px;
    padding: 0.8rem 1.5rem 1.5rem 1.5rem; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
}

.mockup-content {
    background: linear-gradient(135deg, #2563eb 0%, #00C853 100%);
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.mockup-stats {
    position: absolute;
    background: rgba(255,255,255,0.95);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mockup-stats:nth-child(1) {
    top: 20px;
    left: 20px;
}

.mockup-stats:nth-child(2) {
    bottom: 20px;
    right: 20px;
}

/* Testimonials */
.testimonials {
    background: #f9fafa;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #00C853 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.testimonial-info h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--light-text-color);
    line-height: 1.6;
    font-style: italic;
}

.stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #00C853 100%);
    border-radius: 16px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #2563eb 0%, #00C853 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 60px 2rem 30px;
}

.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-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}

/* ============================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ============================================ */

@media (max-width: 991px) {
    .nav-container {
        padding: 0.75rem 1.25rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo-image {
        width: 36px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile drawer menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 85px 1.5rem 2rem;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }

    .nav-spacer {
        display: none !important;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 0.4rem 0;
        width: 100%;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        padding-top: 1.25rem;
        border-top: 1px solid #e5e7eb;
        margin: 0 !important;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(2px);
        z-index: 1000;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero section */
    .hero {
        padding: 100px 1.25rem 50px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 1.5rem;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-tagline {
        justify-content: center;
        font-size: 0.85rem;
    }

    .hero-visual {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        overflow: hidden;
    }

    .hero-illustration {
        width: 100%;
        height: 240px;
        border-radius: 16px;
    }

    .floating-icon {
        display: none !important; /* Hide floating icons outside viewport to eliminate horizontal scroll */
    }

    /* Grids & Cards */
    .steps-grid,
    .features-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section {
        padding: 50px 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .step-card {
        padding: 1.75rem 1.25rem;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
    }

    .stats-banner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Dashboard preview */
    .dashboard-mockup {
        padding: 0.6rem 1rem 1rem;
        margin-top: 2rem;
    }

    .mockup-content {
        height: 240px;
        font-size: 1.1rem;
    }

    .mockup-stats {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0.5rem auto;
        display: block;
        max-width: 220px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* CTA Section */
    .cta {
        padding: 60px 1.25rem;
    }

    .cta h2 {
        font-size: 1.65rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer {
        padding: 40px 1.25rem 25px;
    }

    .footer-grid {
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.65rem 0.85rem;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.95rem;
    }
}

.uses {
    color: #0ea129;
}