:root {
  --biru: #1e64b4;
  --biru-terang: #1482dc;
  --biru-gelap: #0f3f7a;
  --biru-sangat-terang: #e8f1fb;
  --teks: #1c2530;
  --teks-lembut: #5b6b7c;
  --latar: #ffffff;
  --latar-alt: #f3f7fc;
  --garis: #dfe8f2;
  --putih: #ffffff;
  --shadow: 0 12px 30px rgba(20, 60, 120, 0.12);
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--teks);
  background: var(--latar);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--garis);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--teks);
}

.brand-text strong {
  color: var(--biru);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-weight: 500;
  color: var(--teks-lembut);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--biru-terang);
}

.nav-back {
  color: var(--biru) !important;
  font-weight: 600;
}

.nav-back:hover {
  color: var(--biru-terang) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--garis);
  border-radius: 8px;
  font-size: 22px;
  padding: 4px 12px;
  cursor: pointer;
  color: var(--teks);
}

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(900px 380px at 80% -50%, #d9ecff 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef5fd 100%);
  padding: 70px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--biru-terang);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--biru);
}

.hero-sub {
  color: var(--teks-lembut);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn-icon {
  height: 18px;
  width: 18px;
}

.btn-primary {
  background: var(--biru);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 100, 180, 0.3);
}

.btn-primary:hover {
  background: var(--biru-terang);
  transform: translateY(-2px);
}

.btn-ghost {
  background: #fff;
  color: var(--biru);
  border: 1px solid var(--garis);
}

.btn-ghost:hover {
  border-color: var(--biru-terang);
  color: var(--biru-terang);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.hero-tags {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--teks-lembut);
  font-size: 14px;
}

/* Hero card (mock UI) */
.hero-art {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-logo {
  height: 44px;
  width: auto;
}

.hero-card-head strong {
  display: block;
  font-size: 15px;
}

.hero-card-head span {
  font-size: 13px;
  color: var(--teks-lembut);
}

.hero-progress {
  position: relative;
  height: 30px;
  background: #eef2f7;
  border: 1px solid var(--garis);
  border-radius: 8px;
  overflow: hidden;
}

/* Hero jam digital (mock UI) */
.hero-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 8px;
  margin-bottom: 16px;
  background: var(--biru-sangat-terang);
  border: 1px solid var(--garis);
  border-radius: 12px;
}

.hero-clock-time {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--biru-gelap);
}

.hero-clock-date {
  font-size: 14px;
  color: var(--teks-lembut);
}

.hero-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--biru-terang), #39a0ff);
  border-radius: 7px 0 0 7px;
}

.hero-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #1c2530;
}

.hero-progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--teks-lembut);
  font-size: 13px;
  margin-top: 8px;
}

/* ============ SEKSYEN ============ */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--latar-alt);
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--teks-lembut);
  max-width: 620px;
  margin: 0 auto 44px;
}

/* ============ CIRI ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--biru-sangat-terang);
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--teks-lembut);
  font-size: 15px;
}

/* ============ LOGIK ============ */
.logic-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--biru);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  color: var(--teks-lembut);
  font-size: 14px;
}

.step code {
  background: var(--biru-sangat-terang);
  color: var(--biru-gelap);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}

.logic-status {
  margin-top: 36px;
  text-align: center;
}

.logic-status h3 {
  margin-bottom: 16px;
}

.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.chip-queued { background: #f0f0f0; color: #555; border-color: #ddd; }
.chip-downloading { background: #e6f6e6; color: #1c7a1c; border-color: #bce3bc; }
.chip-paused { background: #fff4e0; color: #b87400; border-color: #f2ddb2; }
.chip-completed { background: #e6eeff; color: #1e3f9e; border-color: #c4d4f5; }
.chip-error { background: #fdeaea; color: #c02828; border-color: #f0c2c2; }
.chip-stopped { background: #eceff3; color: #66707a; border-color: #d5dbe2; }

/* ============ DEMO ============ */
.demo-window {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f5f8fc;
  border-bottom: 1px solid var(--garis);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #fc625d; }
.dot-yellow { background: #fdbc40; }
.dot-green { background: #35cd4b; }

.demo-title {
  margin-left: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--teks);
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--garis);
}

.demo-btn {
  font-size: 13px;
  padding: 6px 12px;
  background: #f5f8fc;
  border: 1px solid var(--garis);
  border-radius: 7px;
  color: var(--teks-lembut);
  cursor: default;
  user-select: none;
}

.demo-btn-active {
  background: var(--biru);
  border-color: var(--biru);
  color: #fff;
}

.demo-grid-header,
.demo-row {
  display: grid;
  grid-template-columns: 40px 2fr 1.2fr 1fr 1fr 1.6fr;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.demo-grid-header {
  background: var(--biru);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding-top: 9px;
  padding-bottom: 9px;
}

.demo-row {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--garis);
  font-size: 13px;
}

.demo-row:nth-child(odd) {
  background: #fafcff;
}

.demo-row .no { color: var(--teks-lembut); }
.demo-row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-row .size,
.demo-row .speed { color: var(--teks-lembut); }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.progress-wrap {
  position: relative;
  height: 16px;
  background: #eef2f7;
  border: 1px solid var(--garis);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--biru-terang), #39a0ff);
  border-radius: 5px 0 0 5px;
  transition: width 0.2s linear;
}

.progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.demo-statusbar {
  padding: 10px 16px;
  background: #f5f8fc;
  border-top: 1px solid var(--garis);
  font-size: 13px;
  font-weight: 600;
  color: var(--teks-lembut);
}

/* ============ MUAT TURUN ============ */
.download-inner {
  display: flex;
  justify-content: center;
}

.download-card {
  text-align: center;
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
}

.download-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.download-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.download-card p {
  color: var(--teks-lembut);
  margin-bottom: 24px;
}

.download-note {
  font-size: 13px;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--biru-gelap);
  color: #d8e4f2;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer p {
  font-size: 14px;
}

/* ============ RESPONSIF ============ */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logic-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-grid-header,
  .demo-row {
    grid-template-columns: 32px 2fr 1.2fr 1fr 1fr;
  }

  .demo-grid-header span:nth-child(6),
  .demo-row .progress-wrap {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--garis);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    border-top: 1px solid var(--garis);
  }

  .nav-toggle {
    display: block;
  }

  .features-grid,
  .logic-steps {
    grid-template-columns: 1fr;
  }

  .demo-grid-header,
  .demo-row {
    grid-template-columns: 28px 2fr 1fr;
  }

  .demo-grid-header span:nth-child(4),
  .demo-grid-header span:nth-child(5),
  .demo-row .speed,
  .demo-row .status-pill {
    display: none;
  }
}