:root {
  color: #f6f8ff;
  background: #05070d;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #05070d;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

.shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 24px;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#particles-js canvas {
  display: block;
}

.space-page {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  border: 0;
  background: transparent;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.topbar-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

.brand-copy p,
.topbar-copy p,
label {
  color: #9aa5b5;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin-top: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.search-wrap {
  display: grid;
  gap: 10px;
  width: 100%;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: center;
  overflow: hidden;
  border: 1px solid #303743;
  border-radius: 8px;
  background: #151922;
  transition: border-color 0.15s ease;
}

.search-box:focus-within {
  border-color: #f5c451;
}

input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f6f8ff;
  padding: 0 15px;
}

input::placeholder {
  color: rgba(246, 248, 255, 0.42);
}

input:focus {
  border-color: #58a6ff;
}

button,
.quick-links a {
  min-height: 52px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

button {
  border: 0;
  background: #f6f8ff;
  color: #070a10;
  padding: 0 20px;
}

button:hover,
.quick-links a:hover {
  border-color: #697386;
}

.loader {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(245, 196, 81, 0.25);
  border-top-color: #f5c451;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.space-page {
  display: grid;
  gap: 26px;
  padding: 24px;
}

.search-box input,
.search-box button {
  min-height: 58px;
}

.search-box input {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  padding-inline: 18px;
}

.search-box input:focus {
  border-color: transparent;
}

.search-box button {
  align-self: stretch;
  min-width: 86px;
  border-radius: 0;
  background: #f5c451;
  color: #05070d;
}

.search-box button:hover {
  background: #ffd66e;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-links a {
  display: grid;
  place-items: center;
  border: 1px solid #303743;
  background: #151922;
  color: #d7deea;
  text-decoration: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 10px;
  background: rgba(9, 12, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-home {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #f6f8ff;
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.15s ease;
}

.nav-home:hover {
  color: #f5c451;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  gap: 14px;
  background: #05070d;
  color: #b8c3d4;
}

.nav-search-form {
  flex: 1 1 auto;
}

.nav-search-input {
  width: 100%;
  height: 40px;
  border: 1px solid #303743;
  border-radius: 8px;
  outline: none;
  background: #151922;
  color: #f6f8ff;
  padding: 0 16px;
  transition: border-color 0.15s ease;
}

.nav-search-input:focus {
  border-color: #f5c451;
}

.proxy-stage {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #05070d;
}

.proxy-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

[hidden] {
  display: none !important;
}

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

@media (max-width: 620px) {
  .shell {
    padding: 48px 16px 16px;
  }

  .space-page {
    padding: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box,
  .quick-links {
    grid-template-columns: 1fr;
  }

  button,
  .quick-links a {
    width: 100%;
  }
}
