:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --soft: #eef2f7;
  --line: #dce3ee;
  --ink: #152033;
  --muted: #5b677a;
  --nav: #3a465a;
  --foot: #101925;
  --accent: #e85a1c;
  --accent-dark: #c44712;
  --accent-soft: #fff3ec;
  --accent-glow: rgba(232, 90, 28, 0.28);
  --ok: #1f8a4c;
  --display: "Sora", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 25, 37, 0.08);
  --shadow-sm: 0 2px 8px rgba(16, 25, 37, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--foot); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 100% -5%, rgba(232, 90, 28, 0.08), transparent 55%),
    radial-gradient(700px 380px at -10% 20%, rgba(21, 32, 51, 0.05), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: 10px;
  top: -44px;
  z-index: 30;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.skip:focus { top: 10px; }

.wrap {
  width: min(1020px, calc(100% - 32px));
  margin: 0 auto;
}

/* —— Header —— */
.head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 227, 238, 0.9);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  text-decoration: none;
}
.logo:hover { opacity: 0.92; text-decoration: none; }
.logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(320px, 72vw);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}
nav a {
  color: var(--nav);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* —— Hero —— */
.hero {
  padding: 28px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  animation: rise 0.55s ease both;
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 90, 28, 0.12), transparent 65%);
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.5);
  animation: live 2s ease infinite;
}

@keyframes live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(31, 138, 76, 0); }
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero-lede {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #f06a2e 0%, var(--accent) 100%);
  color: #fff !important;
  box-shadow: 0 8px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff !important;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: #c8d2e0;
  background: var(--soft);
  color: var(--ink) !important;
}

.btn-ico {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  font-size: 12px;
  line-height: 1;
}

.hero-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* —— Hero orbit animation —— */
.hero-visual { position: relative; z-index: 1; }

.orbit {
  position: relative;
  min-height: 240px;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 18px 8px 10px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
.g1 {
  width: 140px; height: 140px;
  left: 8%; top: 18%;
  background: rgba(232, 90, 28, 0.35);
  animation: breathe 3.6s ease-in-out infinite;
}
.g2 {
  width: 120px; height: 120px;
  right: 6%; bottom: 12%;
  background: rgba(61, 143, 92, 0.28);
  animation: breathe 3.6s ease-in-out 1.2s infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 0.9; }
}

.node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.node-a { animation: float-y 4.5s ease-in-out infinite; }
.node-b { animation: float-y 4.5s ease-in-out 0.8s infinite; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.screen {
  width: 100%;
  max-width: 148px;
  aspect-ratio: 4 / 3;
  border-radius: 14px 14px 10px 10px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.14), transparent 40%),
    linear-gradient(180deg, #243247 0%, #151e2d 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 18px 40px rgba(16, 25, 37, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 14px 12px;
  color: #eef2f7;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.screen-b {
  background:
    linear-gradient(160deg, rgba(232, 90, 28, 0.18), transparent 45%),
    linear-gradient(180deg, #2a3348 0%, #171f2e 100%);
}

.scan {
  position: absolute;
  left: 0; right: 0;
  height: 36%;
  top: -40%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: scan 3.2s ease-in-out infinite;
}

@keyframes scan {
  0% { top: -40%; }
  100% { top: 110%; }
}

.node-label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa6b8;
  position: relative;
}

.node-code {
  margin: 10px 0 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  animation: code-pop 5s ease-in-out infinite;
}

@keyframes code-pop {
  0%, 45%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
  55% { transform: scale(1); opacity: 1; }
}

.node-act {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  position: relative;
}

.pill {
  margin-top: auto;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 999px;
  position: relative;
}
.pill.ok {
  background: rgba(61, 143, 92, 0.22);
  color: #7ddea0;
  box-shadow: 0 0 0 0 rgba(61, 143, 92, 0.4);
  animation: ping 2.2s ease infinite;
}
.pill.wait {
  background: rgba(232, 90, 28, 0.18);
  color: #ffb089;
  animation: wait-pulse 1.6s ease-in-out infinite;
}

@keyframes ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 143, 92, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(61, 143, 92, 0); }
}

@keyframes wait-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.stand {
  width: 42%;
  height: 8px;
  margin-top: 6px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #3a465c, #222c3d);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.path {
  width: 100%;
  height: 90px;
  z-index: 1;
  overflow: visible;
}

.path-track {
  stroke: rgba(255,255,255,0.12);
  stroke-width: 2;
}

.path-flow {
  stroke: url(#flowGrad);
  stroke: #e85a1c;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 18 120;
  animation: dash 1.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(232, 90, 28, 0.75));
}

@keyframes dash {
  to { stroke-dashoffset: -138; }
}

.dot {
  filter: drop-shadow(0 0 5px rgba(232, 90, 28, 0.8));
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  z-index: 3;
  box-shadow: 0 0 10px rgba(232, 90, 28, 0.9);
}
.s1 { left: 22%; top: 28%; animation: spark 3s ease-in-out infinite; }
.s2 { left: 52%; top: 18%; animation: spark 3s ease-in-out 1s infinite; background: #ffb089; }
.s3 { right: 24%; top: 36%; animation: spark 3s ease-in-out 1.8s infinite; background: #7ddea0; }

@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(0.4) translateY(0); }
  35% { opacity: 1; transform: scale(1) translateY(-8px); }
  70% { opacity: 0; transform: scale(0.6) translateY(-16px); }
}

/* —— Boxes —— */
.main {
  padding: 22px 0 28px;
  flex: 1;
}

.boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: rise 0.55s ease both;
}
.box:nth-child(1) { animation-delay: 0.05s; }
.box:nth-child(2) { animation-delay: 0.1s; }
.box:nth-child(3) { animation-delay: 0.15s; }

.box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfd8e6;
}

.box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe 0%, var(--soft) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
}
.badge-accent { background: var(--accent); }

.box h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.box ul {
  list-style: none;
  margin: 0;
  padding: 12px 16px 8px;
  flex: 1;
}

.box li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: #3b4658;
  font-size: 13px;
  border-bottom: 1px dashed #e6ebf3;
}
.box li:last-child { border-bottom: 0; }
.box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 2.5px #fff, 0 0 0 1px var(--ink);
}
#unduh li::before {
  background: var(--accent);
  box-shadow: inset 0 0 0 2.5px #fff, 0 0 0 1px var(--accent);
}

.cs li {
  display: grid;
  gap: 2px;
}
.cs li::before { top: 16px; }
.cs span:first-child {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.cs a,
.cs span:last-child {
  color: var(--ink);
  font-weight: 650;
  font-size: 13px;
  word-break: break-word;
}

.howto {
  list-style: none;
  margin: 0;
  padding: 12px 16px 8px;
  flex: 1;
}
.howto li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px dashed #e6ebf3;
  font-size: 13px;
  color: #3b4658;
}
.howto li:last-child { border-bottom: 0; }
.howto b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--display);
  font-size: 11px;
}

.dl {
  display: block;
  margin: 8px 14px 14px;
  text-align: center;
  text-decoration: none !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dl-accent {
  background: linear-gradient(180deg, #f06a2e 0%, var(--accent) 100%);
  color: #fff !important;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.dl-accent:hover {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.dl-ink {
  background: var(--ink);
  color: #fff !important;
}
.dl-ink:hover { background: #223049; }

.dl-line {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
}
.dl-line:hover {
  border-color: var(--accent);
  color: var(--accent-dark) !important;
  background: var(--accent-soft);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

.note-mark {
  width: 4px;
  align-self: stretch;
  min-height: 18px;
  border-radius: 4px;
  background: var(--accent);
  flex: none;
}

/* —— Footer —— */
.foot {
  background: var(--foot);
  color: #c2ccd9;
  margin-top: auto;
  padding: 28px 0 16px;
}
.foot a { color: #ffb48a; }
.foot a:hover { color: #ffd0b0; }
.foot h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.foot p { margin: 0; font-size: 13px; line-height: 1.55; }
.foot .muted { margin-top: 8px; color: #8794a8; font-size: 12px; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin: 6px 0; font-size: 13px; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #243144;
}

.support {
  display: inline-block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: #ffb48a !important;
}

.copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  font-size: 12px;
  color: #8794a8;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 22px; }
  .hero h1 { max-width: none; }
  .boxes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 620px) {
  .orbit {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 8px;
    padding: 8px 0;
  }
  .path {
    width: 70%;
    height: 56px;
    margin: 0 auto;
    transform: rotate(90deg);
  }
  .node .screen { max-width: 200px; }
  .head-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
