:root {
  --bg: #061121;
  --panel: #0a1b35;
  --panel-2: #102a52;
  --text: #eaf4ff;
  --muted: #9db3cc;
  --line: rgba(137, 202, 255, 0.22);
  --cyan: #19c9ff;
  --blue: #1262db;
  --red: #e42a35;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(25, 201, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(18, 98, 219, 0.14), transparent 34rem),
    linear-gradient(180deg, #020916 0%, #061121 44%, #071327 100%);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(5, 14, 32, 0.98), rgba(4, 16, 34, 0.96));
  border-top: 4px solid #020610;
  border-bottom: 1px solid rgba(25, 201, 255, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 160px;
}

.brand img {
  width: 190px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a,
.mobile-panel a {
  color: #d9ecff;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.84rem;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: var(--white);
  background: rgba(25, 201, 255, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--white);
  background: #0a1b35;
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-primary {
  background: linear-gradient(180deg, #f14242, #c91828);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
  background: #071327;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--white);
  border-radius: 2px;
  content: "";
}

.burger-lines {
  position: relative;
}

.burger-lines::before,
.burger-lines::after {
  position: absolute;
  left: 0;
}

.burger-lines::before {
  top: -7px;
}

.burger-lines::after {
  top: 7px;
}

.mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #071327;
  border: 1px solid rgba(25, 201, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.breadcrumbs {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  color: #d9ecff;
  font-size: 0.92rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(217, 236, 255, 0.55);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(380px, 52vw, 560px);
  margin: 18px auto 34px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  border-radius: var(--radius);
  background: #071327;
  box-shadow: var(--shadow);
  border: 1px solid rgba(25, 201, 255, 0.22);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 25, 0.94), rgba(3, 11, 25, 0.62) 44%, rgba(3, 11, 25, 0.12)),
    linear-gradient(0deg, rgba(3, 11, 25, 0.82), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: clamp(26px, 5vw, 54px);
}

.eyebrow {
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 5vw, 4.7rem);
  text-transform: uppercase;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #cfe5fb;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.toc {
  color: #061121;
  background: var(--white);
  border: 1px solid rgba(10, 27, 53, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(10, 27, 53, 0.08);
}

.toc summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
  text-transform: uppercase;
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "+";
  float: right;
  color: var(--blue);
}

.toc[open] summary::after {
  content: "-";
}

.toc ol {
  margin: 0;
  padding: 0 20px 20px 42px;
}

.toc a {
  color: #0c428c;
  font-weight: 700;
}

.content {
  color: #14233a;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid rgba(10, 27, 53, 0.1);
  box-shadow: 0 16px 34px rgba(10, 27, 53, 0.08);
}

.content section {
  padding: 24px 0;
  border-top: 1px solid rgba(10, 27, 53, 0.1);
}

.content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.content h2 {
  margin: 0 0 16px;
  color: #071327;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.content h3 {
  margin: 22px 0 10px;
  color: #0b3b82;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.content p,
.content li {
  color: #263a54;
}

.content a {
  color: #0b61cc;
  font-weight: 800;
}

.content ul,
.content ol {
  padding-left: 1.3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  border: 1px solid rgba(10, 27, 53, 0.12);
  border-radius: var(--radius);
}

thead {
  background: #0b2750;
  color: var(--white);
}

th,
td {
  min-width: 170px;
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(10, 27, 53, 0.1);
}

tbody tr:nth-child(even) {
  background: #f0f6fd;
}

.site-footer {
  color: #d9ecff;
  background: #041022;
  border-top: 1px solid rgba(25, 201, 255, 0.22);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-logo {
  width: 170px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 820px) {
  .header-inner {
    width: min(100% - 20px, 1180px);
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 138px;
    height: 48px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    order: 3;
  }

  .header-actions {
    justify-self: end;
    gap: 6px;
  }

  .btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .breadcrumbs,
  .hero,
  .content-wrap,
  .footer-inner {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    min-height: 440px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(3, 11, 25, 0.24), rgba(3, 11, 25, 0.88) 60%, rgba(3, 11, 25, 0.96)),
      linear-gradient(90deg, rgba(3, 11, 25, 0.56), rgba(3, 11, 25, 0.14));
  }

  .hero-content {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 118px;
  }

  .header-actions {
    gap: 4px;
  }

  .btn {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .mobile-menu summary {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 2rem;
  }

  .content {
    padding: 20px 16px;
  }

  th,
  td {
    min-width: 150px;
  }
}
