:root {
  --page-bg: #f3f9fc;
  --panel: #ffffff;
  --ink: #123247;
  --muted: #587184;
  --blue-dark: #064763;
  --blue: #0b78ad;
  --blue-mid: #0d86bd;
  --teal: #087c8c;
  --line: #cbdfea;
  --soft-line: #dcebf2;
  --gold: #b88724;
  --shadow: 0 20px 52px rgba(17, 65, 94, 0.11);
  --premium-shadow: 0 18px 46px rgba(8, 77, 114, .16), inset 0 1px 0 rgba(255,255,255,.8);
  --max: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.98), transparent 31%),
    radial-gradient(circle at 92% 22%, rgba(210,239,249,.62), transparent 34%),
    linear-gradient(180deg, #f7fcfe 0%, #eef8fc 45%, #f8fbfd 100%);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

a {
  color: #006fb6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topline {
  display: none;
}

.topline__inner,
.site-header__inner,
.main-menu__inner,
.page,
.footer__inner {
  width: min(var(--max), calc(100% - 60px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  width: 100%;
  height: 170px;
  min-height: 170px;
  background:
    url("custom_head_bg_v5.jpg") left top / auto no-repeat,
    linear-gradient(180deg, #dff4fb, #b5e0ef);
  border-bottom: 1px solid rgba(255,255,255,.8);
}

.site-header__home {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  cursor: pointer;
}

.site-header::before {
  display: none;
}

.site-header__inner {
  display: none;
}

.brand,
.brand__eyebrow,
.brand__title,
.brand__lead,
.header-card {
  display: none;
}

.main-menu {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #1b93ca 0%, #096f9f 48%, #065b86 100%);
  border-top: 1px solid rgba(255,255,255,.55);
  border-bottom: 1px solid #03496d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 8px rgba(4, 59, 88, .28);
}

.main-menu__inner {
  min-height: 49px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
}

.main-menu__links {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}

.main-menu__links a {
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: #fff;
  border-left: 1px solid rgba(255,255,255,.22);
  border-right: 1px solid rgba(0,58,88,.25);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  white-space: nowrap;
}

.main-menu__links a[aria-current="page"],
.main-menu__links a:hover {
  color: #fff;
  background: linear-gradient(180deg, #0c7eb7, #064f77);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 4px;
  padding: 9px 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 700;
}

.page {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0 58px;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 18px;
  min-height: 420px;
  padding: 16px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 32%),
    linear-gradient(180deg, #064763 0%, #087e8f 100%);
  box-shadow: 0 20px 48px rgba(4, 70, 96, .25);
}

.sidebar h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 22px;
  line-height: 1.12;
}

.side-accordion {
  display: grid;
  gap: 10px;
}

.side-group {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
}

.side-group summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
}

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

.side-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid rgba(255,255,255,.9);
  border-bottom: 2px solid rgba(255,255,255,.9);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.side-group[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.side-nav {
  display: grid;
  gap: 7px;
  padding: 9px;
}

.side-nav a {
  display: block;
  min-height: 38px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(255,255,255,.11);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
}

.side-nav a[aria-current="page"],
.side-nav a:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.27), rgba(255,255,255,.14));
  text-decoration: none;
}

.side-nav--sub a {
  min-height: 34px;
  padding-left: 13px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
}

.content {
  min-width: 0;
}

.hero-panel,
.section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92)),
    #fff;
  box-shadow: var(--premium-shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 34px 38px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,151,197,.16), transparent 64%);
  pointer-events: none;
}

.section {
  margin-top: 18px;
  padding: 30px 36px;
}

.hero-panel h2,
.section h2 {
  margin: 0 0 14px;
  color: #0c2f43;
  font-size: 31px;
  line-height: 1.18;
}

.section h2 {
  font-size: 26px;
}

.hero-panel p,
.section p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 17px;
}

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

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.88);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  background: #fff;
  color: #063c5c;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    0 16px 34px rgba(7, 72, 106, .18),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(12, 87, 126, .2), inset 0 1px 0 rgba(255,255,255,.95);
}

.button--primary {
  color: #fff;
  border-color: #0c8bc0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.32) 0 1px, transparent 1px calc(100% - 1px), rgba(255,255,255,.18) calc(100% - 1px)),
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 44%),
    linear-gradient(135deg, #078fc4 0%, #006da3 54%, #064763 100%);
  text-shadow: 0 1px 0 rgba(0,0,0,.24);
  box-shadow:
    0 18px 36px rgba(0, 91, 142, .28),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -2px 0 rgba(0,58,88,.28);
}

.button--gold {
  color: #064763;
  border-color: #1485b5;
  background:
    linear-gradient(90deg, #1689b9 0 2px, transparent 2px calc(100% - 2px), #1689b9 calc(100% - 2px)),
    linear-gradient(180deg, #ffffff 0%, #eef8fc 100%);
  text-shadow: none;
  box-shadow:
    0 16px 34px rgba(7, 72, 106, .16),
    inset 0 0 0 2px rgba(11,112,160,.44),
    inset 0 1px 0 rgba(255,255,255,1);
}

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

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.product-card,
.repo-card,
.callout,
.step {
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,252,254,.94));
  box-shadow: 0 14px 38px rgba(24, 70, 96, .09), inset 0 1px 0 rgba(255,255,255,.95);
}

.stat-card,
.product-card,
.repo-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  color: #007ab3;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card span,
.product-card p,
.repo-card p {
  color: var(--muted);
}

.product-card h3,
.repo-card h3 {
  margin: 0 0 9px;
  color: #143448;
  font-size: 21px;
  line-height: 1.15;
}

.media {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(24, 70, 96, .12);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e5f5fa;
  color: #1b5f78;
  font-size: 13px;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 11px;
  counter-reset: step;
}

.step {
  position: relative;
  min-height: 58px;
  padding: 16px 18px 16px 54px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 17px;
  top: 16px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #0b88bf, #06628e);
  color: #fff;
  font-weight: 800;
}

.callout {
  margin: 20px 0;
  padding: 18px;
  border-left: 5px solid var(--gold);
}

.callout strong {
  color: #8a641c;
}

.repo-card a {
  font-weight: 800;
}

.footer {
  padding: 26px 0;
  color: #dceef5;
  background: #064763;
  border-top: 4px solid #0b80b7;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: #fff;
}

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #e7f2f7;
  color: #123247;
}

@media (max-width: 1180px) {
  .topline__inner,
  .site-header__inner,
  .main-menu__inner,
  .page,
  .footer__inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .main-menu__links {
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 150px;
    min-height: 150px;
    background-size: cover;
    background-position: center top;
  }

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

  .sidebar {
    position: static;
    min-height: 0;
  }

  .grid,
  .grid--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 112px;
    min-height: 112px;
    background-position: left top;
  }

  .menu-toggle {
    display: inline-flex;
    margin: 7px 0;
  }

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

  .main-menu__links {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .main-menu__links.is-open {
    display: flex;
  }

  .main-menu__links a {
    min-height: 40px;
    width: 100%;
  }

  .hero-panel,
  .section {
    padding: 22px 18px;
  }

  .hero-panel h2,
  .section h2 {
    font-size: 24px;
  }

  .footer__inner {
    flex-direction: column;
  }
}
