:root {
    --epc-a: #008055;
    --epc-b: #2e9624;
    --epc-c: #95c023;
    --epc-d: #fbde08;
    --epc-e: #f09228;
    --epc-f: #e85d21;
    --epc-g: #d71920;
    --primary: #00a86b;
    --primary-dark: #00704a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    position: relative;
}

.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
}

.bg-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 168, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(251, 222, 8, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(149, 192, 35, 0.08) 0%, transparent 50%);
    animation: gradient-flow 10s ease infinite;
    background-size: 200% 200%;
}

.glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-heavy {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 168, 107, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epc-gradient {
    background: linear-gradient(to right, var(--epc-g), var(--epc-e), var(--epc-d), var(--epc-c), var(--epc-b), var(--epc-a));
}

.epc-gradient-text {
    background: linear-gradient(to right, var(--epc-g), var(--epc-e), var(--epc-d), var(--epc-c), var(--epc-b), var(--epc-a));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradient-flow 4s ease infinite;
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 168, 107, 0.2);
}

.calculator-glass {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 168, 107, 0.12);
    box-shadow:
        0 40px 120px -40px rgba(0, 168, 107, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input[type="range"].premium-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="range"].premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow:
        0 0 0 6px rgba(0, 168, 107, 0.15),
        0 10px 30px -15px rgba(0, 168, 107, 0.5);
    transition: all 0.2s ease;
    border: 3px solid white;
}

input[type="range"].premium-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 0 8px rgba(0, 168, 107, 0.2),
        0 12px 40px -20px rgba(0, 168, 107, 0.7);
}

.premium-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    background: #fff;
    transition: all .2s ease;
}

.premium-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.2);
}

.premium-checkbox:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.input-premium {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 100%;
}

.input-premium:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
    background: rgba(255, 255, 255, 1);
}

.input-premium::placeholder {
    color: #94a3b8;
}

.section-py {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .section-py {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
}

.price-animate {
    animation: price-pulse 0.28s ease-out;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(0, 168, 107, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 107, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.elegant-underline {
    position: relative;
    display: inline-block;
}

.elegant-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.elegant-underline:hover::after {
    transform: scaleX(1);
}

.form-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px;
    border-radius: 12px;
    animation: slide-up 0.5s ease-out;
}

.form-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 16px;
    border-radius: 12px;
    animation: slide-up 0.5s ease-out;
}

.form-loading {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 16px;
    border-radius: 12px;
    animation: slide-up 0.5s ease-out;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.min-w-0 {
    min-width: 0;
}

.animate-premium-scroll {
    animation: premium-scroll 30s linear infinite;
    display: flex;
    width: max-content;
    will-change: transform;
}

.animate-premium-scroll:hover {
    animation-play-state: paused;
}

.animate-dash-flow {
    animation: dash-flow 3s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

@keyframes slide-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes price-pulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes premium-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); }
}

@keyframes dash-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 10; }
}

@media (max-width: 1024px) {
    .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .relative.h-64.md\:h-80 {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .section-py {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .animate-premium-scroll {
        animation: premium-scroll 25s linear infinite;
    }

    .glass-premium {
        min-width: 200px;
    }

    .text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .text-sm {
        font-size: 0.75rem;
    }

    .glass.rounded-2xl.p-5 {
        padding: 1rem;
    }

    .flex.items-start.gap-4 {
        gap: 1rem;
    }

    .w-12.h-12 {
        width: 2.5rem;
        height: 2.5rem;
    }

    .grid.grid-cols-3.gap-3 {
        gap: 0.5rem;
    }

    .text-center.p-4 {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .glass-premium {
        min-width: 180px;
        padding: 0.75rem;
    }

    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .text-lg {
        font-size: 1rem;
    }

    .text-xs {
        font-size: 0.7rem;
    }

    .relative.h-64.md\:h-80 {
        height: 240px;
    }

    .btn-premium {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: transparent;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu > div {
    background: white;
    height: 100%;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu a,
.mobile-menu button {
    transition: all 0.3s ease;
}

.mobile-menu .rounded-2xl {
    transition: all 0.3s ease;
}

.mobile-menu .rounded-2xl:hover {
    transform: translateX(4px);
}

@supports (padding: max(0px)) {
    .mobile-menu .p-6 {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

@media screen and (max-width: 390px) {
    .mobile-menu .text-2xl {
        font-size: 1.5rem;
    }

    .mobile-menu .w-14.h-14 {
        width: 3rem;
        height: 3rem;
    }

    .mobile-menu .text-lg {
        font-size: 1rem;
    }
}