/* AR Studio — tema gelap "workshop" dengan aksen lime */
:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --surface: #141821;
  --surface-2: #1b2030;
  --line: #262c3b;
  --line-2: #323a4e;
  --text: #eef0f4;
  --muted: #8f98ab;
  --lime: #c6f432;
  --lime-ink: #1a2200;
  --violet: #8b7cff;
  --coral: #ff7a59;
  --ok: #3ddc97;
  --warn: #ffc542;
  --err: #ff5d6c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); }
.lime { color: var(--lime); }
.center { text-align: center; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lime);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn-primary:hover { background: #d6ff52; border-color: #d6ff52; transform: translateY(-1px); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: var(--err); color: var(--err); background: transparent; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(10, 12, 16, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 480px) { .site-header .container { gap: 10px; } .site-header .logo { font-size: 1rem; } }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; letter-spacing: -.04em; transform: rotate(-6deg);
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg-2); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions .btn-label { display: none; }
}
.guest-bar { background: var(--surface-2); color: var(--muted); font-size: .82rem; text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--line); }
.guest-bar a { color: var(--lime); font-weight: 600; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-hover { transition: .2s; }
.card-hover:hover { border-color: var(--lime); transform: translateY(-3px); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-2); }
.pill-lime { background: rgba(198, 244, 50, .12); color: var(--lime); border-color: rgba(198, 244, 50, .3); }
.pill-violet { background: rgba(139, 124, 255, .14); color: #b8afff; border-color: rgba(139, 124, 255, .35); }
.pill-warn { background: rgba(255, 197, 66, .12); color: var(--warn); border-color: rgba(255, 197, 66, .3); }
.pill-ok { background: rgba(61, 220, 151, .12); color: var(--ok); border-color: rgba(61, 220, 151, .3); }
.pill-err { background: rgba(255, 93, 108, .12); color: var(--err); border-color: rgba(255, 93, 108, .3); }

/* Forms */
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); outline: none; transition: .15s;
}
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 244, 50, .15); }
textarea.input { min-height: 90px; resize: vertical; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .85rem; }
.seg button.on { background: var(--lime); color: var(--lime-ink); }
input[type=range] { width: 100%; accent-color: var(--lime); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.swatch.on { border-color: var(--lime); transform: scale(1.1); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(var(--cols, 3), 1fr); gap: 32px; }
.announce { text-align: center; padding: 8px 16px; font-size: .88rem; font-weight: 600; }
.announce a { text-decoration: underline; margin-left: 6px; }
.announce-lime { background: var(--lime); color: var(--lime-ink); }
.announce-violet { background: var(--violet); color: #fff; }
.announce-coral { background: var(--coral); color: #fff; }
.announce-dark { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--line); }
.testi { display: flex; flex-direction: column; gap: 12px; }
.testi .stars { color: var(--warn); letter-spacing: 2px; }
.testi img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.footer-grid h4 { font-size: .8rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-grid a { display: block; color: var(--text); opacity: .85; padding: 3px 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; flex-wrap: wrap; gap: 8px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .35); transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Toast + modal */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--surface-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); animation: up .25s ease; max-width: 90vw; }
.toast.err { border-color: var(--err); }
.toast.ok { border-color: var(--ok); }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px; width: min(620px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--shadow); }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-body { padding: 20px 24px 24px; }
.x { background: var(--surface); border: 1px solid var(--line-2); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; flex: none; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table-wrap { overflow-x: auto; }

/* Price box */
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-total { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-canvas { aspect-ratio: 1; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #1d2433, var(--bg) 70%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; }
.hero-badge { position: absolute; background: rgba(20, 24, 33, .85); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; font-size: .8rem; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--display); font-size: 1.8rem; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .25; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%); pointer-events: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-canvas { max-width: 480px; } }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; animation: scroll 32s linear infinite; width: max-content; font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--muted); }
.marquee-track span::after { content: '✦'; color: var(--lime); margin-left: 48px; }
@keyframes scroll { to { transform: translateX(-50%); } }

.product-card { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; min-height: 280px; }
.product-card .thumb { height: 150px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 3.2rem; position: relative; overflow: hidden; }
.product-card .thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(198, 244, 50, .14), transparent 60%); }
.product-card.disabled { opacity: .6; }
.product-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.step { counter-increment: step; position: relative; padding-top: 56px; }
.step::before { content: '0' counter(step); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: .8rem; color: var(--lime); border: 1px solid var(--lime); border-radius: 999px; padding: 4px 10px; }
.steps { counter-reset: step; }

.cta-band { background: var(--lime); color: var(--lime-ink); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.cta-band .btn { background: var(--lime-ink); color: var(--lime); border-color: var(--lime-ink); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 32px; } }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--lime); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Package cards */
.pkg { display: flex; flex-direction: column; gap: 12px; position: relative; }
.pkg.featured { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 30px 60px -30px rgba(198, 244, 50, .35); }
.pkg .price { font-family: var(--display); font-size: 2rem; font-weight: 700; }
.pkg ul { padding-left: 18px; margin: 0; color: var(--muted); font-size: .9rem; }

/* Generator workspace */
.gen-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 20px; padding: 24px 0 40px; align-items: start; }
.viewer { position: sticky; top: 88px; border-radius: 24px; background: radial-gradient(circle at 50% 35%, #202839, #0b0d12 75%); border: 1px solid var(--line); aspect-ratio: 4/3.4; overflow: hidden; }
.viewer canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viewer-hud { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.viewer-hud > * { pointer-events: auto; }
.viewer-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { flex: 1; padding: 14px 10px; background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--lime); border-bottom-color: var(--lime); }
.panel-body { padding: 20px; max-height: calc(100vh - 340px); overflow: auto; min-height: 280px; }
.price-dock { border-top: 1px solid var(--line); padding: 18px 20px; background: var(--bg-2); }
.price-dock .big { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
@media (max-width: 960px) { .gen-layout { grid-template-columns: 1fr; } .viewer { position: relative; top: 0; aspect-ratio: 1; } .panel-body { max-height: none; } }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; color: var(--muted); transition: .15s; }
.dropzone:hover { border-color: var(--lime); color: var(--text); }
.font-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.font-opt { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 12px; padding: 10px; cursor: pointer; text-align: left; }
.font-opt.on { border-color: var(--lime); background: rgba(198, 244, 50, .06); }
.font-opt b { display: block; font-size: 1.1rem; }
.key-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.key-row input { text-align: center; text-transform: uppercase; font-weight: 700; padding: 8px 0; }

/* Status timeline */
.timeline { border-left: 2px solid var(--line-2); margin-left: 6px; padding-left: 18px; }
.timeline .ev { position: relative; padding-bottom: 14px; }
.timeline .ev::before { content: ''; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
.qris-box { background: #fff; color: #111; border-radius: 18px; padding: 18px; text-align: center; max-width: 320px; margin-inline: auto; }
.qris-box img { margin-inline: auto; max-height: 300px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.page-head { padding: 56px 0 24px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line-2); border-top-color: var(--lime); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
