:root {
  --bg: #05060a;
  --panel: rgba(8, 12, 18, 0.88);
  --text: #d8e0e8;
  --muted: #5c6b7a;
  --neon: #00fff9;
  --magenta: #ff2a6d;
  --border: rgba(0, 255, 249, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Consolas", "Courier New", monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(40px, 9vh, 90px) 16px 28px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 249, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 249, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22) 0 1px,
    transparent 1px 3px
  );
}

.hero {
  text-align: center;
}

.glitch {
  position: relative;
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  text-shadow:
    0 0 8px rgba(0, 255, 249, 0.55),
    0 0 28px rgba(0, 255, 249, 0.22);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  color: var(--magenta);
  text-shadow: 0 0 14px rgba(255, 42, 109, 0.65);
  clip-path: polygon(0 0, 100% 0, 100% 32%, 0 32%);
  animation: glitch-top 2.6s infinite linear alternate-reverse;
}

.glitch::after {
  color: var(--neon);
  text-shadow: 0 0 14px rgba(0, 255, 249, 0.65);
  clip-path: polygon(0 64%, 100% 64%, 100% 100%, 0 100%);
  animation: glitch-bottom 1.9s infinite linear alternate-reverse;
}

@keyframes glitch-top {
  0% { clip-path: polygon(0 0, 100% 0, 100% 26%, 0 26%); transform: translate(-4px, -2px); }
  25% { clip-path: polygon(0 8%, 100% 8%, 100% 40%, 0 40%); transform: translate(3px, 1px); }
  50% { clip-path: polygon(0 2%, 100% 2%, 100% 22%, 0 22%); transform: translate(-2px, 2px); }
  75% { clip-path: polygon(0 14%, 100% 14%, 100% 36%, 0 36%); transform: translate(4px, -1px); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%); transform: translate(-3px, -2px); }
}

@keyframes glitch-bottom {
  0% { clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%); transform: translate(4px, 2px); }
  25% { clip-path: polygon(0 58%, 100% 58%, 100% 88%, 0 88%); transform: translate(-3px, -1px); }
  50% { clip-path: polygon(0 74%, 100% 74%, 100% 100%, 0 100%); transform: translate(2px, -2px); }
  75% { clip-path: polygon(0 60%, 100% 60%, 100% 92%, 0 92%); transform: translate(-4px, 1px); }
  100% { clip-path: polygon(0 68%, 100% 68%, 100% 100%, 0 100%); transform: translate(3px, 2px); }
}

.slogan {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  letter-spacing: 0.08em;
  min-height: 1.4em;
}

.cursor {
  color: var(--neon);
  text-shadow: 0 0 8px rgba(0, 255, 249, 0.7);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.card {
  position: relative;
  max-width: 680px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 30px 32px 26px;
  box-shadow:
    0 0 26px rgba(0, 255, 249, 0.08),
    inset 0 0 44px rgba(0, 255, 249, 0.03);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--neon);
  border-left: 2px solid var(--neon);
  box-shadow: -2px -2px 10px rgba(0, 255, 249, 0.35);
}

.card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--magenta);
  border-right: 2px solid var(--magenta);
  box-shadow: 2px 2px 10px rgba(255, 42, 109, 0.35);
}

.card-tag {
  position: absolute;
  top: -9px;
  left: 20px;
  background: var(--bg);
  color: var(--neon);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0 8px;
  text-shadow: 0 0 8px rgba(0, 255, 249, 0.6);
}

.card p {
  margin: 10px 0;
  line-height: 1.7;
}

.status {
  margin-top: 20px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.status.ok {
  color: var(--neon);
  text-shadow: 0 0 8px rgba(0, 255, 249, 0.5);
}

.status.fail {
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 42, 109, 0.5);
}

footer {
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.neon {
  color: var(--magenta);
  text-shadow: 0 0 10px rgba(255, 42, 109, 0.55);
}

@media (max-width: 480px) {
  .card {
    padding: 22px 18px 20px;
  }

  .slogan {
    letter-spacing: 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glitch::before,
  .glitch::after,
  .cursor {
    animation: none;
  }
}
