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

html, body {
  height: 100%;
  background: #080c14;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}

/* ── Canvas background ── */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ── Radial glow ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 700px 500px at 50% 50%, rgba(0,212,255,0.055) 0%, transparent 70%);
}

/* ── Page layout ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 16px 24px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .6s ease, transform .6s ease;
}
.hero.show { opacity: 1; transform: translateY(0); }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.hero h1 .cyan {
  color: #00d4ff;
  text-shadow: 0 0 30px rgba(0,212,255,0.45);
}
.role {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #334155;
}

/* ── Terminal ── */
.terminal {
  width: 100%;
  max-width: 580px;
  border-radius: 16px;
  border: 1px solid #1e293b;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.06),
    0 8px 40px rgba(0,0,0,0.6),
    0 0 60px rgba(0,212,255,0.05);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.97) translateY(10px);
  transition: opacity .5s ease .15s, transform .5s ease .15s;
}
.terminal.show { opacity: 1; transform: scale(1) translateY(0); }

/* Terminal bar */
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-bottom: 1px solid #1e293b;
  background: rgba(13,18,32,0.7);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.red    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.5); }
.dot.yellow { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.5); }
.dot.green  { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.5); }
.terminal-title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #334155;
  letter-spacing: 0.05em;
}
.terminal-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #10b981;
  letter-spacing: 0.1em;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.8);
  animation: blink 1.4s ease-in-out infinite;
}

/* Terminal body */
.terminal-body {
  padding: 16px 20px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 240px;
}

.t-line { display: flex; align-items: flex-start; gap: 0; white-space: pre-wrap; word-break: break-all; }
.t-prompt  { color: #00d4ff; }
.t-cmd     { color: #e2e8f0; }
.t-flag    { color: #a78bfa; }
.t-path    { color: #fbbf24; }
.t-pipe    { color: #64748b; }
.t-out     { color: #94a3b8; }
.t-ok      { color: #10b981; }
.t-warn    { color: #f59e0b; }
.t-err     { color: #f87171; }
.t-dim     { color: #334155; }
.t-cyan    { color: #00d4ff; }
.t-purple  { color: #a855f7; }
.t-user    { color: #22d3ee; }
.t-host    { color: #6366f1; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #00d4ff;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px rgba(0,212,255,0.8);
}

/* Progress bar */
.progress-wrap { display: flex; align-items: center; gap: 10px; }
.progress-bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00d4ff, #a855f7);
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
  transition: width 0.05s linear;
}
.progress-bg {
  width: 140px;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
}

/* Scan table */
.scan-table { margin-top: 2px; }
.scan-row { display: flex; gap: 0; }
.col-port { width: 80px; }
.col-state { width: 60px; }
.col-service { width: 90px; }
.col-version { color: #64748b; }

/* ── About ── */
.about {
  max-width: 480px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.8;
  color: #475569;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease .3s, transform .5s ease .3s;
}
.about.show { opacity: 1; transform: translateY(0); }
.about-highlight { color: #94a3b8; }

/* ── Links ── */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease .45s, transform .5s ease .45s;
}
.links.show { opacity: 1; transform: translateY(0); }

.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid #1e293b;
  background: rgba(13,18,32,0.75);
  backdrop-filter: blur(10px);
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.link-card:hover {
  color: #00d4ff;
  border-color: rgba(0,212,255,0.35);
  background: rgba(0,212,255,0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,212,255,0.12);
}
.link-card:active { transform: translateY(0) scale(0.97); }

.link-icon { width: 18px; height: 18px; flex-shrink: 0; }
.link-arrow {
  width: 13px; height: 13px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.link-card:hover .link-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* ── Footer ── */
footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #1e293b;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity .5s ease .6s;
}
footer.show { opacity: 1; }
.footer-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #334155;
  animation: blink 2s ease-in-out infinite;
}
.footer-dots span {
  animation: blink 1.2s ease-in-out infinite;
  color: #1e293b;
}
.footer-dots span:nth-child(2) { animation-delay: .2s; }
.footer-dots span:nth-child(3) { animation-delay: .4s; }

/* ── Animations ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  html, body { overflow-y: auto; }
  .page { justify-content: flex-start; padding-top: 48px; min-height: 100svh; }
  .terminal-body { font-size: 11.5px; }
  .link-card { padding: 11px 16px; font-size: 13px; }
}
