:root {
    /* Brand Colors */
    --primary: hsl(152, 60%, 35%); /* Emerald Green */
    --primary-light: hsl(152, 60%, 45%);
    --primary-dark: hsl(152, 60%, 25%);
    --secondary: hsl(215, 25%, 27%); /* Deep Slate */
    
    /* Neutral Colors */
    --bg-main: hsl(210, 20%, 98%);
    --bg-surface: hsl(0, 0%, 100%);
    --text-primary: hsl(215, 25%, 15%);
    --text-secondary: hsl(215, 15%, 45%);
    --border: hsl(215, 15%, 90%);
    
    /* Layout */
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Typography */
h1, h2, h3 {
    color: var(--secondary);
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 700; margin-bottom: 24px; }
h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }

p { color: var(--text-secondary); margin-bottom: 16px; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    text-decoration: none;
}

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

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

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

.w-100 { width: 100%; }
.mt-4 { margin-top: 24px; }

/* Navbar */
.navbar {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand-logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-highlight { color: var(--primary); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

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

.mobile-menu {
    display: none;
    background-color: var(--bg-surface);
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
}
.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(20,184,166,0.05) 0%, rgba(15,23,42,0.05) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.mockup-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}
.mockup-input, input.mockup-input-field {
    width: 100%;
    background-color: var(--bg-main);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.95rem;
}

/* Features Section */
.features { padding: 80px 0; }
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

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

.feature-card {
    background: var(--bg-surface);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Routes */
.routes {
    padding: 80px 0;
    background-color: var(--bg-surface);
}

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

.route-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
}
.route-tag {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-surface);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.3s ease-out;
}

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

.close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--text-secondary);
}

.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 { margin-bottom: 8px; font-size: 1.75rem;}

.role-tabs {
    display: flex;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
}
.role-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}
.role-tab.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.form-group label {
    display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px;
}
.phone-input-wrapper {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.phone-prefix {
    background: var(--bg-main);
    padding: 12px 16px;
    border-right: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-secondary);
}
.phone-input-wrapper input {
    flex: 1; border: none; padding: 12px 16px;
    font-family: inherit; font-size: 1rem; outline: none;
}
.phone-input-wrapper input:focus {
    background: rgba(20, 184, 166, 0.02);
}

.hidden { display: none; }
.alert-info {
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary-dark);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 16px;
}

.auth-footer { margin-top: 24px; text-align: center; font-size: 0.85rem; }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600;}

/* Footer */
footer { background: var(--secondary); color: white; padding: 64px 0 24px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px;}
.footer-brand h3 { color: white; font-size: 1.5rem; margin-bottom: 16px;}
.footer-brand p { color: rgba(255,255,255,0.7); }
.footer-links h4 { color: white; margin-bottom: 16px; font-size: 1.1rem;}
.footer-links a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 8px;}
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 0.85rem;}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-cta { justify-content: center; flex-direction: column; }
    h1 { font-size: 2.25rem; }
    .features-grid, .routes-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}
