:root {
  --bg: #050706;
  --bg-soft: #090d0b;
  --text: #b8c0bb;
  --text-dim: #6f7772;
  --accent: #9cffaa;
  --accent-soft: rgba(156, 255, 170, 0.22);
  --line: rgba(156, 255, 170, 0.18);
  --shadow: rgba(0, 0, 0, 0.68);
  --card: rgba(5, 7, 6, 0.66);
  --scan: rgba(255, 255, 255, 0.02);
}

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(156, 255, 170, 0.05), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(156, 255, 170, 0.04), transparent 18%),
    linear-gradient(180deg, rgba(9, 13, 11, 0.9), rgba(5, 7, 6, 1));
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 4px,
      var(--scan) 5px,
      transparent 6px
    );
  opacity: 0.16;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.34));
  opacity: 0.9;
}

a {
  color: inherit;
  text-decoration: none;
}

.frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.frame-corner,
.frame-line {
  position: absolute;
  background: var(--line);
  opacity: 0.35;
}

.frame-corner {
  width: 1rem;
  height: 1px;
}

.frame-corner::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1rem;
  background: inherit;
}

.frame-corner--tl {
  top: 4.4rem;
  left: 4.4rem;
}

.frame-corner--tr {
  top: 4.4rem;
  right: 4.4rem;
}

.frame-corner--tr::after {
  right: 0;
}

.frame-corner--bl {
  bottom: 4.4rem;
  left: 4.4rem;
}

.frame-corner--bl::after {
  top: -0.95rem;
}

.frame-corner--br {
  right: 4.4rem;
  bottom: 4.4rem;
}

.frame-corner--br::after {
  right: 0;
  top: -0.95rem;
}

.frame-line--left {
  top: 12rem;
  bottom: 12rem;
  left: 4.4rem;
  width: 1px;
}

.frame-line--right {
  top: 12rem;
  bottom: 12rem;
  right: 4.4rem;
  width: 1px;
}

.frame-line--bottom {
  left: 6.4rem;
  right: 6.4rem;
  bottom: 4.4rem;
  height: 1px;
}

.frame-grid {
  position: absolute;
  inset: 0;
}

.frame-grid--dots {
  background-image:
    radial-gradient(circle, rgba(156, 255, 170, 0.08) 1px, transparent 1.3px);
  background-size: 3.6rem 3.6rem;
  background-position: 72% 13%;
  mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 56%, transparent 86%);
  opacity: 0.55;
}

.frame-grid--scan {
  background: linear-gradient(180deg, transparent 0%, transparent 97%, rgba(156, 255, 170, 0.08) 100%);
  background-size: 100% 4.75rem;
  opacity: 0.1;
}

.shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.terminal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 54rem);
  margin-top: clamp(12vh, 20vh, 22vh);
  margin-left: clamp(1rem, 7vw, 9rem);
  padding: clamp(0.5rem, 1vw, 1rem) 0 0;
}

.eyebrow,
.side-label {
  color: rgba(111, 119, 114, 0.8);
  letter-spacing: 0.32em;
  text-transform: lowercase;
  font-size: 0.72rem;
}

.eyebrow {
  margin: 0 0 1.7rem;
  opacity: 0.62;
}

h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: lowercase;
  text-shadow: 0 0 20px rgba(156, 255, 170, 0.13);
}

.divider {
  width: clamp(4.2rem, 10vw, 6.4rem);
  height: 1px;
  margin: 2rem 0 2.6rem;
  background: linear-gradient(90deg, var(--accent-soft), rgba(156, 255, 170, 0.04));
}

.status {
  display: grid;
  gap: 2rem;
}

.status p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.status strong {
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-shadow: 0 0 14px rgba(156, 255, 170, 0.15);
}

.blog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  margin-top: 3rem;
  padding: 1rem 1.5rem 0.95rem;
  border: 1px solid rgba(156, 255, 170, 0.7);
  color: var(--accent);
  background:
    linear-gradient(180deg, rgba(9, 13, 11, 0.92), rgba(5, 7, 6, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(156, 255, 170, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.blog-link:hover {
  transform: translateY(-1px);
  border-color: rgba(156, 255, 170, 1);
  box-shadow:
    0 0 0 1px rgba(156, 255, 170, 0.15),
    0 0 24px rgba(156, 255, 170, 0.08);
}

.blog-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.side-label {
  position: fixed;
  z-index: 1;
  top: 4.6rem;
  color: rgba(111, 119, 114, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.42em;
}

.side-label span {
  display: inline-block;
}

.side-label--left {
  left: 0.95rem;
  transform: rotate(-90deg);
  transform-origin: left top;
}

.side-label--right {
  top: 3rem;
  right: 1.1rem;
}

.side-label--right span {
  position: relative;
}

.side-label--right span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2.6rem;
  width: 1.2rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.9;
}

@media (max-width: 720px) {
  .shell {
    padding: 1.25rem;
  }

  .terminal-card {
    margin-top: 23vh;
    margin-left: 0.25rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    letter-spacing: 0.18em;
  }

  .status p {
    font-size: 1rem;
  }

  .blog-link {
    min-width: 10.5rem;
  }

  .side-label {
    display: none;
  }

  .frame-corner--tl,
  .frame-corner--tr,
  .frame-corner--bl,
  .frame-corner--br,
  .frame-line--left,
  .frame-line--right {
    display: none;
  }

  .frame-line--bottom {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  body::before {
    opacity: 0.08;
  }
}
