:root {
  --bg: oklch(0.085 0.015 220);
  --fg: oklch(0.93 0.01 220);
  --muted: oklch(0.62 0.02 220);
  --muted-dim: oklch(0.48 0.02 220);
  --green: oklch(0.75 0.22 145);
  --amber: oklch(0.68 0.18 55);
  --violet: oklch(0.6 0.16 270);
  --green-rgb: 0, 255, 136;
  --mono: "Geist Mono", "JetBrains Mono", monospace;
  --sans: "Geist", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, oklch(0.75 0.22 145 / 8%) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.8;
}

#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
}

.surface-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 58% at 50% 54%, transparent 0%, rgba(8, 12, 16, 0.38) 54%, rgba(8, 12, 16, 0.84) 100%),
    radial-gradient(circle at 82% 82%, oklch(0.75 0.22 145 / 9%) 0%, transparent 35%),
    linear-gradient(to bottom, rgba(8, 12, 16, 0.72) 0%, rgba(8, 12, 16, 0.28) 42%, rgba(8, 12, 16, 0.86) 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid oklch(0.75 0.22 145 / 6%);
  background: rgba(8, 12, 16, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.brand-slash {
  color: oklch(0.75 0.22 145 / 30%);
}

main {
  position: relative;
  z-index: 5;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 104px 24px 92px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  padding: 5px 14px 5px 10px;
  border: 1px solid rgba(var(--green-rgb), 0.3);
  border-radius: 2px;
  background: rgba(var(--green-rgb), 0.05);
  color: #00ff88;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease both;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse 2s ease-in-out infinite;
}

.hero-kicker {
  height: 22px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 300;
  letter-spacing: 0.04em;
  animation: fadeUp 0.8s 0.05s ease both;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(38px, 5.6vw, 80px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.08;
  animation: fadeUp 0.8s 0.1s ease both;
}

h1 em {
  color: #00ff88;
  font-style: normal;
  font-weight: 400;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.2s ease both;
}

.signal-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.signal-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease;
  width: fit-content;
}

.signal-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  opacity: 0.9;
}

.signal-product,
.signal-product:link,
.signal-product:visited {
  color: oklch(68% 0.18 55);
}

.signal-product:hover,
.signal-product:visited:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signal-product .signal-icon,
.signal-product:visited .signal-icon {
  stroke: oklch(68% 0.18 55);
}

.signal-brandmark {
  fill: none;
  stroke: oklch(68% 0.18 55);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.signal-muted {
  color: rgba(255, 255, 255, 0.28);
  filter: grayscale(1);
}

.signal-muted .signal-icon {
  stroke: rgba(255, 255, 255, 0.34);
}

.signal-firmware {
  opacity: 0.86;
}

.signal-hardware {
  opacity: 0.82;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 40px;
  border-top: 1px solid oklch(0.75 0.22 145 / 6%);
  background: rgba(8, 12, 16, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footnote {
  justify-self: start;
  color: oklch(0.75 0.22 145 / 65%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-contact {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid oklch(0.75 0.22 145 / 24%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.footer-contact:hover {
  color: #fff;
  border-color: oklch(0.75 0.22 145 / 38%);
  background: rgba(var(--green-rgb), 0.08);
  box-shadow: 0 0 24px oklch(0.75 0.22 145 / 12%);
}

.copyright {
  justify-self: end;
  color: oklch(0.75 0.22 145 / 65%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.copyright:hover {
  color: oklch(0.75 0.22 145 / 90%);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .hero {
    align-items: flex-start;
    padding: 96px 20px 84px;
    text-align: left;
  }

  .hero-kicker {
    height: auto;
  }

  .signal-row {
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 10px 18px;
    gap: 10px;
  }

  .footnote,
  .footer-contact,
  .copyright {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
