@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&family=JetBrains+Mono:wght@600;700&display=swap');

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

:root {
  --hitam: #000000;
  --putih: #ffffff;
  --merah: #e8000d;
  --kuning: #FFD600;
  --orange: #ff8c00;
  --biru: #1a1aff;
  --hijau: #1fbb00;
  --shadow: 5px 5px 0px var(--hitam);
  --shadow-lg: 7px 7px 0px var(--hitam);
  --border: 3px solid var(--hitam);
  --font: 'Nunito', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--putih);
  color: var(--hitam);
  overflow-x: hidden;
  width: 100%;
}

/* ── NAVBAR ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hitam);
  border-bottom: 3px solid var(--kuning);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--kuning);
  letter-spacing: -1px;
  line-height: 1;
}

.nav-logo-text span { color: var(--merah); }

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--putih);
  padding: 6px 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: all 0.15s;
}

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

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--kuning);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--hitam);
  border-top: 2px solid #222;
  padding: 12px 24px;
  gap: 4px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  color: var(--putih);
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.nav-mobile a:hover {
  border-left-color: var(--kuning);
  color: var(--kuning);
  background: #111;
}

/* ── HERO ── */
.hero {
  background: var(--kuning);
  border-bottom: var(--border);
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

.hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.3));
}

.hero-badge {
  display: inline-block;
  background: var(--merah);
  color: var(--putih);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border: 2px solid var(--hitam);
  border-radius: 99px;
  box-shadow: 3px 3px 0 var(--hitam);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.8rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--hitam);
  margin-bottom: 8px;
}

.hero h1 .fire { color: var(--merah); }

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 700;
  color: var(--hitam);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.5;
  opacity: 0.85;
}

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

/* ── BUTTON ── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 900;
  font-size: 1rem;
  padding: 14px 28px;
  border: var(--border);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(4px,4px); box-shadow: 1px 1px 0 var(--hitam); }

.btn-hitam { background: var(--hitam); color: var(--putih); }
.btn-putih { background: var(--putih); color: var(--hitam); }
.btn-kuning { background: var(--kuning); color: var(--hitam); }

/* ── INSTALL BAR ── */
.install-bar {
  background: var(--hitam);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-bottom: var(--border);
  width: 100%;
}

.install-code {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--kuning);
  background: #1a1a00;
  padding: 12px 20px;
  border: 2px solid var(--kuning);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--kuning);
  cursor: pointer;
  transition: all 0.1s;
  white-space: nowrap;
  overflow-x: auto;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.install-code::after { content: ' 📋'; font-size: 0.9rem; }
.install-code:hover { background: #2a2a00; }

.install-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #aaa;
}

.install-atau {
  font-size: 0.8rem;
  font-weight: 800;
  color: #555;
  letter-spacing: 0.1em;
}

/* ── SECTION BASE ── */
section {
  padding: 48px 20px;
  border-bottom: var(--border);
  width: 100%;
  box-sizing: border-box;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.section-eye {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--hitam);
  border-radius: 4px;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 580px;
}

/* ── KENAPA KOBAR ── */
.kenapa { background: var(--putih); }

.fitur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.fitur-card {
  background: var(--putih);
  border: var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.fitur-card:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }

.fitur-card:nth-child(1) { border-top: 6px solid var(--merah); }
.fitur-card:nth-child(2) { border-top: 6px solid var(--biru); }
.fitur-card:nth-child(3) { border-top: 6px solid var(--hijau); }
.fitur-card:nth-child(4) { border-top: 6px solid var(--orange); }
.fitur-card:nth-child(5) { border-top: 6px solid var(--kuning); }
.fitur-card:nth-child(6) { border-top: 6px solid var(--merah); }

.fitur-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.fitur-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 8px; }
.fitur-card p { font-size: 0.88rem; font-weight: 700; line-height: 1.5; opacity: 0.7; }

/* ── CODE SHOWCASE ── */
.showcase { background: var(--biru); color: var(--putih); }
.showcase .section-eye { color: var(--kuning); border-color: var(--kuning); }
.showcase .section-title { color: var(--putih); }
.showcase .section-desc { color: rgba(255,255,255,0.8); }

.code-tabs {
  display: flex;
  gap: 8px;
  margin: 32px 0 0;
  flex-wrap: wrap;
}

.code-tab {
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.15s;
}

.code-tab.active {
  background: var(--kuning);
  color: var(--hitam);
  border-color: var(--hitam);
  box-shadow: 3px 3px 0 var(--hitam);
}

.code-panel { display: none; margin-top: 16px; }
.code-panel.active { display: block; }

.code-block {
  background: #0a0a1a;
  border: 3px solid var(--kuning);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--hitam);
  overflow: hidden;
}

.code-header {
  background: #111133;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #222244;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: var(--merah); }
.dot-y { background: var(--kuning); }
.dot-g { background: var(--hijau); }

.code-filename { font-family: var(--mono); font-size: 0.8rem; color: #888; margin-left: 8px; }

.code-block pre {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #e0e0ff;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.c-kw  { color: #ff79c6; }
.c-fn  { color: #FFD600; }
.c-str { color: #1fbb00; }
.c-cm  { color: #666; font-style: italic; }
.c-acc { color: #ff8c00; }
.c-num { color: #e8000d; }

/* ── DSL CHEATSHEET ── */
.dsl { background: var(--kuning); }
.dsl .section-eye { background: var(--hitam); color: var(--kuning); }

.dsl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.dsl-item {
  background: var(--putih);
  border: var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.dsl-label {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  border: 2px solid var(--hitam);
}

.dsl-label.merah  { background: var(--merah);  color: #fff; }
.dsl-label.biru   { background: var(--biru);   color: #fff; }
.dsl-label.hijau  { background: var(--hijau);  color: #fff; }
.dsl-label.orange { background: var(--orange); color: #000; }

.dsl-item code {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--hitam);
  word-break: break-all;
}

/* ── INSTALL STEPS ── */
.install { background: var(--merah); color: var(--putih); }
.install .section-eye { color: var(--hitam); border-color: var(--hitam); background: var(--kuning); }
.install .section-title { color: var(--putih); }

.install-steps { display: grid; gap: 16px; margin-top: 36px; width: 100%; }

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.step-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--kuning);
  line-height: 1;
  min-width: 40px;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--putih);
  margin-bottom: 8px;
}

.step-content code {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0,0,0,0.3);
  color: var(--kuning);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.step-content p {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  line-height: 1.5;
}

.install-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: var(--hitam);
  color: var(--putih);
  padding: 40px 24px;
  text-align: center;
  border-top: 3px solid var(--kuning);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--kuning);
  letter-spacing: -1px;
}

.footer-logo-text span { color: var(--merah); }

footer p {
  font-size: 0.85rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--putih);
  padding: 8px 16px;
  border: 2px solid #333;
  border-radius: 8px;
  transition: all 0.15s;
}

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

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--hijau);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: 3px solid var(--hitam);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 999;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width: 480px){
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 36px 16px 36px; }
  section { padding: 36px 16px; }
  .hero h1 { letter-spacing: -1.5px; }
  .install-bar { flex-direction: column; text-align: center; padding: 16px; }
  .fitur-grid { grid-template-columns: 1fr; }
  .dsl-grid { grid-template-columns: 1fr; }
  .step-num { font-size: 1.4rem; min-width: 30px; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
}
