.page { display: none; padding: 2rem; max-width: 860px; margin: 0 auto; }
.page.active { display: block; }
#page-home {
  max-width: none; margin: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 3rem 2rem 6rem;
  gap: 2.5rem;
}

.home-top {
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sys-name {
  font-family: var(--retro);
  font-size: 3.2rem;
  letter-spacing: 0.15em;
  line-height: 1;
  text-align: left;
  background: linear-gradient(to right, #ff9aa3, #fff8b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-bio p {
  font-size: 0.85rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 0.9rem;
  opacity: 0;
  font-family: var(--mono);
  transform: translateY(6px);
  animation: bioin 0.55s ease-out forwards;
}
.home-bio p:nth-child(1) { animation-delay: 0.15s; }
.home-bio p:nth-child(2) { animation-delay: 0.35s; }
.home-bio p:nth-child(3) { animation-delay: 0.55s; }
.home-bio p:last-child { margin-bottom: 0; }
@keyframes bioin {
  to { opacity: 1; transform: none; }
}
.hl { color: #7ab8e8; }
.hl-link { color: #7ab8e8; text-decoration: none; }
.hl-link:hover { opacity: 0.75; }

.home-clock {
  position: fixed;
  bottom: 1.2rem; right: 1.8rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--retro);
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  z-index: 100;
}
.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--pink);
  animation: sdpulse 2.4s ease-in-out infinite;
}
@keyframes sdpulse { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

#terminal-wrap {
  width: 600px;
  height: 400px;
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid #3d3060;
}
.term-titlebar {
  display: flex; align-items: center;
  padding: .8rem 0.9rem;
  background: #0c0918;
  border-bottom: 1px solid #1e1828;
  flex-shrink: 0;
  position: relative;
}

.term-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  color: var(--muted);
  font-family: var(--term);
  pointer-events: none;
}

.term-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#output { padding: .6rem .9rem .1rem; }

.out-line, .prompt-label, #cmd-input { font-size: 0.82rem; font-family: var(--term); }
.out-line { color: var(--text); line-height: 1.65; white-space: pre-wrap; }
.out-line.pink  { color: var(--pink); }
.out-line.muted { color: var(--muted); }
.out-line.err   { color: #ff8080; }
.out-line.alert { color: var(--alert); }

.prompt-row { display: flex; align-items: center; padding: 0 .9rem .6rem; }
.prompt-label { color: var(--pink); white-space: nowrap; }
#cmd-input {
  background: transparent; border: none; outline: none;
  color: var(--text); flex: 1; caret-color: var(--text);
  font-family: var(--term); font-size: 0.82rem;
}

.cursor-blink {
  display: inline-block; width: 7px; height: 13px;
  background: var(--pink); vertical-align: middle; margin-left: 1px;
  animation: cblink .9s step-end infinite;
}
@keyframes cblink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.banner-line { opacity: 0; animation: bfadein .05s forwards; }
@keyframes bfadein { to { opacity: 1; } }

@media(max-width:600px){
  .page { padding: 1rem; }
  #page-home { padding: 2rem 1rem 5rem; gap: 2rem; }
  .sys-name { font-size: 1.7rem; }
  .home-top { width: 100%; }
  #terminal-wrap { width: 100%; height: 320px; }
  .home-clock { bottom: 0.8rem; right: 1rem; }
}
