:root {
    /* Color Palette */
    --color-bg: #FAFCFA;
    --color-surface: #FFFFFF;
    --color-primary: #529B37;
    --color-primary-hover: #407D2B;
    --color-secondary: #EAF5EA;
    --color-text: #111827;
    --color-text-light: #4B5563;
    --color-accent: #000000;
    --color-border: #E5E7EB;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --max-width: 1200px;
    --border-radius: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px rgba(82, 155, 55, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography Utils */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-light);
}

/* Header & Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 20px 0;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.brand-text .ai-text {
    color: var(--color-accent);
    text-transform: lowercase;
    font-weight: 700;
    font-size: 1.4rem;
    margin-left: 2px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(82, 155, 55, 0.39);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(82, 155, 55, 0.23);
}

.btn-secondary {
    background-color: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(82, 155, 55, 0.15);
    top: -200px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.1);
    top: 20%;
    left: -100px;
    animation: float 12s ease-in-out infinite reverse;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(82, 155, 55, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    max-width: 900px;
}

.highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--color-secondary);
    z-index: -1;
    border-radius: 6px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

/* Dashboard Mockup (Visual) */
.hero-visual {
    width: 100%;
    max-width: 1000px;
    perspective: 1000px;
}

.dashboard-mockup {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05), var(--shadow-glow);
    overflow: hidden;
    transform: rotateX(10deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: rotateX(0deg);
}

.mockup-header {
    background: #F3F4F6;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.mockup-body {
    padding: 40px;
    display: flex;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #FAFCFA 100%);
    height: 300px;
}

.skeleton-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 100%;
    border-bottom: 2px solid var(--color-border);
    border-left: 2px solid var(--color-border);
    padding: 20px;
}

.bar {
    flex: 1;
    background: var(--color-secondary);
    border-radius: 4px 4px 0 0;
    animation: grow 2s ease-out forwards;
    transform-origin: bottom;
}

.bar-1 { height: 40%; animation-delay: 0.1s; }
.bar-2 { height: 60%; animation-delay: 0.2s; }
.bar-3 { height: 30%; animation-delay: 0.3s; }
.bar-4 { height: 80%; background: var(--color-primary); animation-delay: 0.4s; }
.bar-5 { height: 50%; animation-delay: 0.5s; }
.bar-6 { height: 90%; background: var(--color-primary); animation-delay: 0.6s; }

.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.line {
    height: 20px;
    background: var(--color-border);
    border-radius: 10px;
}
.w-100 { width: 100%; }
.w-80 { width: 80%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.feature-card {
    background: var(--color-bg);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Footer */
footer {
    background: #111827;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-brand .brand-text {
    color: white;
    margin-bottom: 8px;
}

.footer-brand .brand-text span {
    color: var(--color-primary);
}

.footer-brand p {
    color: #9CA3AF;
}

.footer-links {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-visual {
    animation-delay: 0.8s;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 140px 24px 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* Overview Page Styles */
.page-overview { background-color: var(--color-surface); }
.overview-hero { padding: 140px 24px 60px; text-align: center; background: var(--color-secondary); border-bottom: 1px solid var(--color-border); }
.overview-hero h1 { font-size: 3rem; color: var(--color-primary); margin-bottom: 16px; }
.overview-hero p { font-size: 1.2rem; color: var(--color-text-light); }
.overview-section { padding: 80px 0; border-bottom: 1px solid var(--color-border); }
.bg-secondary { background-color: var(--color-secondary); }
.grid-layout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-layout-2.reverse { direction: rtl; }
.grid-layout-2.reverse > * { direction: ltr; }
.section-title { font-size: 2rem; color: var(--color-primary); margin-bottom: 24px; }
.text-block p { margin-bottom: 16px; font-size: 1.1rem; }
.styled-list { margin-left: 24px; margin-bottom: 16px; margin-top: 16px; }
.styled-list li { margin-bottom: 8px; font-size: 1.1rem; }
.image-placeholder { background: white; padding: 40px; border-radius: 16px; border: 1px dashed var(--color-primary); display: flex; align-items: center; justify-content: center; min-height: 300px; box-shadow: var(--shadow-sm); }
.icon-grid { display: grid; gap: 16px; }
.icon-box { background: #fee2e2; color: #991b1b; padding: 16px 24px; border-radius: 8px; font-weight: 500; font-size: 1.1rem; }
.tech-stack-visual { text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.diagram-flow { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.d-box { background: white; border: 2px solid var(--color-border); padding: 16px 24px; border-radius: 8px; font-weight: 600; box-shadow: var(--shadow-sm); }
.d-box.highlight { border-color: var(--color-primary); background: var(--color-secondary); color: var(--color-primary); }
.arrow { color: var(--color-primary); font-size: 1.5rem; }
.outcomes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.o-card { background: var(--color-secondary); border: 1px solid var(--color-primary); padding: 24px; border-radius: 12px; font-weight: 600; text-align: center; font-size: 1.1rem; color: var(--color-primary); display: flex; align-items: center; justify-content: center; min-height: 100px; transition: transform 0.2s; }
.o-card:hover { transform: scale(1.05); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }
.text-center { text-align: center; }

@media (max-width: 768px) { 
    .grid-layout-2 { grid-template-columns: 1fr; gap: 40px; } 
    .grid-layout-2.reverse { direction: ltr; } 
    .overview-hero h1 { font-size: 2.2rem; } 
    .diagram-flow { flex-direction: column; } 
    .arrow { transform: rotate(90deg); } 
    .outcomes-grid { grid-template-columns: 1fr; }
}

/* Table Styles */
.table-container { width: 100%; max-width: 900px; margin: 0 auto; overflow-x: auto; background: white; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 16px 24px; border-bottom: 1px solid var(--color-border); font-size: 1.1rem; }
.data-table th { background-color: #F9FAFB; font-weight: 700; color: var(--color-text); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.05em; }
.data-table tbody tr { transition: background-color 0.2s; }
.data-table tbody tr:hover { background-color: var(--color-secondary); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table.alt-theme th { background-color: var(--color-secondary); color: var(--color-primary); }

/* Floating Leaves Animation */
.leaf {
    position: absolute;
    top: -50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23529B37"><path d="M17,8C8,10 5,16 5,22C5,22 3,18 3,13C3,6 9,2 14,2C18,2 21,5 21,5C21,5 17,6 17,8Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.25;
    animation: floatLeaf linear infinite;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
}

@keyframes floatLeaf {
    0% {
        transform: translate3d(0, -50px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.35;
    }
    90% {
        opacity: 0.35;
    }
    100% {
        transform: translate3d(150px, 110vh, 0) rotate(720deg);
        opacity: 0;
    }
}
