:root{
  --bg: #14161c;
  --bg-soft: #191c24;
  --panel: #1f2330;
  --panel-2: #262b3b;
  --border: rgba(241,239,234,0.09);
  --border-strong: rgba(241,239,234,0.18);
  --text: #f2f0e9;
  --text-muted: #9a9fb2;
  --text-faint: #676c81;
  --amber: #e7a33e;
  --amber-soft: rgba(231,163,62,0.13);
  --teal: #4fb3a6;
  --teal-soft: rgba(79,179,166,0.13);
  --lavender: #8c8fe0;
  --lavender-soft: rgba(140,143,224,0.13);
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; height:100%; }
body{
  margin:0; min-height:100%;
  background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  background-image:
    radial-gradient(circle at 12% -10%, rgba(231,163,62,0.10), transparent 42%),
    radial-gradient(circle at 90% 8%, rgba(79,179,166,0.08), transparent 40%);
  background-repeat:no-repeat;
}
h1,h2,h3{ font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p{ margin:0; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
img,svg{ display:block; }
::selection{ background: var(--amber-soft); color: var(--text); }
.wrap{ max-width: 1160px; margin: 0 auto; padding: 0 32px; }

header{ position: sticky; top:0; z-index: 50; background: rgba(20,22,28,0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav{ display:flex; align-items:center; justify-content:space-between; height: 72px; }
.logo{ display:flex; align-items:center; gap:10px; font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:19px; }
.logo-mark{ width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(155deg, var(--amber), #c97f22); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.logo-mark svg{ width:16px; height:16px; }
.nav-links{ display:flex; align-items:center; gap: 34px; }
.nav-links a{ font-size: 14.5px; color: var(--text-muted); transition: color .15s ease; }
.nav-links a:hover{ color: var(--text); }
.nav-right{ display:flex; align-items:center; gap:18px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; padding: 11px 20px; border-radius: 999px; font-size: 14.5px; font-weight:600; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn-primary{ background: var(--amber); color: #1a1206; }
.btn-primary:hover{ transform: translateY(-1px); background:#f0ad4d; }
.btn-primary:disabled{ opacity:.55; transform:none; cursor:not-allowed; }
.btn-ghost{ border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover{ border-color: var(--amber); }
.hamburger{ display:none; width:34px; height:34px; border:1px solid var(--border-strong); border-radius:8px; background:transparent; align-items:center; justify-content:center; }
.hamburger span{ position:relative; width:16px; height:1px; background:var(--text); display:block; }
.hamburger span::before, .hamburger span::after{ content:''; position:absolute; left:0; width:16px; height:1px; background:var(--text); }
.hamburger span::before{ top:-5px; } .hamburger span::after{ top:5px; }
.mobile-panel{ display:none; flex-direction:column; gap:2px; border-top:1px solid var(--border); padding: 14px 32px 20px; }
.mobile-panel a{ padding: 12px 0; font-size:15px; color:var(--text-muted); border-bottom:1px solid var(--border); }
.mobile-panel.open{ display:flex; }

.hero{ padding: 76px 0 96px; display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center; }
.hero.hero-narrow{ grid-template-columns: 1fr; max-width: 720px; text-align:left; padding-bottom: 56px; }
.eyebrow-tag{ display:inline-flex; align-items:center; gap:8px; font-size: 13.5px; color: var(--text-muted); padding: 6px 4px; margin-bottom:22px; }
.eyebrow-tag .dot{ width:6px; height:6px; border-radius:50%; background: var(--amber); }
.hero h1{ font-size: 50px; line-height: 1.08; max-width: 12ch; }
.hero.hero-narrow h1{ font-size: 40px; max-width: none; }
.hero-sub{ margin-top: 22px; font-size: 17px; color: var(--text-muted); max-width: 46ch; line-height:1.6; }
.hero-cta{ display:flex; gap:14px; margin-top: 34px; }
.hero-stats{ display:flex; gap: 34px; margin-top: 46px; }
.hero-stats div strong{ font-family:'Space Grotesk'; font-size:22px; display:block; }
.hero-stats div span{ font-size:13px; color: var(--text-faint); }

.bench{ position:relative; }
.dropzone{ background: var(--panel); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 46px 30px; text-align:center; position:relative; z-index:2; }
.dropzone-icon{ width:54px; height:54px; margin:0 auto 18px; border-radius: 14px; background: var(--amber-soft); display:flex; align-items:center; justify-content:center; }
.dropzone-icon svg{ width:26px; height:26px; color: var(--amber); }
.dropzone h3{ font-size:17px; font-weight:600; }
.dropzone p{ color: var(--text-muted); font-size: 13.5px; margin-top:8px; }
.dropzone .formats{ margin-top:18px; font-size:12px; color: var(--text-faint); letter-spacing:.02em; }
.chip{ position:absolute; z-index:3; background: var(--panel-2); border:1px solid var(--border-strong); border-radius: 12px; padding: 10px 14px; display:flex; align-items:center; gap:9px; font-size:13px; font-weight:500; box-shadow: 0 14px 30px rgba(0,0,0,0.28); }
.chip svg{ width:16px; height:16px; }
.chip-1{ top:-18px; right:6%; color: var(--teal); transform: rotate(-4deg); }
.chip-2{ bottom:-16px; left:2%; color: var(--amber); transform: rotate(3deg); }
.chip-3{ top:38%; right:-22px; color: var(--lavender); transform: rotate(-2deg); }

.strip{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding: 40px 0; }
.strip-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.strip-item{ display:flex; gap:14px; }
.strip-item .num{ font-family:'Space Grotesk'; font-size:13px; color: var(--text-faint); border: 1px solid var(--border-strong); border-radius:8px; width:30px; height:30px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.strip-item h4{ font-size:15px; font-weight:600; }
.strip-item p{ font-size:13.5px; color: var(--text-muted); margin-top:4px; }

.section{ padding: 96px 0; }
.section.section-tight{ padding-top: 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 40px; gap: 24px; flex-wrap:wrap; }
.section-head h2{ font-size: 32px; }
.section-head .lede{ color: var(--text-muted); font-size:15px; max-width:40ch; margin-top:10px; }
.tabs{ display:flex; gap:8px; margin-bottom: 34px; flex-wrap:wrap; }
.tab{ padding: 9px 18px; border-radius:999px; border: 1px solid var(--border-strong); font-size: 13.5px; color: var(--text-muted); background:transparent; transition: all .15s ease; }
.tab.active{ background: var(--text); color: var(--bg); border-color:var(--text); }
.tab:not(.active):hover{ border-color: var(--text); color: var(--text); }
.tool-grid{ display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 158px; grid-auto-flow: dense; gap: 14px; }
.tool-card{ background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; transition: border-color .18s ease, transform .18s ease, background .18s ease; text-align:left; }
.tool-card:hover{ border-color: var(--border-strong); transform: translateY(-3px); background: var(--panel-2); }
.tool-card.lg{ grid-column: span 2; grid-row: span 2; padding: 28px; }
.tool-icon{ width:42px; height:42px; border-radius: 11px; display:flex; align-items:center; justify-content:center; margin-bottom: 16px; }
.tool-card.lg .tool-icon{ width:52px; height:52px; margin-bottom:22px; }
.tool-icon svg{ width:20px; height:20px; }
.tool-card.lg .tool-icon svg{ width:24px; height:24px; }
.cat-pdf .tool-icon{ background: var(--amber-soft); color: var(--amber); }
.cat-gambar .tool-icon{ background: var(--teal-soft); color: var(--teal); }
.cat-dokumen .tool-icon{ background: var(--lavender-soft); color: var(--lavender); }
.tool-card h3{ font-size:15.5px; font-weight:600; }
.tool-card.lg h3{ font-size: 20px; }
.tool-card p{ font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height:1.5; }
.tool-card.lg p{ font-size:14px; max-width: 30ch; }
.tool-tag{ position:absolute; top:20px; right:20px; font-size: 11px; color: var(--text-faint); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; }
.tool-card.is-hidden{ display:none; }

.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; position:relative; }
.steps::before{ content:''; position:absolute; top:23px; left:calc(16.6%); right:calc(16.6%); height:1px; background-image: linear-gradient(to right, var(--border-strong) 60%, transparent 0%); background-size: 10px 1px; background-repeat:repeat-x; }
.step{ position:relative; z-index:1; }
.step-num{ width: 46px; height:46px; border-radius:50%; background: var(--bg-soft); border: 1.5px solid var(--border-strong); display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk'; font-weight:600; font-size:16px; margin-bottom: 22px; }
.step h3{ font-size:17px; }
.step p{ margin-top:8px; font-size:14px; color: var(--text-muted); max-width:32ch; }

footer{ border-top:1px solid var(--border); padding: 56px 0 32px; }
.foot-top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; margin-bottom: 46px; }
.foot-brand p{ color: var(--text-muted); font-size:14px; max-width: 34ch; margin-top:14px; }
.foot-cols{ display:flex; gap: 64px; }
.foot-col h5{ font-size:13px; color: var(--text-faint); margin-bottom: 14px; font-weight:600; }
.foot-col a{ display:block; font-size:14px; color: var(--text-muted); padding: 6px 0; }
.foot-col a:hover{ color: var(--text); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 26px; border-top:1px solid var(--border); font-size: 13px; color: var(--text-faint); flex-wrap:wrap; gap:12px; }

/* Panel alat (dipakai langsung di halaman alat, bukan modal) */
.tool-panel{ width:100%; max-width: 480px; background: var(--panel); border:1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.tool-panel-head{ padding: 24px 24px 0; }
.tool-panel-head h3{ font-size:19px; }
.tool-panel-head p{ font-size:13.5px; color:var(--text-muted); margin-top:6px; }
.tool-panel-body{ padding: 20px 24px 24px; }
.c-step.is-hidden{ display:none; }
.c-drop{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding: 40px 20px; cursor:pointer; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); transition: border-color .15s ease, background .15s ease; }
.c-drop:hover, .c-drop.drag{ border-color: var(--amber); background: var(--amber-soft); }
.c-drop-icon{ width:44px; height:44px; border-radius:12px; background:var(--amber-soft); color:var(--amber); display:flex; align-items:center; justify-content:center; margin-bottom:6px; }
.c-drop-icon svg{ width:20px; height:20px; }
.c-drop strong{ font-size:14.5px; font-weight:600; }
.c-drop span{ font-size:12.5px; color:var(--text-faint); max-width:30ch; }
.c-file{ display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--border); border-radius: var(--radius); margin-bottom:22px; }
.c-file-icon{ width:38px; height:38px; border-radius:10px; background:var(--amber-soft); color:var(--amber); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.c-file-icon svg{ width:18px; height:18px; }
.c-file-info{ display:flex; flex-direction:column; gap:2px; overflow:hidden; flex:1; }
.c-file-info strong{ font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
.c-file-info span{ font-size:12px; color:var(--text-faint); }
.c-file-change{ font-size:12.5px; color:var(--text-muted); background:transparent; border:1px solid var(--border-strong); border-radius:999px; padding:6px 12px; flex-shrink:0; }
.c-file-change:hover{ color:var(--text); border-color:var(--text); }
.c-quality{ margin-bottom:22px; }
.c-quality-label{ font-size:13px; color:var(--text-muted); display:block; margin-bottom:10px; }
.c-quality-options{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.c-q{ text-align:left; padding:12px 10px; border-radius: var(--radius-sm); border:1px solid var(--border-strong); background:transparent; color:var(--text-muted); display:flex; flex-direction:column; gap:4px; }
.c-q strong{ font-size:13px; color:var(--text); font-weight:600; }
.c-q span{ font-size:11px; line-height:1.35; }
.c-q:hover{ border-color: var(--text-muted); }
.c-q.active{ border-color: var(--amber); background: var(--amber-soft); }
.c-q.active strong{ color:var(--amber); }
.c-note{ font-size:12px; color:var(--text-faint); margin-bottom:18px; line-height:1.5; }
.c-run{ width:100%; border:none; }
.c-progress{ padding: 18px 4px 6px; text-align:center; }
.c-progress-bar{ height:8px; border-radius:999px; background: var(--panel-2); overflow:hidden; margin-bottom:14px; }
.c-progress-fill{ height:100%; width:4%; border-radius:999px; background: linear-gradient(90deg, var(--amber), #f0ad4d); transition: width .25s ease; }
#cProgressText{ font-size:13.5px; color:var(--text-muted); }
.c-result{ text-align:center; padding: 6px 4px 22px; }
.c-result-icon{ width:48px; height:48px; margin:0 auto 16px; border-radius:50%; background: var(--teal-soft); color:var(--teal); display:flex; align-items:center; justify-content:center; }
.c-result-icon svg{ width:22px; height:22px; }
.c-result h4{ font-size:16.5px; margin-bottom:16px; }
.c-result-sizes{ display:flex; align-items:center; justify-content:center; gap:18px; }
.c-result-sizes div strong{ display:block; font-family:'Space Grotesk'; font-size:18px; }
.c-result-sizes div span{ font-size:12px; color:var(--text-faint); }
.c-result-arrow{ color:var(--text-faint); font-size:16px; }
.c-download{ width:100%; margin-bottom:10px; border:none; }
.c-reset{ width:100%; }
.c-error{ padding: 10px 4px 20px; text-align:center; }
.c-error p{ font-size:14px; color:var(--text-muted); }
.toast{ position:fixed; left:50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight:500; opacity:0; pointer-events:none; transition: opacity .22s ease, transform .22s ease; z-index: 100; }
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px){
  .wrap{ padding:0 22px; }
  .nav-links, .nav-right .btn-ghost{ display:none; }
  .hamburger{ display:flex; }
  .hero{ grid-template-columns: 1fr; padding: 48px 0 64px; gap:56px; }
  .hero h1{ font-size: 36px; max-width: none; }
  .bench{ order: -1; padding-top: 10px; }
  .chip{ display:none; }
  .strip-grid{ grid-template-columns: 1fr; gap: 22px; }
  .tool-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 148px; }
  .tool-card.lg{ grid-column: span 2; grid-row: span 1; }
  .steps{ grid-template-columns: 1fr; gap: 34px; }
  .steps::before{ display:none; }
  .foot-top{ flex-direction:column; gap:30px; }
  .foot-cols{ gap: 40px; }
  .section{ padding: 64px 0; }
  .section-head h2{ font-size:26px; }
  .c-quality-options{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important; } }
