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

html {
  background: #07060d;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at top, rgba(255, 43, 214, 0.18), transparent 60%), radial-gradient(ellipse at bottom, rgba(0, 240, 255, 0.12), transparent 60%), #07060d;
  color: #d9e6ff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

main, footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

main {
  flex: 1;
}

a {
  color: #00f0ff;
  text-decoration: none;
}
a:hover {
  color: #ff2bd6;
}

.dim {
  color: #7d86a8;
}

.grid-floor {
  position: fixed;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 45vh;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 43, 214, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 43, 214, 0.35) 1px, transparent 1px);
  background-size: 3rem 3rem;
  transform: perspective(300px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  animation: grid-scroll 4s linear infinite;
  pointer-events: none;
}

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

@keyframes grid-scroll {
  to {
    background-position: 0 3rem;
  }
}
.hero {
  padding: 5rem 0 2rem;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: #39ff88;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.blink {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
.glitch {
  position: relative;
  display: inline-block;
  margin: 0.5rem 0;
  font-family: "Orbitron", "JetBrains Mono", ui-monospace, monospace;
  font-weight: 900;
  font-size: clamp(3.5rem, 16vw, 8rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: #d9e6ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.7), 0 0 40px rgba(255, 43, 214, 0.5);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
}
.glitch::before {
  color: #00f0ff;
  transform: translate(-3px, 0);
  clip-path: inset(0 0 60% 0);
  animation: glitch-a 3s infinite steps(1);
  mix-blend-mode: screen;
}
.glitch::after {
  color: #ff2bd6;
  transform: translate(3px, 0);
  clip-path: inset(55% 0 0 0);
  animation: glitch-b 2.4s infinite steps(1);
  mix-blend-mode: screen;
}

@keyframes glitch-a {
  0%, 100% {
    clip-path: inset(0 0 60% 0);
    transform: translate(-3px, 0);
  }
  20% {
    clip-path: inset(20% 0 50% 0);
    transform: translate(-6px, -2px);
  }
  40% {
    clip-path: inset(70% 0 5% 0);
    transform: translate(4px, 1px);
  }
  60% {
    clip-path: inset(40% 0 40% 0);
    transform: translate(-2px, 2px);
  }
}
@keyframes glitch-b {
  0%, 100% {
    clip-path: inset(55% 0 0 0);
    transform: translate(3px, 0);
  }
  25% {
    clip-path: inset(10% 0 75% 0);
    transform: translate(6px, 1px);
  }
  50% {
    clip-path: inset(80% 0 2% 0);
    transform: translate(-4px, -1px);
  }
  75% {
    clip-path: inset(30% 0 50% 0);
    transform: translate(2px, -2px);
  }
}
.tagline {
  margin: 1rem 0 0;
  color: #d9e6ff;
  font-size: 1.05rem;
}

.terminal {
  margin: 2rem auto;
  max-width: 36rem;
  background: rgba(16, 12, 30, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.25), inset 0 0 24px rgba(0, 240, 255, 0.05);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}
.terminal-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff2bd6;
}
.terminal-bar span:nth-child(2) {
  background: #f5f749;
}
.terminal-bar span:nth-child(3) {
  background: #39ff88;
}
.terminal-bar em {
  margin-left: auto;
  color: #7d86a8;
  font-size: 0.75rem;
  font-style: normal;
}

.terminal-body {
  margin: 0;
  padding: 1rem 1.25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-x: auto;
}
.terminal-body b {
  color: #d9e6ff;
}
.terminal-body .prompt {
  color: #ff2bd6;
}
.terminal-body .warn {
  color: #f5f749;
}
.terminal-body .ok {
  color: #39ff88;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: text-bottom;
  background: #00f0ff;
  animation: blink 1s steps(1) infinite;
}

.services {
  padding: 2rem 0 3rem;
  text-align: center;
}
.services h2 {
  font-family: "Orbitron", "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00f0ff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.card {
  position: relative;
  display: block;
  padding: 1.25rem;
  background: rgba(16, 12, 30, 0.82);
  border: 1px solid rgba(255, 43, 214, 0.4);
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  color: #d9e6ff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  color: #d9e6ff;
  border-color: #00f0ff;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-3px);
}
.card h3 {
  margin: 0.25rem 0 0.5rem;
  font-family: "Orbitron", "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 1rem;
  color: #ff2bd6;
}
.card p {
  margin: 0;
  color: #7d86a8;
  font-size: 0.85rem;
}

.card-id {
  color: #39ff88;
  font-size: 0.75rem;
}

.cta {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border: 2px solid #00f0ff;
  color: #00f0ff;
  font-family: "Orbitron", "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  transition: background 0.2s, color 0.2s;
}
.cta:hover {
  background: #00f0ff;
  color: #07060d;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 43, 214, 0.3);
  color: #7d86a8;
}

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