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

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --background: #ffffff;
    --foreground: #0a0a0a;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --card: #ffffff;
    --sidebar-bg: #0a0a0a;
    --sidebar-text: #fafafa;
    --sidebar-muted: #a1a1aa;
    --sidebar-hover: #27272a;
    --sidebar-active: #22c55e;
    --radius: 0.75rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #000;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-text);
}

.nav-item.active {
    color: var(--sidebar-text);
    border-left: 3px solid var(--primary);
    background-color: rgba(34, 197, 94, 0.1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 4rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Feature Section */
.feature-section {
    padding: 3rem;
    background-color: var(--sidebar-bg);
}

.feature-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius);
}

.feature-content {
    flex: 1;
    color: var(--sidebar-text);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--sidebar-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--sidebar-muted);
    font-size: 0.9375rem;
}

.feature-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.link-arrow {
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

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

.link-arrow::after {
    content: "→";
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.transactions-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.transactions-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.transaction-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-name {
    font-size: 0.875rem;
    color: var(--foreground);
}

.transaction-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

.transaction-amount.large {
    font-size: 1.5rem;
}

.transaction-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.badge-green {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--primary);
}

/* Services Section */
.services-section {
    padding: 4rem 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #000;
    font-size: 1.25rem;
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    padding: 4rem 3rem;
    background-color: var(--muted);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    padding: 2rem 3rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer p {
    margin-bottom: 0.25rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-list {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .feature-section {
        padding: 2rem 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.5rem;
    }
    
    .services-section,
    .contact-section {
        padding: 3rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Icon placeholder styling */
.nav-icon::before,
.service-icon::before {
    font-size: 1rem;
}

/* Simple icon representations */
[data-icon="calculator"]::before { content: "📊"; }
[data-icon="megaphone"]::before { content: "📢"; }
[data-icon="users"]::before { content: "👥"; }
[data-icon="dollar"]::before { content: "💵"; }
[data-icon="receipt"]::before { content: "🧾"; }
[data-icon="banknote"]::before { content: "💰"; }
[data-icon="clock"]::before { content: "⏰"; }
[data-icon="user-plus"]::before { content: "👤"; }
[data-icon="kanban"]::before { content: "📋"; }
[data-icon="landmark"]::before { content: "🏛️"; }
[data-icon="package"]::before { content: "📦"; }
[data-icon="percent"]::before { content: "💹"; }
[data-icon="file-text"]::before { content: "📄"; }
[data-icon="help-circle"]::before { content: "❓"; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--muted);
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}
