:root {
  --green-900: #0b4f3a;
  --green-700: #1e7a55;
  --green-400: #7dbe5e;
  --green-100: #ddefd6;
  --green-50: #eef6ea;
  --ink: #1f2a26;
  --muted: #5f6b66;
  --line: #dfe8e2;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 79, 58, 0.1);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
section { padding: 88px 0; }
.alt { background: var(--green-50); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-900); background: var(--green-50); }
.nav-links a.btn { color: var(--white); margin-left: 8px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; line-height: 1; }
.lang span { padding: 6px 10px; border-radius: 999px; color: var(--muted); }
html[lang="id"] .lang [data-l="id"], html[lang="en"] .lang [data-l="en"] { background: var(--green-700); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green-900); margin: 5px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--green-700); color: var(--white);
  font-weight: 700; font-size: 15px;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { background: var(--green-900); transform: translateY(-2px); }
.btn.light { background: var(--green-400); color: var(--green-900); }
.btn.light:hover { background: var(--white); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 0;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(125, 190, 94, 0.35), transparent 60%),
    linear-gradient(135deg, #073a2b 0%, var(--green-900) 55%, var(--green-700) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--green-400);
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.08; font-weight: 800; margin: 16px 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: #cfe8c4; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.chips li {
  padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 72px; background: var(--white); color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow);
}
.stats div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 34px; font-weight: 800; color: var(--green-700); line-height: 1.1; }
.stats span { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- Section heading ---------- */
.head { max-width: 760px; margin-bottom: 44px; }
.head .num { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--green-700); }
.head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 800; color: var(--green-900); margin: 8px 0 14px; letter-spacing: -0.01em; }
.head h2::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--green-400); margin-top: 14px; }
.head p { color: var(--muted); font-size: 17px; }

/* ---------- Generic grids & cards ---------- */
.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); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-400); }
.card h3 { font-size: 18px; font-weight: 700; color: var(--green-900); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.badge {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--green-900); color: var(--white); font-weight: 800; font-size: 15px;
}
.tag { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--green-700); text-transform: uppercase; }

/* ---------- 01 Tentang ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.about .text p { color: var(--muted); margin-bottom: 16px; }
.welcome { border-left: 4px solid var(--green-400); background: var(--green-50); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 24px; }
.welcome p { color: var(--ink); font-style: italic; margin-bottom: 10px; }
.welcome cite { font-style: normal; font-weight: 700; color: var(--green-900); font-size: 14px; }
.profile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.profile h3 { background: var(--green-900); color: var(--white); padding: 16px 22px; font-size: 16px; }
.profile dl { margin: 0; }
.profile div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--line); font-size: 14px; }
.profile div:nth-child(even) { background: var(--green-50); }
.profile dt { font-weight: 700; color: var(--green-900); }
.profile dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- 02 Visi ---------- */
.vision {
  background: var(--green-900); color: var(--white); border-radius: var(--radius);
  padding: 44px; text-align: center; margin-bottom: 40px;
}
.vision p { font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; line-height: 1.5; max-width: 820px; margin: 12px auto 0; }
.sub { font-size: 22px; font-weight: 800; color: var(--green-900); margin: 40px 0 8px; }
.sub + p { color: var(--muted); margin-bottom: 20px; }
.g5 { grid-template-columns: repeat(5, 1fr); }
.node .letter {
  font-size: 56px; font-weight: 800; line-height: 1; color: var(--green-400); margin-bottom: 10px;
}

/* ---------- 03 Layanan ---------- */
.service ul { margin-top: 16px; display: grid; gap: 8px; }
.service li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink); }
.service li::before { content: '▸'; position: absolute; left: 0; color: var(--green-700); font-weight: 800; }

/* ---------- SIMRS showcase ---------- */
.showcase.panel { border-radius: 24px; padding: 48px 40px; margin-top: 56px; }
.showcase { background: linear-gradient(160deg, #073a2b, var(--green-900)); color: var(--white); }
.showcase .head .num { color: var(--green-400); }
.showcase .head h2 { color: var(--white); }
.showcase .head p { color: #cfe8c4; }
.showcase-body { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tabs { display: grid; gap: 8px; }
.tabs button {
  text-align: left; padding: 14px 16px; border-radius: 12px; color: var(--white);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, border-color 0.2s;
}
.tabs button b { display: block; font-size: 15px; }
.tabs button span { display: block; font-size: 13px; color: #cfe8c4; margin-top: 2px; line-height: 1.45; }
.tabs button:hover { background: rgba(255, 255, 255, 0.12); }
.tabs button[aria-selected='true'] { background: var(--white); color: var(--green-900); border-color: var(--white); }
.tabs button[aria-selected='true'] span { color: var(--muted); }
.browser { background: #e9efec; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #dfe6e2; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3cdc8; }
.browser-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--muted); background: var(--white); padding: 3px 12px; border-radius: 999px; }
.browser img { width: 100%; cursor: zoom-in; }
.features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.features li { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(125, 190, 94, 0.18); border: 1px solid rgba(125, 190, 94, 0.4); }

/* ---------- 05 Proses ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.steps li::after { content: ''; position: absolute; top: 44px; right: -17px; width: 16px; height: 2px; background: var(--green-400); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 16px; color: var(--green-900); margin-bottom: 8px; line-height: 1.3; }
.steps p { font-size: 14px; color: var(--muted); }
.steps .out { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--green-700); font-weight: 600; }

/* ---------- 08 Portofolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.filters button[aria-pressed='true'] { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.porto { padding: 0; overflow: hidden; }
.porto .shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-50); border-bottom: 1px solid var(--line); }
.porto img { width: 100%; height: 100%; object-fit: cover; object-position: top left; cursor: zoom-in; transition: transform 0.4s; }
.porto:hover img { transform: scale(1.04); }
.porto .info { padding: 18px 20px 20px; }
.porto h3 { font-size: 16px; margin-bottom: 2px; }
.porto[hidden] { display: none; }

/* ---------- 09 Kontak ---------- */
.contact { background: linear-gradient(135deg, #073a2b, var(--green-900) 60%, var(--green-700)); color: var(--white); }
.contact .head .num { color: var(--green-400); }
.contact .head h2 { color: var(--white); }
.contact .head p { color: #cfe8c4; }
.contact .card { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); }
.contact .card:hover { border-color: var(--green-400); box-shadow: none; }
.contact .card .tag { color: var(--green-400); }
.contact .card p { color: var(--white); font-size: 16px; font-weight: 600; margin-top: 8px; overflow-wrap: anywhere; }
.cta { text-align: center; margin-top: 56px; }
.cta h3 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta p { color: #cfe8c4; margin: 10px 0 24px; }

footer { background: #062d21; color: #9fbfae; padding: 22px 0; font-size: 13px; text-align: center; }

/* ---------- Lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(4, 25, 18, 0.88); }
dialog.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; cursor: zoom-out; }
dialog.lightbox p { color: var(--white); text-align: center; font-size: 14px; margin-top: 10px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .porto img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .about, .showcase-body { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 18px;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a.btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  .showcase.panel { padding: 28px 18px; border-radius: 16px; }
  section { padding: 60px 0; }
  .g2, .g3, .g4, .g5, .steps, .tabs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .vision { padding: 30px 22px; }
  .profile div { grid-template-columns: 1fr; gap: 2px; }
  .tabs button span { display: none; }
}
@media (max-width: 380px) {
  .nav .wrap { gap: 12px; }
  .nav img { height: 30px; }
  .lang span { padding: 6px 8px; }
}
