/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, sans-serif;
  color: #e5e7eb;
  background: radial-gradient(circle at top, #111827 0, #020617 42%, #020024 100%);
  background-attachment: fixed;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HERO LAYOUT (baru: 2 kolom, glass effect) ===== */
.hero {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 10px 18px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.hero-left {
  padding: 26px 26px 28px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 64, 175, 0.35));
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.85);
}

/* ===== HEADER LEFT ===== */
.hero-header {
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.9);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.3rem, 3.3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #f9fafb;
}

.hero-subtitle {
  margin-top: 10px;
  font-size: 15px;
  color: #cbd5f5;
  max-width: 32rem;
}

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

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.5);
  font-size: 12px;
  color: #a5f3fc;
}

/* ===== STATS (horizontal card style) ===== */
.hero-stats {
  display: flex;
  gap: 18px;
  margin-top: 26px;
}

.stat {
  flex: 1 1 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(37, 99, 235, 0.5);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #e0f2fe;
}

/* ===== FORM CARD (KANAN) ===== */
.hero-form {
  display: flex;
  align-items: stretch;
}

.form-card {
  width: 100%;
  padding: 24px 22px 26px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(17, 24, 39, 0.9), rgba(76, 29, 149, 0.7));
  border: 1px solid rgba(165, 180, 252, 0.5);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
}

.form-title {
  font-size: 18px;
  font-weight: 700;
  color: #e0e7ff;
}

.form-caption {
  font-size: 13px;
  color: #c4b5fd;
  margin-top: 4px;
  margin-bottom: 18px;
}

/* ===== FORM INPUT ===== */
.input-label {
  font-size: 12px;
  color: #e5e7eb;
  margin-bottom: 6px;
  display: block;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 2px 10px;
}

.symbol-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #e5f4ff;
  padding: 9px 3px;
  font-size: 14px;
}

.symbol-input::placeholder {
  color: #6b7280;
}

/* ===== PRIMARY BUTTON (rectangular, gradient ungu-hijau) ===== */
.primary-btn {
  width: 100%;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-image: linear-gradient(135deg, #22c55e, #4ade80);
  box-shadow: 0 18px 40px rgba(21, 128, 61, 0.6);
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(21, 128, 61, 0.6);
}

/* ===== BENEFITS (grid 2 kolom di form) ===== */
.hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(129, 140, 248, 0.6);
  font-size: 12px;
  color: #e5e7eb;
}

.benefit-icon {
  font-size: 15px;
}

/* ===== WHATSAPP CTA ===== */
.whatsapp-cta {
  width: 100%;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #22c55e;
  background: rgba(21, 128, 61, 0.15);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.12s ease, transform 0.08s ease;
}

.whatsapp-cta:hover {
  background: rgba(22, 163, 74, 0.3);
  transform: translateY(-1px);
}

.availability {
  margin-top: 6px;
  font-size: 11px;
  color: #e5e7eb;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  margin: 30px auto 24px;
  max-width: 1120px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 10px;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #e5f4ff;
  cursor: pointer;
  position: relative;
}

.footer-link:first-child {
  color: #6ee7b7;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  transition: width 0.15s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* ===== MODAL COMMON (beda gaya) ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(620px, 92vw);
  max-height: min(82vh, 680px);
  background: linear-gradient(150deg, #020617, #020617 40%, #111827 100%);
  border-radius: 18px;
  border: 1px solid rgba(129, 140, 248, 0.7);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.9);
  padding: 20px 22px 22px;
  overflow: hidden;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #e0e7ff;
  margin-bottom: 14px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: rgba(15, 23, 42, 0.96);
  color: #e5f4ff;
  font-size: 18px;
  cursor: pointer;
}

/* ===== ANALYSIS MODAL ===== */
.modal-progress-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.9);
  overflow: hidden;
  margin-bottom: 18px;
}

.modal-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  transition: width 0.2s ease;
}

.analysis-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 8px 11px;
  font-size: 13px;
}

.step-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
}

/* ===== RESULT MODAL ===== */
.result-card {
  text-align: center;
  padding-top: 30px;
}

.result-icon {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #38bdf8, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 32px;
}

.result-title {
  margin-bottom: 8px;
}

.result-text {
  font-size: 14px;
  color: #cbd5f5;
  max-width: 420px;
  margin: 0 auto 20px;
}

.whatsapp-big-btn {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 55px rgba(22, 163, 74, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.08s ease, filter 0.08s ease;
}

.whatsapp-big-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

/* ===== INFO MODAL (Tentang, Privasi, dst.) ===== */
.info-card {
  max-height: min(82vh, 680px);
  padding-top: 24px;
}

.info-body {
  margin-top: 4px;
  font-size: 14px;
  color: #e5f4ff;
  line-height: 1.6;
  padding-right: 4px;
  overflow-y: auto;
  max-height: calc(82vh - 90px);
}

/* paragraf & list styling */
.info-body p {
  margin-bottom: 10px;
}

.info-body h3 {
  font-size: 17px;
  color: #a5f3fc;
  margin: 12px 0 6px;
}

.info-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.info-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.info-body li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #38bdf8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-left {
    order: 1;
  }

  .hero-form {
    order: 2;
  }

  .hero {
    margin-top: 24px;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-inline: 14px;
  }

  .hero-left,
  .form-card {
    padding-inline: 16px;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }
}