:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-secondary: #64748B;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 700;
}

.navbar-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.navbar-brand-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.88) 100%), url('/assets/images/hero-bg.jpg') center center / cover no-repeat;
    color: white;
    min-height: 75vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 5.5rem 0 8rem 0;
}

.hero-logo-badge {
    width: auto;
    height: 96px;
    margin: 0 auto 1.25rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
}

.hero-logo-badge:hover {
    transform: scale(1.06);
}

.hero-logo-badge img {
    height: 96px;
    max-height: 96px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: #f8fafc;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-title-gradient {
    background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 0.35rem;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.92);
    max-width: 680px;
    margin: 0 auto 2.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-hero-primary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.5);
    color: white;
}

.btn-hero-secondary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: white;
}

.services-section {
    margin-top: -4rem;
    position: relative;
    z-index: 20;
}

.service-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.service-number {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    transition: color 0.3s ease;
}

.service-card:hover .service-number {
    color: #dbeafe;
}

.service-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

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

.stat-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Modern Soft Cards */
.bg-primary-soft { background-color: #eff6ff; border: 1px solid #dbeafe; }
.bg-warning-soft { background-color: #fffbeb; border: 1px solid #fef3c7; }
.bg-danger-soft { background-color: #fef2f2; border: 1px solid #fee2e2; }
.bg-rose-soft { background-color: #fff1f2; border: 1px solid #ffe4e6; }
.bg-success-soft { background-color: #f0fdf4; border: 1px solid #dcfce7; }
.bg-secondary-soft { background-color: #f8fafc; border: 1px solid #e2e8f0; }

.stat-card-modern {
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stat-icon-modern {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-badge-soft {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
}

.stat-card-modern .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 8px;
    margin-bottom: 4px;
}

.stat-card-modern .stat-label {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .stat-card-modern {
        padding: 1.1rem 0.9rem;
        border-radius: 14px;
    }
    .stat-icon-modern {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 9px;
    }
    .stat-card-modern .stat-value {
        font-size: 1.65rem;
    }
    .stat-card-modern .stat-label {
        font-size: 0.75rem;
    }
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #E2E8F0;
    z-index: -1;
}

.step-item:last-child::after {
    display: none;
}

.step-item.completed::after {
    background: var(--primary);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.step-item.active .step-circle {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.step-item.completed .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--primary);
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.step-content.active {
    display: block;
}

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

/* File Upload */
.file-upload-area {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: var(--surface);
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(37,99,235,0.02);
}

/* Badges */
.badge-registered { background-color: #DBEAFE; color: #1D4ED8; }
.badge-waiting { background-color: #FEF3C7; color: #B45309; }
.badge-revision { background-color: #FEE2E2; color: #B91C1C; }
.badge-verified { background-color: #DCFCE7; color: #15803D; }
.badge-completed { background-color: #F1F5F9; color: #334155; }

/* Status Timeline */
.status-timeline {
    position: relative;
    padding-left: 2rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    color: white;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* Flow Step Item */
.flow-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
    border-color: #bfdbfe;
}

.flow-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    font-weight: 700;
}

/* Footer */
.footer-main {
    background: #0f172a;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid #1e293b;
}

.footer-brand-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand-title { font-size: 0.95rem; }
    .navbar-brand-subtitle { font-size: 0.65rem; }
    .hero-title { font-size: 1.85rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-section { min-height: 55vh; padding: 3.5rem 0 5rem 0; }
    .hero-buttons { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .services-section { margin-top: -2.5rem; }
    .stepper { display: flex; flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
    .step-item { flex: 1; flex-direction: column; align-items: center; }
    .step-item::after {
        top: 16px;
        left: 50%;
        width: 100%;
        height: 2px;
    }
    .step-circle { width: 32px; height: 32px; font-size: 0.85rem; margin-bottom: 0; }
    .form-control, .form-select, .btn { min-height: 44px; }
}

/* Print */
@media print {
    .navbar, .footer-main, .btn, .hero-section { display: none !important; }
    body { background: white; }
    .print-only { display: block !important; }
}
