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

:root {
  --bg: #ffffff;
  --accent: #5b4ad8;
  --text: #111;
  --muted: #888;
  --green: #2d8a56;
  --warn: #c9a02b;
  --link: #4a3db8;
}

body {
  font-family: 'Source Code Pro', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.scrollable {
  align-items: flex-start;
  padding: 3rem 0 4rem;
  overflow-y: auto;
}

.terminal {
  max-width: 600px; 
  width: 100%;
  text-align: left;
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  padding: 2rem;
}

.line {
  font-size: 0.9rem;
  line-height: 2;
  letter-spacing: 0.04em;
}

.line .prompt,
.line .dim { color: var(--muted); }

.line .keyword { color: var(--accent); font-weight: 500; }

.line .string,
.line .available { color: var(--green); }

.line .comment { color: #999; }

.line .hl { color: var(--accent); }

.line .warn,
.line .soon { color: var(--warn); }

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

.terminal a,
.document a {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}

.terminal a:hover,
.document a:hover { color: var(--accent); }

.gap  { margin-top: 0.8rem; }
.gap2 { margin-top: 1.4rem; }

.screenshot {
  margin: 1.4rem 0;
  margin-left: 2rem;
  width: min(60%, 320px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  line-height: 0;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 1rem;
  padding: 0.15rem 0;
}

.table-header {
  color: var(--muted);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 0.3rem;
}

.document {
  max-width: 680px;
  width: 100%;
  padding: 2rem;
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.document h1,
.document h2 { color: var(--accent); }

.document h1 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.3rem; }
.document h2 { font-size: 0.9rem;  font-weight: 500; margin: 1.8rem 0 0.4rem; }
.document h3 { font-size: 0.85rem; font-weight: 500; margin: 1.2rem 0 0.3rem; }
.document p  { margin-bottom: 0.6rem; }
.document ul { padding-left: 1.5rem; margin-bottom: 0.6rem; }
.document li { margin-bottom: 0.3rem; }
.document code { color: var(--green); }

.document strong { font-weight: 500; }

.document .meta { color: var(--muted); margin-bottom: 1.5rem; }

.inline {
  display: inline;
  font: inherit;
  margin: 0;
  padding: 0;
}

.copyright {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  z-index: 1;
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 480px) {
  .line      { font-size: 0.95rem; }
  .terminal  { padding: 1.5rem; }
  .document  { padding: 1.5rem; font-size: 0.95rem; }
  .document h1 { font-size: 1.15rem; }
  .document h2 { font-size: 0.95rem; }
  .document h3 { font-size: 0.9rem; }
  .table-row { grid-template-columns: 1.5fr 1fr 0.8fr; gap: 0.5rem; }
  .screenshot { width: min(85%, 320px); margin-left: 0; }
}
