:root {
  --bg: #000000;
  --surface: rgba(0, 255, 65, 0.035);
  --border: rgba(0, 255, 65, 0.25);
  --text: #d9ffe4;
  --muted: #3f8f52;
  --accent: #00ff41;
  --accent-2: #39ff88;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Share Tech Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#bg.active {
  opacity: 0.65;
}

.card {
  position: relative;
  z-index: 1;
  width: min(90vw, 420px);
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 0 1px rgba(0, 255, 65, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 90px -15px rgba(0, 255, 65, 0.25);
}

.mark {
  height: 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: #ff3b3b;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.7);
  margin-bottom: 1.25rem;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.mark.alert {
  opacity: 1;
  animation: markFlicker 0.15s steps(2, end) infinite;
}

@keyframes markFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.brand-wrap {
  position: relative;
  display: inline-block;
  cursor: default;
}

h1#brand {
  position: relative;
  margin: 0;
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.55), 0 0 28px rgba(0, 255, 65, 0.25);
}

h1#brand::before,
h1#brand::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}

.static-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.08s linear;
}

.static-fx.active {
  opacity: 0.85;
}

h1#brand.glitching {
  animation: glitchShake 0.1s steps(2, end) infinite;
}

h1#brand.glitching::before {
  opacity: 0.7;
  color: #ffffff;
  transform: translate(2px, 0);
  clip-path: inset(0 0 55% 0);
  animation: glitchSliceA 0.18s steps(2, end) infinite;
}

h1#brand.glitching::after {
  opacity: 0.7;
  color: var(--accent-2);
  transform: translate(-2px, 0);
  clip-path: inset(55% 0 0 0);
  animation: glitchSliceB 0.22s steps(2, end) infinite;
}

@keyframes glitchShake {
  0%   { transform: translate(0, 0) skewX(0deg); }
  25%  { transform: translate(-1px, 1px) skewX(1deg); }
  50%  { transform: translate(1px, -1px) skewX(-1deg); }
  75%  { transform: translate(-1px, 0) skewX(0.5deg); }
  100% { transform: translate(1px, 1px) skewX(0deg); }
}

@keyframes glitchSliceA {
  0%   { clip-path: inset(0 0 55% 0); transform: translate(2px, 0); }
  50%  { clip-path: inset(10% 0 40% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(0 0 60% 0); transform: translate(3px, 0); }
}

@keyframes glitchSliceB {
  0%   { clip-path: inset(55% 0 0 0); transform: translate(-2px, 0); }
  50%  { clip-path: inset(40% 0 10% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(60% 0 0 0); transform: translate(-3px, 0); }
}

.tagline {
  margin: 0.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.link svg {
  flex-shrink: 0;
}

.link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(0, 255, 65, 0.08);
}

.footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  opacity: 0.5;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  z-index: 1;
}

@media (max-width: 480px) {
  .card {
    padding: 2.5rem 1.75rem;
  }
  h1#brand {
    font-size: 2.1rem;
  }
}
