:root {
  color-scheme: dark;
  --ink: #e9ede8;
  --muted: #9ba39c;
  --acid: #c8f135;
  --acid-soft: rgba(200, 241, 53, 0.13);
  --ground: #101412;
  --line: rgba(233, 237, 232, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ground);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 73% 45%, rgba(121, 145, 45, 0.12), transparent 32%),
    var(--ground);
  background-size: 42px 42px, 42px 42px, auto, auto;
  font-family: "Manrope", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  display: grid;
  width: min(100% - 64px, 1400px);
  min-height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.nav,
.footer {
  display: flex;
  align-items: center;
  font-family: "DM Mono", monospace;
  font-size: 0.69rem;
  letter-spacing: 0.13em;
}

.nav {
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  width: 28px;
  height: 28px;
  gap: 3px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--acid);
  border-radius: 50%;
}

.brand-mark span {
  width: 2px;
  border-radius: 2px;
  background: var(--acid);
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(3) {
  height: 7px;
}

.brand-mark span:nth-child(2) {
  height: 13px;
}

.nav-label,
.footer {
  color: var(--muted);
}

.hero {
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(460px, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
}

.hero-copy {
  z-index: 1;
  padding: 56px 0;
}

.eyebrow {
  display: flex;
  margin-bottom: 27px;
  gap: 10px;
  align-items: center;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 6px var(--acid-soft), 0 0 18px var(--acid);
  animation: pulse 2.4s ease-in-out infinite;
}

h1 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 6.9rem);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.91;
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.intro {
  max-width: 560px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.17rem);
  line-height: 1.75;
}

.actions {
  display: flex;
  margin-top: 38px;
  gap: 12px;
  align-items: center;
}

.primary-button,
.copy-button {
  display: inline-flex;
  min-height: 54px;
  border: 1px solid transparent;
  align-items: center;
  justify-content: center;
  font: 700 0.78rem "Manrope", sans-serif;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  gap: 28px;
  padding: 0 23px;
  color: #101410;
  background: var(--acid);
  text-decoration: none;
}

.primary-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.copy-button {
  gap: 10px;
  padding: 0 18px;
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.copy-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.primary-button:hover,
.copy-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: #dafb62;
}

.copy-button:hover {
  border-color: rgba(233, 237, 232, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.primary-button:focus-visible,
.copy-button:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.server-address {
  display: flex;
  margin-top: 40px;
  gap: 13px;
  align-items: baseline;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
}

.server-address span {
  color: #69716b;
  letter-spacing: 0.12em;
}

.server-address strong {
  color: var(--ink);
  font-weight: 500;
}

.signal {
  position: relative;
  width: min(42vw, 590px);
  aspect-ratio: 1;
  margin-left: auto;
}

.orbit,
.signal::before,
.signal::after {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  border: 1px solid var(--line);
}

.orbit-outer {
  inset: 4%;
}

.orbit-outer::before,
.orbit-outer::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  content: "";
  box-shadow: 0 0 12px var(--acid);
}

.orbit-outer::before {
  top: 14%;
  left: 16%;
}

.orbit-outer::after {
  right: -3px;
  bottom: 48%;
}

.orbit-inner {
  inset: 19%;
  border-style: dashed;
  opacity: 0.7;
  animation: rotate 50s linear infinite;
}

.signal::before {
  inset: 31%;
  border: 1px solid rgba(200, 241, 53, 0.26);
  content: "";
  background: rgba(200, 241, 53, 0.025);
  box-shadow: 0 0 70px rgba(200, 241, 53, 0.08);
}

.signal::after {
  inset: 43%;
  content: "";
  background: var(--acid-soft);
  filter: blur(18px);
}

.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--line);
}

.crosshair-x {
  width: 100%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.crosshair-y {
  width: 1px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  width: 134px;
  height: 100px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.bar {
  width: 5px;
  border-radius: 5px;
  background: var(--acid);
  box-shadow: 0 0 15px rgba(200, 241, 53, 0.35);
  animation: voice 1.1s ease-in-out infinite alternate;
}

.bar-1,
.bar-7 {
  height: 22%;
}

.bar-2,
.bar-6 {
  height: 47%;
  animation-delay: -0.5s;
}

.bar-3,
.bar-5 {
  height: 70%;
  animation-delay: -0.25s;
}

.bar-4 {
  height: 96%;
  animation-delay: -0.7s;
}

.coordinate {
  position: absolute;
  left: 50%;
  padding: 0 9px;
  color: #747c75;
  background: var(--ground);
  font: 0.6rem "DM Mono", monospace;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.coordinate-top {
  top: 2.5%;
}

.coordinate-bottom {
  bottom: 2.5%;
  color: var(--acid);
}

.footer {
  min-height: 76px;
  border-top: 1px solid var(--line);
}

.footer-line {
  height: 1px;
  margin: 0 18px;
  background: var(--line);
  flex: 1;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 20;
  padding: 13px 18px;
  color: #101410;
  background: var(--acid);
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(200, 241, 53, 0.05), 0 0 24px var(--acid);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes voice {
  to {
    transform: scaleY(0.55);
    opacity: 0.7;
  }
}

@media (max-width: 960px) {
  .shell {
    width: min(100% - 40px, 760px);
  }

  .hero {
    position: relative;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 70px 0 64px;
  }

  .signal {
    position: absolute;
    top: 50%;
    right: -22%;
    z-index: 0;
    width: 560px;
    opacity: 0.24;
    transform: translateY(-50%);
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(100% - 32px, 480px);
  }

  .nav {
    min-height: 82px;
  }

  .nav-label {
    display: none;
  }

  .hero-copy {
    padding: 58px 0 50px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
    letter-spacing: -0.075em;
  }

  .intro {
    max-width: 420px;
    margin-top: 26px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .copy-button {
    width: 100%;
  }

  .primary-button {
    justify-content: space-between;
  }

  .server-address {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .signal {
    right: -75%;
    width: 520px;
  }

  .footer {
    justify-content: space-between;
    font-size: 0.58rem;
  }

  .footer-line {
    display: none;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (max-height: 760px) and (min-width: 961px) {
  .nav {
    min-height: 78px;
  }

  .hero {
    min-height: 510px;
  }

  .hero-copy {
    padding: 35px 0;
  }

  .signal {
    width: min(38vw, 520px);
  }

  .footer {
    min-height: 58px;
  }
}

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