@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --black:#101114;
  --black2:#18191c;
  --white:#fff;
  --bg:#f5f5f6;
  --gray:#686b73;
  --line:#dedfe3;
  --soft:#f0f0f2;
  --shadow:0 8px 30px rgba(0,0,0,.07);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--black);
  overflow-x:hidden;
}

/* ================= HEADER ================= */

.navbar{
  position:sticky;
  top:0;
  z-index:100;
  height:64px;
  background:#111214;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-inner{
  width:min(1160px,calc(100% - 36px));
  height:100%;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-weight:900;
  font-size:21px;
  letter-spacing:.04em;
}

.logo-k{
  font-size:30px;
  font-weight:900;
  line-height:1;
}

.nav-menu{
  display:flex;
  align-items:center;
  gap:42px;
}

.nav-menu a{
  position:relative;
  color:#d8d8dc;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  padding:23px 0;
  transition:.2s;
}

.nav-menu a:hover,
.nav-menu a.active{
  color:#fff;
}

.nav-menu a.active::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:3px;
  background:#fff;
}

/* ================= HERO ================= */

.hero{
  position:relative;
  min-height:345px;
  padding:42px 20px 45px;
  overflow:hidden;
  background:#f8f8f9;
  display:flex;
  justify-content:center;
  text-align:center;
}

.hero::before{
  content:"";
  position:absolute;
  width:500px;
  height:120px;
  left:-150px;
  top:-10px;
  background:#202126;
  transform:rotate(-34deg);
}

.hero::after{
  content:"";
  position:absolute;
  width:500px;
  height:100px;
  right:-160px;
  bottom:-5px;
  background:#202126;
  transform:rotate(-34deg);
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:800px;
}

.hero-symbol{
  position:relative;
  width:120px;
  height:120px;
  margin:0 auto 18px;
  border-radius:50%;
  background:#111214;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:63px;
  font-weight:900;
  box-shadow:0 8px 25px rgba(0,0,0,.12);
  overflow:hidden;
}

.hero-symbol img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.eyebrow{
  color:#64666d;
  font-size:12px;
  font-weight:700;
  letter-spacing:.35em;
  margin-bottom:10px;
}

.hero h1{
  font-size:clamp(34px,6vw,56px);
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
}

.hero-line{
  width:52px;
  height:3px;
  background:#111214;
  margin:18px auto;
}

.hero p{
  color:#666970;
  font-size:15px;
}

/* ================= MAIN ================= */

main{
  width:min(1040px,calc(100% - 36px));
  margin:-4px auto 0;
  position:relative;
  z-index:5;
}

.section{
  margin-bottom:22px;
}

/* ================= CARD ================= */

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
}

/* ================= ABOUT ================= */

.about{
  background:#121316;
  color:#fff;
  padding:30px 32px 25px;
  border-radius:14px;
  box-shadow:0 10px 35px rgba(0,0,0,.12);
}

.title{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:15px;
}

.title-bar{
  width:4px;
  height:47px;
  background:#fff;
  border-radius:4px;
}

.title-icon{
  width:38px;
  height:38px;
  flex:none;
}

.title h2{
  font-size:23px;
  font-weight:800;
}

.about p{
  max-width:760px;
  margin-left:58px;
  color:#dddde0;
  font-size:14px;
  line-height:1.8;
}

.about p+p{
  margin-top:10px;
}

.about b{
  color:#fff;
}

.pillars{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:11px;
  margin-top:21px;
}

.pillar{
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px;
  min-height:75px;
  background:#1b1c20;
  border:1px solid #303136;
  border-radius:10px;
  transition:.2s;
}

.pillar:hover{
  transform:translateY(-2px);
  background:#202125;
}

.pillar-icon{
  width:43px;
  height:43px;
  border-radius:50%;
  background:#111214;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
}

.pillar-icon svg{
  width:23px;
  height:23px;
}

.pillar-label{
  font-size:9px;
  color:#aaaab0;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
}

.pillar-value{
  margin-top:5px;
  font-size:12px;
  color:#fff;
  font-weight:600;
}

/* ================= JOIN ================= */

.join-card{
  padding:22px 25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.join-info{
  display:flex;
  align-items:center;
  gap:18px;
}

.join-icon{
  width:56px;
  height:56px;
  border-radius:50%;
  background:#111214;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
}

.join-icon svg{
  width:29px;
  height:29px;
}

.join-text h2{
  font-size:21px;
  font-weight:800;
  margin-bottom:7px;
}

.join-text p{
  color:#686b73;
  font-size:13px;
  line-height:1.55;
}

.join-btn{
  min-width:265px;
  height:54px;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  background:#111214;
  color:#fff;
  text-decoration:none;
  border-radius:9px;
  font-size:12px;
  font-weight:800;
  transition:.2s;
}

.join-btn:hover{
  background:#292a2e;
  transform:translateY(-2px);
}

.join-btn svg{
  width:21px;
  height:21px;
}

/* ================= ADMIN TITLE ================= */

.admin-head{
  padding:0 4px 16px;
}

.admin-head-title{
  display:flex;
  align-items:center;
  gap:14px;
}

.admin-head-title svg{
  width:28px;
  height:28px;
}

.admin-head h2{
  font-size:21px;
  font-weight:800;
}

.admin-head p{
  margin:6px 0 0 42px;
  color:#686b73;
  font-size:12px;
  line-height:1.6;
}

/* ================= ADMIN GRID ================= */

.admin-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:11px;
}

.admin-card{
  position:relative;
  padding:17px 18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:11px;
  cursor:pointer;
  transition:.2s;
}

.admin-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
  border-color:#c9cacf;
}

.admin-top{
  display:flex;
  align-items:center;
  gap:13px;
}

.admin-avatar{
  position:relative;
  width:43px;
  height:43px;
  border-radius:50%;
  background:#111214;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:14px;
  flex:none;
  overflow:hidden;
}

.admin-avatar img,
.popup-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.admin-name{
  font-size:13px;
  font-weight:800;
  text-transform:lowercase;
}

.admin-role{
  color:#85878e;
  font-size:10px;
  margin-top:4px;
}

.admin-number{
  margin-top:13px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#4f5157;
  font-size:10.5px;
}

.admin-number svg{
  width:17px;
  height:17px;
  color:#111214;
}

/* ================= FOOTER ================= */

footer{
  margin-top:65px;
  padding:25px 15px;
  background:#111214;
  color:#d1d1d4;
  text-align:center;
  font-size:10px;
}

/* ================= OVERLAY ================= */

.overlay{
  position:fixed;
  inset:0;
  z-index:500;
  background:rgba(0,0,0,.6);
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  padding:25px;
  opacity:0;
  visibility:hidden;
  transition:.25s;
}

.overlay.show{
  opacity:1;
  visibility:visible;
}

.popup{
  width:min(380px,100%);
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 25px 70px rgba(0,0,0,.3);
  transform:translateY(25px);
  transition:.3s;
}

.overlay.show .popup{
  transform:translateY(0);
}

.popup-head{
  position:relative;
  padding:25px;
  background:#111214;
  color:#fff;
}

.popup-close{
  position:absolute;
  top:17px;
  right:18px;
  width:30px;
  height:30px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:22px;
  cursor:pointer;
}

.popup-profile{
  display:flex;
  align-items:center;
  gap:14px;
}

.popup-avatar{
  position:relative;
  width:56px;
  height:56px;
  border-radius:10px;
  background:#fff;
  color:#111214;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  font-weight:900;
  overflow:hidden;
}

.popup-name{
  font-size:16px;
  font-weight:800;
}

.popup-role{
  margin-top:5px;
  color:#aaaab0;
  font-size:11px;
}

.popup-number{
  margin-top:20px;
  padding:13px;
  border-radius:9px;
  background:#282a2f;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  font-weight:600;
}

.popup-number svg{
  width:19px;
}

.popup-body{
  padding:15px 20px 20px;
}

.popup-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.popup-actions a,
.popup-actions button{
  height:45px;
  border-radius:8px;
  border:1px solid #d8d9dc;
  background:#fff;
  color:#111214;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.popup-actions a{
  background:#111214;
  color:#fff;
  border-color:#111214;
}

.popup-actions svg{
  width:17px;
}

.close-text{
  margin-top:15px;
  text-align:center;
  color:#777980;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

/* ================= TOAST ================= */

.toast{
  position:fixed;
  z-index:700;
  left:50%;
  bottom:20px;
  transform:translate(-50%,20px);
  padding:12px 17px;
  background:#111214;
  color:#fff;
  border-radius:9px;
  font-size:11px;
  font-weight:700;
  opacity:0;
  pointer-events:none;
  transition:.25s;
}

.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

/* ================= LOADER ================= */

.loader{
  position:fixed;
  inset:0;
  z-index:9999;
  background:#111214;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  transition:.5s;
}

.loader.hide{
  opacity:0;
  visibility:hidden;
}

.loader-logo{
  color:#fff;
  font-size:48px;
  font-weight:900;
  letter-spacing:.05em;
}

.loader-bar{
  width:min(270px,70vw);
  height:4px;
  background:#303136;
  border-radius:99px;
  overflow:hidden;
  margin-top:25px;
}

.loader-progress{
  width:0;
  height:100%;
  background:#fff;
  transition:width 3s cubic-bezier(.4,0,.2,1);
}

.loader-text{
  margin-top:13px;
  color:#777980;
  font-size:9px;
  letter-spacing:.2em;
  text-transform:uppercase;
}

/* ================= MOBILE ================= */

@media(max-width:700px){

  .navbar{
    height:58px;
  }

  .nav-inner{
    width:calc(100% - 25px);
  }

  .logo{
    font-size:16px;
  }

  .logo-k{
    font-size:25px;
  }

  .nav-menu{
    display:none;
  }

  .hero{
    min-height:300px;
    padding-top:35px;
  }

  .hero-symbol{
    width:90px;
    height:90px;
    font-size:48px;
  }

  .eyebrow{
    font-size:9px;
  }

  .hero h1{
    font-size:34px;
  }

  .hero p{
    font-size:12px;
  }

  main{
    width:calc(100% - 24px);
  }

  .about{
    padding:23px 18px;
  }

  .title h2{
    font-size:18px;
  }

  .title-bar{
    height:40px;
  }

  .about p{
    margin-left:0;
    font-size:12px;
    line-height:1.75;
  }

  .pillars{
    grid-template-columns:1fr;
  }

  .join-card{
    flex-direction:column;
    align-items:stretch;
    padding:20px;
  }

  .join-info{
    align-items:flex-start;
  }

  .join-text h2{
    font-size:18px;
  }

  .join-text p{
    font-size:11px;
  }

  .join-btn{
    width:100%;
    min-width:0;
  }

  .admin-grid{
    grid-template-columns:1fr 1fr;
  }

  .admin-card{
    padding:14px 12px;
  }

  .admin-name{
    font-size:12px;
  }

  .admin-number{
    font-size:9px;
  }

  .overlay{
    padding:12px;
  }

  .popup{
    width:100%;
  }
}

@media(max-width:390px){

  .admin-grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:29px;
  }

  .hero-symbol{
    width:80px;
    height:80px;
  }
}

/* ================= ANIMASI MASUK (POP DARI DALAM KE LUAR) ================= */

.reveal{
  opacity:0;
  transform:scale(.55);
}

.reveal.show{
  animation:popIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay:calc(var(--d,0) * 90ms);
}

@keyframes popIn{
  0%{opacity:0; transform:scale(.55);}
  65%{opacity:1; transform:scale(1.04);}
  100%{opacity:1; transform:scale(1);}
}

@media(prefers-reduced-motion: reduce){
  .reveal{
    opacity:1;
    transform:none;
  }
  .reveal.show{
    animation:none;
  }
}

/* ================= BADGE CENTANG BIRU ================= */

.name-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.badge{
  width:clamp(24px,5vw,38px);
  height:clamp(24px,5vw,38px);
  flex:none;
  overflow:visible;
}

.badge-shape{
  fill:#2f6fed;
  transform-box:fill-box;
  transform-origin:center;
  opacity:0;
}

.badge-check{
  fill:none;
  stroke:#fff;
  stroke-width:2.3;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:12;
  stroke-dashoffset:12;
}

.hero-content.show .badge-shape{
  animation:badgeSpinIn .6s cubic-bezier(.34,1.4,.64,1) forwards,
            wiggle 4.5s ease-in-out 1.2s infinite;
  animation-delay:.55s, 1.2s;
}

.hero-content.show .badge-check{
  animation:badgeCheckIn .3s ease forwards;
  animation-delay:1s;
}

@keyframes badgeSpinIn{
  0%{opacity:0; transform:rotate(-220deg) scale(.2);}
  70%{opacity:1;}
  100%{opacity:1; transform:rotate(0deg) scale(1);}
}

@keyframes badgeCheckIn{
  to{stroke-dashoffset:0;}
}

@keyframes wiggle{
  0%,85%,100%{transform:rotate(0deg);}
  90%{transform:rotate(-8deg);}
  95%{transform:rotate(8deg);}
}

@media(prefers-reduced-motion: reduce){
  .badge-shape,
  .badge-check{
    animation:none !important;
    opacity:1 !important;
    stroke-dashoffset:0 !important;
  }
}

/* ================= LOGO IMAGE (kz.png) ================= */
.loader-logo img,
.logo-k img{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  display:block;
}

.loader-logo{
  width:40px;
  height:40px;
}
