:root {
  --bg: #070b14;
  --bg-soft: #0d1424;
  --surface: #121b2f;
  --surface-soft: #17243c;
  --text: #edf2ff;
  --muted: #b6c3df;
  --line: rgba(194, 209, 240, 0.22);
  --brand: #391317;
  --brand-soft: #6f2c33;
  --brand-deep: #220b0d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 10% -5%,
      rgba(42, 76, 167, 0.32),
      transparent 38%
    ),
    radial-gradient(
      circle at 95% 105%,
      rgba(122, 35, 98, 0.24),
      transparent 42%
    ),
    var(--bg);
}

a {
  color: #dbe7ff;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.88);
  backdrop-filter: blur(10px);
}

.page-header-inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(130px, 16vw, 190px);
  height: auto;
  display: block;
}

.page-nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.page-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-nav a:hover {
  color: var(--white);
}

.page-main {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 2.4rem 0 3.4rem;
}

.doc-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(130deg, rgba(57, 19, 23, 0.62), rgba(23, 36, 60, 0.82)),
    url("assets/images/hero-space.svg");
  background-size: cover;
  background-position: center;
  padding: clamp(1.2rem, 2vw, 2rem);
}

.doc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(255, 255, 255, 0.15),
      transparent 30%
    ),
    radial-gradient(circle at 84% 78%, rgba(111, 44, 51, 0.35), transparent 44%);
  pointer-events: none;
}

.doc-hero > * {
  position: relative;
  z-index: 1;
}

.doc-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  letter-spacing: -0.02em;
}

.doc-hero p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.5;
}

.meta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.32rem 0.66rem;
  font-size: 0.78rem;
  color: #d5e2ff;
}

.doc-grid {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  padding: 1rem;
}

.doc-card h2,
.doc-card h3 {
  margin: 0 0 0.6rem;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.08rem;
}

.doc-card p,
.doc-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.doc-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.doc-block {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  padding: 1rem;
}

.doc-block h2 {
  margin: 0 0 0.7rem;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.22rem;
}

.doc-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.doc-block + .doc-block {
  margin-top: 0.8rem;
}

.inline-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(140deg, var(--brand-soft), var(--brand));
  color: var(--white);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.page-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.8rem;
}

.page-footer-inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.page-footer p {
  margin: 0;
  color: #9fb0d3;
  font-size: 0.9rem;
}

.city-wrap {
  width: min(1680px, calc(100% - 120px));
  margin: 0 auto;
}

.city-footer {
  background: #121315;
  color: #f4f4f4;
  padding: 2.8rem 0 3.4rem;
  margin: 0;
}

.city-footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.city-footer-col h4 {
  margin: 0 0 1rem;
  color: #bfbfbf;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.city-footer-col a {
  display: block;
  margin: 0 0 0.8rem;
  color: #f5f5f5;
  text-decoration: none;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  line-height: 1.4;
}

.city-footer-side h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  line-height: 1.15;
  color: #fff;
}

.city-footer-side h3 a {
  color: #fff;
  text-decoration: underline;
}

.city-connect {
  display: block;
  color: #9f9f9f;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.city-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.city-socials a {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 700;
}

.city-stonex {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  line-height: 1.2;
}

.city-footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-top: 2px solid rgba(255, 255, 255, 0.38);
  border-bottom: 2px solid rgba(255, 255, 255, 0.38);
}

.city-footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.92rem, 1.02vw, 1.04rem);
  font-weight: 600;
}

.city-risk-copy {
  padding-top: 2rem;
}

.city-risk-copy p {
  margin: 0 0 1.2rem;
  color: #ededed;
  font-size: 0.9rem;
  line-height: 1.55;
}

.city-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.city-footer-bottom span,
.city-footer-bottom a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .page-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .city-wrap {
    width: min(1680px, calc(100% - 48px));
  }

  .city-footer-top,
  .city-footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .city-wrap {
    width: min(1680px, calc(100% - 28px));
  }

  .city-footer-col a,
  .city-footer-links a {
    font-size: 0.95rem;
  }

  .city-stonex,
  .city-footer-side h3 {
    font-size: 1.18rem;
  }

  .city-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
