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

:root {
  --bg: #000000;
  --slate: #5d727f;
  --slate-bright: #8a9ba6;
  --line: #1a1a1a;
  --line-bright: #2a2a2a;
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-tertiary: #6a6a6a;
  --text-faint: #4a4a4a;
}

html, body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: 32px;
  position: relative;
  animation: fadeIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(93, 114, 127, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(93, 114, 127, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);
}

.terminal-header,
.hero,
.terminal-footer {
  position: relative;
  z-index: 1;
}

.terminal-header {
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.terminal-header__left {
  display: flex;
  flex-direction: column;
}

.terminal-header__mark {
  width: 16px;
  height: auto;
  opacity: 0.85;
  margin-top: 2px;
}

.terminal-header .line {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.prompt,
.arrow {
  color: var(--slate);
  margin-right: 8px;
}

.dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 40px 0;
}

.logo {
  width: 240px;
  max-width: 65vw;
  height: auto;
  display: block;
}

.meta-box {
  border: 1px solid var(--line-bright);
  padding: 18px 22px;
  min-width: 380px;
  max-width: 90vw;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}

.meta-box::before,
.meta-box::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--slate);
}
.meta-box::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.meta-box::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.meta-box__row {
  display: flex;
  gap: 28px;
  padding: 6px 0;
  font-size: 12px;
}

.meta-box__row + .meta-box__row {
  border-top: 1px dashed var(--line);
}

.meta-box__key {
  color: var(--text-tertiary);
  width: 70px;
  flex-shrink: 0;
  letter-spacing: 0.12em;
}

.meta-box__val {
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.meta-box__val a {
  color: var(--slate-bright);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 200ms ease, color 200ms ease;
}

.meta-box__val a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--slate-bright);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(93, 114, 127, 0.6);
}

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

.terminal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.ts {
  color: var(--text-faint);
}

.status {
  color: var(--text-secondary);
}

.caret {
  color: var(--slate);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 640px) {
  body { padding: 20px; font-size: 12px; }
  .hero { gap: 36px; padding: 24px 0; }
  .logo { width: 200px; }
  .meta-box { min-width: 0; width: 100%; padding: 14px 16px; }
  .meta-box__row { font-size: 11px; gap: 18px; padding: 5px 0; }
  .meta-box__key { width: 56px; }
  .terminal-footer { font-size: 11px; }
}
