:root {
  --pixel-bg: #0b0f0d;
  --pixel-card: #111814;
  --pixel-accent: #28d86a;
  --pixel-accent-dark: #10a050;
  --pixel-ink: #e6f3ea;
  --pixel-muted: #9ad3b5;
  --pixel-border: #1e2a22;
  --pixel-shadow: 0 16px 40px rgba(4, 12, 8, 0.6);
  --pixel-radius: 6px;
  --pixel-size: 32px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  background: var(--pixel-bg);
  color: var(--pixel-ink);
  min-height: 100vh;
  position: relative;
}

.pixel-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at top right, rgba(57, 255, 122, 0.18), transparent 42%),
    radial-gradient(circle at 20% 20%, rgba(24, 60, 44, 0.8), transparent 60%);
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

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

.pixel-container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pixel-hover-grid {
  position: fixed;
  inset: 0;
  display: grid;
  z-index: 0;
  pointer-events: none;
}

.pixel-hover-cell {
  width: var(--pixel-size);
  height: var(--pixel-size);
  border: 1px solid rgba(57, 255, 122, 0.06);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pixel-hover-cell.active {
  background: rgba(40, 216, 106, 0.28);
  border-color: rgba(40, 216, 106, 0.5);
}

.pixel-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(11, 15, 13, 0.9);
  border-bottom: 1px solid var(--pixel-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 12px;
  border: 2px solid var(--pixel-border);
  padding: 4px;
  background: rgba(17, 24, 20, 0.9);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--pixel-muted);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--pixel-border);
  border-radius: var(--pixel-radius);
  padding: 10px;
  gap: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pixel-accent);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--pixel-accent);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  border-top: 1px solid var(--pixel-border);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.mobile-nav a {
  color: var(--pixel-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-nav.open {
  max-height: 320px;
  opacity: 1;
  padding: 16px 0 24px;
  transform: translateY(0);
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--pixel-accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--pixel-accent);
  color: var(--pixel-bg);
  background: var(--pixel-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--pixel-radius);
  box-shadow: var(--pixel-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pixel-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(4, 12, 8, 0.7);
}

.pixel-button.ghost {
  background: transparent;
  color: var(--pixel-accent);
  box-shadow: none;
}

.pixel-main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 96px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Press Start 2P", "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  line-height: 1.5;
  margin: 16px 0 20px;
}

.hero-copy h1 span {
  color: var(--pixel-accent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--pixel-muted);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--pixel-muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.hero-stats div {
  padding: 14px;
  border: 1px solid var(--pixel-border);
  background: rgba(17, 24, 20, 0.8);
  border-radius: var(--pixel-radius);
}

.stat-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pixel-accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--pixel-muted);
}

.hero-card {
  background: linear-gradient(140deg, rgba(17, 24, 20, 0.95), rgba(9, 14, 11, 0.95));
  border: 1px solid var(--pixel-border);
  border-radius: var(--pixel-radius);
  box-shadow: var(--pixel-shadow);
  padding: 24px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pixel-muted);
  font-size: 0.85rem;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--pixel-accent);
  box-shadow: 0 0 16px rgba(57, 255, 122, 0.8);
}

.card-body h2 {
  font-size: 1.2rem;
  margin: 16px 0 12px;
}

.card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--pixel-muted);
}

.card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--pixel-border);
  color: var(--pixel-muted);
  font-size: 0.85rem;
}

.hero-glow {
  position: absolute;
  right: 10%;
  top: 20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(57, 255, 122, 0.2), transparent 70%);
  filter: blur(4px);
  z-index: 0;
}

section {
  padding: 72px 0;
}

.section-title h2 {
  margin: 12px 0 32px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.apps-card,
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--pixel-radius);
  border: 1px solid var(--pixel-border);
  background: rgba(17, 24, 20, 0.9);
  box-shadow: var(--pixel-shadow);
}

.apps-card h3 {
  margin: 0 0 8px;
}

.apps-card p {
  margin: 0;
  color: var(--pixel-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 22px;
  border-radius: var(--pixel-radius);
  border: 1px solid var(--pixel-border);
  background: rgba(14, 19, 16, 0.9);
  display: grid;
  gap: 12px;
}

.service-card h3 {
  margin: 0;
}

.service-card p {
  margin: 0;
  color: var(--pixel-muted);
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid var(--pixel-border);
  border-radius: var(--pixel-radius);
  font-size: 0.75rem;
  color: var(--pixel-accent);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.process-step {
  padding: 20px;
  border-radius: var(--pixel-radius);
  border: 1px solid var(--pixel-border);
  background: rgba(17, 24, 20, 0.85);
}

.step-number {
  font-family: "Press Start 2P", "Space Grotesk", sans-serif;
  color: var(--pixel-accent);
  font-size: 0.85rem;
}

.process-step h3 {
  margin: 12px 0 8px;
}

.process-step p {
  margin: 0;
  color: var(--pixel-muted);
}

.contact-card {
  flex-wrap: wrap;
}

.contact-copy {
  color: var(--pixel-muted);
  max-width: 520px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pixel-footer {
  border-top: 1px solid var(--pixel-border);
  padding: 32px 0;
  color: var(--pixel-muted);
}

.pixel-footer .pixel-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pixel-loader {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: all;
}

.pixel-loader__grid {
  position: absolute;
  inset: 0;
  display: grid;
}

.pixel-loader__cell {
  width: var(--pixel-size);
  height: var(--pixel-size);
  background: #000;
  box-shadow: inset 0 0 0 1px #050505;
  opacity: 1;
  animation: pixelReveal 0.6s ease forwards;
  animation-delay: var(--delay);
}

.pixel-loader__label {
  display: none;
}

.pixel-loader--done {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

@keyframes pixelReveal {
  0% {
    background: #000;
    opacity: 1;
  }
  100% {
    background: transparent;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .pixel-nav .pixel-button {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 64px;
  }

  .apps-card,
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .pixel-footer .pixel-container {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pixel-button {
    width: 100%;
  }

  .pixel-loader__label {
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-loader__cell {
    animation-duration: 0.01s;
  }
}
