:root {
  --bg-1: #020817;
  --bg-2: #0f172a;
  --bg-3: #111827;
  --panel: rgba(15, 23, 42, 0.7);
  --primary: #38bdf8;
  --secondary: #a78bfa;
  --accent: #34d399;
  --text: #e2e8f0;
  --muted: #cbd5e1;
  --line: rgba(148, 163, 184, 0.5);
  --shadow: rgba(15, 23, 42, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 35%),
              radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.16), transparent 30%);
  pointer-events: none;
}

.home-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.home-page::before,
.home-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  filter: blur(18px);
}

.home-page::before {
  width: 420px;
  height: 420px;
  left: 10%;
  top: 8%;
}

.home-page::after {
  width: 500px;
  height: 500px;
  right: 10%;
  bottom: 6%;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
}

.section-label {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
  text-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.subtitle {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.entry-button,
.back-button {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-button:hover,
.back-button:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.8);
}

.structure-page {
  position: relative;
  min-height: 100vh;
  padding: 70px 20px 110px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.98));
}

.structure-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  margin: 0 0 40px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #f8fafc;
  letter-spacing: 0.04em;
}

.members-block {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.members-block h3 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
}

.members-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.members-list span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text);
  font-weight: 600;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  position: relative;
}

.level {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.level::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 28px;
  background: var(--line);
}

.level:last-child::after {
  display: none;
}

.box {
  background: rgba(15, 23, 42, 0.78);
  border: 2px solid rgba(56, 189, 248, 0.8);
  border-radius: 18px;
  min-width: 220px;
  padding: 18px 26px;
  text-align: center;
  box-shadow: 0 14px 28px var(--shadow);
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 30px rgba(56, 189, 248, 0.18);
  border-color: rgba(52, 211, 153, 0.9);
}

.box .role {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.box .name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.level-4,
.level-5 {
  display: flex;
  justify-content: center;
  gap: 100px;
  position: relative;
}

.level-4::before,
.level-5::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  width: 2px;
  height: 28px;
  background: var(--line);
}

.level-4::after,
.level-5::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  width: 360px;
  height: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

.level-4 .box,
.level-5 .box {
  border-color: rgba(167, 139, 250, 0.8);
}

.level-4 .box .role,
.level-5 .box .role {
  color: #c4b5fd;
}

.back-button {
  left: auto;
  right: 40px;
  bottom: 40px;
}

@media (max-width: 720px) {
  .home-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 100px;
  }

  .entry-button,
  .back-button {
    position: static;
    margin-top: 26px;
    display: inline-flex;
  }

  .hero h1 {
    letter-spacing: 0.04em;
  }

  .level-4,
  .level-5 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .level-4::after,
  .level-5::after {
    width: 2px;
    height: 44px;
    left: 50%;
    top: -22px;
    transform: translateX(-50%);
  }
}

/* Selaras dengan tema halaman LAKI_LAKI/kelompok 3 */
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--paper, #f6f2e9);
  color: var(--ink, #17251f);
}

body::before { display: none; }

.home-page,
.structure-page {
  background: var(--paper, #f6f2e9);
}

.home-page { min-height: calc(100vh - 82px); }
.hero h1, .page-title { color: var(--ink, #17251f); text-shadow: none; }
.section-label, .box .role { color: #658000; }
.entry-button, .back-button {
  border: 1px solid var(--ink, #17251f);
  border-radius: 0;
  background: var(--ink, #17251f);
  color: var(--paper, #f6f2e9);
  box-shadow: 4px 4px 0 var(--lime, #ccff48);
}
.structure-page { border-top: 1px solid var(--line, #d9d7ce); }
.members-block, .box {
  background: #fffdf7;
  border: 1px solid var(--ink, #17251f);
  border-radius: 0;
  box-shadow: none;
}
.members-block h3 { color: #658000; }
.members-list span { background: transparent; border: 1px solid var(--ink, #17251f); color: var(--ink, #17251f); border-radius: 0; }
.box .name { color: var(--ink, #17251f); }
.level::after, .level-4::before, .level-5::before, .level-4::after, .level-5::after { background: var(--ink, #17251f); }
.level-4 .box, .level-5 .box { border-color: var(--ink, #17251f); }
.level-4 .box .role, .level-5 .box .role { color: #658000; }
footer {
  border-top: 1px solid var(--line, #d9d7ce);
  padding: 24px clamp(24px, 7vw, 105px);
  background: var(--paper, #f6f2e9);
  color: var(--muted, #6c756d);
  font: 11px 'DM Mono', monospace;
}
