:root {
  --bg: #060a08;
  --bg-soft: rgba(8, 18, 11, 0.82);
  --card: rgba(7, 18, 10, 0.78);
  --line: rgba(0, 255, 65, 0.11);
  --line-strong: rgba(0, 255, 65, 0.4);
  --text: #ebffef;
  --text-soft: #a8f7b8;
  --text-muted: #67bf79;
  --accent: #32ff5a;
  --accent-bright: #62ff84;
  --shadow: 0 0 0 1px rgba(0, 255, 65, 0.08), 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  background:
    radial-gradient(circle at 55% 12%, rgba(0, 255, 65, 0.12), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(0, 255, 65, 0.05), transparent 26%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.18) 100%);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.hero {
  width: min(100%, 970px);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.command-line {
  margin: 0 0 1.6rem;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45em;
  font-size: clamp(3rem, 7vw, 4.7rem);
  line-height: 1.06;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(50, 255, 90, 0.08);
}

.hero-prompt {
  color: var(--accent-bright);
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 1.3;
  color: var(--text-soft);
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.05s steps(1, end) infinite;
}

.link-grid {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.terminal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100px;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.terminal-link:hover,
.terminal-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(50, 255, 90, 0.72);
  background: rgba(8, 22, 12, 0.92);
  box-shadow:
    0 0 0 1px rgba(50, 255, 90, 0.18),
    0 24px 80px rgba(0, 0, 0, 0.45);
  outline: none;
}

.terminal-link:hover .link-arrow,
.terminal-link:focus-visible .link-arrow {
  transform: translateX(2px);
  color: var(--accent-bright);
}

.link-copy {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 600;
}

.link-icon {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--accent);
}

.link-copy span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  flex: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: transform 180ms ease, color 180ms ease;
}

.footer-note {
  margin: 3rem 0 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

@keyframes blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

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

  .terminal-link {
    min-height: 86px;
  }
}

@media (max-width: 560px) {
  body {
    background-size: auto, auto, 34px 34px, 34px 34px, auto;
  }

  .page-shell {
    align-items: flex-start;
    padding-top: 5.25rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 13vw, 3.4rem);
    gap: 0.32em;
  }

  .hero-subtitle {
    font-size: clamp(1.2rem, 7vw, 1.75rem);
  }

  .terminal-link {
    padding: 1.15rem 1.1rem;
  }
}
