/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
    /* Colors from logo */
    --primary-green: #1a5f4f;
    --secondary-green: #3d9e8b;
    --accent-yellow: #f4b942;
    --white: #ffffff;
    --off-white: #f8faf9;
    --light-green: #e8f5f2;
    --dark-text: #1a2e2a;
    --gray-text: #5a6f6b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a5f4f 0%, #3d9e8b 100%);
    --gradient-accent: linear-gradient(135deg, #f4b942 0%, #ffcd5a 100%);
    --gradient-text: linear-gradient(135deg, #1a5f4f 0%, #3d9e8b 50%, #f4b942 100%);

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(26, 95, 79, 0.08);
    --shadow-md: 0 8px 30px rgba(26, 95, 79, 0.12);
    --shadow-lg: 0 20px 60px rgba(26, 95, 79, 0.15);
    --shadow-xl: 0 30px 80px rgba(26, 95, 79, 0.2);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 95, 79, 0.1);
    transition: var(--transition-smooth);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button-small {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.cta-button-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-green);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary-green);
    bottom: -100px;
    left: -100px;
    animation-delay: 7s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-yellow);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-green);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 30px;
    animation: slideDown 0.8s ease-out;
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s infinite;
    background-size: 200% auto;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.hero-subtitle {
    font-size: clamp(20px, 5vw, 28px);
    color: var(--dark-text);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
    font-weight: 600;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-subtitle-secondary {
    font-size: clamp(16px, 4vw, 20px);
    color: var(--gray-text);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 400;
    animation: slideUp 0.8s ease-out 0.5s both;
}

.hero-cta {
    margin-bottom: 50px;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.cta-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-smooth);
}

.cta-button-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.cta-button-primary:hover::before {
    left: 100%;
}

.cta-button-primary:active {
    transform: translateY(-2px);
}

.cta-icon {
    font-size: 24px;
}

.cta-arrow {
    font-size: 20px;
    transition: var(--transition-smooth);
}

.cta-button-primary:hover .cta-arrow {
    transform: translateX(-4px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-text);
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: var(--section-padding);
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.section-subtitle {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 20px;
}

.icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--light-green);
    border-radius: var(--radius-md);
    font-size: 50px;
    transition: var(--transition-bounce);
}

.feature-card:hover .icon-bg {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
}

.feature-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.feature-description {
    font-size: 17px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--light-green);
    color: var(--primary-green);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.feature-card:hover .tag {
    background: var(--primary-green);
    color: var(--white);
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
    padding: var(--section-padding);
    background: var(--white);
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 36px;
    font-weight: 900;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.step:hover .step-number {
    transform: scale(1.15) rotate(360deg);
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.step-description {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.3;
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }

    .step-connector {
        width: 3px;
        height: 40px;
    }
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: var(--section-padding);
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
}

.cta-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-yellow);
    top: -200px;
    right: -200px;
}

.cta-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--white);
    bottom: -150px;
    left: -150px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}

.cta-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-button-large {
    font-size: 20px;
    padding: 22px 44px;
    background: var(--white);
    color: var(--primary-green);
}

.cta-button-large:hover {
    background: var(--accent-yellow);
}

.cta-note {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--dark-text);
    padding: 50px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
}

.footer-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Mobile Optimizations
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-stats {
        gap: 25px;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-button-primary {
        padding: 16px 28px;
        font-size: 16px;
    }

    .feature-card {
        padding: 35px 25px;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    .scroll-indicator,
    .cta-section {
        display: none;
    }
}