/* ============================================================
   NusaKey — Dark Modern (soft)
   Prinsip:
     · Charcoal berlapis, BUKAN hitam pekat
     · Satu aksen lembut, tanpa gradient
     · Sudut membulat tipis (8–16px)
     · Bayangan halus, bukan glow
     · Font modern: Space Grotesk + Plus Jakarta Sans
   ============================================================ */

/* ---------- 1. Token : gelap ---------- */
:root {
  --bg:         #101218;
  --bg-2:       #14171E;
  --surface:    #181B23;
  --surface-2:  #1E222B;

  --ink:        #E9ECF2;
  --ink-soft:   #9BA3B4;
  --ink-faint:  #7C8398;

  --rule:       rgba(255, 255, 255, 0.09);
  --rule-soft:  rgba(255, 255, 255, 0.05);

  --accent:      #7C86F0;
  --accent-soft: rgba(124, 134, 240, 0.12);
  --accent-ink:  #0E1016;

  --ok:   #5FD39A;
  --warn: #E5B567;
  --err:  #E8756B;

  --display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* ---------- 2. Token : terang ---------- */
[data-theme="light"] {
  --bg:         #F6F7F9;
  --bg-2:       #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #F1F3F6;

  --ink:        #14171E;
  --ink-soft:   #5A6273;
  --ink-faint:  #656D7F;

  --rule:       rgba(20, 23, 30, 0.10);
  --rule-soft:  rgba(20, 23, 30, 0.06);

  --accent:      #4F5AD6;
  --accent-soft: rgba(79, 90, 214, 0.10);
  --accent-ink:  #FFFFFF;

  --ok:   #2F9E6E;
  --warn: #B07A1E;
  --err:  #C4453B;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.10);
}

/* ---------- 3. Dasar ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a { color: inherit; }

/* Label kecil mono */
.kicker,
.section-num,
.plan-num,
.plan-tag,
.faq-num,
.fact dt,
.block-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- 4. Navigasi ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}

.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: filter 0.15s var(--ease);
}

.nav-cta:hover { filter: brightness(1.1); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- 5. Hero ---------- */
.hero { padding: 80px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.hero-aside { padding-top: 6px; }

.hero-aside .kicker {
  display: block;
  padding-bottom: 9px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--rule);
}

/* Tanpa garis sendiri — biar sejajar dengan garis kicker di kolom utama */
.hero-aside-note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 22px;
}

.kicker-rule {
  display: inline-block;
  padding-bottom: 9px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), filter 0.15s var(--ease);
}

.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-faint); }

/* Pita fakta */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact {
  background: var(--bg);
  padding: 22px 24px;
}

.fact dt { display: block; margin-bottom: 6px; }

.fact dd {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ---------- 6. Kepala seksi ---------- */
section { padding: 88px 0; }

.pricing-section {
  background: var(--bg-2);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color 0.3s var(--ease);
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 56px;
  align-items: start;
  margin-bottom: 52px;
}

.section-num {
  display: block;
  padding-top: 6px;
}

/* Judul + catatan menempati kolom kanan; catatan turun ke bawah judul */
.section-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-note {
  grid-column: 2;
  grid-row: 2;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- 7. Harga — kartu ---------- */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* Tanpa align-items:start — kartu dipaksa sama tinggi,
     supaya .plan-aside (flex:1) mendorong tombol rata ke bawah */
}

.plan {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.plan:hover {
  border-color: var(--ink-faint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.plan-lead {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.plan-lead:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.plan-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.plan-tag {
  color: var(--accent);
  align-self: flex-start;
}

.plan-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 20px;
}

.plan-specs dt { margin-bottom: 3px; }

.plan-specs dd {
  font-size: 0.94rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.plan-price {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.plan-price .cur {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.plan-aside {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
  flex: 1;
}

.plan-btn {
  width: 100%;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), filter 0.15s var(--ease);
}

.plan-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.plan-btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-faint); }

.plan-btn-solid { background: var(--accent); color: var(--accent-ink); }
.plan-btn-solid:hover { filter: brightness(1.1); }

.footnote {
  margin-top: 24px;
  font-size: 0.87rem;
  color: var(--ink-faint);
  max-width: 64ch;
}

.footnote a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 8. Tanya jawab ---------- */
.faq-list { max-width: 780px; }

.faq-item {
  border-bottom: 1px solid var(--rule-soft);
}

.faq-item:first-child { border-top: 1px solid var(--rule-soft); }

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 18px;
  align-items: center;
  background: none;
  border: none;
  padding: 20px 4px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s var(--ease);
}

.faq-q:hover { background: var(--surface); }

.faq-text {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.faq-q:hover .faq-text { color: var(--accent); }

.faq-num { transition: color 0.15s var(--ease); }
.faq-q:hover .faq-num { color: var(--accent); }

/* Ikon plus/minus */
.faq-icon { position: relative; width: 14px; height: 14px; justify-self: end; color: var(--ink-faint); }

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.faq-icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }

.faq-item.open .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-item.open .faq-icon { color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 62px;
  padding-right: 40px;
  transition: max-height 0.3s var(--ease), padding-bottom 0.3s var(--ease);
}

.faq-item.open .faq-a { max-height: 420px; padding-bottom: 24px; }

.faq-a a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 9. Kaki ---------- */
footer {
  border-top: 1px solid var(--rule-soft);
  background: var(--bg-2);
  transition: background-color 0.3s var(--ease);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.footer-mark {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin-left: auto;
}

.footer-links a {
  font-size: 0.87rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}

.footer-links a:hover { color: var(--ink); }

.footer-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- 10. Responsif ---------- */
@media (max-width: 960px) {
  .price-cards { grid-template-columns: 1fr; gap: 16px; }
  .plan-lead { order: -1; }
}

@media (max-width: 900px) {
  .hero-grid,
  .section-head { grid-template-columns: 1fr; gap: 24px; }

  .hero-aside-note { border-top: none; padding-top: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; gap: 14px; }

  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--rule);
    padding: 20px;
    gap: 4px;
    margin-left: 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open a { padding: 10px 0; display: block; }

  .nav-cta { padding: 8px 14px; font-size: 0.82rem; }

  /* Target sentuh minimum 44px */
  .theme-toggle { width: 44px; height: 44px; }
  .menu-toggle { min-height: 44px; }

  .hero { padding: 48px 0 56px; }
  .hero-cta .btn { flex: 1; }

  .facts { grid-template-columns: 1fr 1fr; margin-top: 44px; }

  section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  .plan { padding: 24px 20px; }
  .plan-specs { grid-template-columns: 1fr 1fr; gap: 12px 16px; }

  .faq-q { grid-template-columns: 34px 1fr 20px; gap: 12px; padding: 18px 2px; }
  .faq-text { font-size: 1rem; }
  .faq-a { padding-left: 48px; padding-right: 8px; }

  .footer-inner { flex-wrap: wrap; gap: 16px; }
  .footer-links { margin-left: 0; flex-wrap: wrap; gap: 16px; }
}

/* ---------- 11. Aksesibilitas ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
