:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --dark: #141414;
  --mid: #1f1f1f;
  --light: #e8e8e8;
  --muted: #b5b5b5;
  --accent-r: #ff3b30;
  --accent-g: #36f9ff;
  --accent-b: #a855f7;
  --glow: rgba(54, 249, 255, 0.25);
  --radius: 20px;
  --content-width: 1100px;
  --mono: "Space Grotesk", system-ui, sans-serif;
  --display: "Unica One", "Space Grotesk", system-ui, sans-serif;
}

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

body {
  font-family: var(--mono);
  background: radial-gradient(circle at top, #1b1b1b, #0a0a0a 60%);
  color: var(--light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img {
  width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 2;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.025) 1px,
    rgba(0, 0, 0, 0.02) 2px,
    rgba(0, 0, 0, 0.02) 3px
  );
  mix-blend-mode: overlay;
  z-index: 3;
  opacity: 0.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 60px);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.brand-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.brand-wordmark {
  height: 22px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-toggle {
  display: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

main {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 60px clamp(20px, 6vw, 90px) 140px;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  border-radius: clamp(22px, 3vw, 40px);
  overflow: hidden;
  padding: clamp(60px, 8vw, 120px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.hero-compact {
  min-height: 45vh;
  padding: clamp(40px, 6vw, 90px);
}

.wallpaper {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.25)), var(--bg);
  background-size: cover;
  background-position: center;
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 59, 48, 0.12), rgba(54, 249, 255, 0.1), rgba(168, 85, 247, 0.12));
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.05;
  margin: 18px 0 26px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.lead {
  font-size: 18px;
  color: var(--light);
}

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

.primary {
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--light);
  color: var(--black);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chromatic {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 59, 48, 0.3), rgba(54, 249, 255, 0.2), rgba(168, 85, 247, 0.25));
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
  animation: chroma 8s ease-in-out infinite;
}

.rgb-sheen {
  text-shadow: -1px -1px 0 rgba(255, 59, 48, 0.75),
    1px 1px 0 rgba(54, 249, 255, 0.75),
    0 0 8px rgba(168, 85, 247, 0.35);
}

.section-header {
  max-width: 720px;
}

.section-header h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  margin: 14px 0 18px;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.slideshow {
  position: relative;
  min-height: 60vh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2)), var(--bg);
  background-size: cover;
  background-position: center;
  animation: slideFade 18s infinite;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 59, 48, 0.18), rgba(54, 249, 255, 0.12), rgba(168, 85, 247, 0.16));
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 6s;
}

.slide:nth-child(3) {
  animation-delay: 12s;
}

.slide-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 12px 16px;
  background: rgba(5, 5, 5, 0.7);
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: inline-flex;
  width: max-content;
}

.terminal {
  display: grid;
  gap: 30px;
}

.terminal-copy h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 54px);
  margin: 14px 0 22px;
}

.terminal-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  list-style: none;
  font-size: 16px;
}

.terminal-list li::before {
  content: "//";
  color: var(--accent-g);
  margin-right: 10px;
}

.signals {
  display: grid;
  gap: 40px;
}

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

.signal-card {
  padding: 24px;
  background: var(--dark);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-card h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.contact {
  display: flex;
  justify-content: center;
}

.contact-card {
  background: var(--dark);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: min(720px, 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f0f0f;
  color: var(--light);
  font-size: 14px;
}

.fineprint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px clamp(20px, 6vw, 90px) 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #080808;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes chroma {
  0% {
    transform: translate3d(-6px, -4px, 0);
  }
  50% {
    transform: translate3d(6px, 4px, 0);
  }
  100% {
    transform: translate3d(-6px, -4px, 0);
  }
}

@keyframes slideFade {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    flex-direction: column;
    background: rgba(5, 5, 5, 0.92);
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  main {
    gap: 80px;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .terminal-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    padding: 28px;
  }

  .slideshow {
    min-height: 45vh;
  }
}
