/* Hastasurya — sistem ala wealthclub versi terang: satu huruf (Geist), judul besar rapat, panel membulat,
   tombol bergradasi dengan kilau tepi, cahaya surya samar di sudut. */

:root {
  --bg: #f7f6f3;
  --ink: #111114;
  --ink-2: #55555c;
  --ink-3: #6b6b72;   /* minimal 4,5:1 di atas latar #f7f6f3 */
  --h1-gray: #8f8d88;   /* hanya untuk teks display besar */
  --edge: rgba(17, 17, 20, 0.08);
  --edge-2: rgba(17, 17, 20, 0.14);
  --surya: #d9581f;
  --surya-ink: #ad4317;
  --glow: rgba(217, 88, 31, 0.32);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --max: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a[href], button, summary, select, label[for] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--surya); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 60; border-radius: 8px; }
.skip:focus { left: 8px; }


/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.mark {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: linear-gradient(to bottom, var(--surya) 0 60%, transparent 60% 70%, var(--surya) 70%);
}
.wordmark { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- panel dan tombol ---------- */
.panel {
  background: linear-gradient(#ffffff, #fbfaf7);
  border: 1px solid var(--edge);
  border-radius: 16px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark {
  color: #fff; background: linear-gradient(#2a2a30, #0e0e11); border: 1px solid #0b0b0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-dark:hover { background: linear-gradient(#36363d, #16161a); }
.btn-dark:active, .btn-light:active { transform: translateY(0); }
.btn-light {
  color: var(--ink); background: linear-gradient(#ffffff, #f3f1ec); border: 1px solid var(--edge-2);
  box-shadow: inset 0 1px 0 #fff;
}
.btn-light:hover { border-color: var(--ink-3); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- navigasi pil mengambang ---------- */
.bar { position: fixed; top: 12px; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.bar-in {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 28px; padding: 4px 4px 4px 16px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--edge-2); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgba(17, 17, 20, 0.25);
}
.links { display: flex; gap: 22px; }
.links a { font-size: 13px; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.links a:hover { color: var(--ink); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { padding: 40px 12px 0; }
.hero-panel {
  --sun-h: clamp(220px, 30vw, 360px);   /* tinggi area matahari di bawah teks */
  position: relative; overflow: hidden; max-width: 1400px; margin: 0 auto;
  min-height: min(900px, calc(100svh - 52px));
  display: flex; flex-direction: column; text-align: center;
  background:
    radial-gradient(55% 45% at 50% 100%, rgba(217, 88, 31, 0.10), transparent 70%),
    linear-gradient(#ffffff, #faf9f6);
}
.hero-copy { padding: clamp(96px, 13vh, 150px) 20px calc(var(--sun-h) + 40px); position: relative; z-index: 1; }
.hero h1 {
  max-width: 13.5em; margin: 0 auto; text-wrap: balance;
  font-size: clamp(2.3rem, 0.9rem + 4.2vw, 3.65rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em;
  color: var(--h1-gray);
}
.glow { color: var(--ink); text-shadow: 0 0 18px var(--glow), 0 0 48px rgba(217, 88, 31, 0.16); }
.hero-sub { max-width: 34rem; margin: 22px auto 30px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.hero-meta { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.hero-meta b { color: var(--ink); font-weight: 500; }
/* Kanvas 200px lebih tinggi dari area matahari (HEADROOM di main.js) dan memudar ke atas di belakang teks */
.sun-canvas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; display: block; width: 100%; height: calc(var(--sun-h) + 200px); }

/* ---------- bagian ---------- */
.sec { position: relative; max-width: calc(var(--max) + 32px); margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) 16px 0; }
.sec-title { text-align: center; font-size: clamp(2rem, 1.1rem + 2.6vw, 2.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.sec-sub { text-align: center; margin-top: 14px; font-size: 17px; color: var(--ink-2); }

/* ---------- layanan: kartu dengan cuplikan tampilan mini ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; margin-top: 48px; }
.b-card { position: relative; overflow: hidden; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.b-web { grid-row: span 2; }
.b-text h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.b-text p { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 30em; }

/* bahan bersama untuk tampilan mini */
.sk { display: block; height: 8px; border-radius: 4px; background: rgba(17, 17, 20, 0.09); }
.sk.lg { height: 12px; width: 82%; margin-bottom: 7px; }
.sk.lg.short { width: 58%; }
.sk.sm { width: 70%; margin-top: 12px; background: rgba(17, 17, 20, 0.06); }
.mb-cta { display: inline-block; margin-top: 14px; padding: 6px 10px; border-radius: 7px; font-size: 10.5px; font-weight: 600; color: #fff; background: linear-gradient(#2a2a30, #0e0e11); }
.mb-img { display: block; border-radius: 10px; background: radial-gradient(80% 90% at 30% 20%, rgba(217, 88, 31, 0.35), rgba(217, 88, 31, 0.08) 60%, rgba(17, 17, 20, 0.04)); }

/* website: browser + HP + email */
.web-vis { position: relative; flex: 1; min-height: 330px; }
.mini-browser { position: absolute; inset: 0 48px 40px 0; background: #fff; border: 1px solid var(--edge-2); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(17, 17, 20, 0.35); }
.mb-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--edge); }
.mb-url { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: rgba(17, 17, 20, 0.04); font: 400 11px/1.4 var(--mono); color: var(--ink-2); }
.lock { width: 8px; height: 9px; border-radius: 2px; background: var(--ink-3); position: relative; }
.lock::before { content: ""; position: absolute; left: 1.5px; top: -4px; width: 5px; height: 5px; border: 1.5px solid var(--ink-3); border-bottom: 0; border-radius: 3px 3px 0 0; box-sizing: border-box; }
.mb-body { padding: 14px 16px; }
.mb-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.mb-nav i { width: 28px; height: 6px; border-radius: 3px; background: rgba(17, 17, 20, 0.08); }
.mb-logo { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); margin-right: auto; }
.mb-pill { width: 44px; height: 16px; border-radius: 6px; background: rgba(17, 17, 20, 0.85); }
.mb-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.mb-hero .mb-img { height: 110px; }
.mb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mb-tiles span { height: 64px; border-radius: 8px; background: rgba(17, 17, 20, 0.05); border: 1px solid var(--edge); }
.mb-strip { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--edge); }
.mb-strip .sk { width: 84px; margin: 0 auto 0 0; }
.mb-strip span { width: 48px; height: 18px; border-radius: 6px; background: rgba(17, 17, 20, 0.06); }
.mini-phone {
  position: absolute; right: 0; bottom: 0; width: 132px; height: 236px; padding: 22px 12px 12px;
  background: #fff; border: 1px solid var(--edge-2); border-radius: 20px; box-shadow: 0 20px 40px -18px rgba(17, 17, 20, 0.4);
}
.mp-notch { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(17, 17, 20, 0.12); }
.mini-phone .mb-img { height: 90px; margin-top: 12px; }
.mini-phone .sk.lg { width: 92%; }
.chip {
  position: absolute; left: 18px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; background: #fff; border: 1px solid var(--edge-2); border-radius: 999px;
  font: 400 11.5px/1 var(--mono); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(17, 17, 20, 0.35);
}
.mail { width: 13px; height: 9px; border: 1.5px solid var(--surya); border-radius: 2px; position: relative; }
.mail::after { content: ""; position: absolute; left: 1.5px; top: -2px; width: 6px; height: 6px; border-right: 1.5px solid var(--surya); border-bottom: 1.5px solid var(--surya); transform: rotate(45deg); }

/* katalog: pilih produk, kirim permintaan */
.rfq { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--edge-2); border-radius: 12px; overflow: hidden; }
.rfq li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.rfq li + li { border-top: 1px solid var(--edge); }
.cb { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--edge-2); flex: none; transition: background-color .3s, border-color .3s; }
.nm { flex: 1; }
.qty { font: 400 11.5px/1 var(--mono); color: var(--ink-3); }
.rfq-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mini-btn { padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(#2a2a30, #0e0e11); }
.toast { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.toast::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--surya) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }

/* sistem: pesan WhatsApp dibaca jadi data */
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--edge-2); font-size: 13.5px; }
.parse { position: relative; margin: 12px 0 0 auto; max-width: 86%; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--edge-2); box-shadow: 0 14px 30px -20px rgba(17, 17, 20, 0.35); }
.ai { position: absolute; top: -9px; right: 12px; padding: 2px 7px; border-radius: 999px; background: var(--surya); color: #fff; font: 500 10px/1.4 var(--mono); letter-spacing: 0.06em; }
.prow { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.prow + .prow { border-top: 1px solid var(--edge); }
.prow span:last-child { font: 400 11.5px/1.6 var(--mono); color: var(--ink-3); }
.pstatus { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--edge-2); font-size: 12px; color: var(--surya-ink); font-weight: 500; }

/* animasi muncul: kartu diberi kelas .in saat terlihat */
.js .b-card .cb, .js .b-card .toast, .js .b-card .bubble, .js .b-card .parse, .js .b-card .chip, .js .b-card .mini-phone { transition: opacity .5s ease, transform .5s ease, background-color .3s, border-color .3s; }
.js .b-card:not(.in) .toast, .js .b-card:not(.in) .parse, .js .b-card:not(.in) .chip { opacity: 0; transform: translateY(8px); }
.js .b-card:not(.in) .bubble { opacity: 0; transform: translateX(-8px); }
.js .b-card:not(.in) .mini-phone { opacity: 0; transform: translateY(16px); }
.b-card.in .cb, html:not(.js) .cb { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--ink); }
.b-card.in li:nth-child(2) .cb { transition-delay: .25s; }
.b-card.in li:nth-child(3) .cb { transition-delay: .5s; }
.b-card.in .toast { transition-delay: .9s; }
.b-card.in .parse { transition-delay: .6s; }
.b-card.in .mini-phone { transition-delay: .2s; }
.b-card.in .chip { transition-delay: .5s; }

/* ---------- contoh: teks di kiri, tangkapan layar demo asli di kanan (komposisi beda dari bagian lain) ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.demo-copy .sec-title, .demo-copy .sec-sub { text-align: left; }
.demo-list { list-style: none; margin: 24px 0 28px; padding: 0; border-top: 1px solid var(--edge); }
.demo-list li { padding: 11px 0; border-bottom: 1px solid var(--edge); font-size: 15px; color: var(--ink-2); }
.shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--edge-2); background: #0b2a43; transition: transform .2s ease; }
.shot img { display: block; width: 100%; height: auto; }
.shot:hover { transform: translateY(-2px); }
/* Contoh lain lebih kecil dari demo distributor, karena distributor adalah pasar utama */
.demo-more { margin-top: 72px; }
.demo-more-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 20px; }
.demo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.demo-card { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.demo-thumb { display: block; margin-bottom: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge-2); background: var(--ink); transition: transform .2s ease; }
.demo-thumb img { display: block; width: 100%; height: auto; }
.demo-card:hover .demo-thumb { transform: translateY(-2px); }
.demo-card b { font-size: 16px; font-weight: 600; }
.demo-card span:last-child { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.demo-more-note { margin-top: 24px; font-size: 14px; color: var(--ink-3); }

/* ---------- harga ---------- */
/* Satu-satunya panel yang diberi bayangan: kartu harga adalah titik keputusan di halaman */
.price-card { max-width: 560px; margin: 48px auto 0; padding: 36px; box-shadow: 0 24px 60px -32px rgba(17, 17, 20, 0.28); }
.pc-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.pc-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pc-price { margin-top: 10px; font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.pc-price.is-empty { font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem); }
.pc-unit { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.checks { list-style: none; margin: 28px 0 30px; padding: 0; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--edge-2);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111114' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pc-more { margin-top: 24px; border-top: 1px solid var(--edge); padding-top: 12px; }
.pc-more div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.pc-more b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.pc-foot { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- tanya jawab ---------- */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--edge); }
.faq details:first-child { border-top: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 15.5px; padding-bottom: 20px; max-width: 40em; }

/* ---------- penutup ---------- */
.cta { text-align: center; padding-bottom: clamp(5rem, 10vw, 8rem); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.contact-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.contact-line a { text-decoration: none; border-bottom: 1px solid var(--edge-2); }
.contact-line a:hover { color: var(--ink); border-color: var(--ink); }

.foot { border-top: 1px solid var(--edge); }
.foot-in { max-width: calc(var(--max) + 32px); margin: 0 auto; padding: 22px 16px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot .wordmark { color: var(--ink); font-size: 14px; }

/* ---------- tombol WhatsApp mengambang ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(#2a2a30, #0e0e11); border: 1px solid #0b0b0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 28px -10px rgba(17, 17, 20, 0.45);
  transition: transform .15s;
}
.wa-float:hover { transform: translateY(-1px); }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 16px;
    background: rgba(255, 255, 255, 0.96); border: 1px solid var(--edge-2); border-radius: 14px;
    box-shadow: 0 18px 40px -20px rgba(17, 17, 20, 0.3);
  }
  .links.open { display: flex; }
  .links a { padding: 12px 0; font-size: 15px; color: var(--ink); border-top: 1px solid var(--edge); }
  .links a:first-child { border-top: 0; }
  .menu-btn {
    display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
    border: 1px solid var(--edge-2); border-radius: 10px; background: #fff;
    font: 500 13px/1 var(--sans); color: var(--ink); cursor: pointer;
  }
  .bar-in { gap: 10px; min-width: min(560px, 100%); }
  .logo { margin-right: auto; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-web { grid-row: auto; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .demo-more { margin-top: 56px; }
  .demo-cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- HP ---------- */
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .bar { top: 8px; padding: 0 8px; }
  .bar-in { width: 100%; }
  .hero { padding: 32px 8px 0; }
  .hero-panel { --sun-h: 210px; min-height: auto; border-radius: 14px; }
  .hero-copy { padding: 88px 20px calc(var(--sun-h) + 36px); }
  .hero-sub { font-size: 16px; }
  .hero .btn-lg, .cta-actions .btn { width: 100%; }
  .price-card { padding: 28px 22px; }
  .b-card { padding: 22px 18px; }
  .web-vis { min-height: 280px; }
  .mini-browser { inset: 0 36px 48px 0; }
  .mb-hero { grid-template-columns: 1fr; }
  .mb-hero .mb-img, .mb-tiles, .mb-strip { display: none; }
  .mini-phone { width: 112px; height: 200px; }
  .chip { left: 10px; bottom: 10px; font-size: 10.5px; }
  .wa-float { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wa-float, .b-card * { transition: none !important; }
}
