/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ROOT */
:root {
  --primary: #1F1A6B;
  --primary-dark: #16134f;
  --primary-soft: #eeedff;
  --accent: #f4b400;
  --text: #1f2937;
  --text-soft: #6b7280;
  --white: #ffffff;
  --bg-soft: #f8f9ff;
  --border: #e5e7eb;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --preview-bg: #fff7ed;
  --preview-text: #9a3412;
  --locked-bg: #f3f0ff;
  --locked-text: #5b21b6;
  --shadow: 0 12px 32px rgba(31, 26, 107, 0.08);
  --container: 1240px;
}

/* BASE */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.75;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

section {
  padding: 96px 0;
}

h1, h2, h3, h4 {
  line-height: 1.25;
}

p {
  margin-bottom: 16px;
}

/* ================= HEADER ================= */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-left: auto;
  padding-right: 12px;
}

.nav-menu a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: none;
}

.nav-menu a.nav-cta {
  background: #d90429;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(217, 4, 41, 0.35);
}

.nav-menu a.nav-cta:hover {
  background: #b70322;
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-menu a::after {
  display: none;
}

/* ================= MOBILE ================= */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  padding: 110px 0 100px;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  font-size: 56px;
  color: var(--primary);
  margin-bottom: 24px;
  max-width: 760px;
}

.hero h1 em {
  color: #4037b5;
  font-style: normal;
}

.hero h1 .gold {
  color: var(--accent);
}

.hero-sub {
  color: var(--text-soft);
  margin-bottom: 32px;
  font-size: 18px;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-card h3 {
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--primary);
}

.hero-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.hero-list div {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
}

/* BUTTON */
.btn-primary,
.btn-outline,
.btn-gold,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
}

.btn-gold {
  background: var(--accent);
  color: #1f2937;
  border: none;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.stat-item {
  border: 1px solid var(--border);
  padding: 22px 20px;
  border-radius: 16px;
  background: #fff;
}

.stat-item .n {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-item .l {
  font-size: 14px;
  color: var(--text-soft);
}

/* ================= SECTION ================= */
.section-eyebrow {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 18px;
}

.section-sub {
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 760px;
  font-size: 17px;
}

/* ================= POSTER ================= */
#poster .container {
  text-align: center;
}

#poster h2 {
  font-size: 42px;
  margin-bottom: 18px;
  color: var(--primary);
}

#poster h2 span {
  color: var(--accent);
}

#poster p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: 17px;
}

.poster-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.tag {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

/* ================= NOTE ================= */
.preview-note {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px;
  margin: 32px 0 44px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-soft);
}

.preview-note-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 24px;
}

.preview-note h4 {
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--primary);
}

/* ================= KLAUSUL ================= */
.klausul-block {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}

.klausul-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 26px;
}

.klausul-num {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.klausul-header h3 {
  flex: 1;
  min-width: 260px;
  font-size: 24px;
  color: var(--primary);
}

.klausul-count {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 700;
}

/* ================= CARD ================= */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.25s;
  background: #fff;
  min-height: 112px;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.doc-card.doc-hidden {
  display: none;
}

.doc-card.doc-hidden.is-visible {
  display: flex;
}

.doc-icon {
  font-size: 20px;
  line-height: 1;
}

.doc-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.doc-code {
  font-size: 12px;
  color: var(--text-soft);
}

.doc-badge {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 6px;
  width: fit-content;
}

.doc-badge.open {
  background: var(--success-bg);
  color: var(--success-text);
}

.doc-badge.preview {
  background: var(--preview-bg);
  color: var(--preview-text);
}

.doc-badge.locked {
  background: var(--locked-bg);
  color: var(--locked-text);
}

.lock-overlay {
  margin-top: 8px;
}

.lock-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.doc-grid-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  justify-self: end;
}

.doc-toggle-btn {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.doc-toggle-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ================= PROGRAM ================= */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.program-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.program-card h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 14px;
}

.program-card p {
  color: var(--text-soft);
  margin-bottom: 18px;
}

.program-card ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.program-card li {
  margin-bottom: 10px;
}

/* ================= FOOTER ================= */
footer {
  background: #111B21;
  color: #F8FAFC;
  padding: 56px 0 40px;
  margin-top: 72px;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer-column h3 {
  font-size: 18px;
  color: #F8FAFC;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-column p,
.footer-column li,
.footer-column a {
  color: #d8e1e8;
}

.footer-column p {
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-column a {
  color: #d8e1e8;
  text-decoration: none;
}

.footer-column a:hover {
  color: #ffffff;
}

.social-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  color: #111B21;
}

.social-icon.instagram {
  background: #ffffff;
}

.social-icon.whatsapp {
  background: #25D366;
  color: #ffffff;
}

.footer-dark {
  background: #111B21;
}

footer p {
  color: #d8e1e8;
}

/* ================= FORM ================= */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

/* ================= MODAL ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  padding: 24px;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  position: relative;
  background: white;
  padding: 24px;
  border-radius: 20px;
  width: min(100%, 580px);
  max-width: 580px;
}

.modal h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal p {
  color: var(--text-soft);
  margin-bottom: 18px;
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 12px 0;
}

.modal-success.active {
  display: block;
}

.success-icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.modal-success-btn {
  margin-top: 10px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.modal-actions a,
.modal-actions button {
  flex: 1;
  min-width: 160px;
}

.preview-info,
.locked-info {
  background: #f8fafc;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  margin-top: 12px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero-grid,
  .footer-wrap,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  section {
    padding: 72px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    min-height: 82px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 88px;
    left: 16px;
    right: 16px;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border-radius: 16px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-sub,
  .section-sub,
  #poster p {
    font-size: 16px;
  }

  .section-title,
  #poster h2 {
    font-size: 32px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .doc-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .doc-toggle-btn {
    width: auto;
  }

  .doc-grid-action {
    justify-self: start;
  }

  .klausul-block,
  .program-card,
  .hero-card,
  .modal {
    padding: 22px;
  }

  .preview-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline,
  .btn-gold,
  .btn-submit {
    width: 100%;
  }

  .hero h1 {
    font-size: 32px;
  }
}
