/* ============================================
   ROOT — Proporsi matematika, bukan selera
   Typographic scale: 1.333 (perfect fourth)
   Spacing scale: golden ratio 1.618
   ============================================ */
:root {
  /* Base colors */
  --color-bg:            #0A0A0A;
  --color-surface:       #141414;
  --color-surface-2:     #1C1C1C;
  --color-surface-3:     #242424;

  /* Primary — merah, hanya untuk CTA & aksen */
  --color-primary:       #E02020;
  --color-primary-hover: #FF3333;
  --color-primary-dim:   #4A0A0A;

  /* Neutral borders */
  --color-border:        #2A2A2A;
  --color-border-subtle: #1A1A1A;
  --color-border-mid:    #333333;

  /* Neubrutalism shadow — dark solid */
  --shadow-neo:          4px 4px 0px #1A1A1A;
  --shadow-neo-lg:       6px 6px 0px #1A1A1A;
  --shadow-neo-hover:    2px 2px 0px #1A1A1A;
  --shadow-neo-red:      4px 4px 0px var(--color-primary);
  --shadow-neo-red-lg:   6px 6px 0px var(--color-primary);

  /* Text */
  --color-text:          #E8E8E8;
  --color-text-bright:   #FFFFFF;
  --color-muted:         #888888;
  --color-muted-2:       #555555;

  /* Semantic */
  --color-danger:        #FF8C42;
  --color-success:       #4ADE80;

  /* Typography */
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /*
    Typographic scale — perfect fourth (1.333)
    base: 15px
    xs:   11px  (15 / 1.333)
    sm:   13px  (15 / 1.15)
    base: 15px
    md:   20px  (15 * 1.333)
    lg:   26px  (15 * 1.333^2)
    xl:   35px  (15 * 1.333^3)
    2xl:  46px  (15 * 1.333^4)
    3xl:  62px  (15 * 1.333^5)
  */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   20px;
  --text-lg:   26px;
  --text-xl:   35px;
  --text-2xl:  46px;
  --text-3xl:  62px;

  /*
    Spacing scale — golden ratio (1.618) dari base 8px
    4 → 8 → 13 → 21 → 34 → 55 → 89
  */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  13px;
  --space-4:  21px;
  --space-5:  34px;
  --space-6:  55px;
  --space-7:  89px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 13px;

  --transition: 150ms ease;
  --max-width:  960px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================
   GRID BACKGROUND — #4A0A0A (color-primary-dim)
   Fade ke pinggir dengan radial mask
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(#4A0A0A 1px, transparent 1px),
    linear-gradient(90deg, #4A0A0A 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 20%, #0A0A0A 72%);
  pointer-events: none;
  z-index: 0;
}

section, footer { position: relative; z-index: 1; }

/* ============================================
   UTILITY
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 6vw, var(--text-2xl));
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-text-bright);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--color-border-mid);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-neo);
  white-space: nowrap;
  width: 100%;
}

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

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-neo-hover);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-bright);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-neo-red);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-neo-red-lg);
}

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

.btn-outline:hover { background: var(--color-surface-2); }

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  width: auto;
}

/* ============================================
   SECTION 1 — TRUST
   Logo besar di tengah, identitas kuat
   ============================================ */
.section-trust {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-4);
}

.trust-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

/* Avatar — diperbesar, jadi pusat identitas */
.trust-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-2);
}

/*
  Logo size: golden ratio dari max-width
  480 / (1.618^3) ≈ 113px → dibulatkan 112px
*/
.trust-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2px solid var(--color-border-mid);
  box-shadow: var(--shadow-neo-lg);
  object-fit: cover;
  background: var(--color-surface);
}

.trust-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--color-success);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  display: block;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/*
  Nama: terbesar di halaman
  Pakai fluid clamp — min text-xl (35px), max text-3xl (62px)
*/
.trust-name {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 11vw, var(--text-3xl));
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--color-text-bright);
}

.trust-tagline {
  color: var(--color-muted);
  font-size: var(--text-sm);
  max-width: 280px;
  line-height: 1.6;
  margin-top: var(--space-1);
}

/* CTA — bersusun vertikal, penuh lebar */
.trust-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  max-width: 320px;
  margin-top: var(--space-4);
}

/* ============================================
   SECTION 2 — INFORMATION
   ============================================ */
.section-information {
  padding: var(--space-7) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.info-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo-lg);
  object-fit: cover;
  background: var(--color-surface);
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-poster:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px #1A1A1A;
}

/* ============================================
   SECTION 3 — TOOLS
   ============================================ */
.section-tools {
  padding: var(--space-7) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Fee block */
.fee-block {
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  background: var(--color-surface);
}

.fee-box {
  aspect-ratio: 1 / 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.fee-box-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-bright);
}

.fee-table { width: 100%; border-collapse: collapse; flex: 1; }
.fee-table tr { border-bottom: 1px solid var(--color-border-subtle); }
.fee-table tr:last-child { border-bottom: none; }

.fee-table td {
  padding: 10px 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.4;
}

.fee-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 500;
}

.fee-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-bottom: var(--space-2);
}

.fee-table th:last-child { text-align: right; }

.fee-minfee {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
}

.fee-minfee span { color: var(--color-danger); }

/* Services */
.services-block {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.services-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.service-item.active { border-color: var(--color-primary-dim); }

.service-info { display: flex; flex-direction: column; gap: 2px; }
.service-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.service-price { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }

/* Toggle */
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border: 1px solid var(--color-border-mid);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--color-muted-2);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.toggle input:checked + .toggle-track {
  background: var(--color-primary-dim);
  border-color: var(--color-primary);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(224,32,32,0.5);
}

/* Generator */
.generator-block {
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.generator-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-bright);
}

.gen-form {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Flat input — tidak berdesakan */
.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-mid);
  border-radius: 0;
  color: var(--color-text-bright);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-2) 0;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-input:focus { border-bottom-color: var(--color-primary); }
.form-input::placeholder { color: var(--color-muted-2); }
.form-input.has-prefix { padding-left: var(--space-5); }

.input-prefix-wrap { position: relative; }

.input-prefix {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
  pointer-events: none;
}

/* Radio */
.radio-group { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.radio-option { display: none; }

.radio-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-muted);
  transition: all var(--transition);
  background: var(--color-surface-2);
}

.radio-option:checked + .radio-label {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(224,32,32,0.08);
  box-shadow: var(--shadow-neo-red);
}

.radio-label:hover { color: var(--color-text); }

/* Output */
.output-block {
  margin: 0 var(--space-5) var(--space-5);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
}

.output-block.visible { display: block; }

.output-header {
  background: var(--color-surface-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.output-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.output-text {
  padding: var(--space-4) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 2;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--color-bg);
}

.btn-copy {
  width: 100%;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--color-primary);
  box-shadow: none;
  padding: var(--space-3);
}

.btn-copy:hover { transform: none; box-shadow: none; background: var(--color-primary-hover); }
.btn-copy:active { transform: none; }
.btn-copy.copied { background: var(--color-success); color: #000; border-color: var(--color-success); }

/* ============================================
   FOOTER — professional 2 kolom
   ============================================ */
.section-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-7);
  background: var(--color-surface);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.footer-brand-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-mid);
  object-fit: cover;
  background: var(--color-surface-2);
}

.footer-name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-bright);
}

.footer-desc { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.6; max-width: 280px; }

.footer-info-col { display: flex; flex-direction: column; gap: var(--space-4); }

.footer-info-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.footer-hours-val { font-size: var(--text-base); color: var(--color-text); font-weight: 500; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-disclaimer { font-size: var(--text-xs); color: var(--color-muted-2); line-height: 1.6; }
.footer-copy { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted-2); }
.footer-copy span { color: var(--color-primary); }

/* ============================================
   RESPONSIVE — DESKTOP
   ============================================ */
@media (min-width: 1024px) {
  .trust-inner { max-width: 560px; }

  .info-grid { grid-template-columns: repeat(3, 1fr); }

  .fee-box { aspect-ratio: unset; min-height: 300px; }

  .footer-top { grid-template-columns: 1.618fr 1fr; align-items: start; }

  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================
   ANIMATIONS — staggered, seperti air mengalir
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(13px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Setiap elemen trust mengalir dari atas ke bawah */
.trust-avatar-wrap { animation: fadeUp 0.5s ease both; animation-delay: 0ms; }
.trust-label       { animation: fadeUp 0.5s ease both; animation-delay: 55ms; }
.trust-name        { animation: fadeUp 0.5s ease both; animation-delay: 110ms; }
.trust-tagline     { animation: fadeUp 0.5s ease both; animation-delay: 165ms; }
.trust-cta         { animation: fadeUp 0.5s ease both; animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
