:root {
  --bg-main: #ffffff;
  --bg-surface: #f9f8f7;
  --bg-card: #ffffff;
  --bg-input: #f2f1ee;
  --bg-badge: #eef6ff;
  --text-primary: #2c2c2b;
  --text-secondary: #5e5c57;
  --text-muted: #73716c;
  --blue: #1f74c9;
  --blue-hover: #1a65b0;
  --blue-ink: #175aa0;
  --green: #1e7e45;
  --green-bg: #eef9f2;
  --red: #c4352f;
  --red-bg: #fdf1f0;
  --border: rgba(50, 48, 44, 0.12);
  --border-strong: rgba(50, 48, 44, 0.22);
  --shadow-sm: 0 1px 2px rgba(25, 25, 25, 0.05);
  --shadow-md: 0 8px 24px rgba(25, 25, 25, 0.08), 0 0 0 1px rgba(42, 28, 0, 0.07);
  --radius: 10px;
  --radius-sm: 7px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

html[data-tema="gelap"] {
  color-scheme: dark;
  --bg-main: #191919;
  --bg-surface: #222220;
  --bg-card: #232322;
  --bg-input: #2b2b29;
  --bg-badge: #1d2d3e;
  --text-primary: #e8e7e4;
  --text-secondary: #c4c1ba;
  --text-muted: #9e9b94;
  --blue: #529cca;
  --blue-hover: #3b88ba;
  --blue-ink: #7ec0e8;
  --green: #69c78f;
  --green-bg: #1a2d22;
  --red: #e5736e;
  --red-bg: #321f1e;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-primary);
}

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

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-main) 90%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-link img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.parent-badge {
  font-size: 12px;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

.parent-badge:hover {
  color: var(--blue-ink);
  text-decoration: underline;
}

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

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-links a:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-surface);
}

.btn-icon {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
}

.btn-icon:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-badge);
  color: var(--blue-ink);
  border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero {
  padding: 56px 0 48px;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 auto 24px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.proof-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
}

.proof-item strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.proof-item span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Comparison table */
.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.compare-table th {
  background: var(--bg-surface);
  font-weight: 700;
  font-size: 13px;
}

.col-old {
  color: var(--text-secondary);
}

.col-new {
  color: var(--text-primary);
  font-weight: 500;
}

/* Visual Preview + Samples */
.preview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.preview-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.preview-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
}

.preview-btn img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.preview-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sample-list {
  display: grid;
  gap: 14px;
}

.sample-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.sample-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-badge);
  color: var(--blue-ink);
}

.cluster-pill {
  font-size: 12px;
  color: var(--text-muted);
}

.sample-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.sample-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Catalog */
.catalog-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.search-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.search-input-row {
  display: flex;
  gap: 8px;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
}

.search-input:focus {
  outline: 2px solid color-mix(in srgb, var(--blue) 45%, transparent);
  border-color: var(--blue);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.chip:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.catalog-status {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sop-card {
  text-align: left;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sop-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.sop-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.sop-sample-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--green-bg);
  color: var(--green);
}

.sop-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.sop-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.empty-state h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-badge);
  color: var(--blue-ink);
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 4px;
  color: var(--text-primary);
}

.pricing-unit {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li {
  padding-left: 18px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.spj-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* CTA & Footer */
.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
}

.cta-box h2 {
  font-size: 25px;
  margin-bottom: 10px;
}

.cta-box p {
  max-width: 620px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--blue-ink);
  text-decoration: underline;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 15, 15, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.modal-card.modal-wide {
  max-width: 920px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 19px;
  line-height: 1.3;
}

.modal-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.modal-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  font-size: 12.5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: grid;
  gap: 5px;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }
  .hero h1 {
    font-size: 42px;
  }
  .proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .grid-3,
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .preview-layout {
    grid-template-columns: 1.05fr 1fr;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
