:root {
  color-scheme: dark;
  --black: #030405;
  --ink: #080b0f;
  --glass: rgba(8, 11, 15, 0.68);
  --glass-strong: rgba(5, 7, 10, 0.84);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f8fa;
  --muted: #a9b0bd;
  --soft: #d6dbe4;
  --red: #ff404d;
  --red-soft: rgba(255, 64, 77, 0.18);
  --amber: #f8c36a;
  --green: #63f2a2;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
}

button,
a,
audio {
  font: inherit;
}

a {
  color: inherit;
}

.background-video,
.background-shade,
.scanline {
  position: fixed;
  inset: 0;
}

.background-video {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--black);
  filter: saturate(0.62) contrast(1.18) brightness(0.38);
}

.background-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.scanline {
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 5px, 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 84%);
}

.page {
  display: flex;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 64px);
  align-items: center;
}

.hero {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.status-bar {
  display: inline-flex;
  min-height: 38px;
  margin-bottom: 22px;
  padding: 0 14px;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 64, 77, 0.95);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: end;
}

.hero-copy {
  max-width: 700px;
  padding: clamp(26px, 5vw, 56px) 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 8.7rem);
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.68);
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.sound-button,
.ghost-link,
.copy-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sound-button {
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 36px rgba(255, 64, 77, 0.22);
}

.ghost-link,
.copy-button {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
}

.sound-button:hover,
.ghost-link:hover,
.copy-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.endpoint-panel {
  padding: 18px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.panel-heading {
  display: flex;
  margin-bottom: 14px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-heading strong {
  color: var(--green);
  font-size: 0.82rem;
}

.endpoint-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.endpoint-card + .endpoint-card {
  margin-top: 14px;
}

.endpoint-label {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 800;
}

code {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.45;
}

audio {
  width: 100%;
  height: 42px;
  color-scheme: dark;
}

.copy-button {
  width: 100%;
  min-height: 42px;
  color: var(--soft);
}

.copy-button.is-copied {
  color: var(--green);
  background: rgba(99, 242, 162, 0.11);
  border-color: rgba(99, 242, 162, 0.38);
}

@media (max-width: 880px) {
  .page {
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 8px;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 18px;
  }

  .status-bar {
    max-width: 100%;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .actions,
  .sound-button,
  .ghost-link {
    width: 100%;
  }

  .endpoint-panel,
  .endpoint-card {
    padding: 14px;
  }
}
