/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: rgb(17, 24, 39);
    --accent: rgb(59, 130, 246);
    --success: #4ade80;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: rgb(249, 250, 251);
    --gray-100: rgb(243, 244, 246);
    --gray-200: rgb(229, 231, 235);
    --gray-300: rgb(209, 213, 219);
    --gray-500: rgb(107, 114, 128);
    --gray-600: rgb(75, 85, 99);
    --white: #ffffff;
    --text-muted: var(--gray-500);
    
    /* Spacing */
    --section-padding: 5rem 0;
    --card-padding: 2rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 2.25rem;
    --text-3xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Base */
body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: rgb(37, 99, 235);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    background: var(--gray-50);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.375rem var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-title h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-lg);
}

.section-title p {
    font-size: var(--text-xl);
    color: var(--text-muted);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

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

/* Cards */
.card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--text-muted);
}

/* Hero */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: var(--text-3xl);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.hero .highlight {
    color: var(--accent);
}

.hero p {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    max-width: 32rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--gray-50);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.footer-text {
    color: var(--gray-300);
    font-size: var(--text-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(156, 163, 175);
    font-size: var(--text-sm);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-up,
.fade-in-left,
.fade-in-right,
.scale-in {
    opacity: 0;
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in-up {
    transform: translateY(20px);
}

.fade-in-left {
    transform: translateX(-20px);
}

.fade-in-right {
    transform: translateX(20px);
}

.scale-in {
    transform: scale(0.9);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Dashboard Mockup */
.dashboard-wrapper {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.1));
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--gray-200);
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.dashboard-header {
    background: var(--gray-100);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    border-bottom: 1px solid var(--gray-200);
}

.traffic-light {
    width: var(--spacing-sm);
    height: var(--spacing-sm);
    border-radius: 50%;
}

.dashboard-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.stat-box {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: var(--text-lg);
    font-weight: 700;
}

.stat-change {
    font-size: var(--text-xs);
    color: var(--success);
}

.chart-container {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 6rem;
    gap: var(--spacing-xs);
}

.bar {
    flex: 1;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 0.25rem 0.25rem 0 0;
    transition: var(--transition);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--text-xs);
    padding: var(--spacing-xs);
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.activity-dot {
    width: var(--spacing-xs);
    height: var(--spacing-xs);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Utility Classes */
/* Layout */
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--spacing-xs); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--gray-200); }

/* Colors */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.bg-white { background: var(--white); }

/* Typography */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

/* Spacing */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: var(--spacing-xs); }
.mb-3 { margin-bottom: var(--spacing-sm); }
.mb-4 { margin-bottom: var(--spacing-md); }
.mb-6 { margin-bottom: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-md); }
.p-8 { padding: var(--spacing-xl); }

/* Additional utilities */
.list-none { list-style: none; padding: 0; }
.max-w-4xl { max-width: 56rem; }
.rounded-xl { border-radius: var(--radius-xl); }
.opacity-80 { opacity: 0.8; }
.glass { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); }
.case-accent { height: 0.5rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin: -2rem -2rem 1.5rem; }
.cta-card { border-radius: var(--radius-xl); padding: 3rem; text-align: center; }
.anim-float-0 { animation: float 2s 0s infinite alternate; }
.anim-float-1 { animation: float 2s 0.5s infinite alternate; }
.anim-float-2 { animation: float 2s 1s infinite alternate; }
.h-40 { height: 40%; }
.h-45 { height: 45%; }
.h-55 { height: 55%; }
.h-65 { height: 65%; }
.h-70 { height: 70%; }
.h-80 { height: 80%; }
.h-90 { height: 90%; }

/* Responsive */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2rem; }
}
