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

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

html {
  background: #06060e;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

:root {
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, .15);
  --bg: #06060e;
  --surface: rgba(255,255,255,.025);
  --border: rgba(255,255,255,.06);
  --text: #e2e8f0;
  --text-dim: rgba(255,255,255,.35);
}

body {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background: #06060e;
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  position: relative;
}

.grid-bg {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px); opacity: .12;
  will-change: transform;
}
.orb-1 {
  width: 400px; height: 400px;
  background: #6366f1;
  top: -100px; right: -80px;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 300px; height: 300px;
  background: #a855f7;
  bottom: 10%; left: -60px;
  animation: drift 16s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 200px; height: 200px;
  background: #3b82f6;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 8s ease-in-out infinite;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.2); }
}
@keyframes pulse {
  0%, 100% { opacity: .06; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: .15; transform: translate(-50%, -50%) scale(1.3); }
}

.scanline {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: .4;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0%   { top: -2px; }
  100% { top: 100vh; }
}

.wrapper {
  position: relative; z-index: 2;
  flex: 1; display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 0;
  margin-top: -40px;
  overflow: hidden;
}

.logo-area {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 6px;
}
.logo-area img {
  width: 42px; height: 42px; border-radius: 12px;
  box-shadow: 0 0 30px var(--accent-glow);
}
.logo-area h1 {
  font-size: 26px; font-weight: 700;
  letter-spacing: -.5px;
}
.logo-area .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-left: 8px;
  box-shadow: 0 0 8px rgba(34, 197, 94, .6);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

.tagline {
  font-size: 13px; color: var(--text-dim);
  text-align: center;
  margin-bottom: 36px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .5px;
}
.tagline code {
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent-light);
  font-size: 12px;
}

.terminal {
  width: 100%; max-width: 520px;
  background: rgba(10, 10, 20, .8);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03),
    0 20px 60px rgba(0,0,0,.5),
    0 0 100px var(--accent-glow);
}

.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot.r { background: #ef4444; }
.terminal-dot.y { background: #eab308; }
.terminal-dot.g { background: #22c55e; }
.terminal-title {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 20px 24px;
}

.switcher {
  display: flex; gap: 4px;
  background: rgba(255,255,255,.03);
  border-radius: 10px; padding: 3px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.switch-btn {
  flex: 1; padding: 8px 16px;
  background: transparent; border: none;
  border-radius: 8px; color: var(--text-dim);
  font-size: 13px; font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.switch-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, .3);
}
.switch-btn:hover:not(.active) {
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.03);
}

.steps { display: none; }
.steps.active { display: block; }

.step-item {
  display: flex; gap: 14px;
  padding: 10px 0;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px; top: 40px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-glow), transparent);
}

.step-marker {
  width: 32px; height: 32px; min-width: 32px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--accent-light);
  background: rgba(99, 102, 241, .08);
  font-family: 'JetBrains Mono', monospace;
}

.step-info { flex: 1; padding-top: 0; }
.step-name {
  font-size: 14px; font-weight: 600;
  margin-bottom: 2px; color: #fff;
}
.step-detail {
  font-size: 12px; color: var(--text-dim);
  line-height: 1.45;
}
.step-detail em {
  font-style: normal;
  color: var(--accent-light);
  font-weight: 500;
}
.step-detail .kbd {
  display: inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  vertical-align: 1px;
}

.note {
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 8px 8px 0;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
}
.note strong {
  color: rgba(255,255,255,.6);
}

.status-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 10px 20px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: #06060e;
  flex-shrink: 0;
}
.status-item {
  font-size: 11px; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: 6px;
}
.status-copyright {
  position: absolute;
  right: 20px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, .5);
}
.status-dot.orange {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, .5);
}

@media (max-height: 750px) {
  .wrapper { padding: 12px 20px 0; }
  .logo-area { margin-bottom: 4px; }
  .logo-area img { width: 36px; height: 36px; }
  .logo-area h1 { font-size: 22px; }
  .tagline { font-size: 12px; margin-bottom: 12px; }
  .terminal-bar { padding: 8px 16px; }
  .terminal-dot { width: 10px; height: 10px; }
  .terminal-body { padding: 14px 20px; }
  .switcher { margin-bottom: 12px; }
  .switch-btn { padding: 6px 12px; font-size: 12px; }
  .step-item { padding: 7px 0; gap: 12px; }
  .step-marker { width: 28px; height: 28px; min-width: 28px; font-size: 11px; border-radius: 7px; }
  .step-item:not(:last-child)::after { left: 13px; top: 36px; }
  .step-name { font-size: 13px; }
  .step-detail { font-size: 11px; }
  .note { margin-top: 10px; padding: 8px 12px; font-size: 10px; }
  .status-bar { padding: 8px 20px; }
  .status-item { font-size: 10px; }
}

@media (max-width: 600px) {
  .orb { display: none; }
  body { height: 100vh; height: 100dvh; overflow: hidden; }
  .wrapper { padding: 16px 16px 8px; margin-top: 0; }
  .logo-area { gap: 10px; margin-bottom: 4px; }
  .logo-area img { width: 34px; height: 34px; border-radius: 10px; }
  .logo-area h1 { font-size: 20px; }
  .tagline { font-size: 11px; margin-bottom: 14px; }
  .terminal { border-radius: 12px; }
  .terminal-bar { padding: 8px 14px; }
  .terminal-dot { width: 10px; height: 10px; }
  .terminal-body { padding: 14px 14px; }
  .switcher { margin-bottom: 12px; }
  .switch-btn { padding: 7px 10px; font-size: 12px; gap: 6px; }
  .step-item { gap: 10px; padding: 7px 0; }
  .step-marker { width: 28px; height: 28px; min-width: 28px; font-size: 11px; border-radius: 7px; }
  .step-item:not(:last-child)::after { left: 13px; top: 36px; }
  .step-name { font-size: 13px; margin-bottom: 1px; }
  .step-detail { font-size: 11px; line-height: 1.35; }
  .note { font-size: 10px; padding: 8px 12px; margin-top: 10px; line-height: 1.35; }
  .status-bar { gap: 10px; padding: 12px 16px; justify-content: space-between; }
  .status-item { font-size: 9px; }
  .status-copyright { position: static; }
}

@media (max-width: 380px) {
  .wrapper { padding: 12px 12px 6px; }
  .logo-area img { width: 30px; height: 30px; }
  .logo-area h1 { font-size: 18px; }
  .tagline { font-size: 10px; margin-bottom: 10px; }
  .terminal-body { padding: 12px 12px; }
  .terminal-bar { padding: 6px 12px; }
  .switch-btn { font-size: 11px; padding: 6px 6px; }
  .switcher { margin-bottom: 10px; }
  .step-item { padding: 6px 0; gap: 8px; }
  .step-marker { width: 24px; height: 24px; min-width: 24px; font-size: 10px; border-radius: 6px; }
  .step-item:not(:last-child)::after { left: 11px; top: 32px; }
  .step-name { font-size: 12px; }
  .step-detail { font-size: 10px; }
  .note { font-size: 9px; padding: 6px 10px; margin-top: 8px; }
  .status-bar { padding: 12px 12px; justify-content: space-between; }
  .status-item { font-size: 8px; }
  .status-copyright { position: static; }
}
