:root {
  --bg: #6e1528;
  --text: #fff5f7;
  --muted: #f0c9d2;
  --line: #8a3044;
  --blue: #ff8aa0;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #2c0812; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: #2c0812;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(255, 214, 130, 0.34), transparent 24%),
    radial-gradient(circle at 100% 8%, rgba(214, 64, 96, 0.62), transparent 32%),
    radial-gradient(circle at 72% 100%, rgba(255, 186, 70, 0.2), transparent 30%),
    linear-gradient(165deg, #a12d45 0%, #6e1528 48%, #2c0812 100%);
  background-repeat: no-repeat;
  background-size: 170% 170%, 150% 150%, 160% 160%, 100% 100%;
  animation: latar 12s ease-in-out infinite alternate;
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: #ffd0da; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 230px;
  display: flex;
  flex-direction: column;
  padding: 20px 12px 18px;
  background: linear-gradient(180deg, #4a0e1c, #3d0b16 55%, #320914);
  border-right: 1px solid #8a3044;
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.35);
}

.brand { display: block; padding: 2px 8px 18px; }

.brand img { display: block; width: 100%; height: auto; }

.side-nav {
  display: grid;
  gap: 8px;
  min-height: 0;
  align-content: start;
  overflow: auto;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: #f0c9d2;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.side-nav a:hover { background: #5c1426; color: #fff; }

.side-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, #c43b55, #8e1d34);
  box-shadow: 0 10px 26px rgba(142, 29, 52, 0.45);
}

.nav-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  color: #e0aa2e;
}

.nav-label { flex: 1; }

.nav-arrow { color: #e0aa2e; }

.side-nav a.active .nav-arrow { color: #ffe08a; }

.side-quote {
  flex: none;
  margin-top: auto;
  padding-top: 16px;
  color: #e7b8c3;
  text-align: center;
}

.side-quote img { width: 28px; height: 28px; }

.side-quote strong,
.side-quote span { display: block; }

.side-quote i {
  display: block;
  width: 38px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: #e0aa2e;
}

.sidebar-overlay { display: none; }

.main-wrap { width: calc(100% - 230px); margin-left: 230px; min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  background: rgba(90, 18, 36, 0.42);
  border-bottom: 1px solid rgba(246, 215, 122, 0.28);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: min(1100px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 28px;
}

.tb-left { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  display: none;
  padding: 10px 12px;
  color: #fff;
  background: #4a101c;
  border: 1px solid #8a3044;
  border-radius: 10px;
  font-size: 18px;
}

.top-logo { display: none; }

.top-logo img { display: block; width: 132px; height: auto; }

.topclock {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  background: #4a101c;
  border: 1px solid #8a3044;
  border-radius: 12px;
}

.topclock strong { display: block; color: #ffe8ee; font-size: 12px; }

.topclock span { display: block; color: #f0c9d2; font-size: 12px; font-variant-numeric: tabular-nums; }

.search {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  height: 50px;
  padding: 0 14px;
  background: #4a101c;
  border: 1px solid #8a3044;
  border-radius: 12px;
  color: #f0c9d2;
}

.search input {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
}

.search input:focus { outline: none; }

.search svg { stroke: #e0aa2e; }

.quick { display: flex; gap: 8px; }

.quick a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #e0aa2e;
  border-radius: 12px;
  color: #ffe08a;
  background: #4a101c;
  font-weight: 800;
  text-decoration: none;
}

.quick a:hover { background: #5c1426; color: #fff4c4; }

.content { max-width: 1100px; margin: 0 auto; padding: 24px 28px 20px; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #ffd0da;
  font-size: 13px;
  font-weight: 700;
}

.crumb a { color: #ffe08a; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  animation: timbul 0.6s ease both;
  min-height: 280px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 28px;
  background:
    radial-gradient(circle at 88% 40%, rgba(224, 170, 46, 0.22), transparent 32%),
    linear-gradient(90deg, #7a1a32 0%, #641428 48%, #4e1020 100%);
  border: 1px solid #a34b60;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-copy { position: relative; z-index: 1; max-width: 620px; min-width: 0; flex: 1 1 340px; }

.hero-visual,
.panel-visual { margin: 0; }

.hero-visual {
  position: relative;
  z-index: 1;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 460px;
}

.hero-visual img,
.panel-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #f6d77a;
  background: #3d0b16;
}

.hero-visual img { animation: apung 3.2s ease-in-out infinite alternate; }

.panel-visual { max-width: none; margin: 4px 0 14px; }

@media (min-width: 1100px) {
  .panel-row,
  .panel-pair {
    display: grid;
    gap: 16px;
    align-items: stretch;
  }
  .panel-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel-row .panel,
  .panel-pair .panel { height: 100%; margin-top: 0; }
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #ffd0da;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero p { max-width: 560px; margin: 0; color: #f6d5de; font-size: 16px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.primary-btn {
  color: #3a1208;
  min-height: 58px;
  padding: 16px 28px;
  font-size: 16px;
  background: linear-gradient(180deg, #fff8dc 0%, #ffe08a 42%, #e0aa2e 100%);
  border: 1px solid #fff4c4;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255, 214, 110, 0.22), 0 14px 30px rgba(224, 170, 46, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: nyala 2.2s ease-in-out infinite;
}

.primary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 32%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  animation: kilat 2.8s ease-in-out infinite;
  pointer-events: none;
}

.primary-btn:hover { background: linear-gradient(180deg, #fff8dc 0%, #ffe08a 46%, #e0aa2e 100%); }

.ghost-btn {
  color: #ffe08a;
  background: rgba(74, 16, 28, 0.55);
  border: 1px solid #e0aa2e;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #a34b60;
  border-radius: 999px;
  background: rgba(74, 16, 28, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0aa2e;
}

.dot.gold { background: #f5c451; }

.dot.green { background: #30d978; }

.chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chain a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  color: #ffe8ee;
  text-decoration: none;
  background: #4a101c;
  border: 1px solid #8a3044;
  border-radius: 999px;
  font-size: 13px;
}

.chain li:not(:last-child) a::after { content: " →"; color: #e0aa2e; }

.section-head { margin: 26px 0 14px; }

.section-head h2 { margin: 0; font-size: 19px; }

.section-head p { margin: 4px 0 0; color: #f0c9d2; font-size: 13px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 168px;
  padding: 16px 16px 46px;
  color: #fff5f7;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(140, 36, 58, 0.55), rgba(42, 10, 18, 0.88));
  border: 1px solid rgba(246, 215, 122, 0.32);
  border-radius: 12px;
}

.feature-card:hover {
  background: #6a1830;
  border-color: #c45b72;
  transform: translateY(-2px);
}

.feature-ico {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  color: #e0aa2e;
  background: radial-gradient(circle at 50% 40%, rgba(224, 170, 46, 0.28), transparent 70%);
  border-radius: 16px;
}

.feature-ico svg { stroke: currentColor; }

.feature-card strong { display: block; margin-bottom: 4px; text-align: center; overflow-wrap: anywhere; }

.feature-card p {
  margin: 0;
  color: #f0c9d2;
  font-size: 13px;
  text-align: center;
}

.round-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #e0aa2e;
  background: #5a1224;
  border: 1px solid #e0aa2e;
  border-radius: 50%;
}

.panel-row,
.panel-pair { margin-top: 16px; }

.panel {
  scroll-margin-top: 96px;
  margin-top: 16px;
  padding: 16px 18px 8px;
  background: linear-gradient(180deg, rgba(140, 36, 58, 0.5), rgba(42, 10, 18, 0.9));
  border: 1px solid rgba(246, 215, 122, 0.28);
  border-radius: 12px;
}

.panel h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }

.panel p { margin: 0 0 10px; color: #ffe8ee; }

.next { font-weight: 750; text-decoration: none; }

footer {
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 22px 28px 32px;
  color: #f0c9d2;
  border-top: 1px solid #8a3044;
}

.footer-brand img { width: 180px; height: auto; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0; }

.footer-links a { color: #f0c9d2; font-size: 13px; text-decoration: none; }

.fine { margin: 0; font-size: 13px; }

.miss {
  max-width: 520px;
  margin: 15vh auto;
  padding: 24px;
  background: #4c101e;
  border: 1px solid #8a3044;
  border-radius: 14px;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .topbar-inner { flex-wrap: nowrap; }
  .tb-left,
  .quick { flex: none; }
  .search { flex: 1 1 auto; min-width: 0; max-width: none; }
}

@media (max-width: 1050px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { flex-wrap: wrap; }
  .hero h1 { font-size: 28px; }
  .hero-visual { flex-basis: 100%; max-width: 640px; }
}

@media (max-width: 760px) {
  .sidebar { transform: translateX(-105%); transition: transform 0.25s ease; }
  .sidebar.open { transform: none; }
  .sidebar-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(40, 6, 14, 0.62);
  }
  .main-wrap { width: 100%; margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .tb-left { position: relative; width: 100%; min-height: 52px; justify-content: space-between; }
  .top-logo {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .top-logo img { width: 124px; }
  .topclock { height: auto; margin-left: auto; padding: 6px 8px; gap: 6px; }
  .topclock svg { width: 16px; height: 16px; }
  .topclock strong,
  .topclock span { font-size: 11px; line-height: 1.2; text-align: right; }
  .topbar-inner { width: 100%; min-height: 0; padding: 12px; justify-content: stretch; }
  .search { flex-basis: 100%; }
  .quick { flex-basis: 100%; }
  .quick a { flex: 1; }
  .content,
  footer { padding-left: 12px; padding-right: 12px; }
  .hero { min-height: 0; padding: 22px 16px; }
  .hero h1 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-wrap: wrap; }
  .pwa-popup { left: 50%; width: min(440px, calc(100% - 24px)); }
}

@keyframes kilat {
  0%, 22% { left: -45%; }
  68%, 100% { left: 140%; }
}

@keyframes timbul {
  from { transform: translateY(8px); }
  to { transform: none; }
}

@keyframes latar {
  from { background-position: 0% 0%, 100% 0%, 80% 100%, 0 0; }
  to { background-position: 28% 18%, 62% 24%, 42% 72%, 0 0; }
}

@keyframes nyala {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 214, 110, 0.18), 0 12px 24px rgba(224, 170, 46, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
  50% { box-shadow: 0 0 0 7px rgba(255, 214, 110, 0.34), 0 18px 40px rgba(255, 214, 110, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
}

.pwa-popup {
  position: fixed;
  z-index: 25;
  left: calc(230px + (100% - 230px) / 2);
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100% - 258px));
  padding: 14px;
  background: linear-gradient(180deg, rgba(122, 26, 50, 0.96), rgba(44, 8, 18, 0.96));
  border: 1px solid #f6d77a;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.pwa-popup[hidden] { display: none; }

.pwa-popup img { width: 48px; height: 48px; border-radius: 12px; flex: none; }

.pwa-popup strong { display: block; color: #ffe08a; font-size: 16px; }

.pwa-popup p { margin: 3px 0 0; color: #fff6e0; font-size: 14px; line-height: 1.35; }

.pwa-aksi { display: flex; flex-direction: column; gap: 6px; margin-left: auto; }

.pwa-aksi button {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#pwa-pasang {
  color: #3a1208;
  background: linear-gradient(180deg, #fff8dc, #e0aa2e);
  border: 1px solid #fff4c4;
}

#pwa-nanti {
  color: #ffe08a;
  background: transparent;
  border: 1px solid #e0aa2e;
}

@keyframes apung {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .hero,
  .hero-visual img,
  .primary-btn { animation: none; }
  .primary-btn::after { animation: none; content: none; }
}
