/* ============================================================
   ATVPEDIA — tema cyan + biru + ungu (ala gmdp.net.id)
   ============================================================ */

:root {
  --acc: #0ea5e9;          /* cyan */
  --acc-2: #38bdf8;
  --acc-dark: #137fec;     /* biru - teks aksen */
  --acc-deep: #0369a1;
  --acc-soft: rgba(14, 165, 233, 0.10);
  --acc-soft-2: rgba(14, 165, 233, 0.16);
  --acc-glow: rgba(19, 127, 236, 0.28);

  /* navy → ungu */
  --forest: #0f172a;
  --forest-2: #16213e;
  --forest-deep: #10182f;

  --ink: #0f172a;          /* judul */
  --body: #64748b;         /* teks isi */
  --muted: #64748b;
  --line: #e5edf5;
  --bg: #ffffff;
  --bg-soft: #f6fafd;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.14);
  --grad-acc: linear-gradient(135deg, #00aeef 0%, #137fec 45%, #7c3aed 100%);
  --grad-dark: linear-gradient(160deg, #0f172a 0%, #141f3e 55%, #251348 100%);
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Rubik", "Open Sans", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--body);
  font-size: 1rem;
  line-height: 1.625;
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.2px;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }

/* ---------- aksen umum ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc-dark);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--acc);
  border-radius: 999px;
}
.eyebrow.on-dark { color: var(--acc); }
.eyebrow.on-dark::before { background: var(--acc); }

.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after {
  content: ""; width: 26px; height: 3px;
  background: var(--acc); border-radius: 999px;
}
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--muted); max-width: 58ch; margin-left: auto; margin-right: auto; }

/* judul grup layanan */
.service-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 22px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.service-group + .service-grid { margin-bottom: 48px; }
.sg-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-acc);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 20px var(--acc-glow);
  flex-shrink: 0;
}

/* ---------- tombol ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button.large { padding: 15px 34px; font-size: 1rem; }
.button.accent { background: var(--grad-acc); color: #fff; box-shadow: 0 10px 26px var(--acc-glow); }
.button.accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--acc-glow); background: linear-gradient(135deg, #0092d6 0%, #0f63d0 50%, #6d28d9 100%); }
.button.ghost { background: rgba(255, 255, 255, 0.65); color: #0f172a; border-color: rgba(15, 23, 42, 0.22); }
.button.ghost:hover { background: #0f172a; color: #fff; border-color: #0f172a; }

/* ============================================================
   TOPBAR
   ============================================================ */
.site-topbar {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}
.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-hotline { display: flex; align-items: center; gap: 8px; }
.topbar-hotline svg { width: 16px; height: 16px; fill: var(--acc); }
.topbar-hotline a { color: #fff; font-weight: 700; }
.topbar-hotline a:hover { color: var(--acc); }
.topbar-social { display: flex; align-items: center; gap: 6px; }
.topbar-social a {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.topbar-social a:hover { background: var(--acc); color: #06231a; }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(11, 34, 74, 0.10); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { display: block; height: 48px; width: auto; max-width: 66vw; object-fit: contain; }
.brand-mark { display: block; width: 44px; height: 44px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink);
}
.brand-text small { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.02em; }

.main-nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #303030;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.menu > li > a:hover,
.menu > li > a.active { color: var(--acc-dark); }
.menu > li > a.active { background: var(--acc-soft); }

.caret {
  width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform 0.18s ease;
}
.has-sub:hover > a .caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--acc);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.9rem;
  color: #4a5b73;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease, padding-left 0.15s ease;
}
.sub-menu a:hover { color: var(--acc-dark); background: var(--acc-soft); padding-left: 16px; }
.sub-menu--wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 560px; gap: 4px; }
.sub-col { display: flex; flex-direction: column; }
.sub-head {
  padding: 10px 12px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--acc-dark);
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.search-toggle,
.nav-toggle {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  color: var(--ink);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.search-toggle:hover { background: var(--acc-soft); color: var(--acc-dark); }
.search-toggle svg { width: 21px; height: 21px; fill: currentColor; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.search-panel {
  overflow: hidden;
  max-height: 0;
  background: #fff;
  border-top: 1px solid transparent;
  transition: max-height 0.25s ease, border-color 0.25s ease;
}
.search-panel.open { max-height: 120px; border-top-color: var(--line); }
.search-form { display: flex; align-items: center; gap: 10px; padding: 16px 24px 20px; }
.search-form input {
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.search-form input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.search-form button {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-acc);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px var(--acc-glow);
}
.search-form button svg { width: 20px; height: 20px; fill: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  color: var(--ink);
  background: linear-gradient(160deg, #eaf5ff 0%, #f4faff 45%, #eef3ff 100%);
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(46% 52% at 84% 14%, rgba(56, 189, 248, 0.40) 0%, rgba(56, 189, 248, 0) 70%),
    radial-gradient(38% 46% at 10% 88%, rgba(131, 58, 180, 0.20) 0%, rgba(131, 58, 180, 0) 70%),
    radial-gradient(32% 42% at 58% 96%, rgba(38, 209, 155, 0.20) 0%, rgba(38, 209, 155, 0) 70%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 80%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; }
.hero-copy h1 { color: #0f172a; margin-top: 18px; font-weight: 800; }
.hero-copy p { margin-top: 22px; font-size: 1.02rem; color: #475569; max-width: 58ch; }
.hero-copy p strong { color: #0f172a; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ============================================================
   LAYANAN
   ============================================================ */
.services { background: #fff; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.icon-box {
  position: relative;
  padding: 32px 24px 28px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.icon-box:hover {
  background: linear-gradient(180deg, #fff 0%, var(--acc-soft) 100%);
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(11, 34, 74, 0.15);
  z-index: 2;
}
.box-icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--acc-soft);
  color: var(--acc-dark);
  margin-bottom: 20px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s ease;
}
.box-icon svg { width: 36px; height: 36px; fill: currentColor; }
.icon-box:hover .box-icon {
  background: var(--grad-acc);
  color: #fff;
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 12px 26px var(--acc-glow);
}
.icon-box h3 { font-size: 1.14rem; line-height: 1.3; }
.icon-box p { margin-top: 12px; font-size: 0.9rem; flex: 1; }
.box-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  transition: color 0.16s ease;
}
.box-link span { transition: transform 0.16s ease; }
.box-link:hover { color: var(--acc-dark); }
.box-link:hover span { transform: translateX(4px); }

/* ============================================================
   KLIEN
   ============================================================ */
.clients { background: var(--bg-soft); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.client-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 64px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.client-chip::before { content: "✓"; font-weight: 900; color: var(--acc); flex-shrink: 0; }
.client-chip:hover { border-color: var(--acc); color: var(--acc-dark); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* ============================================================
   BLOG
   ============================================================ */
.blog { background: #fff; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #fbfdfe);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(34, 211, 238, 0.45); }
.post-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc-dark);
  background: var(--acc-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.post-card h3 { font-size: 1.08rem; line-height: 1.38; flex: 1; }
.post-more { margin-top: 18px; font-weight: 700; font-size: 0.88rem; color: var(--muted); transition: color 0.16s ease; }
.post-card:hover .post-more { color: var(--acc-dark); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  background: linear-gradient(120deg, #0ea5e9 0%, #137fec 45%, #7c3aed 100%);
  color: #fff;
  padding: 92px 0;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% -10%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 62%);
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; }
.cta-inner .eyebrow { justify-content: center; }
.cta-inner h2 { color: #fff; margin-top: 16px; font-weight: 800; }
.cta-inner p { margin: 20px auto 30px; color: rgba(255, 255, 255, 0.94); max-width: 58ch; }
.cta-inner .eyebrow.on-dark { color: #fff; }
.cta-inner .eyebrow.on-dark::before { background: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--grad-dark); color: #cbd5e1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--acc); border-radius: 2px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #cbd5e1; font-size: 0.9rem; transition: color 0.15s ease, padding-left 0.15s ease; }
.footer-col ul a:hover { color: var(--acc); padding-left: 4px; }

.brand-foot { margin-bottom: 20px; }
.brand-foot .brand-text strong { color: #fff; }
.footer-about p { font-size: 0.88rem; margin-bottom: 14px; line-height: 1.6; }
.footer-about p strong { color: #f1f5f9; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.footer-social a:hover { background: var(--acc); color: #06231a; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 64px;
  font-size: 0.82rem;
  color: #94a3b8;
}
.footer-note { display: inline-flex; align-items: center; gap: 8px; }
.footer-note .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--acc); box-shadow: 0 0 12px var(--acc-glow); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #0d9f4f);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 30px rgba(13, 159, 79, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(13, 159, 79, 0.5); }
.wa-float svg { width: 22px; height: 22px; fill: #fff; }
.wa-label { white-space: nowrap; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.icon-box.reveal.in { transition-delay: calc(var(--d, 0) * 0.06s); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .menu > li > a { padding: 10px 10px; font-size: 0.9rem; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-menu--wide { grid-template-columns: 1fr; min-width: 0; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(86vw, 380px);
    background: #fff;
    box-shadow: -24px 0 60px rgba(5, 18, 41, 0.22);
    padding: 88px 18px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 900;
  }
  .main-nav.open { transform: translateX(0); }
  .menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .menu > li > a {
    padding: 13px 12px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .menu > li > a.active { background: transparent; color: var(--acc-dark); }
  .caret { margin-left: auto; transition: transform 0.2s ease; }
  .has-sub.open > a .caret { transform: rotate(180deg); }

  .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 2px solid var(--acc);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .has-sub.open > .sub-menu { max-height: 80vh; }
  .sub-menu a { padding: 10px 12px; }

  .brand-text small { display: none; }
  .hero { padding: 72px 0 84px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .topbar-inner { justify-content: center; text-align: center; padding: 8px 0; }
  .topbar-social { display: none; }
  .topbar-hotline { font-size: 0.78rem; }
  .section { padding: 64px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 18px 36px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .hero-cta .button { flex: 1 1 auto; }
  .wa-label { display: none; }
  .wa-float { padding: 14px; }
}