/* Kaisar328 MercyWhite.com — Varian G + Liquid Design (refined) */

:root {
  --bg: #1a0000;
  --bg-mid: #2d0505;
  --bg-panel: #3a0808;
  --red: #d32f2f;
  --red-deep: #8b0000;
  --gold: #ffd700;
  --gold-warm: #ffb300;
  --orange: #ff9800;
  --text: #fff8f0;
  --muted: #e8c4a0;
  --liquid: linear-gradient(135deg, var(--red) 0%, var(--orange) 40%, var(--gold) 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 215, 0, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 215, 0, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 90%, rgba(211, 47, 47, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 100%);
  background-size: 28px 28px, auto, auto, auto;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--gold-warm); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: currentColor;
}

.ico--sm { width: 1em; height: 1em; }
.ico--btn { width: 0.95em; height: 0.95em; }

/* Editorial panel — radius normal, bukan blob */
.imlek-panel {
  background: rgba(58, 8, 8, 0.9);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-left: 4px solid var(--gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.imlek-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--liquid);
  opacity: 0.85;
}

/* Header — minimal top bar (variant G) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(26, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.3rem 0;
}

.brand-mark {
  display: flex;
  flex-shrink: 0;
}

.brand-mark img {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.3));
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
}

.menu-toggle .ico-close { display: none; }
.menu-toggle.is-open .ico-menu { display: none; }
.menu-toggle.is-open .ico-close { display: block; }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 54px 0 auto 0;
  z-index: 350;
  background: rgba(26, 0, 0, 0.97);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: 1rem;
  backdrop-filter: blur(12px);
}

.mobile-drawer.is-open { display: block; }

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  background: rgba(58, 8, 8, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.12);
}

@media (min-width: 860px) {
  .header-nav { display: flex; }
  .header-cta { margin-left: 0; }
  .menu-toggle,
  .mobile-drawer { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.12s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-liquid {
  color: var(--bg);
  background: var(--liquid);
  box-shadow: 0 4px 18px rgba(255, 152, 0, 0.32);
}

.btn-liquid:hover { color: var(--bg); }

.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.45);
}

.btn-outline:hover { background: rgba(255, 215, 0, 0.1); }

.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.78rem; }

/* Hero — full-bleed banner + overlay (variant G) */
.bleed-hero {
  position: relative;
}

.bleed-banner {
  position: relative;
  margin: 0;
  width: 100%;
  max-height: min(72vh, 680px);
  overflow: hidden;
}

.bleed-banner img {
  width: 100%;
  height: min(72vh, 680px);
  object-fit: cover;
  object-position: center 30%;
}

.bleed-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 0, 0, 0.35) 0%, transparent 35%),
    linear-gradient(0deg, rgba(26, 0, 0, 0.92) 0%, rgba(26, 0, 0, 0.55) 45%, transparent 75%);
  pointer-events: none;
}

.bleed-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 2rem;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.75rem;
  background: rgba(211, 47, 47, 0.45);
  border-radius: 50px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  backdrop-filter: blur(6px);
}

.bleed-caption h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 28rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.bleed-caption h1 a {
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 32rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0;
}

.hero-chips-wrap {
  padding: 1.25rem 0 2rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  color: var(--text);
  background: rgba(58, 8, 8, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.chip .ico { color: var(--gold); }

/* Diagonal section divider */
.section {
  padding: 2.75rem 0;
  position: relative;
}

.section--slant {
  margin-top: -1px;
  padding-top: 3.25rem;
  clip-path: polygon(0 2.5%, 100% 0, 100% 100%, 0 100%);
  background: rgba(45, 5, 5, 0.55);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-warm);
  margin-bottom: 0.6rem;
}

.section h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
}

.prose-panel { padding: 1.5rem 1.4rem; }
.prose-panel p { margin: 0 0 0.9rem; color: var(--muted); }

.article-panel { padding: 1.5rem 1.4rem; }

.article-panel .meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.article-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.35rem 0 0.55rem;
  font-size: 1rem;
  color: var(--gold);
}

.article-panel h3 .ico { color: var(--orange); }

.article-panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.article-note {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  font-size: 0.92rem;
}

/* Masonry benefits — variant G */
.masonry-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.benefit-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.benefit-icon .ico {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--gold);
}

.benefit-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: var(--text);
}

.benefit-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .masonry-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .benefit-card:nth-child(2) { margin-top: 1.75rem; }
  .benefit-card:nth-child(3) { margin-top: -0.75rem; }

  .benefit-card--span {
    grid-column: 1 / -1;
    max-width: 72%;
    justify-self: end;
    margin-top: 0.5rem;
  }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-item { overflow: hidden; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-q-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-q-text .ico { color: var(--gold-warm); }

.faq-toggle .ico {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle .ico { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 1.2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid rgba(255, 215, 0, 0.12);
  background: rgba(26, 0, 0, 0.65);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.footer-brand img {
  height: 30px;
  width: auto;
  max-width: 170px;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 26rem;
}

.footer-nav h4 {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li { margin-bottom: 0.28rem; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--gold); }

.footer-end {
  margin-top: 1.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(211, 47, 47, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}

.footer-end a { color: var(--muted); }
.footer-end a:hover { color: var(--gold); }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
