* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E3A8A;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #3B82F6;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1E3A8A;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: #1E3A8A;
    border: 2px solid #1E3A8A;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #1E3A8A;
    color: white;
}

.btn-secondary {
    background: #F3F4F6;
    color: #666;
    border: 1px solid #E5E7EB;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1E3A8A;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #1A202C;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: #64748B;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-placeholder {
    background: white;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: 300px;
    justify-content: center;
}

.chart-placeholder i {
    font-size: 4rem;
    color: #3B82F6;
}

/* Features */
.features {
    padding: 120px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #F1F5F9;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
}

.feature-card i.icon {
    font-size: 3.5rem;
    color: #3B82F6;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 15px;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: #F8FAFC;
}

.how-it-works h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 80px;
}

.steps {
    display: flex;
    gap: 60px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 30px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 15px;
}

.step p {
    color: #64748B;
    font-size: 1.1rem;
}

/* CTA */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary.large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* Dashboard */
.dashboard {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.hidden {
    display: none;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1A202C;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.stat-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #F1F5F9;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.stat-icon {
    background: #3B82F6;
}

.bg-monthly { background: #10B981; }
.bg-leak { background: #EF4444; }
.bg-efficiency { background: #F59E0B; }

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748B;
    font-weight: 500;
}

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.chart-container {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #F1F5F9;
}

.chart-container h3 {
    margin-bottom: 24px;
    color: #1A202C;
    font-weight: 700;
}

#usageChart {
    width: 100%;
    height: 250px;
}

.leak-panel {
    height: 200px;
    position: relative;
    background: linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 12px;
    overflow: hidden;
}

.leak-flow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(90deg, #EF4444, #F87171);
    animation: leakFlow 2s ease-in-out infinite;
}

@keyframes leakFlow {
    0%, 100% { height: 60%; }
    50% { height: 70%; }
}

.control-panel, .input-section {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    border: 1px solid #F1F5F9;
}

.control-panel h3, .input-section h3 {
    margin-bottom: 24px;
    color: #1A202C;
}

.control-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-group label {
    font-weight: 600;
    color: #374151;
    min-width: 140px;
}

.control-group input, .control-group select {
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.control-group input:focus, .control-group select:focus {
    outline: none;
    border-color: #3B82F6;
}

.input-group {
    display: flex;
    gap: 16px;
    max-width: 400px;
}

.input-group input {
    flex: 1;
}

.insights {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #F1F5F9;
}

.insights h3 {
    margin-bottom: 24px;
}

#insightsList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insight-item {
    padding: 16px 20px;
    background: #F8FAFC;
    border-radius: 12px;
    border-left: 4px solid #10B981;
}

.insight-item.warning {
    border-left-color: #EF4444;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .stat-card, .step {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
