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

:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #ccfbf1;
    --indigo: #4f46e5;
    --emerald: #059669;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-700);
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.navbar-logo-wrap {
    width: 36px;
    height: 36px;
    position: relative;
    flex-shrink: 0;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.navbar-logo.is-hidden {
    display: none;
}

.navbar-logo-fallback {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

.navbar-logo-fallback.is-visible {
    display: inline-flex;
}

.navbar-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
}

.navbar-name span {
    color: var(--teal);
}

.navbar-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-nav {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-nav-outline {
    border-color: var(--teal);
    color: var(--teal);
    background: transparent;
}

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

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(110deg, rgba(15, 23, 42, 0.9) 0%, rgba(17, 94, 89, 0.76) 42%, rgba(15, 23, 42, 0.82) 100%),
        url('/images/home-klinik-bg.png') center center / cover no-repeat;
    padding: 80px 2rem 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    padding: 2.25rem 2rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid rgba(13, 148, 136, 0.4);
    color: #5eead4;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero-title span {
    background: linear-gradient(90deg, #2dd4bf, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

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

.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2dd4bf;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* LOGIN CARDS */
.login-panel {
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.login-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.4rem;
}

.login-panel-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.login-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
}

.login-card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.login-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-admin .login-card-icon {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

.card-company .login-card-icon {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.card-employee .login-card-icon {
    background: linear-gradient(135deg, #059669, #047857);
}

.login-card-info {
    flex: 1;
}

.login-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.login-card-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.login-card-arrow {
    color: #475569;
    font-size: 1rem;
    transition: transform 0.2s;
}

.login-card:hover .login-card-arrow {
    transform: translateX(4px);
    color: #94a3b8;
}

/* FEATURES SECTION */
.features {
    padding: 80px 2rem;
    background: white;
}

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

.section-tag {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.feature-card {
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
    transition: all 0.25s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--teal-light);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* FLOW SECTION */
.flow {
    padding: 80px 2rem;
    background: var(--gray-50);
}

.flow-container {
    max-width: 900px;
    margin: 0 auto;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
    margin-top: 3rem;
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--indigo));
}

.flow-step {
    text-align: center;
    position: relative;
}

.flow-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.flow-step-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.35rem;
}

.flow-step-desc {
    font-size: 0.78rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* FOOTER */
.footer {
    background: var(--gray-900);
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}

.footer strong {
    color: #2dd4bf;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-left {
        padding: 1.75rem 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-steps::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero {
        background-position: 58% center;
    }

    .hero-left {
        padding: 1.5rem 1.25rem;
        border-radius: 22px;
    }

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

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}
