/* ============================================================
   Adit — personal site
   Satu file, tanpa framework. Token warna & ukuran di :root.
   ============================================================ */

:root {
  --bg: #07080a;
  --bg-2: #0b0d10;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --fg: #ecedef;
  --fg-2: #c3c7ce;
  --muted: #8d939c;
  --muted-2: #828892;
  --accent: #b6f24a;
  --accent-dim: rgba(182, 242, 74, 0.14);
  --accent-line: rgba(182, 242, 74, 0.34);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --maxw: 1080px;
  --pad: 22px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
b { font-weight: 600; color: var(--fg); }
::selection { background: var(--accent); color: #0a0c08; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  background: var(--accent);
  color: #0a0c08;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { left: 12px; }

/* ---------- latar dekoratif ---------- */
.glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58% 55% at 22% 8%, rgba(182, 242, 74, 0.12), transparent 62%),
    radial-gradient(48% 50% at 82% 0%, rgba(110, 121, 224, 0.16), transparent 66%);
  filter: blur(6px);
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 72%);
  opacity: 0.55;
}

.spot {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(182, 242, 74, 0.10), transparent 62%);
  transition: opacity 0.5s ease;
  will-change: transform;
}
body.has-pointer .spot { opacity: 1; }

main, header, footer { position: relative; z-index: 1; }

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.hdr.stuck {
  background: rgba(7, 8, 10, 0.72);
  border-bottom-color: var(--line-soft);
}
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 62px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0a0c08;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(182, 242, 74, 0.35), 0 8px 22px -10px rgba(182, 242, 74, 0.6);
}
.brand-txt {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-dim { color: var(--muted-2); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.nav a { position: relative; transition: color 0.16s ease; }
.nav a:hover { color: var(--fg); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transition: right 0.22s ease;
}
.nav a:hover::after { right: 0; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0a0c08;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.16s ease;
  box-shadow: 0 10px 30px -14px rgba(182, 242, 74, 0.7);
}
.btn:hover { background: #c6ff62; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(10, 12, 8, 0.18);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 54px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow .num {
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 10px;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex: 0 0 auto;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.6;
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}
.hl {
  position: relative;
  display: inline-block;
  color: var(--accent);
}
.hl-line {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.1em;
  width: 104%;
  height: 0.16em;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
  opacity: 0.55;
}

.lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--fg-2);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tiny {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 16px;
}

/* ---------- kartu terminal ---------- */
.hero-card { position: relative; }
.term {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.lights { display: inline-flex; gap: 5px; }
.lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.lights i:first-child { background: rgba(255, 95, 86, 0.55); }
.lights i:nth-child(2) { background: rgba(255, 189, 46, 0.55); }
.lights i:nth-child(3) { background: rgba(39, 201, 63, 0.55); }
.term-title { color: var(--muted); }
.term-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.term-live .dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.term-body {
  margin: 0;
  padding: 18px 16px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--fg-2);
  min-height: 232px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-body .cmd { color: var(--fg); }
.term-body .ok { color: var(--accent); }
.term-body .dim { color: var(--muted-2); }
.term-body .done { color: var(--accent); font-weight: 600; }
.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  vertical-align: -0.16em;
  background: var(--accent);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.hero-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 9px;
}

/* ---------- strip stack ---------- */
.strip {
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 13px 0;
  background: rgba(255, 255, 255, 0.014);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: slide 34s linear infinite;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.strip-track i { color: var(--accent); opacity: 0.5; font-style: normal; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section ---------- */
.sec { padding-top: 92px; }
.sec-head { max-width: 620px; margin-bottom: 34px; }
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.14;
}
.hl2 { color: var(--fg); position: relative; }
.hl2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--accent-dim);
  border-radius: 2px;
  z-index: -1;
}

/* ---------- kartu layanan ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.042);
}
.card .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(182, 242, 74, 0.18);
  margin-bottom: 16px;
}
.card .ico svg { width: 19px; height: 19px; }
.card h3 { font-size: 16.5px; margin-bottom: 8px; letter-spacing: -0.015em; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.62; }

/* ---------- karya ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--surface);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
a.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(182, 242, 74, 0.28);
  box-shadow: 0 22px 50px -34px rgba(182, 242, 74, 0.5);
}
.work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  box-shadow: 0 0 8px var(--c, var(--accent));
}
.work-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
a.work-card:hover .work-link { color: var(--accent); text-decoration-color: var(--accent-line); }
.work-card h3 { font-size: 19px; letter-spacing: -0.02em; }
.work-card p { font-size: 14px; color: var(--muted); }

/* kartu ajakan di ujung grid karya */
.work-more {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
}
.work-more .plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  margin-bottom: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.work-more:hover .plus { background: var(--accent-dim); transform: rotate(90deg); }
.work-more h3 { font-size: 17px; }
.work-more p { font-size: 13.5px; }
.more-cta {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.more-cta .arr { transition: transform 0.2s ease; }
.work-more:hover .more-cta .arr { transform: translateX(3px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags span {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 3px 8px;
}

/* ---------- langkah ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.steps li {
  position: relative;
  padding: 24px 20px 24px 0;
  border-right: 1px solid var(--line-soft);
}
.steps li:last-child { border-right: 0; padding-right: 0; }
.steps li:not(:first-child) { padding-left: 20px; }
.step-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.steps h3 { font-size: 15.5px; margin-bottom: 7px; }
.steps p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- cta card ---------- */
.cta-card {
  margin-top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.15fr auto;
  align-items: center;
  gap: 26px;
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(182, 242, 74, 0.14), transparent 58%),
    radial-gradient(70% 120% at 100% 100%, rgba(110, 121, 224, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.022);
  box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.03em; }
.cta-card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
.ftr { padding-block: 34px 42px; }
.ftr-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.ftr a { color: var(--fg-2); border-bottom: 1px solid var(--line); }
.ftr a:hover { color: var(--accent); border-color: var(--accent-line); }
.ftr .tiny { margin-top: 0; }
.muted { color: var(--muted-2); }

/* ---------- animasi masuk ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(1) { transition-delay: 0.02s; }
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.14s; }
.hero .reveal:nth-child(4) { transition-delay: 0.2s; }
.hero .reveal:nth-child(5) { transition-delay: 0.26s; }

/* ---------- responsif ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 56px; }
  .hero h1 { max-width: 18ch; }
  .hero-card { order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3),
  .steps li:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .steps li:nth-child(3) { padding-left: 0; }
  .cta-card { grid-template-columns: 1fr; padding: 26px; }
}

@media (max-width: 720px) {
  :root { --pad: 18px; }
  .nav { display: none; }
  .cards, .work { grid-template-columns: 1fr; }
  .sec { padding-top: 72px; }
  .hero { padding-top: 44px; padding-bottom: 46px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .lede { font-size: 15.5px; }
  .term-body { font-size: 11.5px; min-height: 210px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-top: 1px solid var(--line-soft); padding: 20px 0; }
  .steps li:first-child { border-top: 0; }
  .steps li:not(:first-child) { padding-left: 0; }
  .cta-card { margin-top: 72px; }
  .ftr-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
  .pulse::after, .term-live .dot, .caret { animation: none; }
  .btn:hover, .card:hover, a.work-card:hover { transform: none; }
}
