:root {
  --bg: #070912;
  --panel: #101522;
  --ink: #eef6ff;
  --muted: #91a0b8;
  --line: #2a3448;
  --sol1: #14f195;
  --sol2: #9945ff;
  --sol3: #00d4ff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 74% 24%, rgba(153, 69, 255, 0.22), transparent 24rem),
    radial-gradient(circle at 28% 80%, rgba(20, 241, 149, 0.16), transparent 26rem),
    linear-gradient(135deg, #05060d 0%, var(--bg) 54%, #0a1119 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 246, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 246, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 86px 1fr;
  overflow: hidden;
}

.rail {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.7rem;
  border-right: 1px solid var(--line);
  background: rgba(7, 9, 18, 0.78);
  backdrop-filter: blur(18px);
}

.rail img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid rgba(20, 241, 149, 0.7);
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(20, 241, 149, 0.28);
}

.rail span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.2rem, 4vw, 4rem);
}

.signal {
  max-width: 720px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(20, 241, 149, 0.45);
  border-radius: 999px;
  color: #b9ffdd;
  background: rgba(20, 241, 149, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sol1);
  box-shadow: 0 0 18px var(--sol1);
  animation: pulse 1.2s ease-in-out infinite;
}

h1 {
  display: flex;
  gap: clamp(0.12rem, 0.7vw, 0.5rem);
  margin: 0;
  font-size: clamp(4.3rem, 12vw, 11.8rem);
  line-height: 0.8;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(0, 212, 255, 0.65),
    0 0 34px rgba(153, 69, 255, 0.45);
  animation: glitch-letter 2.2s steps(2, end) infinite;
}

h1 span:nth-child(2) {
  animation-delay: 0.15s;
}

h1 span:nth-child(3) {
  animation-delay: 0.3s;
}

h1 span:nth-child(4) {
  animation-delay: 0.45s;
}

h1 span:nth-child(5) {
  animation-delay: 0.6s;
}

.bio {
  max-width: 640px;
  margin: 1.4rem 0 0;
  color: #dcecff;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.38;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.actions a {
  display: grid;
  place-items: center;
  min-width: 104px;
  height: 48px;
  border: 1px solid rgba(238, 246, 255, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.actions a:hover {
  border-color: rgba(20, 241, 149, 0.75);
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.22), rgba(153, 69, 255, 0.18));
}

.terminal {
  border: 1px solid rgba(238, 246, 255, 0.16);
  border-radius: 24px;
  background: rgba(16, 21, 34, 0.78);
  box-shadow:
    0 0 0 1px rgba(20, 241, 149, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
  animation: terminal-in 1s cubic-bezier(0.12, 0.86, 0.2, 1) both;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.terminal-top div {
  display: flex;
  gap: 0.4rem;
}

.terminal-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sol2);
}

.terminal-top i:nth-child(2) {
  background: var(--sol3);
}

.terminal-top i:nth-child(3) {
  background: var(--sol1);
}

.screen {
  position: relative;
  margin: 1rem;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 241, 149, 0.35);
  border-radius: 20px;
  overflow: hidden;
  background: #05060d;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.05);
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 7px, rgba(0, 0, 0, 0.22) 8px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--sol1), var(--sol3), transparent);
  box-shadow: 0 0 24px var(--sol1);
  animation: scan 2.4s ease-in-out infinite;
}

.feed {
  padding: 0 1rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.feed p {
  margin: 0.48rem 0 0;
  padding: 0.75rem;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.feed b {
  color: var(--sol1);
}

.flow {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(20, 241, 149, 0.16), rgba(153, 69, 255, 0.16));
  overflow: hidden;
}

.flow-track {
  display: flex;
  width: max-content;
  gap: 0.7rem;
  padding: 0.9rem;
  animation: flow 20s linear infinite;
}

.flow-track span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(238, 246, 255, 0.16);
  border-radius: 999px;
  color: #dcecff;
  background: rgba(7, 9, 18, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

@keyframes glitch-letter {
  0%,
  100% {
    transform: translate(0, 0);
  }
  8% {
    transform: translate(2px, -2px);
    color: var(--sol3);
  }
  10% {
    transform: translate(-2px, 1px);
    color: #ffffff;
  }
  48% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(1px, 2px);
    color: var(--sol1);
  }
  52% {
    transform: translate(0, 0);
    color: #ffffff;
  }
}

@keyframes terminal-in {
  from {
    opacity: 0;
    transform: perspective(1100px) translateX(80px) rotateY(-12deg) rotateX(4deg);
  }
  to {
    opacity: 1;
    transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
  }
}

@keyframes scan {
  0%,
  100% {
    top: 0;
  }
  50% {
    top: calc(100% - 4px);
  }
}

@keyframes flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 850px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .rail {
    flex-direction: row;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail span {
    writing-mode: initial;
    text-orientation: initial;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 1rem 1rem 2rem;
  }

  h1 {
    font-size: clamp(3.8rem, 21vw, 7.2rem);
  }

  .terminal {
    transform: none;
  }
}
