@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =====================================================
   AsistenciaPro SaaS - Design System
   ===================================================== */

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: rgba(79, 70, 229, 0.08);
    --primary-medium: rgba(79, 70, 229, 0.15);
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;
    --bg-dark-card: #1E293B;
    --text-main: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.1);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.1);
    --info: #3B82F6;
    --info-light: rgba(59, 130, 246, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* =====================================================
   Glass Morphism
   ===================================================== */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: inherit;
    gap: 0.5rem;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 14px -3px rgba(79, 70, 229, 0.5);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 14px -3px rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
    box-shadow: 0 4px 14px -3px rgba(239, 68, 68, 0.5);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-main);
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
}

.btn-ghost:hover {
    background: var(--bg-main);
    color: var(--text-main);
    box-shadow: none;
    transform: none;
}

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

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

/* =====================================================
   Cards
   ===================================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-flat {
    box-shadow: none;
    border: 1px solid var(--border);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.stat-card-primary::before { background: var(--primary); }
.stat-card-success::before { background: var(--success); }
.stat-card-warning::before { background: var(--warning); }
.stat-card-danger::before { background: var(--danger); }
.stat-card-info::before { background: var(--info); }

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.stat-card .stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
}

/* =====================================================
   Forms
   ===================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    font-size: 0.875rem;
    font-family: inherit;
    transition: var(--transition);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.form-check:hover {
    border-color: var(--primary-light);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* =====================================================
   Tables
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 0.875rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    background: var(--bg-main);
    white-space: nowrap;
}

td {
    padding: 0.875rem 0.75rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background-color: var(--primary-light);
}

/* =====================================================
   Badges
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.badge-neutral {
    background: var(--border-light);
    color: var(--text-muted);
}

/* =====================================================
   Alerts
   ===================================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success);
    color: #065F46;
}

.alert-danger {
    background: var(--danger-light);
    border-color: var(--danger);
    color: #991B1B;
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: #92400E;
}

.alert-info {
    background: var(--info-light);
    border-color: var(--info);
    color: #1E40AF;
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
}

.navbar-brand span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.navbar-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.navbar-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

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

.navbar-user .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.navbar-user .user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-main);
}

.navbar-user .user-role {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* =====================================================
   Page Headers
   ===================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

.page-header .actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =====================================================
   Stats Grid
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* =====================================================
   Breadcrumbs
   ===================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--text-light);
}

/* =====================================================
   Empty States
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    max-width: 400px;
    margin: 0 auto;
}

/* =====================================================
   Progress
   ===================================================== */
.progress {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Modal
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

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

/* =====================================================
   Spinner
   ===================================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   Section Divider
   ===================================================== */
.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* =====================================================
   Tabs
   ===================================================== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-main);
}

.tab.active {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

/* =====================================================
   Utilities
   ===================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.hidden { display: none; }
.w-full { width: 100%; }
.rounded-full { border-radius: 9999px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================
   Landing Page Specific
   ===================================================== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.25rem 0;
}

.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    padding: 0;
}

.landing-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.landing-nav .nav-links-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.landing-nav .nav-links-desktop a:not(.btn) {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.landing-nav .nav-links-desktop a:not(.btn):hover {
    color: var(--primary);
}

.landing-nav .nav-links-desktop a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    border-radius: 2px;
}

.landing-nav .nav-links-desktop a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 105;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-mobile-menu.open {
    display: flex;
    opacity: 1;
}

.nav-mobile-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.nav-mobile-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 25%, #ECFDF5 50%, #FDF4FF 75%, #F8FAFC 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    z-index: 0;
    animation: heroGradientShift 15s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-2%, 1%) scale(1.02); }
    100% { transform: translate(1%, -1%) scale(1); }
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.12);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.1);
    bottom: -5%;
    left: -5%;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(168, 85, 247, 0.1);
    top: 40%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-20px, 30px); }
    75% { transform: translate(20px, 20px); }
}

.hero-section > .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 1.75rem;
    color: var(--text-main);
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-section h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 40%, #EC4899 80%, #F59E0B 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.15);
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.1s forwards;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-section .hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 660px;
    margin: 0 auto 2.75rem;
    line-height: 1.75;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.2s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.35s forwards;
}

/* Pulsing CTA button */
.btn-cta-pulse {
    position: relative;
    overflow: visible;
}

.btn-cta-pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), #7C3AED, #EC4899);
    z-index: -1;
    opacity: 0;
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.04); }
}

/* Hero social proof bar */
.hero-social-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.5s forwards;
}

.hero-social-proof .proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-social-proof .proof-item i {
    color: var(--success);
}

/* Hero mockup / dashboard preview */
.hero-mockup {
    margin-top: 4rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: heroFadeUp 1s ease 0.6s forwards;
}

.hero-mockup .mockup-window {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 80px -12px rgba(79, 70, 229, 0.2), 0 0 0 1px rgba(226, 232, 240, 0.6);
    overflow: hidden;
    position: relative;
}

.hero-mockup .mockup-topbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
}

.hero-mockup .mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-mockup .mockup-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.hero-mockup .mockup-stat {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: left;
}

.hero-mockup .mockup-stat .stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-mockup .mockup-stat .stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-mockup .mockup-chart {
    grid-column: 1 / -1;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.hero-mockup .chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), #7C3AED);
    border-radius: 4px 4px 0 0;
    animation: chartGrow 1.5s ease forwards;
    transform-origin: bottom;
    opacity: 0.85;
}

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

/* Floating badge on mockup */
.hero-mockup .floating-badge {
    position: absolute;
    background: white;
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 40px -8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 5;
    animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge-left {
    left: -30px;
    top: 35%;
}

.floating-badge-right {
    right: -30px;
    bottom: 25%;
    animation-delay: -2s !important;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.hero-stats .stat-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Logos / trust bar */
.trust-bar {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.trust-bar p {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.5;
}

.trust-logos span {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

/* Animated counter */
.counter-value {
    display: inline-block;
}

/* Features Section */
.features-section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.feature-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7C3AED);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.12);
    transform: translateY(-6px);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Problem cards */
.problem-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border-left: 4px solid;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-card .problem-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.problem-card .problem-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.problem-card .problem-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 7rem 0;
    background: var(--bg-main);
}

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

.pricing-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-6px);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card .plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.pricing-card .plan-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: super;
}

.pricing-card .plan-price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-card .plan-features li {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card .plan-features li .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* CTA Section */
.cta-section {
    padding: 7rem 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.cta-section p {
    color: #94A3B8;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.4s;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* How it works steps */
.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 8px 25px -5px rgba(79, 70, 229, 0.4);
    transition: transform 0.4s;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(-5deg);
}

/* Industry pills */
.industry-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: default;
}

.industry-pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Benefit cards */
.benefit-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--benefit-color, var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.benefit-card:hover::after {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* FAQ accordion */
.faq-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s;
}

.faq-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-card .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-card .faq-question strong {
    font-size: 0.9375rem;
}

.faq-card .faq-icon {
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--text-muted);
}

.faq-card.open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-card .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-card.open .faq-answer {
    max-height: 300px;
    margin-top: 1rem;
}

/* Footer */
.landing-footer {
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748B;
    font-size: 0.875rem;
}

.landing-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.landing-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.landing-footer .footer-brand span {
    font-weight: 800;
    font-size: 1.125rem;
    color: white;
}

.landing-footer .footer-desc {
    color: #64748B;
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 300px;
}

.landing-footer h4 {
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.landing-footer ul {
    list-style: none;
    padding: 0;
}

.landing-footer ul li {
    margin-bottom: 0.5rem;
}

.landing-footer ul a {
    color: #64748B;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.landing-footer ul a:hover {
    color: white;
}

.landing-footer .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Guarantee badge */
.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    margin-top: 2rem;
}

.guarantee-badge .guarantee-icon {
    width: 40px;
    height: 40px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Number ticker animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Glow effect on hover for buttons */
.btn-glow:hover {
    box-shadow: 0 0 30px -5px rgba(79, 70, 229, 0.5);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-mockup .floating-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        gap: 0.5rem;
        height: auto;
        padding: 0.75rem 1rem;
    }
    
    .navbar-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .navbar-links a {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header .actions {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Landing responsive */
    .landing-nav .nav-links-desktop {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .hero-section {
        padding: 7rem 1rem 3rem;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-social-proof {
        gap: 1rem;
    }
    
    .hero-social-proof .proof-item {
        font-size: 0.8rem;
    }
    
    .hero-mockup .mockup-body {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }
    
    .card {
        padding: 1.25rem;
    }
    
    table { font-size: 0.8rem; }
    th, td { padding: 0.625rem 0.375rem; }
    
    .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .landing-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .landing-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-control {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 1.85rem;
    }
    
    .hero-section {
        padding: 6.5rem 1rem 2.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .hero-mockup .mockup-stat .stat-num {
        font-size: 1.125rem;
    }
    
    .btn-xl {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* =====================================================
   Print
   ===================================================== */
@media print {
    nav, .btn, .no-print, .landing-nav {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}

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

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* =====================================================
   Tenant Sidebar Layout (for Super Admin)
   ===================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-dark);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand h2 {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
}

.sidebar-brand small {
    font-size: 0.6875rem;
    color: #64748B;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: #94A3B8;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.125rem;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar-nav a.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav .nav-section {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 1.25rem 0.875rem 0.5rem;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

/* =====================================================
   Mobile Bottom Navigation (App UX)
   ===================================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 99;
    padding: 0.375rem 0.5rem;
    padding-bottom: max(0.375rem, env(safe-area-inset-bottom));
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-item .nav-icon {
    width: 22px;
    height: 22px;
}

/* Special scan button in bottom nav */
.bottom-nav-item.scan-btn {
    background: var(--primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-top: -1rem;
    box-shadow: 0 4px 15px -3px rgba(79, 70, 229, 0.5);
    padding: 0;
    justify-content: center;
}

.bottom-nav-item.scan-btn .nav-icon {
    width: 24px;
    height: 24px;
}

.bottom-nav-item.scan-btn span {
    display: none;
}

.bottom-nav-item.scan-btn.active::before {
    display: none;
}

/* Badge on nav item */
.bottom-nav-item .nav-badge {
    position: absolute;
    top: 0;
    right: 0.25rem;
    width: 16px;
    height: 16px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 0.5625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    /* Hide top navbar links on mobile when bottom nav is active */
    body.has-bottom-nav .navbar-links {
        display: none !important;
    }
    
    body.has-bottom-nav .navbar .container {
        height: 3.25rem;
    }
    
    /* Add padding at bottom for bottom nav */
    body.has-bottom-nav main.container {
        padding-bottom: 5rem;
    }
}

/* =====================================================
   Password Toggle
   ===================================================== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary);
}

/* =====================================================
   Password Strength Indicator
   ===================================================== */
.password-strength {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.password-strength .strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    transition: background 0.3s;
}

.password-strength[data-strength="1"] .strength-bar:nth-child(1) { background: var(--danger); }
.password-strength[data-strength="2"] .strength-bar:nth-child(-n+2) { background: var(--warning); }
.password-strength[data-strength="3"] .strength-bar:nth-child(-n+3) { background: #22C55E; }
.password-strength[data-strength="4"] .strength-bar { background: var(--success); }

.password-strength-text {
    font-size: 0.6875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* =====================================================
   Auth Pages (Login/Register) Enhanced
   ===================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 1rem 4rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 50%, #ECFDF5 100%);
}

/* Center vertically ONLY when content fits (login page) */
.auth-page.auth-page-center {
    align-items: center;
}

.auth-page::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-wrapper {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
    animation: authFadeIn 0.5s ease;
}

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

.auth-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px -5px rgba(79, 70, 229, 0.4);
}

.auth-section {
    background: var(--bg-main);
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-light);
}

.auth-section-title {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Auth page responsive */
@media (max-width: 560px) {
    .auth-page {
        padding: 1rem 0.75rem 3rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: var(--radius-xl);
    }
    
    .auth-section {
        padding: 1rem;
    }
    
    .auth-card h1 {
        font-size: 1.25rem;
    }
}

/* =====================================================
   Toast Notifications
   ===================================================== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-xl);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 420px;
    animation: toastIn 0.4s ease;
    font-size: 0.875rem;
}

.toast.toast-success { border-color: var(--success); }
.toast.toast-error { border-color: var(--danger); }
.toast.toast-warning { border-color: var(--warning); }

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* =====================================================
   Active Nav Link Highlight
   ===================================================== */
.navbar-links a.nav-active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* =====================================================
   Quick Action Cards (Employee Dashboard)
   ===================================================== */
.quick-action-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-action-card .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-light);
}

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

.quick-action-card:active .card {
    transform: translateY(-1px);
}

/* =====================================================
   Greeting with time-based icon
   ===================================================== */
.greeting-section {
    margin-bottom: 2rem;
}

.greeting-section h1 {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.greeting-section p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

/* =====================================================
   Improved Stat Cards for Dashboards
   ===================================================== */
.stat-card .stat-value {
    transition: transform 0.3s;
}

.stat-card:hover .stat-value {
    transform: scale(1.05);
}

/* =====================================================
   Smooth Page Transitions
   ===================================================== */
main.container {
    animation: pageIn 0.3s ease;
}

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
