:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --sage-50: #f6f7f6;
    --sage-100: #e3e7e3;
    --sage-200: #c7d2c7;
    --sage-300: #9fb09f;
    --sage-400: #728872;
    --sage-500: #5a6b5a;
    --sage-600: #475447;
    --sage-700: #3a453a;
    --sage-800: #303930;
    --sage-900: #2a302a;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
}

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

/* Ensure all elements respect viewport width */
* {
    max-width: 100%;
}

html {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--neutral-800);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-700);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--emerald-50) 0%, var(--sage-50) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Value Proposition Section */
.value-proposition {
    padding: 6rem 0;
    background: var(--neutral-50);
}

.value-header {
    text-align: center;
    margin-bottom: 4rem;
}

.value-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.value-subtitle {
    font-size: 1.2rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

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

.comparison-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card.winner {
    border: 2px solid var(--emerald-500);
    position: relative;
    background: linear-gradient(135deg, var(--emerald-50), white);
}

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

.comparison-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comparison-card:first-child .comparison-header h3 {
    color: #dc2626;
}

.comparison-card.winner .comparison-header h3 {
    color: var(--emerald-700);
}

.winner-badge {
    background: var(--emerald-500);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.comparison-content ul {
    list-style: none;
    padding: 0;
}

.comparison-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-100);
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.comparison-content li:last-child {
    border-bottom: none;
}

.comparison-card.winner .comparison-content li {
    color: var(--neutral-800);
}

.value-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--emerald-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--neutral-600);
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--emerald-800), var(--sage-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--emerald-700);
    padding: 1rem 2rem;
    border: 2px solid var(--emerald-600);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--emerald-600);
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.comparison-card {
    background: var(--neutral-50);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--neutral-200);
}

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-name {
    font-weight: 600;
    color: var(--neutral-800);
}

.score-badge {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--neutral-600);
}

/* Problem Section */
.problem {
    padding: 6rem 0;
    background: var(--neutral-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fca5a5, #f87171);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.problem-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Solution Section */
.solution {
    padding: 6rem 0;
    background: white;
}

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

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

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.step p {
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--emerald-50);
}

/* App Preview Section */
.app-preview {
    padding: 6rem 0;
    background: white;
}

/* Data Source Section */
.data-source {
    padding: 6rem 0;
    background: var(--sage-50);
}

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

.data-source-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.data-source-card:hover {
    transform: translateY(-5px);
}

.data-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sage-500), var(--sage-400));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.data-source-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.data-source-card p {
    color: var(--neutral-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

.app-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.app-feature {
    background: var(--neutral-50);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-header {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.feature-header p {
    color: var(--neutral-600);
    font-size: 0.95rem;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow: hidden;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

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

/* Example Comparison */
.comparison {
    padding: 6rem 0;
    background: white;
}

.comparison-demo {
    background: var(--neutral-50);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.demo-header p {
    color: var(--neutral-600);
}

.products-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card.winner {
    border: 2px solid var(--emerald-500);
    position: relative;
}

.product-card.winner::before {
    content: 'WINNER';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--emerald-500);
    color: white;
    padding: 0.25rem 3rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.product-brand {
    font-weight: 600;
    color: var(--neutral-800);
    font-size: 1.1rem;
}

.greenscore {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
}

.product-specs {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

.spec-label {
    color: var(--neutral-600);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 600;
    color: var(--neutral-800);
}

.energy-cost {
    background: var(--emerald-50);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.energy-cost-label {
    font-size: 0.9rem;
    color: var(--neutral-600);
    margin-bottom: 0.5rem;
}

.energy-cost-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--emerald-700);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    color: white;
    text-align: center;
}

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

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

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.hero-waitlist-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-form {
    max-width: 400px;
    margin: 0 auto;
}

.hero-form .email-input {
    background: white;
    border: 2px solid var(--emerald-200);
    transition: border-color 0.3s ease;
}

.hero-form .email-input:focus {
    border-color: var(--emerald-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.hero-form .submit-btn {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: white;
    border: none;
    font-weight: 600;
}

.hero-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.email-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.submit-btn {
    background: white;
    color: var(--emerald-700);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
        padding-bottom: 150px;
        max-width: 100vw;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
        line-height: 1.2;
    }

    .value-header h2 {
        font-size: 2rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .value-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .hero-visual {
        transform: none;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-header {
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
        padding: 0 1rem;
        line-height: 1.2;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .hero-waitlist-form {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .hero-form {
        max-width: 100%;
    }

    .products-comparison {
        grid-template-columns: 1fr;
    }

    .app-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-feature {
        padding: 1.5rem;
        max-width: 100%;
    }

    .chart-container {
        max-width: 100%;
        overflow: hidden;
    }

    #landingRadarChart,
    #landingEnergyChart {
        max-width: 100% !important;
        width: 100% !important;
    }

    .comparison-demo {
        padding: 1rem;
    }

    .data-source-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .data-source-card {
        padding: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
        padding: 0 1rem;
    }

    .footer-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        padding: 0 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        padding: 0 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-links a {
        padding: 0.75rem;
        border-bottom: 1px solid var(--neutral-700);
    }

    .footer-links a:last-child {
        border-bottom: none;
    }

    .hero-waitlist-form {
        padding: 1rem;
        margin: 1rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
