/* =========================================================
   JagoBelajar — Global Stylesheet  v2
   Mobile-first · Inter font · No heavy animations
   Colors: purple #7C3AED, teal #2DD4BF, orange #FB923C, yellow #FCD34D
   ========================================================= */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #7C3AED;
  --purple-light: #ede9fe;
  --purple-mid: #a78bfa;
  --purple-dark: #5b21b6;
  --teal: #2DD4BF;
  --teal-light: #ccfbf1;
  --orange: #FB923C;
  --orange-light: #ffedd5;
  --yellow: #FCD34D;
  --yellow-light: #fef9c3;
  --text: #18181b;
  --text-muted: #6b7280;
  --text-sub: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #faf9ff;
  --bg-warm: #fffbf5;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --max-width: 900px;
  --nav-h: 64px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 4px 16px rgba(0, 0, 0, .07);
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Fade-in on scroll ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--purple);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-link.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.nav-link:hover {
  color: var(--purple);
  text-decoration: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn-outline:hover {
  background: var(--purple-light);
}

/* ---- Section base ---- */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 580px;
}

/* ===========================
   HERO
=========================== */
.hero-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-logo-wrap {
    flex: 0 0 200px;
  }
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.85rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

@media (max-width: 699px) {
  .hero-logo-img {
    width: 120px;
    height: 120px;
  }
}

/* ===========================
   FEATURES
=========================== */
.features-section {
  background: var(--bg);
}

/* Featured cards (with illustrations) */
.features-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .features-featured {
    grid-template-columns: 1fr;
  }
}

.feature-card-featured {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.feature-card-featured-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--purple-light);
}

.feature-card-featured-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.feature-card-featured-emoji {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  display: block;
}

.feature-card-featured-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.feature-card-featured-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Small feature cards (no illustration) */
.features-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .features-small {
    grid-template-columns: 1fr;
  }
}

.feature-card-small {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-card-small-emoji {
  font-size: 1.5rem;
  display: block;
}

.feature-card-small-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card-small-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   LAYERS / HOW IT WORKS
=========================== */
.layers-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.layers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .layers-grid {
    grid-template-columns: 1fr;
  }
}

.layer-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  position: relative;
}

.layer-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--border);
  position: absolute;
  top: 0.6rem;
  right: 0.85rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.layer-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.55rem;
  border-radius: 99px;
  margin-bottom: 0.6rem;
}

.layer-card:nth-child(1) .layer-badge {
  background: var(--purple-light);
  color: var(--purple-dark);
}

.layer-card:nth-child(2) .layer-badge {
  background: var(--teal-light);
  color: #0d9488;
}

.layer-card:nth-child(3) .layer-badge {
  background: var(--orange-light);
  color: #c2410c;
}

.layer-card:nth-child(4) .layer-badge {
  background: var(--yellow-light);
  color: #92400e;
}

.layer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.layer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.ocr-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  line-height: 1.7;
}

/* ===========================
   BUILD STATUS
=========================== */
.status-section {
  background: var(--bg);
}

.status-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .status-cols {
    grid-template-columns: 1fr;
  }
}

.status-col {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.status-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-col-title.done {
  color: #059669;
}

.status-col-title.wip {
  color: #d97706;
}

.status-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}

.status-list.done-list li::before {
  content: "✅";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 0.1em;
}

.status-list.wip-list li {
  font-style: italic;
}

.status-list.wip-list li::before {
  content: "⚠️";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 0.1em;
}

.status-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--border);
  padding-left: 0.85rem;
}

/* ===========================
   WHY
=========================== */
.why-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-inner {
  max-width: 660px;
}

.why-quote {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  border-left: 4px solid var(--orange);
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  font-style: normal;
}

/* ===========================
   COSTS
=========================== */
.costs-section {
  background: var(--bg);
}

.costs-intro {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.costs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.costs-table th,
.costs-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}

.costs-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.costs-table td {
  color: var(--text-muted);
}

.costs-table td:last-child {
  white-space: nowrap;
}

.costs-table tr:last-child td {
  border-bottom: none;
}

.costs-table .total-row td {
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.975rem;
}

.costs-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 680px;
}

/* ===========================
   PROGRESS
=========================== */
.progress-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.progress-inner {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 12px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-mid));
  border-radius: 99px;
  width: 0%;
  transition: width 0.6s ease;
}

.progress-pct {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-top: -0.25rem;
}

/* ===========================
   ABOUT
=========================== */
.about-section {
  background: var(--bg);
}

.about-inner {
  max-width: 620px;
}

.about-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-top: 0.9rem;
}

.about-link-line {
  margin-top: 1rem;
  font-size: 0.975rem;
  font-weight: 600;
}

.about-inner .btn-outline {
  margin-top: 1.25rem;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--text);
  color: #9ca3af;
  padding: 2.75rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 480px;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}

.footer-links a {
  color: #c4b5fd;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: #374151;
}

.footer-copy {
  font-size: 0.8rem;
  color: #374151;
}

/* ===========================
   DEV LOG
=========================== */
.devlog-section {
  padding: 4rem 0 5rem;
}

.devlog-inner {
  max-width: 680px;
}

.devlog-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.devlog-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.devlog-list {
  display: flex;
  flex-direction: column;
}

.devlog-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.devlog-entry:first-child {
  border-top: 1px solid var(--border);
}

.devlog-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.devlog-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.devlog-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
}

.devlog-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.78;
}

.devlog-empty {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 2rem 0;
}