/* KunciMu Apps — shared stylesheet
   Tema gelap, selaras dengan brand kuncimu.com */

:root {
  --bg-dark: hsl(224, 25%, 8%);
  --bg-card: hsla(224, 25%, 12%, 0.6);
  --bg-card-hover: hsla(224, 25%, 16%, 0.85);
  --border: hsla(225, 20%, 80%, 0.1);
  --border-strong: hsla(225, 20%, 80%, 0.2);

  --primary: hsl(280, 85%, 65%);
  --primary-hover: hsl(280, 95%, 70%);
  --primary-glow: hsla(280, 85%, 65%, 0.35);
  --accent: hsl(190, 90%, 55%);
  --gold: #d4af37;

  --text-main: hsl(220, 15%, 90%);
  --text-muted: hsl(220, 10%, 65%);
  --success: hsl(145, 80%, 50%);
  --warning: hsl(40, 90%, 60%);

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Background glow */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.glow-1 { width: 420px; height: 420px; background: var(--primary); top: -160px; left: -120px; }
.glow-2 { width: 380px; height: 380px; background: var(--accent); bottom: -180px; right: -140px; opacity: 0.25; }

/* Draft banner */
.draft-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  color: hsl(40, 90%, 80%);
  background: hsla(40, 90%, 55%, 0.12);
  border-bottom: 1px solid hsla(40, 90%, 55%, 0.25);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: hsla(224, 25%, 8%, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b0d14; font-weight: 800; font-size: 0.95rem;
}
.logo-accent { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: 0.92rem; color: var(--text-muted); }
.nav a:hover { color: var(--text-main); }

/* Hero */
.hero { position: relative; z-index: 1; padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 16px;
  background: linear-gradient(120deg, #fff 20%, var(--primary) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { max-width: 620px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }

/* Section */
.section { position: relative; z-index: 1; padding: 40px 0 72px; }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.app-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--bg-card-hover); }
.app-card-top { display: flex; align-items: center; gap: 14px; }
.app-mono {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
  color: #0b0d14;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.app-mono.motip { background: linear-gradient(135deg, hsl(280,85%,65%), hsl(320,85%,65%)); }
.app-mono.kiar  { background: linear-gradient(135deg, var(--accent), hsl(160,85%,55%)); }
.app-mono.web   { background: linear-gradient(135deg, var(--gold), hsl(30,90%,60%)); }
.app-card h3 { margin: 0; font-family: var(--font-heading); font-size: 1.2rem; }
.app-tagline { color: var(--text-muted); font-size: 0.92rem; margin: 2px 0 0; }
.app-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0; flex: 1; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-muted);
}
.badge.ok     { color: hsl(145,70%,70%); border-color: hsla(145,70%,50%,0.35); }
.badge.soon   { color: hsl(40,90%,72%);  border-color: hsla(40,90%,55%,0.35); }
.badge.android{ color: hsl(145,60%,72%); border-color: hsla(145,60%,50%,0.35); }
.badge.flutter{ color: hsl(200,85%,72%); border-color: hsla(200,85%,55%,0.35); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
  border: 1px solid var(--border-strong);
  transition: all 0.2s ease;
}
.btn:hover { border-color: var(--primary); color: var(--primary-hover); }
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b0d14; border: none;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.disabled { opacity: 0.5; pointer-events: none; }

/* Breadcrumb */
.breadcrumb { position: relative; z-index: 1; font-size: 0.88rem; color: var(--text-muted); padding: 26px 0 0; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* App detail header */
.app-header { position: relative; z-index: 1; padding: 24px 0 8px; display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.app-header .app-mono { width: 76px; height: 76px; border-radius: 20px; font-size: 1.7rem; }
.app-header-text { flex: 1; min-width: 240px; }
.app-header h1 { font-family: var(--font-heading); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 6px; }
.app-header .app-tagline { font-size: 1rem; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 8px; position: relative; z-index: 1; }
.tab {
  padding: 9px 18px; border-radius: 999px; font-size: 0.9rem;
  border: 1px solid var(--border); color: var(--text-muted);
}
.tab:hover { color: var(--text-main); border-color: var(--border-strong); }
.tab.active { color: #0b0d14; background: linear-gradient(135deg, var(--primary), var(--accent)); border: none; font-weight: 600; }

/* Meta table */
.meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 20px 0;
}
.meta div { background: var(--bg-dark); padding: 16px 18px; }
.meta dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 6px; }
.meta dd { margin: 0; font-weight: 600; font-size: 0.95rem; }
.meta code { font-size: 0.85rem; color: var(--accent); }

/* Prose / cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin: 18px 0;
}
.card h2 { font-family: var(--font-heading); font-size: 1.2rem; margin: 0 0 12px; }
.card h3 { font-family: var(--font-heading); font-size: 1.02rem; margin: 22px 0 8px; }
.card p, .card li { color: var(--text-muted); font-size: 0.95rem; }
.card ul { padding-left: 20px; margin: 8px 0; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: hsla(224, 25%, 14%, 0.7); border: 1px solid var(--border);
}
.feature-list .dot {
  flex: 0 0 auto; margin-top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: hsla(280, 85%, 65%, 0.18);
  color: var(--primary-hover); font-size: 0.8rem; font-weight: 700;
}
.feature-list strong { display: block; color: var(--text-main); font-size: 0.96rem; }
.feature-list span { color: var(--text-muted); font-size: 0.88rem; }

/* Screenshot placeholders */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.shot {
  aspect-ratio: 9 / 16; border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: hsla(224, 25%, 12%, 0.5);
  display: grid; place-items: center; text-align: center;
  color: var(--text-muted); font-size: 0.8rem; padding: 12px;
}

/* Footer */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 0; margin-top: 40px;
  color: var(--text-muted); font-size: 0.88rem;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 48px 0 28px; }
  .app-card-foot { flex-direction: column; align-items: stretch; }
}


/* ---------- Halaman kebijakan (policy) ---------- */
.policy-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; position: relative; z-index: 1; }
.toc {
  position: sticky; top: 84px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.toc h2 { font-family: var(--font-heading); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; list-style: decimal; }
.toc a { color: var(--text-muted); font-size: 0.87rem; }
.toc a:hover { color: var(--accent); }

.updated { display: inline-flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--text-muted); }
.updated-badge { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }

.summary {
  border-left: 3px solid var(--accent);
  background: hsla(190, 90%, 55%, 0.07);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
}
.summary strong { color: var(--text-main); }
.summary ul { margin: 8px 0 0; padding-left: 20px; }
.summary li { color: var(--text-muted); font-size: 0.92rem; }

.card.policy h2 { font-family: var(--font-heading); font-size: 1.14rem; margin: 34px 0 8px; scroll-margin-top: 92px; }
.card.policy h2:first-of-type { margin-top: 8px; }
.card.policy h3 { font-family: var(--font-heading); font-size: 1rem; margin: 20px 0 6px; color: var(--text-main); }
.card.policy p, .card.policy li { color: var(--text-muted); font-size: 0.94rem; }
.card.policy a { color: var(--accent); }
.card.policy ul, .card.policy ol { padding-left: 22px; }

.contact-list { list-style: none; padding: 0 !important; margin: 10px 0 0; display: grid; gap: 8px; }
.contact-list li { display: flex; gap: 10px; align-items: baseline; }
.contact-list .label { min-width: 84px; color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

.note {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-top: 18px;
  font-size: 0.88rem; color: var(--text-muted);
}

@media (max-width: 820px) {
  .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
