/* ============================================================
   KURO // free tier
   Terminal-retro: monospace, amber/lime on deep navy, grid,
   scanline. Bukan gradient ungu-unguan yg generik.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:        #06080f;
  --bg-2:      #0a0e1a;
  --grid:      rgba(120, 200, 255, 0.045);
  --ink:       #c8d6e5;
  --ink-dim:   #5f7086;
  --lime:      #9dff4f;
  --amber:     #ffb648;
  --cyan:      #4fd6ff;
  --red:       #ff5c5c;
  --border:    rgba(120, 200, 255, 0.14);
  --mono: 'JetBrains Mono', 'Space Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- canvas + overlays ------------------------------------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

#scanlines {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 4, 12, 0.16) 3px,
    rgba(0, 4, 12, 0.16) 4px
  );
}

#vignette {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 40%,
    rgba(2, 4, 10, 0.55) 88%,
    rgba(2, 4, 10, 0.9) 100%
  );
}

/* --- boot sequence ----------------------------------------- */
#boot {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.5s ease;
}
#boot.done { opacity: 0; pointer-events: none; }

.boot-log {
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--lime);
  text-shadow: 0 0 12px rgba(157, 255, 79, 0.35);
}

/* --- layout ------------------------------------------------- */
#ui {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.6rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hidden { opacity: 0; }
#ui { transition: opacity 0.8s ease; }

/* --- header ------------------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.1rem;
}

.logo { display: flex; align-items: baseline; gap: 0.55rem; }

.glyph {
  color: var(--lime);
  font-size: 1.3rem;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.34em;
  color: var(--ink);
}
.ver {
  font-size: 0.7rem;
  color: var(--ink-dim);
  letter-spacing: 0.16em;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
.status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-dim);
}
.status.ok    .dot { background: var(--lime);  box-shadow: 0 0 9px var(--lime); }
.status.warn  .dot { background: var(--amber); box-shadow: 0 0 9px var(--amber); }
.status.error .dot { background: var(--red);   box-shadow: 0 0 9px var(--red); }
.status.ok    { color: var(--lime); }
.status.warn  { color: var(--amber); }
.status.error { color: var(--red); }

/* --- hero --------------------------------------------------- */
.hero { max-width: 46rem; }

h1 {
  font-size: clamp(2rem, 6.5vw, 3.9rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 .l1, h1 .l2 { display: block; color: var(--ink-dim); }
h1 .l1 { font-size: 0.52em; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
h1 .accent {
  color: var(--lime);
  text-shadow: 0 0 26px rgba(157, 255, 79, 0.3);
}

.sub {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 34rem;
}

.specs {
  margin-top: 2.2rem;
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
}
.spec b {
  display: block;
  font-size: 1.5rem;
  color: var(--cyan);
  font-weight: 700;
}
.spec span {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}

/* --- form panel --------------------------------------------- */
.panel {
  border: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(9px);
  max-width: 27rem;
  width: 100%;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(120, 200, 255, 0.03);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}
.panel-head .bars { color: var(--lime); letter-spacing: -0.1em; }

.badge {
  margin-left: auto;
  font-size: 0.66rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--cyan);
}
.badge.full { color: var(--red); border-color: var(--red); }

form { padding: 1.3rem 1.1rem 1.1rem; display: grid; gap: 1rem; }

label { display: grid; gap: 0.42rem; }
label span {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}

input {
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 0.72rem 0.8rem;
  background: rgba(4, 7, 14, 0.85);
  border: 1px solid var(--border);
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input::placeholder { color: #3d4a5c; }
input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(157, 255, 79, 0.09);
}

/* progress bar saat submit */
.progress {
  height: 2px;
  background: rgba(120, 200, 255, 0.1);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s;
}
.progress.on { opacity: 1; }
.progress i {
  display: block;
  height: 100%;
  width: 38%;
  background: var(--lime);
  animation: slide 1.15s ease-in-out infinite;
}
@keyframes slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}

.feedback {
  font-size: 0.78rem;
  line-height: 1.6;
  min-height: 1.2rem;
  color: var(--red);
}
.feedback.ok { color: var(--lime); }

button {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.95rem;
  background: var(--lime);
  color: #04070c;
  border: none;
  cursor: pointer;
  position: relative;
  transition: filter 0.18s, transform 0.08s;
}
button:hover  { filter: brightness(1.12); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: wait; }

.spinner {
  position: absolute;
  right: 1rem; top: 50%;
  width: 13px; height: 13px;
  margin-top: -6px;
  border: 2px solid rgba(4, 7, 12, 0.28);
  border-top-color: #04070c;
  border-radius: 50%;
  display: none;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.busy .spinner { display: block; }

.fine {
  padding: 0 1.1rem 1.2rem;
  font-size: 0.68rem;
  line-height: 1.7;
  color: #47566a;
}

/* --- footer ------------------------------------------------- */
footer {
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
footer a { color: var(--lime); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.sep { opacity: 0.4; }

/* --- responsive --------------------------------------------- */
@media (max-width: 640px) {
  #ui { padding: 1.5rem 1.1rem 3rem; gap: 2.2rem; }
  .specs { gap: 1.5rem; }
  .spec b { font-size: 1.2rem; }
  .panel { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #gl { display: none; }
}