:root {
  --accent: #B1BF26;
  --bg: #050505;
  --accent-soft: rgba(177, 191, 38, 0.15);
  --accent-line: rgba(177, 191, 38, 0.3);
}

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

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  color: var(--accent);
  font-family: "Space Grotesk", system-ui, sans-serif;
  height: 100vh;
  height: 100dvh;
}

/* ---------- background ---------- */
#rain { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.35; }

.vignette {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(5,5,5,0.85) 25%, rgba(5,5,5,0.2) 100%);
}

.glow {
  position: fixed; z-index: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.13;
  animation: drift 14s ease-in-out infinite alternate;
}
.glow-1 { top: -140px; right: -100px; }
.glow-2 { bottom: -160px; left: -120px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(-70px, 60px) scale(1.2); } }

/* ---------- decorations ---------- */
.float {
  position: fixed; z-index: 1;
  font-size: 2rem;
  filter: drop-shadow(0 0 12px var(--accent-line));
  animation: floaty 6s ease-in-out infinite;
  user-select: none;
}
.f1 { top: 14%; left: 9%; }
.f2 { top: 20%; right: 9%; animation-delay: -2s; }
.f3 { bottom: 18%; left: 11%; animation-delay: -4s; }
.f4 { bottom: 22%; right: 10%; animation-delay: -1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

.hex {
  position: fixed; z-index: 1;
  background: var(--accent-line);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0.5;
}
.hex::after {
  content: ""; position: absolute; inset: 2px;
  background: var(--bg);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.h1 { width: 70px; height: 78px; top: 40%; left: 5%; animation: spin 20s linear infinite; }
.h2 { width: 46px; height: 52px; top: 10%; right: 28%; animation: spin 16s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit {
  position: fixed; z-index: 1;
  width: 110px; height: 110px;
  top: 62%; right: 17%;
  border: 1px dashed var(--accent-line);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}
.orbit i {
  position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

/* ---------- layout ---------- */
.wrap {
  position: relative; z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 16px 20px;
  gap: clamp(8px, 1.8vh, 18px);
  overflow: hidden;
}

/* ---------- logo ---------- */
.logo {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: rgba(177, 191, 38, 0.06);
  border: 1px solid var(--accent-line);
  animation: pulse 3s ease-in-out infinite;
}
.logo img { width: 40px; height: 40px; object-fit: contain; }
.logo svg { width: 48px; height: 48px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-soft); }
  50% { box-shadow: 0 0 45px rgba(177, 191, 38, 0.4); }
}

.brand {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.5em;
  font-size: 0.85rem;
  margin-right: -0.5em;
  opacity: 0.9;
}

/* ---------- badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(177, 191, 38, 0.05);
  backdrop-filter: blur(6px);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- title ---------- */
.title {
  font-size: clamp(1.8rem, min(6.5vw, 8vh), 4.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(177, 191, 38, 0.35);
}
.cursor { animation: blink 1s steps(1) infinite; }

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%; overflow: hidden;
  opacity: 0.7;
}
.glitch::before { color: #e8ff3a; animation: g1 4s infinite; clip-path: inset(0 0 60% 0); }
.glitch::after  { color: #6b7415; animation: g2 4s infinite; clip-path: inset(60% 0 0 0); }
@keyframes g1 {
  0%, 92%, 100% { transform: translate(0); }
  94% { transform: translate(-4px, 2px); }
  96% { transform: translate(4px, -2px); }
}
@keyframes g2 {
  0%, 90%, 100% { transform: translate(0); }
  93% { transform: translate(4px, 2px); }
  97% { transform: translate(-4px, -2px); }
}

.sub {
  max-width: 580px;
  font-size: clamp(0.95rem, 2.3vw, 1.15rem);
  line-height: 1.6;
  opacity: 0.85;
}

/* ---------- progress ---------- */
.progress {
  width: min(480px, 90%);
  height: 8px; border-radius: 999px;
  background: rgba(177, 191, 38, 0.12);
  overflow: hidden;
}
.bar {
  height: 100%; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b7415, var(--accent), #e8ff3a);
  box-shadow: 0 0 16px var(--accent);
  transition: width 0.4s ease;
}
.progress-info {
  width: min(480px, 90%);
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  opacity: 0.75;
  margin-top: -8px;
}

/* ---------- terminal ---------- */
.terminal {
  width: min(520px, 92%);
  text-align: left;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-soft);
}
.term-head {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--accent-line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0.5; }
.term-head i:nth-child(2) { opacity: 0.75; }
.term-head i:nth-child(3) { opacity: 1; }
.term-head span { margin-left: auto; }
.term-body {
  padding: 12px 16px;
  height: 118px;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.6;
}
.term-body .line { opacity: 0; animation: fadeIn 0.4s forwards; }
.term-body .ok { color: #e8ff3a; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span {
  padding: 7px 15px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-size: 0.84rem;
  background: rgba(177, 191, 38, 0.05);
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.chips span:hover {
  transform: translateY(-4px);
  background: var(--accent-soft);
  box-shadow: 0 8px 24px var(--accent-soft);
}

/* ---------- button ---------- */
.btn {
  position: relative;
  padding: 13px 30px;
  border-radius: 14px;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(177, 191, 38, 0.35);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn::after {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s infinite;
}
@keyframes shine { to { left: 160%; } }
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 50px rgba(177, 191, 38, 0.6); }

footer { font-size: 0.76rem; opacity: 0.55; }

/* ---------- responsive: always one screen, never scroll ---------- */
@media (max-width: 640px) {
  .float { font-size: 1.5rem; }
  .f2, .f4, .orbit, .h2 { display: none; }
  .brand { letter-spacing: 0.35em; margin-right: -0.35em; }
}
@media (max-height: 820px) { .chips { display: none; } }
@media (max-height: 680px) {
  .terminal { display: none; }
  .sub br { display: none; }
}
@media (max-height: 540px) {
  .progress, .progress-info { display: none; }
}

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