:root {
  --brand-gold: #c5a46d;
  --brand-gold-dark: #9a7d4f;
  --brand-black: #111111;
  --brand-white: #ffffff;
  --page-bg: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --border: #e8e8e8;
  --accent-login: #c5a46d;
  --accent-register: #1f2937;
  --accent-cta-1: #b89452;
  --accent-cta-2: #2c3e50;
  --accent-cta-3: #8b6914;
  --container: 960px;
  --header-h: 72px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0d6efd; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--brand-gold);
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

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

/* Header — proporsi mengikuti referensi: logo kiri, nav tengah, login kanan */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brand-white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-lockup:hover { text-decoration: none; }
.brand-lockup img { height: 40px; width: auto; }

.site-nav {
  display: none;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-nav a:hover { color: var(--brand-gold-dark); text-decoration: none; }
.site-nav a.is-active { color: #0d6efd; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-login-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-login-header:hover { filter: brightness(1.05); text-decoration: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #222;
  margin: 0 10px;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Page top block */
.page-top { padding: 28px 0 8px; }
.page-top h1 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
}

.btn-skew-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 24px;
}
.btn-skew {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 52px;
  padding: 0 28px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  transform: skewX(-12deg);
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.btn-skew span { transform: skewX(12deg); }
.btn-skew--masuk { background: linear-gradient(135deg, #d4af37, #a67c00); color: #111; }
.btn-skew--daftar { background: linear-gradient(135deg, #374151, #111827); }
.btn-skew:hover { filter: brightness(1.06); text-decoration: none; }

.hero-figure {
  max-width: 520px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.cta-stack {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 28px;
}
.cta-stack a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.cta-stack a:nth-child(1) { background: linear-gradient(90deg, #c9a227, #8b6914); color: #111; }
.cta-stack a:nth-child(2) { background: linear-gradient(90deg, #334155, #0f172a); }
.cta-stack a:nth-child(3) { background: linear-gradient(90deg, #b8860b, #6b4e09); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 32px;
}
.preview-grid img {
  border-radius: 8px;
  border: 1px solid var(--border);
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top center;
  background: #111;
}

.content-prose {
  max-width: var(--container);
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.content-prose p { margin: 0 0 1rem; }
.content-prose h2, .content-prose h3 {
  color: var(--text-main);
  margin: 2rem 0 0.75rem;
}

.section-block {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.section-block h2 {
  text-align: center;
  margin: 0 0 12px;
  font-size: 1.65rem;
}
.section-block > .container > p.lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 24px;
}

.gallery-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.carousel-slide {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.carousel-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--brand-gold); }
.carousel-arrow {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 16px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th { background: #faf7f1; color: var(--text-main); }
tr:last-child td { border-bottom: none; }

.steps-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.step-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1rem; }
.step-card p, .step-card li { color: var(--text-muted); font-size: 0.92rem; }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fafafa;
  border: none;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-answer {
  display: none;
  padding: 0 16px 16px;
  color: var(--text-muted);
}
.faq-item.is-open .faq-answer { display: block; }

.site-footer {
  background: #f8f8f8;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.site-footer a { color: var(--text-main); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--brand-gold-dark); }

/* Login / daftar — form + screenshot */
.auth-guide {
  padding: 0 0 32px;
}
.auth-guide__grid {
  display: grid;
  gap: 24px;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  width: min(100% - 32px, var(--container));
}
@media (min-width: 900px) {
  .auth-guide__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .auth-guide__grid--duo-visual {
    grid-template-columns: 1fr 1fr;
    max-width: 720px;
  }
}
.auth-guide__grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-inline: auto;
}
.auth-guide__figure {
  margin: 0;
  text-align: center;
}
.auth-guide__figure h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--text-main);
}
.auth-guide__figure img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.auth-guide__figure figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Login mockup */
.login-showcase {
  max-width: 420px;
  margin: 0 auto 32px;
  background: #121212;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.login-showcase h2 {
  text-align: center;
  margin: 0 0 16px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.login-showcase label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.login-showcase input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #444;
}
.login-showcase button[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.form-message {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #fbbf24;
  min-height: 1.2em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-main); }

.legal-page .content-prose ul { padding-left: 1.2rem; }
.legal-page .content-prose li { margin-bottom: 0.5rem; }

.bridge-box {
  max-width: 560px;
  margin: 24px auto;
  padding: 20px;
  border: 1px dashed var(--brand-gold);
  border-radius: var(--radius);
  background: #fffdf7;
  text-align: center;
}

@media (max-width: 899px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-nav { display: none !important; }
}
