:root {
  --bg: #0a1224;
  --bg-soft: #101a34;
  --text: #e6edf9;
  --muted: #a6b2cf;
  --primary: #35d0ff;
  --primary-strong: #00a8df;
  --accent: #7ef87b;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0% 0%, #162449, var(--bg) 40%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  filter: blur(70px);
  opacity: 0.3;
  pointer-events: none;
}

.bg-glow-1 {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--primary);
  top: -60px;
  left: -60px;
  animation: floatGlow 9s ease-in-out infinite;
}

.bg-glow-2 {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #3dff9e;
  right: -90px;
  bottom: 20%;
  animation: floatGlow 11s ease-in-out infinite reverse;
}

.header,
main,
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
  background: rgba(8, 15, 30, 0.72);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 20;
  animation: dropIn 0.6s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--primary), var(--primary-strong));
  color: #04101c;
  font-size: 0.84rem;
}

.brand-text {
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

main {
  padding: 2.6rem 0 3rem;
}

.hero {
  padding: 3.4rem 1rem 2.3rem;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.76rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  line-height: 1.1;
}

h1 span {
  color: var(--accent);
}

.hero-copy {
  margin-top: 1rem;
  max-width: 770px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1.8rem;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  color: #04101c;
  background: linear-gradient(160deg, var(--primary), var(--primary-strong));
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 25px rgba(30, 172, 220, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.2);
}

.btn-sm {
  padding: 0.62rem 0.9rem;
  font-size: 0.92rem;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metrics article,
.card,
.module,
.cta-box,
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metrics article:hover,
.card:hover,
.module:hover,
.cta-box:hover,
.faq details:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 248, 123, 0.45);
}

.metrics article {
  padding: 1rem;
}

.metrics h2 {
  margin: 0;
  font-size: 1.3rem;
}

.metrics p {
  color: var(--muted);
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.panel {
  margin-top: 2.3rem;
  padding: 1.1rem 1rem 0.2rem;
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.card {
  padding: 1rem;
}

.card h3,
.module h3 {
  margin: 0;
}

.card p,
.module p,
.timeline li,
.cta-box p,
.faq p {
  color: var(--muted);
  line-height: 1.6;
}

.card p {
  margin: 0.5rem 0 0;
}

.modules {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.module {
  padding: 1rem;
}

.module span {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
}

.module h3 {
  margin-top: 0.55rem;
}

.module p {
  margin: 0.5rem 0 0;
}

.timeline {
  margin-top: 1rem;
  padding-left: 1rem;
}

.timeline li {
  margin-bottom: 0.65rem;
}

.timeline strong {
  color: var(--text);
}

.cta-box {
  margin-top: 1rem;
  padding: 1rem;
}

.cta-box h3 {
  margin: 0;
}

.cta-box p {
  margin: 0.5rem 0 1rem;
}

.faq {
  padding-bottom: 0.8rem;
}

.faq details {
  margin-top: 0.8rem;
  padding: 0.85rem 0.95rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.footer {
  padding: 0 1rem 2rem;
  color: var(--muted);
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(6, 14, 28, 0.85);
  color: var(--text);
  cursor: pointer;
  display: none;
}

.to-top.show {
  display: block;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .metrics,
  .grid-2,
  .modules {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .header {
    flex-wrap: wrap;
    position: static;
  }

  .hero {
    padding-top: 2.1rem;
  }

  .metrics,
  .grid-2,
  .modules {
    grid-template-columns: 1fr;
  }
}

.peserta-panel {
  margin-top: 0.9rem;
  padding-top: 0.6rem;
}

.peserta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: none;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  background:
    radial-gradient(circle at top right, rgba(255, 133, 245, 0.2), transparent 42%),
    radial-gradient(circle at bottom left, rgba(58, 210, 255, 0.2), transparent 35%),
    rgba(255, 255, 255, 0.03);
}

.hero-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.66rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #051024;
  background: linear-gradient(120deg, #7ef87b, #35d0ff);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.control select,
.control input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 17, 33, 0.65);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  outline: none;
}

.control select:focus,
.control input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(53, 208, 255, 0.15);
}

.stats {
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.table-wrap {
  margin-top: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(126, 248, 123, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.82rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(53, 208, 255, 0.18), rgba(126, 248, 123, 0.18));
  color: var(--text);
  font-size: 0.9rem;
}

td {
  color: var(--muted);
  font-size: 0.95rem;
}

tbody tr {
  animation: rowIn 0.45s ease both;
  animation-delay: var(--row-delay, 0ms);
}

tbody tr:nth-child(odd) {
  background: rgba(53, 208, 255, 0.07);
}

tbody tr:nth-child(even) {
  background: rgba(126, 248, 123, 0.06);
}

tbody tr:hover {
  background: rgba(255, 133, 245, 0.16);
}

.empty-state {
  margin-top: 1rem;
  color: var(--muted);
}

.pagination {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-btn {
  border: 1px solid var(--border);
  background: rgba(7, 17, 33, 0.8);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-weight: 600;
  min-width: 42px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(53, 208, 255, 0.75);
}

.page-btn.active {
  background: linear-gradient(160deg, var(--primary), var(--primary-strong));
  color: #04101c;
  border-color: transparent;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dept-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  color: #061329;
  font-weight: 700;
  font-size: 0.78rem;
  background: var(--dept-color);
}

@media (max-width: 700px) {
  body {
    font-size: 10px;
  }

  .header,
  main,
  .footer {
    width: min(1120px, calc(100% - 1.1rem));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 620px;
  }

  th,
  td {
    padding: 0.7rem 0.6rem;
    font-size: 0.8rem;
  }

  .pagination {
    gap: 0.35rem;
  }

  .page-btn {
    padding: 0.4rem 0.56rem;
    font-size: 0.78rem;
    min-width: 38px;
  }

  .peserta-title {
    font-size: 1.6rem;
  }

  .eyebrow {
    font-size: 0.5rem;
  }

  .control label,
  .stats,
  .empty-state {
    font-size: 0.7rem;
  }

  .control select,
  .control input {
    font-size: 0.75rem;
  }

  .btn-sm {
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 13px;
  }

  .brand-text {
    font-size: 0.78rem;
  }

  .btn-sm {
    width: 100%;
    font-size: 0.82rem;
  }

  .hero-copy {
    font-size: 0.86rem;
  }

  .peserta-title {
    font-size: 1.5rem;
  }

  .control select,
  .control input {
    font-size: 0.86rem;
  }

  .stats {
    font-size: 0.8rem;
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(16px);
  }
}

@keyframes rowIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes dropIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
