/* ===== Variables ===== */
:root {
    --primary-green: #0b5a3d;
    --primary-green-dark: #074732;
    --primary-green-light: #0d6e4a;
    
    --accent-green: #3a981f;
    --accent-blue: #2a718d;
    
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    
    --white: #ffffff;
    --black: #000000;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-base);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-green);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.header.scrolled .header-bg {
    opacity: 1;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 12px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    background: var(--primary-green);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    height: 64px;
    width: auto;
    max-width: 240px;
    transition: all var(--transition-base);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    background: var(--primary-green-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-login svg {
    transition: transform var(--transition-fast);
}

.btn-login:hover svg {
    transform: translateX(2px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--neutral-50) 0%, var(--white) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(58, 152, 31, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(42, 113, 141, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 24px;
}

.hero-badge svg {
    color: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--neutral-900);
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--neutral-600);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--white);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-400);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--neutral-300);
}

/* ===== Dashboard Preview ===== */
.hero-visual {
    position: relative;
}

.dashboard-preview {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    animation: float 6s ease-in-out infinite;
}

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

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neutral-300);
}

.preview-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-700);
}

.preview-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
}

.preview-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon.green {
    background: linear-gradient(135deg, #0b5a3d 0%, #3a981f 100%);
    color: var(--white);
}

.card-icon.blue {
    background: linear-gradient(135deg, #2a718d 0%, #3b82f6 100%);
    color: var(--white);
}

.card-icon.orange {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    color: var(--white);
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-600);
    margin-bottom: 4px;
}

.card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-900);
}

/* ===== Solutions Section ===== */
.solutions {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--neutral-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--neutral-600);
    line-height: 1.6;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.solution-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.solution-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.solution-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.solution-card.featured {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-color: var(--primary-green-dark);
    color: var(--white);
}

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.featured .solution-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.solution-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--neutral-900);
}

.featured .solution-title {
    color: var(--white);
}

.solution-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--neutral-600);
    margin-bottom: 20px;
}

.featured .solution-description {
    color: rgba(255, 255, 255, 0.9);
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 12px;
    background: var(--neutral-100);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-700);
}

.featured .feature-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--neutral-50);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-slow);
}

.feature-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.feature-text {
    font-size: 15px;
    color: var(--neutral-600);
    line-height: 1.6;
}

.features-visual {
    position: relative;
}

.stats-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--neutral-200);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.stats-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--neutral-200);
}

.stats-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-900);
}

.stats-period {
    font-size: 13px;
    color: var(--neutral-500);
    font-weight: 500;
}

.stats-metrics {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-label {
    font-size: 14px;
    color: var(--neutral-600);
    font-weight: 500;
}

.metric-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--neutral-900);
    line-height: 1;
}

.metric-trend {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.metric-trend.positive {
    color: #16a34a;
}

.metric-trend.negative {
    color: #dc2626;
}

/* ===== Footer ===== */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--neutral-400);
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-link {
    font-size: 14px;
    color: var(--neutral-400);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--neutral-800);
}

.footer-copyright {
    font-size: 14px;
    color: var(--neutral-500);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--neutral-500);
}

.footer-dot {
    color: var(--neutral-700);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .logo-section {
        padding: 6px 12px;
    }
    
    .logo {
        height: 56px;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        min-height: 72px;
        padding: 8px 0;
    }
    
    .logo-section {
        padding: 6px 12px;
    }
    
    .logo {
        height: 52px;
        max-width: 180px;
    }
    
    .nav {
        gap: 12px;
    }
    
    .nav-link {
        display: none;
    }
    
    .btn-login {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-login svg {
        width: 14px;
        height: 14px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        min-height: 68px;
    }
    
    .logo-section {
        padding: 5px 10px;
    }
    
    .logo {
        height: 48px;
        max-width: 160px;
    }
    
    .btn-login {
        padding: 7px 14px;
        font-size: 12px;
        gap: 6px;
    }
    
    .btn-login svg {
        width: 12px;
        height: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .solution-card {
        padding: 24px;
    }
    
    .stats-card {
        padding: 24px;
    }
}

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

/* ===== Print ===== */
@media print {
    .header,
    .footer {
        display: none;
    }
}