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

body {
  font-family: "Courier New", monospace;
  background-color: #080c1a;
  min-height: 100vh;
  position: relative;
}

/* Scanline texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* Background glows */
.glow-blue {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(30, 80, 200, 0.2) 0%,
    transparent 70%
  );
  top: 0;
  right: 0;
  pointer-events: none;
}

.glow-purple-left {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(120, 30, 180, 0.2) 0%,
    transparent 70%
  );
  bottom: 0;
  left: 0;
  pointer-events: none;
}

/* Stars */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  background: rgba(180, 160, 100, 0.7);
  border-radius: 50%;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid rgba(180, 140, 80, 0.1);
  background: rgba(8, 12, 26, 0.7);
  backdrop-filter: blur(8px);
}

.topbar a {
  color: #eac629;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.topbar a:hover {
  color: #eac629;
}

.topbar a.app-link {
  border: 1px solid rgba(180, 140, 80, 0.4);
  padding: 0.45rem 1rem;
  border-radius: 3px;
}

.topbar a.app-link:hover {
  background: rgba(180, 140, 80, 0.1);
}

/* Main content */
.content-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 7rem 2rem 6rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(180, 140, 80, 0.2);
}

.page-label {
  color: rgba(200, 170, 100, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-title {
  color: #eac629;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  font-weight: normal;
  text-transform: uppercase;
}

.page-meta {
  margin-top: 0.75rem;
  color: rgba(200, 170, 100, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

/* Document body */
.doc-body {
  background: #000000;
  border: 1px solid rgba(180, 140, 80, 0.15);
  border-radius: 4px;
  padding: 2.5rem 2.5rem;
  color: #ffffff;
}

.doc-body h2 {
  color: #eac629;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: normal;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body p {
  font-size: 0.82rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgb(255, 255, 255);
  margin-bottom: 1rem;
}

.doc-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.doc-body ul li {
  font-size: 0.82rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgb(255, 255, 255);
  margin-bottom: 0.3rem;
}

.doc-body a {
  color: #eac629;
  text-decoration: none;
}

.doc-body a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(180, 140, 80, 0.15);
}

.divider-diamond {
  width: 6px;
  height: 6px;
  background: rgba(180, 140, 80, 0.5);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  text-align: center;
  padding: 1rem;
  color: rgba(200, 170, 100, 0.35);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  border-top: 1px solid rgba(180, 140, 80, 0.1);
  background: rgba(8, 12, 26, 0.7);
  backdrop-filter: blur(8px);
}

/* Mobile */
@media (max-width: 600px) {
  .topbar {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .topbar a {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .topbar a.app-link {
    padding: 0.35rem 0.65rem;
  }
}
