:root {
  --pd-bg: hsl(214, 16%, 8%);
  --pd-surface: hsl(216, 17%, 11%);
  --pd-border: #30353e;
  --pd-primary: hsl(206, 71%, 40%);
  --pd-primary-hover: hsl(206, 55%, 48%);
  --pd-nav: #dbdee2;
  --pd-muted: hsl(0, 0%, 61%);
  --pd-grey: hsl(0, 0%, 49%);
  --pd-icon-bg: rgba(16, 55, 91, 0.25);
  --pd-container: 82rem;
  --pd-gutter: 1.5rem;
}

.md-header.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: block;
  height: auto;
  padding: 0;
  background: var(--pd-bg);
  color: var(--pd-nav);
  box-shadow: none;
  border: none;
  transition: none;
}
.pd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: var(--pd-container);
  margin: 0 auto;
  padding: 0 var(--pd-gutter);
}
.site-header .header-left {
  display: flex;
  align-items: center;
  gap: 64px;
  min-width: 0;
}
.site-header .logo-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.site-header .logo-home-link {
  display: flex;
  align-items: center;
  color: inherit;
}
.site-header .logo-home-link img {
  height: 30px;
  width: auto;
}
.site-header .logo-chevron-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: inherit;
}
.site-header .logo-home-link .pd-logo-img { height: 28px; width: auto; display: block; }
.site-header .logo-chevron {
  display: block;
  width: 12px;
  height: 12px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.site-header .logo-dd:hover .logo-chevron,
.site-header .logo-dd:focus-within .logo-chevron {
  transform: rotate(180deg);
}

.site-header .navigation-bar {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header .navigation-bar > li {
  display: flex;
  position: relative;
}
.site-header .navigation-bar > li > a,
.site-header .navigation-bar > li > button {
  font-family: "Epilogue", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--pd-nav);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  padding: 0;
  transition: opacity 0.2s;
}
.site-header .navigation-bar > li > a:hover,
.site-header .navigation-bar > li > button:hover,
.site-header .pd-dd:focus-within > button {
  opacity: 0.8;
}
.site-header .navigation-bar > li > a.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.pd-dd { position: relative; }
.pd-dd__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  padding: 8px;
  border-radius: 12px;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 20;
  list-style: none;
  margin: 0;
}
.pd-dd::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 12px;
}
.pd-dd:hover > .pd-dd__menu,
.pd-dd:focus-within > .pd-dd__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-header .simple-dropdown li {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}
.site-header .simple-dropdown li:hover {
  background: rgba(255, 255, 255, 0.04);
}
.site-header .simple-dropdown a {
  display: block;
  padding: 14px 16px;
  width: 168px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #9199a5;
  text-decoration: none;
}
.site-header .simple-dropdown a:hover {
  color: #fff;
}

.logo-dd .logo-dropdown {
  min-width: 260px;
  left: -8px;
}
.logo-dropdown > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 8px;
  text-decoration: none;
}
.logo-dropdown > a:hover {
  background: rgba(255, 255, 255, 0.04);
}
.logo-dropdown .dropdown-icon-wrapper {
  flex: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pd-icon-bg);
  border-radius: 8px;
  color: #7bb2d9;
  font-size: 15px;
}
.logo-dropdown .trade-dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-dropdown .trade-dropdown-item-text span:first-child {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
}
.logo-dropdown .trade-dropdown-item-text span:last-child {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: var(--pd-muted);
}
.logo-dropdown-footer {
  padding: 6px 8px 4px;
}
.logo-dropdown-separator {
  border: none;
  border-top: 1px solid var(--pd-border);
  margin: 6px 0;
}
.logo-dropdown-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-dropdown-docs-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--pd-nav);
  text-decoration: none;
}
.logo-dropdown-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-dropdown-socials a { display: flex; }
.logo-dropdown-socials img { width: 13px; height: 13px; }
.logo-dropdown-socials a:hover img { opacity: 0.7; }
.logo-dropdown .dropdown-icon-wrapper img { width: 18px; height: 18px; }

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.site-header .launch-button {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  background: var(--pd-primary);
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .launch-button:hover {
  background: var(--pd-primary-hover);
  color: #fff;
}

/* scroll title (Material header-topic) — keep Material's default animation */
.site-header .md-header__title {
  color: #fff;
  font-weight: 700;
  flex-grow: 1;
  min-width: 0;
  margin: 0;
  height: auto;
}
/* flex order: burger | logo | nav | title(fills the rest) */
.site-header .pd-burger { order: 0; }
.site-header .logo-trigger { order: 1; }
.site-header nav { order: 2; }
.site-header .md-header__title { order: 3; }

.site-header [data-md-component="palette"] { display: flex; }
.site-header [data-md-component="palette"] > label.md-header__button {
  width: 34px;
  height: 34px;
  padding: 6px;
  margin: 0;
  border-radius: 50%;
  color: var(--pd-nav);
  opacity: 1;
}
.site-header [data-md-component="palette"] > label.md-header__button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.site-header .md-search { color: var(--pd-nav); }
.site-header [for="__search"] {
  color: var(--pd-nav);
  margin: 0;
  padding: 6px;
  width: 34px;
  height: 34px;
}
.site-header [for="__search"]:hover { color: #fff; }

.pd-burger { display: none; color: var(--pd-nav); }

.md-footer { background: var(--pd-bg); }
.pd-footer.wrapper {
  max-width: var(--pd-container);
  margin: 0 auto;
  padding: 0 var(--pd-gutter);
  color: var(--pd-nav);
  font-family: "Inter", sans-serif;
}
.pd-footer .footer-logo { display: none; }
.pd-footer .social-media-links {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--pd-border);
  list-style: none;
  margin: 0;
}
.pd-footer .social-media-links a { display: flex; }
.pd-footer .social-media-links img { width: 20px; height: 20px; }
.pd-footer .social-media-links a:hover img { opacity: 0.7; }

.pd-footer .subfooter {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--pd-border);
}
.pd-footer .subfooter .tagline { width: 220px; color: #fff; }
.pd-footer .subfooter .tagline img { width: 180px; }
.pd-footer .subfooter .tagline p { margin: 18px 0 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
.pd-footer .subfooter .site-navigation { display: flex; gap: 56px; }
.pd-footer .subfooter h6 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.pd-footer .subfooter ul { list-style: none; margin: 0; padding: 0; }
.pd-footer .subfooter li { margin-bottom: 8px; }
.pd-footer .subfooter li a {
  font-size: 14px;
  color: var(--pd-nav);
  text-decoration: none;
}
.pd-footer .subfooter li a:hover { opacity: 0.8; }

.pd-footer .fine-print {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 40px;
}
.pd-footer .fine-print p { color: hsl(0, 0%, 37%); font-size: 12.8px; margin: 0; }
.pd-footer .fine-print ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.pd-footer .fine-print a {
  color: var(--pd-grey);
  font-size: 12.8px;
  font-weight: 600;
  text-decoration: none;
}
.pd-footer .fine-print a:hover { color: #fff; }

@media screen and (max-width: 76.1875em) {
  .site-header .navigation-bar,
  .site-header .logo-chevron-button,
  .site-header .launch-button,
  .site-header .md-header__title { display: none; }
  .pd-burger { display: flex; }
  .pd-header-inner { height: 60px; padding: 0 1rem; gap: 12px; }
  .site-header .header-left { gap: 12px; }
}
@media screen and (max-width: 44.9375em) {
  .pd-footer .subfooter { flex-direction: column; align-items: center; text-align: center; gap: 32px; }
  .pd-footer .subfooter .tagline { display: none; }
  .pd-footer .subfooter .site-navigation { flex-direction: column; gap: 28px; align-items: center; }
  .pd-footer .social-media-links { justify-content: center; }
  .pd-footer .footer-logo { display: block; margin: 0 auto 24px; height: 28px; }
  .pd-footer .fine-print { flex-direction: column-reverse; align-items: center; gap: 20px; }
}
