:root {
  --bg: #0B1014;
  --panel: #10171D;
  --panel-2: #141D25;
  --line: #1E2A33;
  --line-strong: #2A3843;
  --text: #E6EDF3;
  --text-2: #B9C6D0;
  --heading: #F2F7FA;
  --muted: #8B98A5;
  --accent: #2DD4BF;
  --accent-ink: #04342C;
  --accent-dim: color-mix(in srgb, var(--accent) 10%, transparent);
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

main > * { padding: 96px 0; }

a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-2);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 40px;
}
.section-title .num {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  margin-right: 8px;
}

.noscript {
  padding: 48px 24px;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--muted);
}

/* ===== navbar ===== */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links .nav-item { color: var(--muted); font-size: 15px; }
.nav-links .nav-item:hover { color: var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; display: block; }
.brand-text { font-family: var(--font-mono); font-weight: 500; font-size: 16px; color: var(--heading); }
.brand-text .dot { color: var(--accent); }
.sys-label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: .05em;
}
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* ===== hero ===== */
#hero {
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-bottom: 16px; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12; color: var(--heading); font-weight: 700; }
h1 .hl { color: var(--accent); }
.tagline { color: var(--muted); font-size: 18px; margin: 20px 0 32px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== corner brackets ===== */
.brackets { position: relative; padding: 10px; }
.corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--accent); }
.corner.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ===== profile card (panel kanan hero) ===== */
.profile-card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pc-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.t-title { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.t-live { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.pc-body { padding: 20px; }
.pc-id { display: flex; align-items: center; gap: 16px; }
.pc-photo {
  width: 76px; height: 76px; flex: none; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
}
.pc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-monogram { font-family: var(--font-mono); font-size: 30px; font-weight: 500; color: var(--accent); }
.pc-name { font-size: 24px; font-weight: 700; color: var(--heading); line-height: 1.15; }
.pc-handle { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-top: 2px; }
.pc-divider { border-top: 1px solid var(--line); margin: 18px 0; }
.pc-readout { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; color: var(--text); }
.pc-readout .p { color: var(--accent); }
.pc-readout .k { color: var(--muted); }
.cursor { display: inline-block; color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.pc-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--muted); transition: color .15s ease, border-color .15s ease;
}
.pc-socials a:hover { color: var(--accent); border-color: var(--accent); }
.pc-socials a.text { width: auto; padding: 0 14px; font-family: var(--font-mono); font-size: 13px; }
.pc-socials .si { display: inline-flex; }
.pc-socials .si svg { width: 18px; height: 18px; display: block; }

/* ===== profil ===== */
.profil-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; }
.bio p { color: var(--text-2); font-size: 16px; }
.bio p + p { margin-top: 14px; }
.skills-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.skills-panel h3 {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--muted); letter-spacing: .08em; margin-bottom: 14px;
}

/* ===== project ===== */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: border-color .2s ease; }
.card:hover { border-color: var(--accent); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel-2); display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .initials { font-family: var(--font-mono); font-size: 40px; font-weight: 500; color: var(--accent); }
.badge {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 3px;
}
.badge-live { color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent); }
.badge-wip { color: #EF9F27; background: rgba(239, 159, 39, .1); border: 1px solid #EF9F27; }
.badge-archived { color: var(--muted); background: transparent; border: 1px solid var(--line-strong); }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { color: var(--heading); font-size: 20px; margin-bottom: 8px; }
.card-body .desc { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.card-link { font-family: var(--font-mono); font-size: 14px; display: inline-block; margin-top: 14px; }

/* ===== layanan ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 24px; transition: border-color .2s ease;
}
.service:hover { border-color: var(--accent); }
.service .icon { color: var(--accent); width: 28px; height: 28px; margin-bottom: 16px; }
.service .icon svg { width: 100%; height: 100%; display: block; }
.service h3 { color: var(--heading); font-size: 20px; margin-bottom: 8px; }
.service .desc { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.features { list-style: none; margin-bottom: 20px; flex: 1; }
.features li {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text-2);
  padding-left: 18px; position: relative; margin-bottom: 8px;
}
.features li::before { content: ">"; position: absolute; left: 0; color: var(--accent); }
.price-note {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 14px;
}
.service .btn { text-align: center; width: 100%; }

/* ===== footer ===== */
#site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-socials { display: flex; gap: 18px; }
.footer-socials a { color: var(--muted); font-size: 14px; }
.footer-socials a:hover { color: var(--accent); }
.footer-meta { text-align: right; }
.copyright, .credit { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ===== reveal + responsive + reduced motion ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 959px) {
  main > * { padding: 64px 0; }
  .hero-grid, .profil-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  .nav-links { gap: 14px; }
  .nav-links .nav-item, .sys-label { display: none; }
  .project-grid, .service-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led, .cursor { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .service { transition: none; }
}
