:root {
  --ink: #0e1418;
  --panel: #171f26;
  --steel: #8fa3b3;
  --mist: #c7d3dc;
  --paper: #e8eef2;
  --amber: #d4a017;
  --amber-hot: #f0b429;
  --line: rgba(143, 163, 179, 0.22);
  --glow: rgba(212, 160, 23, 0.18);
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

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

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

body {
  color: var(--paper);
  font-family: var(--font-mono);
  background: var(--ink);
  overflow-x: hidden;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(55, 78, 96, 0.55), transparent 60%),
    radial-gradient(900px 600px at 88% 18%, rgba(212, 160, 23, 0.12), transparent 55%),
    linear-gradient(165deg, #121920 0%, #0e1418 48%, #152029 100%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
  opacity: 0.55;
  animation: grid-drift 28s linear infinite;
}

.wash {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 70% 40%, var(--glow), transparent 42%);
  animation: wash-pulse 9s ease-in-out infinite;
}

.beam {
  position: absolute;
  top: -20%;
  left: 58%;
  width: 2px;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(212, 160, 23, 0.35), transparent);
  transform: rotate(18deg);
  opacity: 0.35;
  animation: beam-sweep 12s ease-in-out infinite;
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.5rem);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.nav a:hover {
  color: var(--amber-hot);
}

.hero {
  min-height: calc(100svh - 7.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(1.2rem, 5vw, 4rem) 2rem;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(212, 160, 23, 0.12);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.15s;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mist);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.32s;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--steel);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.45s;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.58s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn.primary {
  background: var(--amber);
  color: #1a1405;
  border-color: var(--amber-hot);
}

.btn.primary:hover {
  background: var(--amber-hot);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--mist);
  border-color: rgba(143, 163, 179, 0.45);
}

.btn.ghost:hover {
  border-color: var(--amber);
  color: var(--amber-hot);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: rise 1s ease forwards 0.5s;
}

.rack {
  position: relative;
  width: min(100%, 320px);
}

.rack-face {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 1.25rem;
  border: 1px solid rgba(143, 163, 179, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(145deg, #1c2730 0%, #121920 55%, #1a242d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.45);
}

.rack-face::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px dashed rgba(143, 163, 179, 0.18);
  pointer-events: none;
}

.led {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  background: #3ecf8e;
  box-shadow: 0 0 10px rgba(62, 207, 142, 0.7);
  animation: led-blink 3.6s ease-in-out infinite;
}

.led.dim {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.55);
  animation-delay: 0.8s;
}

.bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.35rem;
  align-items: end;
  height: 42%;
  margin: 2.2rem 0.4rem 0;
}

.bars i {
  display: block;
  height: 35%;
  background: linear-gradient(180deg, var(--amber-hot), rgba(212, 160, 23, 0.25));
  transform-origin: bottom;
  animation: bar-pulse 2.4s ease-in-out infinite;
}

.bars i:nth-child(1) { animation-delay: 0.05s; height: 28%; }
.bars i:nth-child(2) { animation-delay: 0.2s; height: 62%; }
.bars i:nth-child(3) { animation-delay: 0.35s; height: 44%; }
.bars i:nth-child(4) { animation-delay: 0.5s; height: 78%; }
.bars i:nth-child(5) { animation-delay: 0.65s; height: 36%; }
.bars i:nth-child(6) { animation-delay: 0.8s; height: 88%; }
.bars i:nth-child(7) { animation-delay: 0.95s; height: 52%; }
.bars i:nth-child(8) { animation-delay: 1.1s; height: 70%; }

.plate {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(143, 163, 179, 0.28);
  background: rgba(14, 20, 24, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.rack-shadow {
  height: 1.5rem;
  margin: 0.6rem 1.5rem 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(2px);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 2.5rem) 1.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(143, 163, 179, 0.75);
}

.foot a:hover {
  color: var(--amber-hot);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 56px, 56px 0; }
}

@keyframes wash-pulse {
  0%, 100% { opacity: 0.55; transform: translate3d(0, 0, 0); }
  50% { opacity: 0.9; transform: translate3d(-2%, 1%, 0); }
}

@keyframes beam-sweep {
  0%, 100% { opacity: 0.2; transform: translateX(0) rotate(18deg); }
  50% { opacity: 0.45; transform: translateX(-18px) rotate(18deg); }
}

@keyframes led-blink {
  0%, 70%, 100% { opacity: 1; }
  80% { opacity: 0.35; }
}

@keyframes bar-pulse {
  0%, 100% { transform: scaleY(0.72); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-visual {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }

  .brand {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .nav {
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand,
  .hero h1,
  .lede,
  .cta,
  .hero-visual {
    opacity: 1;
    transform: none;
  }
}
