/* ── BijakDana Design System ── */

:root {
  --bg: #050d1a;
  --surface: #0d1b2e;
  --border: #1e3a5f;
  --accent: #0ea5e9;
  --text: #e2e8f0;
  --text2: #64748b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 20px;
  --radius-sm: 10px;
}

/* ── Base ── */

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Logo ── */

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Tag / Badge ── */

.tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
}

/* ── Card ── */

.card {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* ── Buttons ── */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-gradient {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  text-align: center;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* ── Option Button (form wizard) ── */

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.option-btn:hover {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.06);
}

.option-btn.selected {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
}

/* ── Input ── */

.input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.input:focus {
  border-color: var(--accent);
}

.input::placeholder {
  color: var(--text2);
}

/* ── Result Block ── */

.result-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

/* ── Progress Bar ── */

.progress-bar {
  display: flex;
  gap: 6px;
}

.pip {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.pip.done {
  background: var(--accent);
}

.pip.active {
  background: var(--accent);
  opacity: 0.6;
}

/* ── Score Bar ── */

.score-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.6s ease;
}

/* ── Risk Badge ── */

.risk-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.risk-badge.high {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.risk-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.risk-badge.low {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* ── Blur Overlay ── */

.blur-overlay {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

/* ── Divider ── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── Fade Up Animations ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

.fade-up-d1 {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.1s;
}

.fade-up-d2 {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.2s;
}

.fade-up-d3 {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.3s;
}

/* ── Step Transitions ── */

.step-enter {
  animation: fadeUp 0.35s ease both;
}

.step-exit {
  animation: fadeUp 0.25s ease reverse both;
}

/* ── Mobile Responsive ── */

@media (max-width: 640px) {
  .card {
    padding: 28px 20px;
    border-radius: 16px;
  }
}
