/* NII Crisis Center — modern design system (di atas Tailwind CDN). Mobile-first. */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }
img, iframe, video { max-width: 100%; }
::selection { background: #fecaca; color: #7f1d1d; }

/* HERO gelap + cahaya */
.hero-bg { background: #0c0a09; position: relative; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 9999px; filter: blur(90px); opacity: .45; pointer-events: none; }
.hero-grid-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
}
.hero-title { font-size: clamp(1.65rem, 7vw, 3.6rem); line-height: 1.12; letter-spacing: -0.02em; }
.hero-quote { font-size: clamp(1rem, 2.6vw, 1.2rem); }

/* Kaca (glass) */
.glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Pita merah-putih panjang bergerak di atas menu nav */
.ribbon-strip { position: sticky; top: 0; z-index: 45; overflow: hidden; height: 46px; background: #0c0a09; box-shadow: 0 10px 26px -14px rgba(0,0,0,.8); }
body:has(.ribbon-strip) #siteHeader { top: 46px; }
.ribbon-track { display: flex; width: 200%; height: 100%; animation: ribbonFlow 13s linear infinite; }
.ribbon-seg { flex: none; width: 70%; height: 90%; display: block; }
@keyframes ribbonFlow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* Kartu modern */
.card-lift { transition: transform .25s ease, box-shadow .25s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(127,29,29,.35); }
.card-ring { border: 1px solid rgba(15,23,42,.08); }

/* Grid video responsif */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Ticker berjalan */
.ticker { overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-left: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Tombol WA melayang */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: inline-flex; align-items: center; gap: .5rem; background: #16a34a; color: #fff; font-weight: 700; padding: .8rem 1.2rem; border-radius: 9999px; box-shadow: 0 12px 30px -8px rgba(22,163,74,.6); text-decoration: none; transition: transform .2s ease; }
.wa-float:hover { background: #15803d; transform: scale(1.05); }

/* Langkah alur */
.step-num { width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; font-weight: 800; flex: none; }

/* Eyebrow label section */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }

/* Bottom-sheet menu mobile: slide dari bawah */
.menu-backdrop { display: none; }
@media (max-width: 767px) {
  #menu.mobile-sheet { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; min-height: 55vh; max-height: 86vh; overflow-y: auto; display: flex; flex-direction: column; gap: .15rem; background: rgba(12,10,9,.98); border: 1px solid rgba(255,255,255,.12); border-radius: 1.4rem; padding: .6rem .6rem .9rem; z-index: 60; box-shadow: 0 -16px 50px rgba(0,0,0,.55); transform: translateY(calc(100% + 2rem)); transition: transform .38s cubic-bezier(.32,.72,.35,1); }
  #menu.mobile-sheet.menu-open { transform: translateY(0); }
  #menu.mobile-sheet > a:last-child { margin-top: auto; }
  #menu.mobile-sheet::before { content: ""; width: 2.5rem; height: .28rem; border-radius: 9999px; background: rgba(255,255,255,.25); margin: .15rem auto .45rem; }
  #menu.mobile-sheet a { padding: .7rem .9rem; border-radius: .8rem; }
  #menu.mobile-sheet a:active { background: rgba(255,255,255,.1); }
  .menu-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; }
  .wa-float { padding: .6rem .95rem; font-size: .85rem; right: .75rem; bottom: .75rem; }
}

/* Widget Live Chat */
#liveChatFab { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: inline-flex; align-items: center; gap: .5rem; background: linear-gradient(135deg,#dc2626,#991b1b); color: #fff; font-weight: 800; font-size: .9rem; padding: .8rem 1.2rem; border: 0; border-radius: 9999px; box-shadow: 0 12px 30px -8px rgba(220,38,38,.6); cursor: pointer; transition: transform .2s ease; font-family: inherit; }
#liveChatFab:hover { transform: scale(1.05); }
.tg-float { position: fixed; right: 1rem; bottom: 4.75rem; z-index: 50; display: inline-flex; align-items: center; gap: .5rem; background: linear-gradient(135deg,#229ED9,#1b7faf); color: #fff; font-weight: 800; font-size: .85rem; padding: .7rem 1.1rem; border: 0; border-radius: 9999px; box-shadow: 0 12px 30px -8px rgba(34,158,217,.6); cursor: pointer; text-decoration: none; transition: transform .2s ease; font-family: inherit; }
.tg-float:hover { transform: scale(1.05); }
#liveChatPanel { position: fixed; z-index: 70; right: 1rem; bottom: 4.8rem; width: min(380px, calc(100vw - 2rem)); height: min(560px, 72vh); display: flex; flex-direction: column; background: #fff; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 24px 60px -12px rgba(0,0,0,.45); }
#liveChatPanel[hidden] { display: none; }
.lc-head { background: #0c0a09; color: #fff; padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.lc-title { font-weight: 800; font-size: .9rem; }
.lc-status { font-size: .72rem; color: #a8a29e; display: flex; align-items: center; gap: .35rem; }
.lc-dot { width: .5rem; height: .5rem; border-radius: 9999px; background: #4ade80; display: inline-block; }
#liveChatClose { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 2rem; height: 2rem; border-radius: 9999px; cursor: pointer; font-size: .9rem; }
.lc-msgs { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; background: #f1f5f9; }
.lc-b { max-width: 88%; padding: .6rem .8rem; border-radius: 1rem; font-size: .85rem; line-height: 1.5; }
.lc-bot { background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: .25rem; align-self: flex-start; color: #1e293b; }
.lc-user { background: #dc2626; color: #fff; border-bottom-right-radius: .25rem; align-self: flex-end; }
.lc-b a { color: #b91c1c; font-weight: 700; }
.lc-typing { display: inline-flex; gap: .25rem; padding: .7rem .9rem; }
.lc-typing span { width: .45rem; height: .45rem; border-radius: 9999px; background: #94a3b8; animation: lcBlink 1s infinite; }
.lc-typing span:nth-child(2) { animation-delay: .2s; }
.lc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes lcBlink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.lc-quick { display: none; }
.lc-quick button, .lc-quick a { font-size: .76rem; font-weight: 700; border: 1.5px solid #dc2626; color: #b91c1c; border-radius: 9999px; padding: .4rem .8rem; background: #fff; cursor: pointer; text-decoration: none; font-family: inherit; }
.lc-form { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid #e2e8f0; background: #fff; }
.lc-form input { flex: 1; border: 1.5px solid #e2e8f0; border-radius: 9999px; padding: .55rem .9rem; font-size: .85rem; font-family: inherit; outline: none; min-width: 0; }
.lc-form input:focus { border-color: #dc2626; }
.lc-form button { background: #dc2626; color: #fff; border: 0; width: 2.4rem; height: 2.4rem; border-radius: 9999px; cursor: pointer; font-size: 1rem; flex: none; }
@media (max-width: 767px) {
  #liveChatFab { right: .75rem; bottom: .75rem; padding: .65rem 1rem; font-size: .82rem; }
  .tg-float { right: .75rem; bottom: 4.4rem; padding: .6rem .95rem; font-size: .8rem; }
  #liveChatPanel { left: .75rem; right: .75rem; bottom: .75rem; width: auto; height: 72vh; }
}

/* Form identitas + sesi live chat */
.lc-ident { flex: 1; overflow-y: auto; padding: 1rem; background: #f8fafc; display: flex; flex-direction: column; gap: .7rem; }
.lc-ident h3 { font-weight: 800; font-size: .95rem; color: #0c0a09; }
.lc-field label { font-size: .75rem; font-weight: 700; color: #475569; display: block; margin-bottom: .25rem; }
.lc-field input { width: 100%; border: 1.5px solid #e2e8f0; border-radius: .75rem; padding: .6rem .8rem; font-size: .85rem; font-family: inherit; outline: none; box-sizing: border-box; }
.lc-field input:focus { border-color: #dc2626; }
.lc-row { display: flex; gap: .5rem; }
.lc-row input { flex: 1; min-width: 0; }
#lcGps { flex: none; background: #fff; border: 1.5px solid #dc2626; color: #b91c1c; border-radius: .75rem; padding: 0 .8rem; font-weight: 700; cursor: pointer; font-size: .8rem; font-family: inherit; }
#lcGps:disabled { opacity: .6; }
#lcStart { background: linear-gradient(135deg,#dc2626,#991b1b); color: #fff; border: 0; border-radius: .9rem; padding: .75rem; font-weight: 800; cursor: pointer; font-size: .9rem; font-family: inherit; }
.lc-err { color: #b91c1c; font-size: .78rem; font-weight: 600; min-height: 1rem; margin: 0; }
#lcEnd { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fca5a5; font-size: .7rem; font-weight: 700; border-radius: 9999px; padding: .3rem .7rem; cursor: pointer; font-family: inherit; flex: none; }

/* Modal konfirmasi modern */
#lcEndModal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(12,10,9,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#lcEndModal[hidden] { display: none; }
.lc-modal-card { background: #fff; border-radius: 1.25rem; padding: 1.5rem; width: min(360px, 100%); text-align: center; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); animation: lcPop .28s cubic-bezier(.32,.72,.35,1.2); }
@keyframes lcPop { from { transform: scale(.9) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.lc-modal-icon { width: 3rem; height: 3rem; border-radius: 9999px; background: #fef2f2; color: #dc2626; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.lc-modal-card h3 { font-weight: 800; font-size: 1rem; color: #0c0a09; margin: 0 0 .4rem; }
.lc-modal-card p { font-size: .83rem; color: #64748b; margin: 0 0 1.1rem; line-height: 1.5; }
.lc-modal-actions { display: flex; gap: .6rem; }
.lc-modal-actions button { flex: 1; padding: .65rem; border-radius: .8rem; font-weight: 800; font-size: .85rem; cursor: pointer; font-family: inherit; }
#lcModalCancel { background: #f1f5f9; border: 0; color: #334155; }
#lcModalYes { background: linear-gradient(135deg,#dc2626,#991b1b); border: 0; color: #fff; box-shadow: 0 8px 20px -6px rgba(220,38,38,.5); }

/* Galeri buku */
.book-cover { aspect-ratio: 2 / 3; background: #f1f5f9; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.book-card:hover .book-cover img { transform: scale(1.05); }
.book-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(12,10,9,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.book-modal[hidden] { display: none; }
.book-modal-card { position: relative; background: #fff; border-radius: 1.25rem; max-width: 700px; width: 100%; max-height: 86vh; overflow: auto; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); animation: lcPop .28s cubic-bezier(.32,.72,.35,1.2); padding: 1.5rem; }
.book-modal-close { position: absolute; top: .85rem; right: .85rem; z-index: 1; width: 2.2rem; height: 2.2rem; border-radius: 9999px; border: 0; background: #f1f5f9; color: #475569; font-size: .9rem; font-weight: 700; cursor: pointer; }
.book-modal-close:hover { background: #fee2e2; color: #b91c1c; }
.book-modal-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.book-modal-grid > img { width: 100%; max-width: 230px; margin: 0 auto; border-radius: 1rem; box-shadow: 0 16px 36px -14px rgba(0,0,0,.45); aspect-ratio: 2 / 3; object-fit: cover; }
@media (min-width: 640px) { .book-modal-grid { grid-template-columns: 230px 1fr; align-items: start; } }

/* Section layanan — band gradien hangat + kartu berwarna */
.services-band { position: relative; background: linear-gradient(160deg,#fff1f2 0%,#fffbeb 52%,#fff7ed 100%); border-radius: 2rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 26px 60px -34px rgba(220,38,38,.4); padding-top: 2.25rem; }
@media (min-width: 768px) { .services-band { padding-top: 3rem; } }
.svc-card { --svc: linear-gradient(90deg,#f43f5e,#f97316); position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.9); transition: transform .3s ease, box-shadow .3s ease; }
.svc-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--svc); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -24px rgba(15,23,42,.4); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-ico { width: 2.9rem; height: 2.9rem; border-radius: .95rem; display: flex; align-items: center; justify-content: center; margin-bottom: .85rem; color: #fff; }
.svc-card.svc-1 { --svc: linear-gradient(90deg,#f43f5e,#e11d48); }
.svc-card.svc-2 { --svc: linear-gradient(90deg,#fb923c,#ea580c); }
.svc-card.svc-3 { --svc: linear-gradient(90deg,#34d399,#059669); }
.svc-card.svc-4 { --svc: linear-gradient(90deg,#38bdf8,#0284c7); }
.svc-card.svc-1 .svc-ico { background: linear-gradient(135deg,#fb7185,#e11d48); box-shadow: 0 10px 22px -10px rgba(225,29,72,.85); }
.svc-card.svc-2 .svc-ico { background: linear-gradient(135deg,#fdba74,#ea580c); box-shadow: 0 10px 22px -10px rgba(234,88,12,.85); }
.svc-card.svc-3 .svc-ico { background: linear-gradient(135deg,#6ee7b7,#059669); box-shadow: 0 10px 22px -10px rgba(5,150,105,.85); }
.svc-card.svc-4 .svc-ico { background: linear-gradient(135deg,#7dd3fc,#0284c7); box-shadow: 0 10px 22px -10px rgba(2,132,199,.85); }
