/* ===== LANDING — Terminal aesthetics ===== */

:root {
  --bg: #050505;
  --bg-term: #0b0c10;
  --fg: #c5c6c7;
  --accent: #66fcf1;
  --accent-dim: #45a29e;
  --muted: #6c757d;
  --red: #ff5f56;
  --yellow: #ffbd2e;
  --green: #27c93f;
  --glow: rgba(102, 252, 241, 0.35);
  --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}

/* Subtle vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* Terminal window */
.terminal {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 6vh auto 0;
  background: var(--bg-term);
  border: 1px solid #1f2833;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(102,252,241,0.06),
    0 20px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(102,252,241,0.04);
  overflow: hidden;
  animation: termFadeIn 0.8s ease both;
}

@keyframes termFadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #14161a;
  border-bottom: 1px solid #1f2833;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dot:hover {
  transform: scale(1.15);
}

.dot.red    { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green  { background: var(--green); }

.title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 22px 26px 30px;
}

/* ASCII art */
.ascii-art {
  font-size: 9px;
  line-height: 1.25;
  color: var(--accent);
  text-shadow: 0 0 8px var(--glow);
  white-space: pre;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeIn 0.6s 0.8s ease both;
  position: relative;
}

.ascii-art::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .ascii-art { font-size: 6px; }
  .terminal { margin: 3vh 12px 0; }
}

/* Typewriter */
#typewriter {
  min-height: 48px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--fg);
}

#typewriter .line {
  display: block;
  margin-bottom: 4px;
}

#typewriter .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Services list */
.cmd-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
}

.prompt {
  color: var(--accent);
  font-weight: 600;
}

.cmd {
  color: var(--fg);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 24px 18px;
}

.service-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  opacity: 0;
  animation: slideIn 0.4s ease both;
  position: relative;
  overflow: hidden;
}

.service-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.25s;
  border-radius: 0 2px 2px 0;
}

.service-link:nth-child(1) { animation-delay: 0.4s; }
.service-link:nth-child(2) { animation-delay: 0.55s; }
.service-link:nth-child(3) { animation-delay: 0.7s; }

.service-link:hover {
  background: rgba(102,252,241,0.08);
  transform: translateX(6px);
  box-shadow: 0 0 20px rgba(102,252,241,0.06);
}

.service-link:hover::before {
  transform: scaleY(1);
}

.service-link .dir {
  color: var(--muted);
  font-size: 12px;
  min-width: 84px;
}

.service-link .name {
  color: var(--accent);
  font-weight: 500;
  min-width: 130px;
  transition: text-shadow 0.25s;
}

.service-link .arrow {
  color: var(--accent-dim);
  transition: transform 0.2s;
}

.service-link:hover .arrow {
  transform: translateX(3px);
}

.service-link .desc {
  color: var(--muted);
  font-size: 12px;
}

.service-link:hover .name {
  text-shadow: 0 0 12px var(--glow);
}

/* Service accent colors on hover */
.service-link[data-service="history"]:hover { background: rgba(0, 255, 65, 0.06); box-shadow: 0 0 20px rgba(0, 255, 65, 0.06); }
.service-link[data-service="history"]:hover::before { background: #00ff41; }
.service-link[data-service="history"]:hover .name { color: #00ff41; text-shadow: 0 0 12px rgba(0, 255, 65, 0.35); }

.service-link[data-service="compare"]:hover { background: rgba(255, 176, 0, 0.06); box-shadow: 0 0 20px rgba(255, 176, 0, 0.06); }
.service-link[data-service="compare"]:hover::before { background: #ffb000; }
.service-link[data-service="compare"]:hover .name { color: #ffb000; text-shadow: 0 0 12px rgba(255, 176, 0, 0.35); }

.service-link[data-service="lisskins"]:hover { background: rgba(0, 240, 255, 0.06); box-shadow: 0 0 20px rgba(0, 240, 255, 0.06); }
.service-link[data-service="lisskins"]:hover::before { background: #00f0ff; }
.service-link[data-service="lisskins"]:hover .name { color: #00f0ff; text-shadow: 0 0 12px rgba(0, 240, 255, 0.35); }

/* Footer cursor */
.footer-line {
  margin-top: 8px;
}

.cursor {
  display: inline-block;
  width: 10px;
  background: var(--accent);
  color: transparent;
  border-radius: 1px;
}

.cursor.blink {
  animation: blink 1s step-end infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
