:root {
  font-size: 18px;
  font-family: "Courier New", Courier, "Lucida Console", monospace;
  color: #ffffff;
  background: #000000;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --accent: #ff7700;
  --accent-soft: rgba(255, 119, 0, 0.1);
  --glitch-r: #ff0040;
  --glitch-g: #00ff88;
  --glitch-b: #00c8ff;
  --border: rgba(255, 255, 255, 0.78);
  --border-accent: rgba(255, 119, 0, 0.65);
  --border-muted: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --panel: rgba(0, 0, 0, 0.97);
  --cut: 12px;
  --shell-width: 1480px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background-color: #000;
  background-image:
    radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.022), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(0, 0, 0, 0));
  background-size: 100% 100%, 100% 100%;
  animation: screen-flicker 16s infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.14) 2px,
    rgba(0, 0, 0, 0.14) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 200, 255, 0.015) 40%,
    rgba(0, 200, 255, 0.015) 60%,
    transparent 100%
  );
  animation: scanline-move 14s linear infinite;
  pointer-events: none;
  z-index: 9997;
}

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

@keyframes scanline-move {
  0% {
    top: -24%;
  }

  100% {
    top: 124%;
  }
}

@keyframes screen-flicker {
  0%,
  94%,
  100% {
    opacity: 1;
  }

  95% {
    opacity: 0.94;
  }

  96% {
    opacity: 1;
  }

  98% {
    opacity: 0.98;
  }

  99% {
    opacity: 1;
  }
}

@keyframes border-glitch {
  0%,
  87%,
  100% {
    border-color: rgba(255, 255, 255, 0.78);
  }

  88% {
    border-color: var(--glitch-r);
  }

  91% {
    border-color: var(--glitch-b);
  }

  95% {
    border-color: var(--glitch-g);
  }

  96% {
    border-color: rgba(255, 255, 255, 0.78);
  }
}

@keyframes rgb-shift {
  0%,
  84%,
  100% {
    text-shadow: none;
  }

  85% {
    text-shadow: -4px 0 var(--glitch-r), 4px 0 var(--glitch-b);
  }

  87% {
    text-shadow: -3px 0 var(--glitch-g), 3px 0 var(--glitch-r);
  }

  88% {
    text-shadow: none;
  }
}

.landing-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.landing-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.004)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)),
    var(--panel);
  border: 1px solid var(--border);
  width: min(100%, 356px);
  min-height: 214px;
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: border-glitch 22s infinite;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  container-type: inline-size;
}

.landing-panel > * {
  position: relative;
  z-index: 2;
}

.landing-panel::selection {
  background: var(--accent-soft);
}

.landing-panel::marker {
  content: none;
}

.landing-panel::backdrop {
  background: transparent;
}

.landing-panel h1::before,
.landing-panel h1::after {
  pointer-events: none;
}

.landing-panel h1 {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.05rem, 7.2cqi, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
  animation: rgb-shift 18s infinite;
  text-transform: lowercase;
  position: relative;
  padding: 0 clamp(18px, 7cqi, 30px) 16px;
  white-space: nowrap;
}

.landing-panel h1::before,
.landing-panel h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1px;
}

.landing-panel h1::before {
  left: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
}

.landing-panel h1::after {
  left: 50%;
  width: 92px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

.landing-panel h1 span {
  display: inline-block;
  transform: translateX(0.08em);
}

.lock-icon {
  width: 64px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.06));
}

.lock-shackle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.lock-body {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2;
}

.lock-core {
  fill: rgba(255, 255, 255, 0.82);
}

@media (max-width: 480px) {
  .landing-shell {
    padding: 16px;
  }

  .landing-panel {
    width: min(100%, 290px);
    min-height: 188px;
    padding: 26px 18px 24px;
    gap: 22px;
  }

  .landing-panel h1 {
    font-size: clamp(0.95rem, 7cqi, 1.15rem);
    letter-spacing: 0.14em;
    padding-bottom: 14px;
  }

  .lock-icon {
    width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::after,
  .landing-panel,
  .landing-panel h1 {
    animation: none !important;
  }

  .bg-grid {
    display: none;
  }
}