/* ==========================================================================
   BUKU TAMU DIGITAL — Custom Styles
   Sistem Buku Tamu Digital & Survey Kepuasan Publik Kabupaten Badung
   Warna diselaraskan dengan tema resmi Pemkab Badung (Quick Count Pikel)
   ========================================================================== */

:root {
    --bt-green-dark: #003a00;
    --bt-green: #005000;
    --bt-green-ink: #06280f;
    --bt-green-deep: #03180a;
    --bt-orange: #ff6600;
    --bt-orange-dark: #cc5200;
    --bt-orange-soft: #fff1e6;
    --bt-white: #ffffff;
    --bt-light: #f4f7f4;
    --bt-text: #12181f;
    --bt-text-muted: #6d747d;
    --bt-border: #e4e8e4;

    /* Bootstrap 5 Overrides */
    --bs-primary: #ff6600;
    --bs-primary-rgb: 255, 102, 0;
    --bs-link-color: #cc5200;
    --bs-link-hover-color: #ff6600;
    --bs-focus-ring-color: rgba(255, 102, 0, 0.25);

    /* Backward compatibility aliases */
    --bt-blue-dark: var(--bt-green-dark);
    --bt-blue: var(--bt-green);
    --bt-blue-ink: var(--bt-green-ink);
    --bt-blue-deep: var(--bt-green-deep);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--bt-text);
    background-color: var(--bt-white);
    overflow-x: hidden;
}

section[id],
header[id] {
    scroll-margin-top: 88px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

#mainNavbar {
    padding: 18px 0;
    background: transparent;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

#mainNavbar .navbar-brand {
    color: var(--bt-white);
    text-decoration: none;
}

/* Logo gambar (landscape) di navbar & footer */
.brand-img {
    height: 46px;
    width: auto;
    display: block;
}

.footer-brand .brand-img {
    height: 52px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bt-orange), var(--bt-orange-dark));
    color: var(--bt-white);
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.35);
}

.brand-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.4px;
}

.brand-name strong {
    color: var(--bt-orange);
}

.brand-name small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

#mainNavbar .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    border-radius: 999px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

#mainNavbar .nav-link:hover {
    color: var(--bt-white);
    background-color: rgba(255, 255, 255, 0.12);
}

#mainNavbar .nav-link.active {
    color: var(--bt-orange);
    background-color: rgba(255, 102, 0, 0.18);
}

#mainNavbar.scrolled {
    padding: 9px 0;
    background-color: var(--bt-white);
    box-shadow: 0 8px 24px rgba(0, 58, 0, 0.12);
}

#mainNavbar.scrolled .navbar-brand {
    color: var(--bt-green-dark);
}

#mainNavbar.scrolled .brand-name strong {
    color: var(--bt-green-dark);
}

#mainNavbar.scrolled .brand-name small {
    color: var(--bt-text-muted);
}

#mainNavbar.scrolled .nav-link {
    color: var(--bt-text);
}

#mainNavbar.scrolled .nav-link:hover {
    color: var(--bt-green-dark);
    background-color: rgba(0, 80, 0, 0.07);
}

#mainNavbar.scrolled .nav-link.active {
    color: var(--bt-orange-dark);
    background-color: rgba(255, 102, 0, 0.12);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

#mainNavbar.scrolled .navbar-toggler {
    border-color: rgba(0, 58, 0, 0.4);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.35);
}

.btn-login {
    background: transparent;
    color: var(--bt-white);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 20px;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
        transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: var(--bt-white);
    border-color: var(--bt-white);
    transform: translateY(-2px);
}

#mainNavbar.scrolled .btn-login {
    color: var(--bt-green);
    border-color: rgba(0, 80, 0, 0.45);
}

#mainNavbar.scrolled .btn-login:hover {
    background: linear-gradient(135deg, var(--bt-green-dark), var(--bt-green));
    border-color: transparent;
    color: var(--bt-white);
    box-shadow: 0 8px 20px rgba(0, 80, 0, 0.3);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 160px 0 150px;
    /* Ruang ekstra di bawah agar konten tidak tertutup gelombang */
    background:
        linear-gradient(100deg,
            rgba(3, 24, 10, 0.95) 0%,
            rgba(0, 58, 0, 0.9) 45%,
            rgba(0, 80, 0, 0.78) 100%),
        url("../img/puspem-badung.jpg") left center / cover no-repeat;
    color: var(--bt-white);
    overflow: hidden;
}

/* Titik-titik kecil yang naik perlahan */
.hero-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    animation: dotRise 10s linear infinite;
}

.hero-dot-1 {
    left: 7%;
    bottom: 14%;
}

.hero-dot-2 {
    left: 16%;
    bottom: 8%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.hero-dot-3 {
    left: 28%;
    bottom: 20%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.hero-dot-4 {
    right: 12%;
    bottom: 10%;
    animation-delay: 1.5s;
    animation-duration: 13s;
}

.hero-dot-5 {
    right: 24%;
    bottom: 22%;
    animation-delay: 3s;
    animation-duration: 11s;
}

@keyframes dotRise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    12% {
        opacity: 0.75;
    }

    85% {
        opacity: 0.35;
    }

    100% {
        transform: translateY(-85vh);
        opacity: 0;
    }
}

/* Animasi masuk bertahap untuk teks hero */
.hero-anim-1,
.hero-anim-2,
.hero-anim-3,
.hero-anim-4,
.hero-anim-5 {
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-anim-2 {
    animation-delay: 0.15s;
}

.hero-anim-3 {
    animation-delay: 0.3s;
}

.hero-anim-4 {
    animation-delay: 0.45s;
}

.hero-anim-5 {
    animation-delay: 0.6s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

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

/* ==========================================================================
   WAVE DIVIDER BERGERAK DI BAWAH HERO
   ========================================================================== */

.wave-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}

.waves {
    position: relative;
    width: 100%;
    height: 110px;
    min-height: 80px;
    max-height: 140px;
    margin-bottom: -7px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .parallax>use {
        animation: none;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    color: var(--bt-white);
}

.hero-badge i {
    color: var(--bt-orange);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.text-orange,
.text-green {
    color: var(--bt-orange) !important;
}

.hero-subtitle {
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
}

.btn-cta-orange,
.btn-cta-green {
    background: linear-gradient(135deg, var(--bt-orange), var(--bt-orange-dark));
    color: var(--bt-white);
    border: none;
    box-shadow: 0 10px 26px rgba(255, 102, 0, 0.4);
}

.btn-cta-orange:hover,
.btn-cta-green:hover {
    color: var(--bt-white);
    box-shadow: 0 14px 32px rgba(255, 102, 0, 0.52);
}

.btn-cta-outline {
    background: transparent;
    color: var(--bt-white);
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-cta-outline:hover {
    color: var(--bt-white);
    border-color: var(--bt-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 22px;
}

.meta-item {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item i {
    color: var(--bt-orange);
}

.hero-visual {
    position: relative;
    max-width: 440px;
    margin-left: auto;
    padding: 30px 10px 10px;
    will-change: transform;
}

.qr-card {
    position: relative;
    z-index: 1;
    background: var(--bt-white);
    border-radius: 24px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 32px 64px rgba(3, 24, 10, 0.35);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(-1deg);
    }
}

/* Garis scan oranye yang menyapu QR Code */
.qr-scan-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.95), transparent);
    box-shadow: 0 0 14px rgba(255, 102, 0, 0.8);
    animation: scanLine 3.2s ease-in-out infinite;
}

@keyframes scanLine {

    0%,
    100% {
        top: 10px;
        opacity: 0.4;
    }

    50% {
        top: calc(100% - 13px);
        opacity: 1;
    }
}

.qr-card-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    color: var(--bt-green-dark);
    margin-bottom: 18px;
}

.qr-card-head i {
    font-size: 1.25rem;
    color: var(--bt-orange-dark);
}

.qr-pattern {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto;
    border-radius: 16px;
    background-color: var(--bt-white);
    background-image: repeating-conic-gradient(var(--bt-green-dark) 0% 25%, #ffffff 0% 50%);
    background-size: 38px 38px;
}

.qr-eye {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--bt-white);
    border: 5px solid var(--bt-green-dark);
}

.qr-eye::after {
    content: "";
    position: absolute;
    inset: 6px;
    background: var(--bt-green-dark);
}

.qr-eye-tl {
    top: 12px;
    left: 12px;
}

.qr-eye-tr {
    top: 12px;
    right: 12px;
}

.qr-eye-bl {
    bottom: 12px;
    left: 12px;
}

.qr-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--bt-green-dark);
    border-radius: 2px;
}

.qr-dot-1 {
    right: 46px;
    bottom: 50px;
}

.qr-dot-2 {
    right: 76px;
    bottom: 92px;
}

.qr-dot-3 {
    right: 118px;
    bottom: 36px;
}

.qr-card-caption {
    margin: 18px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bt-text-muted);
}

.hero-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bt-white);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 18px 40px rgba(3, 24, 10, 0.22);
}

.hero-chip i {
    font-size: 1.4rem;
    color: var(--bt-orange-dark);
}

.hero-chip strong,
.hero-chip span {
    display: block;
}

.hero-chip strong {
    font-size: 0.88rem;
    color: var(--bt-green-dark);
}

.hero-chip span {
    font-size: 0.76rem;
    color: var(--bt-text-muted);
}

.hero-chip-1 {
    top: 4px;
    left: -6px;
    animation: chipSway 6s ease-in-out infinite;
}

.hero-chip-2 {
    bottom: 0;
    right: -6px;
    animation: chipSway 6s ease-in-out infinite 1.5s;
}

@keyframes chipSway {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(6px, -8px) rotate(1.5deg);
    }

    50% {
        transform: translate(-4px, -14px) rotate(-1deg);
    }

    75% {
        transform: translate(4px, -6px) rotate(0.5deg);
    }
}

/* ==========================================================================
   SECTION UMUM
   ========================================================================== */

.section {
    padding: 100px 0;
}

.section-light {
    background-color: var(--bt-light);
}

.section-white {
    background-color: var(--bt-white);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 102, 0, 0.12);
    color: var(--bt-orange-dark);
    border: 1px solid rgba(255, 102, 0, 0.28);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.section-tag-light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--bt-orange);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    color: var(--bt-green-dark);
    letter-spacing: -0.4px;
}

.section-title-light {
    color: var(--bt-white);
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--bt-text-muted);
    margin-bottom: 0;
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   KEUNGGULAN / FITUR
   ========================================================================== */

.feature-card {
    position: relative;
    background: var(--bt-white);
    border: 1px solid var(--bt-border);
    border-radius: 18px;
    padding: 30px 26px 28px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bt-green-dark), var(--bt-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 102, 0, 0.45);
    box-shadow: 0 22px 44px rgba(0, 58, 0, 0.14);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-number {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 80, 0, 0.1);
    line-height: 1;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(0, 80, 0, 0.08);
    border: 1px solid rgba(0, 80, 0, 0.18);
    color: var(--bt-green);
    font-size: 1.55rem;
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--bt-orange), var(--bt-orange-dark));
    border-color: transparent;
    color: var(--bt-white);
    transform: scale(1.06);
    box-shadow: 0 10px 22px rgba(255, 102, 0, 0.35);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bt-green-dark);
    margin-bottom: 12px;
}

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

/* ==========================================================================
   CARA PAKAI / TIMELINE
   ========================================================================== */

.steps-row {
    position: relative;
}

.step-item {
    text-align: center;
    padding: 6px 8px 0;
}

.step-circle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bt-white);
    border: 3px solid rgba(255, 102, 0, 0.5);
    box-shadow: 0 12px 28px rgba(255, 102, 0, 0.16);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bt-green-dark), var(--bt-green));
    color: var(--bt-white);
    font-size: 1.5rem;
}

.step-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--bt-orange-dark);
    background: rgba(255, 102, 0, 0.12);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 10px;
}

.step-item h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--bt-green-dark);
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--bt-text-muted);
    margin-bottom: 0;
}

.otp-demo-link {
    color: var(--bt-orange-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.otp-demo-link:hover {
    color: var(--bt-green-dark);
}

@media (min-width: 992px) {
    .steps-row::before {
        content: "";
        position: absolute;
        top: 68px; /* 24px g-4 top gutter + 6px padding + 38px half circle */
        left: 12.5%;
        right: 12.5%;
        height: 4px;
        transform: translateY(-50%);
        border-radius: 4px;
        background: linear-gradient(90deg, rgba(255, 102, 0, 0.65), rgba(0, 80, 0, 0.55));
        opacity: 0.6;
        z-index: 0;
    }
}

@media (max-width: 991.98px) {
    .steps-row::before {
        content: "";
        position: absolute;
        top: 61px; /* 24px g-4 top gutter + 37px half circle */
        bottom: 61px;
        left: 49px; /* 12px g-4 left gutter + 37px half circle */
        width: 4px;
        transform: translateX(-50%);
        border-radius: 4px;
        background: linear-gradient(180deg, rgba(255, 102, 0, 0.6), rgba(0, 80, 0, 0.5));
        opacity: 0.6;
        z-index: 0;
    }

    .step-item {
        position: relative;
        text-align: left;
        padding: 0 8px 0 100px;
        min-height: 84px;
    }

    .step-circle {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        width: 74px;
        height: 74px;
    }
}

/* ==========================================================================
   STATISTIK / REKAP
   ========================================================================== */

.stat-band {
    position: relative;
    padding: 96px 0;
    background:
        radial-gradient(700px 320px at 90% 8%, rgba(255, 102, 0, 0.22), transparent 60%),
        radial-gradient(600px 320px at 6% 95%, rgba(26, 122, 26, 0.3), transparent 60%),
        linear-gradient(120deg, var(--bt-green-deep), var(--bt-green));
    color: var(--bt-white);
}

.stat-block {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 32px rgba(3, 20, 8, 0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-block:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 102, 0, 0.45);
    box-shadow: 0 16px 40px rgba(3, 20, 8, 0.4);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.22), rgba(255, 102, 0, 0.06));
    border: 1px solid rgba(255, 102, 0, 0.35);
    color: var(--bt-orange);
    font-size: 1.6rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(255, 102, 0, 0.15);
}

.stat-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-static {
    display: inline-block;
    background: linear-gradient(135deg, #fed7aa, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 102, 0, 0.2));
}

.stat-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bt-orange);
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.6);
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 102, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
    }
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   KONTAK
   ========================================================================== */

.contact-card {
    background: var(--bt-white);
    border: 1px solid var(--bt-border);
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 102, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 58, 0, 0.12);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bt-orange), var(--bt-orange-dark));
    color: var(--bt-white);
    font-size: 1.5rem;
    margin-bottom: 18px;
    box-shadow: 0 10px 22px rgba(255, 102, 0, 0.32);
}

.contact-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--bt-green-dark);
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--bt-text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.accordion-item {
    border: 1px solid var(--bt-border);
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--bt-white);
    box-shadow: 0 8px 22px rgba(0, 58, 0, 0.05);
}

.accordion-button {
    font-weight: 700;
    color: var(--bt-green-dark);
    padding: 18px 22px;
    background: var(--bt-white);
}

.accordion-button:not(.collapsed) {
    color: var(--bt-orange-dark);
    background: rgba(255, 102, 0, 0.08);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.15);
    border-color: var(--bt-orange);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0.2) sepia(1) saturate(5000%) hue-rotate(20deg);
}

.accordion-body {
    color: var(--bt-text-muted);
    line-height: 1.8;
    padding: 20px 22px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(255, 102, 0, 0.1), transparent 60%),
        linear-gradient(180deg, var(--bt-green-ink), var(--bt-green-deep));
    color: rgba(255, 255, 255, 0.76);
    border-top: 4px solid var(--bt-orange);
    padding: 72px 0 0;
    font-size: 0.95rem;
}

.footer-brand {
    text-decoration: none;
    color: var(--bt-white);
}

.footer-brand:hover {
    color: var(--bt-white);
}

.footer .brand-name small {
    color: rgba(255, 255, 255, 0.55);
}

.footer-about {
    line-height: 1.8;
    max-width: 380px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--bt-white);
    font-size: 1.05rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social-link:hover {
    background: var(--bt-orange);
    color: var(--bt-white);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--bt-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-links a:hover {
    color: var(--bt-orange);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.65;
}

.footer-contact i {
    color: var(--bt-orange);
    font-size: 1.05rem;
    margin-top: 3px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.14);
    margin: 46px 0 0;
    opacity: 1;
}

.footer-bottom {
    padding: 22px 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
}

/* ==========================================================================
   MODAL OTP
   ========================================================================== */

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(3, 24, 10, 0.35);
    overflow: hidden;
}

.modal-header {
    background:
        radial-gradient(340px 140px at 90% 0%, rgba(255, 102, 0, 0.25), transparent 60%),
        linear-gradient(120deg, var(--bt-green-dark), var(--bt-green));
    color: var(--bt-white);
    border-bottom: none;
    padding: 22px 26px;
}

.modal-header-text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 1.35rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-header p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 26px;
}

.modal-desc {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--bt-text-muted);
    margin-bottom: 22px;
}

.modal-body .form-label {
    font-size: 0.9rem;
    color: var(--bt-text);
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 10px;
    border-color: var(--bt-border);
    padding: 11px 14px;
    font-size: 0.95rem;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--bt-orange);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.15);
}

.modal-body .input-group-text {
    border-radius: 10px 0 0 10px;
    border-color: var(--bt-border);
    background: var(--bt-light);
    color: var(--bt-green-dark);
    font-weight: 700;
}

.otp-box {
    text-align: center;
    font-size: 1.6rem !important;
    font-weight: 800;
    letter-spacing: 14px;
    font-family: "SF Mono", Consolas, "Courier New", monospace;
    color: var(--bt-green-dark) !important;
    padding: 12px 8px !important;
}

.otp-box::placeholder {
    letter-spacing: 14px;
    font-weight: 400;
    color: #c3cbd9;
}

/* Primary Button (Simpan, Kirim OTP, dsb.) */
.btn-primary,
.modal-footer .btn-primary,
.modal-body .btn-primary,
#btnSimpanQr,
#btnSendOtp {
    background: linear-gradient(135deg, var(--bt-orange), var(--bt-orange-dark)) !important;
    border: none !important;
    color: var(--bt-white) !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 22px;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.modal-footer .btn-primary:hover,
.modal-body .btn-primary:hover,
#btnSimpanQr:hover,
#btnSendOtp:hover {
    background: linear-gradient(135deg, var(--bt-orange), var(--bt-orange-dark)) !important;
    color: var(--bt-white) !important;
    box-shadow: 0 8px 22px rgba(255, 102, 0, 0.45);
    transform: translateY(-2px);
}

/* Outline Primary Button (Input Manual, dsb.) */
.btn-outline-primary,
.modal-footer .btn-outline-primary,
.modal-body .btn-outline-primary,
#btnScannerManual {
    background: transparent !important;
    border: 1.5px solid var(--bt-orange) !important;
    color: var(--bt-orange-dark) !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.modal-footer .btn-outline-primary:hover,
.modal-body .btn-outline-primary:hover,
#btnScannerManual:hover {
    background: linear-gradient(135deg, var(--bt-orange), var(--bt-orange-dark)) !important;
    border-color: transparent !important;
    color: var(--bt-white) !important;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.35);
    transform: translateY(-2px);
}

/* Modal Success Button (Verifikasi OTP) */
.btn-success,
.modal-body .btn-success,
#btnVerifyOtp {
    background: linear-gradient(135deg, var(--bt-green-dark), var(--bt-green)) !important;
    border: none !important;
    color: var(--bt-white) !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 4px 14px rgba(0, 58, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-success:hover,
.btn-success:focus-visible,
.modal-body .btn-success:hover,
#btnVerifyOtp:hover {
    background: linear-gradient(135deg, var(--bt-green-dark), var(--bt-green)) !important;
    color: var(--bt-white) !important;
    box-shadow: 0 8px 20px rgba(0, 58, 0, 0.4);
    transform: translateY(-2px);
}

/* Modal Link Button (Ganti Nomor) */
.modal-body .btn-link,
#btnBackPhone {
    color: var(--bt-orange-dark) !important;
    font-weight: 600;
    text-decoration: none;
}

.modal-body .btn-link:hover,
#btnBackPhone:hover {
    color: var(--bt-green-dark) !important;
    text-decoration: underline;
}

/* Modal Footer & Light Button (Batal) */
.modal-footer {
    border-top: 1px solid var(--bt-border);
    padding: 14px 26px;
}

.modal-footer .btn-light {
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    background-color: var(--bt-light);
    border: 1px solid var(--bt-border);
    color: var(--bt-text-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-footer .btn-light:hover {
    background-color: #e4e8e4;
    color: var(--bt-text);
}

/* ==========================================================================
   PILIHAN AWAL & SCANNER KAMERA QR CODE
   ========================================================================== */

.qr-choice {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-choice-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    text-align: left;
    background: var(--bt-white);
    border: 1.5px solid var(--bt-border);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qr-choice-btn:hover,
.qr-choice-btn:focus-visible {
    border-color: var(--bt-orange);
    box-shadow: 0 14px 30px rgba(255, 102, 0, 0.18);
    transform: translateY(-2px);
    outline: none;
}

.qr-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 102, 0, 0.12);
    color: var(--bt-orange-dark);
    font-size: 1.35rem;
}

.qr-choice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qr-choice-text strong {
    font-size: 0.98rem;
    color: var(--bt-green-dark);
}

.qr-choice-text small {
    font-size: 0.82rem;
    color: var(--bt-text-muted);
}

.qr-choice-arrow {
    margin-left: auto;
    color: var(--bt-text-muted);
}

.qr-reader-wrap {
    position: relative;
    min-height: 240px;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1220;
    border: 3px solid var(--bt-green-dark);
}

.qr-reader {
    width: 100%;
}

.qr-reader video {
    display: block;
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.qr-reader-frame {
    position: absolute;
    inset: 14%;
    border: 2px dashed rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(3, 24, 10, 0.45);
    pointer-events: none;
}

.qr-reader-line {
    position: absolute;
    left: 14%;
    right: 14%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.95), transparent);
    box-shadow: 0 0 14px rgba(255, 102, 0, 0.8);
    animation: scanLine 2.6s ease-in-out infinite;
    pointer-events: none;
}

/* ==========================================================================
   TOMBOL KEMBALI KE ATAS
   ========================================================================== */

.btn-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1030;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bt-orange), var(--bt-orange-dark));
    color: var(--bt-white);
    font-size: 1.2rem;
    box-shadow: 0 12px 28px rgba(255, 102, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    color: var(--bt-white);
    background: linear-gradient(135deg, var(--bt-green-dark), var(--bt-green));
}

/* ==========================================================================
   ANIMASI REVEAL
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {

    /* Navbar selalu putih pada tampilan responsive */
    #mainNavbar {
        background-color: var(--bt-white);
        box-shadow: 0 8px 24px rgba(0, 58, 0, 0.1);
        padding: 12px 0;
    }

    #mainNavbar .navbar-brand {
        color: var(--bt-green-dark);
    }

    #mainNavbar .brand-name strong {
        color: var(--bt-green-dark);
    }

    #mainNavbar .brand-name small {
        color: var(--bt-text-muted);
    }

    #mainNavbar .nav-link {
        color: var(--bt-text);
    }

    #mainNavbar .nav-link:hover {
        color: var(--bt-green-dark);
        background-color: rgba(0, 80, 0, 0.07);
    }

    #mainNavbar .nav-link.active {
        color: var(--bt-orange-dark);
        background-color: rgba(255, 102, 0, 0.12);
    }

    #mainNavbar .navbar-toggler {
        border-color: rgba(0, 58, 0, 0.4);
    }

    #mainNavbar .btn-login {
        color: var(--bt-green);
        border-color: rgba(0, 80, 0, 0.45);
    }

    #mainNavbar .btn-login:hover {
        background: linear-gradient(135deg, var(--bt-green-dark), var(--bt-green));
        border-color: transparent;
        color: var(--bt-white);
        box-shadow: 0 8px 20px rgba(0, 80, 0, 0.3);
    }

    .section {
        padding: 76px 0;
    }

    .stat-band {
        padding: 76px 0;
    }

    .hero-section {
        padding: 140px 0 130px;
    }

    .hero-title {
        font-size: clamp(1.85rem, 5vw, 2.6rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        margin: 24px auto 0;
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 64px 0;
    }

    .stat-band {
        padding: 64px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .hero-chip {
        display: none;
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .qr-pattern {
        width: 160px;
        height: 160px;
        background-size: 32px 32px;
    }

    .btn-back-to-top {
        right: 16px;
        bottom: 16px;
    }
}
