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

:root {
    /* Selaras dengan style.css & halaman login */
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e3a54;
    --secondary: #2c3e50;
    --accent: #3498db;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(26, 82, 118, 0.08);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-family: 'Merriweather', serif;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    line-height: 1.3;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand {
    color: var(--primary) !important;
}

.navbar-brand span {
    max-width: 260px;
}

.navbar-brand img {
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 12px;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #fff !important;
}

.navbar.scrolled .nav-link {
    color: var(--secondary) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary) !important;
}

.navbar.scrolled .nav-link::after {
    background: var(--primary-light);
}

.btn-login {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.btn-login:hover {
    background: var(--white);
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.navbar.scrolled .btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

.navbar.scrolled .btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 8px 25px rgba(26, 82, 118, 0.4);
    color: white !important;
}

/* ============================================
   HERO — Gradient biru sama dengan Login Page
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
    animation: floatOrb 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 128, 185, 0.1) 0%, transparent 70%);
    animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 30px) scale(1.02);
    }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(4px);
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
    animation: fadeInUp 0.6s ease;
}

.hero-title span.highlight {
    color: #7ec8e3;
    position: relative;
    display: inline-block;
}

.hero-title span.highlight::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 14px;
    background: rgba(126, 200, 227, 0.15);
    z-index: -1;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--bg-light);
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.stats-bar .container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 40px;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-item .stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.stat-item:hover .stat-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.stat-item .stat-icon-wrap.blue {
    background: rgba(26, 82, 118, 0.1);
    color: var(--primary);
}

.stat-item .stat-icon-wrap.green {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.stat-item .stat-icon-wrap.orange {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.stat-item .stat-icon-wrap.red {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 4px;
    font-weight: 900;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features {
    padding: 120px 0 100px;
    background: var(--bg-light);
}

.feature-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 82, 118, 0.12);
    border-color: transparent;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.08), rgba(41, 128, 185, 0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 28px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(26, 82, 118, 0.3);
}

.feature-card h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   WORKFLOW — 6 STEPS
   ============================================ */
.workflow {
    padding: 100px 0 120px;
    background: var(--white);
    position: relative;
}

.step-card {
    text-align: center;
    padding: 15px 10px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    margin: 0 auto 18px;
    box-shadow: 0 4px 20px rgba(26, 82, 118, 0.15);
    border: 3px solid var(--primary-light);
    transition: var(--transition);
}

.step-card:hover .step-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(26, 82, 118, 0.3);
    transform: scale(1.1);
}

.step-card h5 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 30px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary-light));
}

footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px !important;
}

.footer-copy {
    opacity: 0.6;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .navbar {
        background: rgba(26, 82, 118, 0.95);
        backdrop-filter: blur(12px);
        padding: 12px 0;
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
    }

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

    .stats-bar .container {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 130px;
        min-height: auto;
        padding-bottom: 100px;
    }

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

    .hero-subtitle {
        margin: 0 auto 30px;
        font-size: 1rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .stats-bar {
        margin-top: -40px;
    }
}

/* ============================================
   NAVBAR TOGGLER (Mobile)
   ============================================ */
.navbar-toggler {
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler {
    border-color: rgba(26, 82, 118, 0.3);
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 82, 118, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}