:root {
  --bg: #050a06;
  --card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.10);
  --text: #e6f0e8;
  --muted: #8fa396;
  --a: #22c55e;
  --b: #86efac;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(600px 400px at 85% 30%, rgba(21,128,61,.18), transparent 60%);
}
a { color: inherit; text-decoration: none; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1000px; margin: 0 auto; padding: 1.2rem 1.5rem;
}
.logo { font-weight: 700; font-size: 1.1rem; }
.logo span { color: var(--a); }
.nav nav { display: flex; gap: 1.2rem; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--text); }

main { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3rem 0; }
h2 { font-size: 1.6rem; margin: 0 0 1.2rem; }

.hero { text-align: center; padding-top: 4rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(250,204,21,.10); border: 1px solid rgba(250,204,21,.35);
  color: #fde68a; font-size: .85rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #facc15;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(250,204,21,.6); }
  70% { box-shadow: 0 0 0 8px rgba(250,204,21,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); }
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 1.2rem 0 .4rem; line-height: 1.15; }
.grad {
  background: linear-gradient(90deg, var(--a), var(--b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.role { font-size: 1.2rem; color: var(--a); margin: 0 0 1rem; min-height: 1.8rem; }
.cursor { animation: blink 1s steps(1) infinite; color: var(--b); }
@keyframes blink { 50% { opacity: 0; } }
.lead { max-width: 620px; margin: 0 auto 1.8rem; color: var(--muted); }

.cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 10px;
  font-weight: 600; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(90deg, var(--a), var(--b)); color: #050a06;
  box-shadow: 0 6px 20px rgba(34,197,94,.25);
}
.btn.ghost { border: 1px solid var(--border); background: var(--card); }

.progress-card {
  max-width: 460px; margin: 3rem auto 0; padding: 1.2rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-align: left;
}
.progress-head { display: flex; justify-content: space-between; margin-bottom: .6rem; font-size: .95rem; }
.bar { height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--a), var(--b));
  transition: width 1.6s ease;
}
.progress-card small { display: block; margin-top: .6rem; color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem;
  transition: transform .2s, border-color .2s;
}
.grid .card:hover { transform: translateY(-4px); border-color: rgba(34,197,94,.5); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card h3 { margin: .6rem 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.ico { font-size: 1.8rem; }

.about p { color: var(--text); }
.stats { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stats li { padding: 1rem; border-radius: 10px; background: rgba(255,255,255,.04); }
.stats b { display: block; color: var(--a); }
.stats span { color: var(--muted); font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips span {
  padding: .45rem .9rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); font-size: .9rem;
}

.contact { text-align: center; }
.contact p { margin-bottom: 1rem; }

footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .nav nav { gap: .8rem; font-size: .9rem; }
}

.lang-btn {
  padding: .25rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s;
}
.lang-btn:hover { border-color: var(--a); }
.nav nav { align-items: center; }

/* Pilihan bahasa berbendera */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active {
  background: rgba(34,197,94,.18);
  color: var(--text);
}
.flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
  background-size: cover;
  background-position: center;
}
.flag-id { background-image: linear-gradient(to bottom, #e70011 50%, #ffffff 50%); }
.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cclippath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clippath%3E%3Cclippath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clippath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
}
@media (max-width: 560px) {
  .lang-opt { padding: .25rem .5rem; font-size: .78rem; }
}

/* Judul hero yang lebih panjang */
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); max-width: 18ch; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo-img { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; }

/* Menu lebih ringkas di layar HP */
@media (max-width: 560px) {
  .nav { padding: .9rem 1rem; }
  .nav nav { gap: .7rem; font-size: .9rem; }
  .nav nav a { white-space: nowrap; }
  .logo-img { height: 36px; }
  .lang-opt { font-size: 0; gap: 0; padding: .3rem .5rem; }
}


/* Logo lengkap di header */
.logo-img { height: 72px; width: auto; max-width: 120px; }
.nav { padding-top: .6rem; padding-bottom: .6rem; }
@media (max-width: 560px) {
  .logo-img { height: 60px; }
}

/* Kartu layanan lebar penuh */
.card-wide { grid-column: 1 / -1; }

/* Menu lebih menonjol */
.nav nav { gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-btn {
  padding: .5rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.nav nav a.nav-ghost {
  color: var(--text);
  border: 1px solid rgba(34,197,94,.55);
  background: rgba(34,197,94,.08);
}
.nav nav a.nav-ghost:hover {
  color: #fff;
  border-color: var(--a);
  background: rgba(34,197,94,.18);
  transform: translateY(-1px);
}
.nav nav a.nav-cta {
  color: #04110a;
  background: linear-gradient(90deg, var(--a), var(--b));
  box-shadow: 0 4px 18px rgba(34,197,94,.35);
}
.nav nav a.nav-cta:hover {
  color: #04110a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(34,197,94,.5);
}
@media (max-width: 560px) {
  .nav nav { gap: .4rem; }
  .nav-btn { padding: .4rem .65rem; font-size: .8rem; }
}

/* Dropdown My Sampel Project */
.dropdown { position: relative; }
.dd-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 0; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 700;
  padding: .5rem 1.05rem; border-radius: 999px; white-space: nowrap;
  color: #04110a; background: linear-gradient(90deg, var(--a), var(--b));
  box-shadow: 0 4px 18px rgba(34,197,94,.35);
}
.dd-toggle::after {
  content: ""; width: .45rem; height: .45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.dd-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 50;
  min-width: 210px; max-width: 90vw; margin: 0; padding: .4rem; list-style: none;
  background: #0a140c; border: 1px solid rgba(34,197,94,.45); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
}
.dd-menu[hidden] { display: none; }
.nav nav .dd-menu a {
  display: block; padding: .65rem .9rem; border-radius: 10px;
  color: var(--text); font-weight: 600; white-space: nowrap;
}
.nav nav .dd-menu a:hover { background: rgba(34,197,94,.16); color: #fff; }
@media (max-width: 560px) {
  .dd-toggle { padding: .4rem .65rem; font-size: .8rem; }
  .dd-menu { min-width: 190px; }
}

/* Jarak saat halaman menggulir ke hasil */
#hasil { scroll-margin-top: 1rem; }

/* Tombol sekunder lebih terlihat (halaman Baca Invoice) */
.actions .btn.ghost {
  color: var(--text);
  border: 1px solid rgba(34,197,94,.6);
  background: rgba(34,197,94,.1);
}
.actions .btn.ghost:hover {
  border-color: var(--a);
  background: rgba(34,197,94,.2);
}

/* Tombol contoh transkrip */
.samples .btn.ghost {
  font-family: inherit;
  font-size: .95rem;
  padding: .6rem 1.1rem;
  color: var(--text);
  border: 1px solid rgba(34,197,94,.6);
  background: rgba(34,197,94,.1);
}
.samples .btn.ghost:hover {
  border-color: var(--a);
  background: rgba(34,197,94,.2);
}

/* Tab job posting */
.tabs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.tab { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.tab.active { color: #04110a; background: linear-gradient(90deg, var(--a), var(--b)); border-color: transparent; }
.job-text { min-height: 180px; resize: vertical; font: inherit; border-style: solid; }
.hint { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; }

/* Perhatian pada tombol Contoh Proyek */
.dd-toggle { position: relative; }
.dd-count {
  position: absolute; top: -8px; right: -8px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: #facc15; color: #1a1400; font-size: .72rem; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #050a06;
}
.dd-toggle.attn { animation: ddPulse 1.8s ease-out 5; }
@keyframes ddPulse {
  0%   { box-shadow: 0 4px 18px rgba(34,197,94,.35), 0 0 0 0 rgba(34,197,94,.75); }
  70%  { box-shadow: 0 4px 18px rgba(34,197,94,.35), 0 0 0 16px rgba(34,197,94,0); }
  100% { box-shadow: 0 4px 18px rgba(34,197,94,.35), 0 0 0 0 rgba(34,197,94,0); }
}
.dd-callout {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 60;
  width: max-content; max-width: min(250px, calc(100vw - 2rem));
  padding: .6rem .6rem .6rem .9rem; border-radius: 12px;
  background: #facc15; color: #1a1400; font-size: .85rem; font-weight: 700; line-height: 1.35;
  box-shadow: 0 10px 28px rgba(0,0,0,.5);
  animation: ddBounce 1.6s ease-in-out infinite;
}
.dd-callout::before {
  content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px;
  background: #facc15; transform: rotate(45deg);
}
.dd-callout.left { right: auto; left: 0; }
.dd-callout.left::before { right: auto; left: 22px; }
.dd-callout button {
  margin-left: .4rem; border: 0; background: transparent; color: inherit;
  font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 .3rem;
}
@keyframes ddBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .dd-toggle.attn, .dd-callout { animation: none; }
}

/* Item menu proyek yang dinonaktifkan */
.nav nav .dd-menu a.dd-off { color: var(--muted); opacity: .55; cursor: not-allowed; }
.nav nav .dd-menu a.dd-off:hover { background: transparent; color: var(--muted); }
.dd-off-tag {
  margin-left: .5rem; font-size: .7rem; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--border); font-weight: 600;
}
.off-notice {
  padding: .7rem .9rem; border-radius: 10px; margin: 1rem 0;
  border: 1px solid rgba(250,204,21,.6); background: rgba(250,204,21,.1); color: #fde68a;
}
