:root {
  --ink: #101522;
  --muted: #667085;
  --line: #e8e8ef;
  --purple: #5b2eff;
  --soft: #f8f7ff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfbfe;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: calc(100% - 28px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   HEADER — MOBILE FIRST
   ===================================================== */

.site-header {
  position: relative;
  z-index: 1000;

  min-height: 70px;
  margin-top: 14px;
  margin-bottom: 14px;

  padding: 10px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(26, 21, 50, .05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  display: grid;
  place-items: center;

  background: #111827;
  color: #fff;

  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.brand b {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand b span {
  color: var(--purple);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* Desktop navigation HIDDEN by default */
.desktop-nav {
  display: none;
}

/* Hamburger SHOWN by default */
.menu {
  display: flex;

  width: 44px;
  height: 44px;
  padding: 8px;

  flex: 0 0 44px;

  border: 0;
  background: transparent;

  cursor: pointer;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu span {
  display: block;

  width: 24px;
  height: 2px;

  background: var(--ink);
  border-radius: 3px;

  transition: transform .2s ease, opacity .2s ease;
}

.menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu.active span:nth-child(2) {
  opacity: 0;
}

.menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu HIDDEN by default */
.mobile-menu-panel {
  position: fixed;

  top: 92px;
  left: 14px;
  right: 14px;

  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 14px;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;

  box-shadow: 0 20px 50px rgba(16, 21, 34, .15);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-10px);

  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s ease;
}

.mobile-menu-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-panel a {
  display: block;

  padding: 14px 16px;

  border-radius: 12px;

  color: var(--ink);
  font-weight: 700;
}

.mobile-menu-panel a:hover {
  background: var(--soft);
  color: var(--purple);
}

.mobile-menu-panel .mobile-contact {
  margin-top: 6px;

  background: var(--purple);
  color: #fff;

  text-align: center;
}

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

main {
  width: 100%;
}

.hero {
  width: calc(100% - 28px);
  max-width: 1200px;

  margin: 18px auto 0;

  padding: 35px 22px;

  display: flex;
  flex-direction: column;

  background: linear-gradient(120deg, #fff, #f8f6ff);

  border: 1px solid var(--line);
  border-radius: 26px;
}

.hero small,
.page-head small,
.eyebrow {
  color: var(--purple);
  letter-spacing: .16em;
  font-weight: 900;
  font-size: 12px;
}

.hero h1 {
  margin: 18px 0 14px;

  font-size: clamp(44px, 13vw, 78px);
  line-height: .95;
  letter-spacing: -.05em;
}

.hero h1 span {
  color: var(--purple);
}

.hero h2 {
  margin: 0 0 18px;

  color: var(--muted);
  font-size: 21px;
}

.hero p {
  margin: 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 25px;
}

.btn {
  display: inline-block;

  padding: 12px 17px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: #fff;

  font-weight: 800;
}

.btn.primary,
.contact {
  background: var(--purple);
  color: #fff;

  border-radius: 12px;
  padding: 12px 18px;

  font-weight: 800;
}

.hero-logo {
  width: min(220px, 70vw);
  height: min(220px, 70vw);

  margin: 40px auto 0;

  display: grid;
  place-items: center;

  border: 12px solid var(--purple);
  border-radius: 50%;

  background: #fff;

  color: var(--purple);
  font-size: 52px;
  font-weight: 900;

  box-shadow: 0 20px 60px rgba(91, 46, 255, .16);
}

/* =====================================================
   SECTIONS
   ===================================================== */

.section {
  width: calc(100% - 28px);
  max-width: 1200px;

  margin: 20px auto 0;

  padding: 22px 18px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;

  font-size: 24px;
}

.section-title a {
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
}

/* Mobile = 1 column */
.grid,
.four,
.five,
.cards {
  display: grid;

  grid-template-columns: 1fr;

  gap: 16px;
}

.card {
  min-width: 0;

  overflow: hidden;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 16px;

  box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
}

.card img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;

  background: var(--soft);
}

.card div {
  padding: 14px;
}

.card h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.card p {
  margin: 0 0 7px;

  color: var(--purple);

  font-size: 13px;
  font-weight: 800;
}

.card small {
  color: var(--muted);
}

/* =====================================================
   LIST / ARTICLE
   ===================================================== */

.page-head {
  width: calc(100% - 28px);
  max-width: 1200px;

  margin: auto;

  padding: 45px 0 25px;
}

.page-head h1 {
  margin: 10px 0;

  font-size: clamp(40px, 10vw, 52px);
  line-height: 1.05;
}

.page-head p {
  color: var(--muted);
  font-size: 17px;
}

.article {
  width: calc(100% - 28px);
  max-width: 900px;

  margin: auto;

  padding: 40px 0 70px;
}

.article h1 {
  margin: 12px 0;

  font-size: clamp(40px, 10vw, 54px);
  line-height: 1.05;
}

.lead {
  color: var(--muted);

  font-size: 18px;
  line-height: 1.7;
}

.hero-img {
  width: 100%;
  max-height: 500px;

  margin: 25px 0;

  object-fit: cover;

  border-radius: 18px;
}

.article-body {
  font-size: 17px;
  line-height: 1.8;
}

.article-body img {
  max-width: 100%;
  height: auto;

  margin: 20px 0;

  border-radius: 16px;
}

.article-body h2 {
  margin-top: 40px;
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;

  padding: 18px;

  background: #111827;
  color: #fff;

  border-radius: 14px;
}

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

.about {
  width: calc(100% - 28px);
  max-width: 1200px;

  margin: auto;

  padding: 45px 0;

  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
}

.about h1 {
  font-size: clamp(40px, 10vw, 56px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.about-grid > div {
  padding: 20px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 16px;
}

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

.footer {
  width: calc(100% - 28px);
  max-width: 1200px;

  margin: 25px auto 20px;

  padding: 28px 20px;

  background: #f6f3ff;

  border: 1px solid var(--line);
  border-radius: 22px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer p {
  color: var(--muted);
  line-height: 1.6;
}

.footer a {
  display: block;
  margin: 10px 0;
}

.footer input {
  width: 100%;

  padding: 12px;

  border: 1px solid var(--line);
  border-radius: 10px;
}

.footer button {
  width: 100%;

  margin-top: 8px;
  padding: 12px;

  border: 0;
  border-radius: 10px;

  background: var(--purple);
  color: #fff;

  font-weight: 800;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 28px;
  padding-top: 18px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 13px;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (min-width: 600px) {

  .four {
    grid-template-columns: repeat(2, 1fr);
  }

  .five {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

}

/* =====================================================
   DESKTOP
   ===================================================== */

@media (min-width: 801px) {

  .wrap {
    width: calc(100% - 48px);
  }

  .site-header {
    min-height: 76px;

    margin-top: 18px;
    margin-bottom: 22px;

    padding: 12px 18px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand b {
    font-size: 20px;
  }

  /* Desktop navigation muncul */
  .desktop-nav {
    display: flex;

    align-items: center;
    gap: 28px;

    font-size: 14px;
  }

  /* Hamburger hilang */
  .menu {
    display: none;
  }

  /* Mobile menu benar-benar hilang */
  .mobile-menu-panel {
    display: none !important;
  }

  .hero {
    width: calc(100% - 48px);

    padding: 58px;

    display: grid;
    grid-template-columns: 1.1fr .9fr;

    align-items: center;

    min-height: 430px;
  }

  .hero-logo {
    width: 300px;
    height: 300px;

    margin: auto;

    font-size: 72px;
  }

  .section {
    width: calc(100% - 48px);

    padding: 28px;
  }

  .four {
    grid-template-columns: repeat(4, 1fr);
  }

  .five {
    grid-template-columns: repeat(5, 1fr);
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-head,
  .about {
    width: calc(100% - 48px);
  }

  .about {
    padding: 65px 0;

    grid-template-columns: 1fr 380px;

    gap: 70px;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer {
    width: calc(100% - 48px);

    padding: 34px 28px;
  }

  .footer-main {
    grid-template-columns: 1.4fr .7fr .9fr 1.1fr;

    gap: 35px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

}

/* =====================================================
   FINAL MOBILE MENU FIX
   ===================================================== */

.mobile-menu-panel {
  display: none !important;
}

.mobile-menu-panel.open {
  display: flex !important;
}

@media (max-width: 800px) {

  .site-header {
    position: relative;
    z-index: 1000;
  }

  .menu {
    display: flex !important;
    position: relative;
    z-index: 1002;
  }

  .mobile-menu-panel {
    display: none !important;
    position: relative;
    z-index: 999;
    width: calc(100% - 20px);
    margin: 10px auto 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8e8ef;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(16, 21, 34, .10);
    flex-direction: column;
    gap: 6px;
  }

  .mobile-menu-panel.open {
    display: flex !important;
  }

  .mobile-menu-panel a {
    display: block;
    width: 100%;
    padding: 16px 14px;
    color: #101522;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
  }

  .mobile-menu-panel a:hover {
    background: #f3efff;
    color: #5b2eff;
  }

  .mobile-menu-panel .mobile-contact {
    margin-top: 10px;
    background: #5b2eff;
    color: #ffffff;
    text-align: center;
  }
}

/* Desktop: mobile menu harus selalu tersembunyi */
@media (min-width: 801px) {
  .mobile-menu-panel {
    display: none !important;
  }
}

/* YouTube responsive embed */
.youtube-wrap{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  margin:24px 0;
  overflow:hidden;
  border-radius:16px;
  background:#000;
}

.youtube-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

@media(max-width:700px){
  .youtube-wrap{
    margin:18px 0;
    border-radius:12px;
  }
}

/* =====================================================
   GLOBAL SINGLE LOGO
   The logo is loaded only from data/site-settings.json
   and reused by header, footer and About/Home.
   ===================================================== */
.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.hero-logo-image {
  width: min(220px, 70vw);
  height: min(220px, 70vw);
  margin: 40px auto 0;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
