/* ================= General ================= */
html { scroll-behavior: smooth; }

.hero-pattern {
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.5) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ================= Nav active state ================= */
.nav-link.active-link { color: #dcae4c; }

/* ================= Principle cards ================= */
.principle-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(15, 30, 70, 0.04);
  transition: transform .2s, box-shadow .2s;
}
.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 30, 70, 0.08);
}
.principle-card .icon-box {
  width: 3rem; height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #0b1b3a, #1c3a75);
  color: #dcae4c;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.principle-card h3 {
  font-weight: 800;
  color: #0b1b3a;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.principle-card p {
  color: #55617a;
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ================= Layer cards (4 layers box) ================= */
.layer-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.layer-card .layer-num {
  display: block;
  font-weight: 900;
  font-size: 1.75rem;
  color: #dcae4c;
  margin-bottom: 0.5rem;
}
.layer-card h4 { font-weight: 800; margin-bottom: 0.5rem; }
.layer-card p { font-size: 0.85rem; color: #cbd5e1; line-height: 1.7; }

/* ================= Path tabs ================= */
.path-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all .2s;
}
.path-tab i { color: #b5811f; }
.path-tab:hover { border-color: #dcae4c; }
.path-tab.active {
  background: #0b1b3a;
  color: #fff;
  border-color: #0b1b3a;
}
.path-tab.active i { color: #dcae4c; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}
.feature-list li i { color: #16a34a; margin-top: 0.25rem; }

.output-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}
.output-item:last-child { border-bottom: none; }
.output-item span { color: #94a3b8; }
.output-item b { color: #dcae4c; }

/* ================= Domain / Level rows ================= */
.domain-row, .level-row {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #f8fafc;
  border: 1px solid #eef1f6;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
}
.domain-row i {
  width: 2.6rem; height: 2.6rem; flex-shrink:0;
  border-radius: 0.75rem;
  background: #0b1b3a;
  color: #dcae4c;
  display: flex; align-items: center; justify-content: center;
}
.domain-row b, .level-row b { color: #0b1b3a; font-size: 0.98rem; }
.domain-row p, .level-row p { color: #64748b; font-size: 0.85rem; margin-top: 0.15rem; }

.level-badge {
  width: 2.6rem; height: 2.6rem; flex-shrink:0;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 1.05rem;
}
.level-badge.L1 { background: #94a3b8; }
.level-badge.L2 { background: #60a5fa; }
.level-badge.L3 { background: #34d399; }
.level-badge.L4 { background: #c9972f; }
.level-badge.L5 { background: #0b1b3a; }

/* ================= Wizard ================= */
#wizard-progress { }
.wizard-step-dot {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.wizard-step-dot span {
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff;
  transition: all .25s;
}
.wizard-step-dot.active span, .wizard-step-dot.done span {
  background: #c9972f;
  border-color: #c9972f;
  color: #0b1b3a;
}
.wizard-step-dot.active small, .wizard-step-dot.done small { color: #dcae4c; }
.wizard-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px;
  align-self: center;
  margin-top: -1.1rem;
}

.wiz-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.1rem 0.6rem;
  background: #fff;
  transition: all .2s;
  cursor: pointer;
}
.wiz-option i { font-size: 1.4rem; color: #b5811f; }
.wiz-option span { font-weight: 700; font-size: 0.85rem; color: #1e293b; }
.wiz-option small { font-family: monospace; color: #94a3b8; font-size: 0.7rem; }
.wiz-option:hover { border-color: #dcae4c; transform: translateY(-2px); }
.wiz-option.selected {
  border-color: #0b1b3a;
  background: #0b1b3a;
}
.wiz-option.selected i, .wiz-option.selected span { color: #dcae4c; }
.wiz-option.selected small { color: #cbd5e1; }

/* ================= Glossary ================= */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .glossary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .glossary-grid { grid-template-columns: repeat(3, 1fr); }
}
.glossary-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.glossary-card h4 {
  font-weight: 800;
  color: #0b1b3a;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.glossary-card h4 i { color: #c9972f; }
.glossary-card table { width: 100%; font-size: 0.85rem; }
.glossary-card td { padding: 0.45rem 0; border-bottom: 1px solid #f1f5f9; }
.glossary-card td:first-child {
  font-family: monospace;
  font-weight: 800;
  color: #b5811f;
  width: 4.5rem;
}
.glossary-card tr:last-child td { border-bottom: none; }

/* ================= Workflow timeline ================= */
.workflow-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.workflow-timeline li {
  display: flex; gap: 1.2rem;
  padding-bottom: 1.6rem;
  position: relative;
}
.workflow-timeline li:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-inline-start: 1.15rem;
  top: 2.4rem;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}
.wf-num {
  width: 2.4rem; height: 2.4rem; flex-shrink: 0;
  border-radius: 999px;
  background: #0b1b3a;
  color: #dcae4c;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  z-index: 1;
}
.workflow-timeline b { color: #0b1b3a; font-size: 1rem; }
.workflow-timeline p { color: #64748b; font-size: 0.9rem; margin-top: 0.2rem; }

/* ================= FAQ ================= */
.faq-item {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 1rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: start;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  color: #0b1b3a;
  font-size: 0.95rem;
}
.faq-q i { transition: transform .25s; color: #b5811f; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 1.4rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.85;
}
.faq-item.open .faq-a { padding-bottom: 1.2rem; }

/* ================= Form ================= */
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e293b;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color .2s;
  background: #f8fafc;
}
.form-input:focus {
  outline: none;
  border-color: #c9972f;
  background: #fff;
}

/* ================= Language switcher ================= */
.lang-switch a { transition: color .2s; }
.lang-switch a.active { color: #dcae4c; font-weight: 700; }

/* ================= Scrollbar niceties ================= */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
