:root {
  --header-h: 78px;
}

html,
body {
  overflow-x: hidden;
}

body > .header,
body > .header *,
body > .header *::before,
body > .header *::after {
  box-sizing: border-box;
}

body > .header {
  --header-primary: #00f8fc;
  --header-accent: #9d4edd;
  --header-surface: #0a0a0a;
  --header-border: #222;
  --header-text: #fff;
  --header-muted: #999;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100vw;
  min-height: var(--header-h);
  margin-left: calc(50% - 50vw);
  background:
    radial-gradient(circle at 12% -70%, rgba(0, 248, 252, .16), transparent 38%),
    radial-gradient(circle at 86% -90%, rgba(157, 78, 221, .14), transparent 34%),
    rgba(0, 0, 0, .96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 248, 252, .16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 9px max(16px, calc((100vw - 1240px) / 2));
  color: var(--header-text);
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-align: left;
}

.header .header-main,
.header .header-utility {
  display: contents;
}

.header a {
  min-height: 0;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.header button {
  margin: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.header .brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.header .brand img {
  display: block;
  height: 58px;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(0, 248, 252, .08));
}

.header .header-links {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.header .header-links a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #e8e8e8;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.header .header-links a:hover {
  color: var(--header-primary);
  border-color: rgba(0, 248, 252, .4);
  background: rgba(0, 248, 252, .09);
  transform: translateY(-1px);
}

.header .header-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header .header-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.header .header-social-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header .header-social-icons a {
  width: 32px;
  height: 32px;
}

.header .header-social-icons a svg {
  width: 15px;
  height: 15px;
}

.header .header-social-handle {
  font-size: 9px;
  line-height: 1;
  letter-spacing: .55px;
  color: #858585;
  white-space: nowrap;
}

.header .header-info {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  margin-left: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  color: #d7d7d7;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.header .header-info svg {
  width: 13px;
  height: 13px;
  fill: var(--header-primary);
  flex: 0 0 auto;
}

.header .header-info:hover {
  color: var(--header-primary);
}

.header .header-info a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.header .lang-bar {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.header .lang-switch {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  align-items: stretch;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
  overflow: hidden;
}

.header .lang-opt {
  min-width: 42px;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--header-muted);
  font: 800 11.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: .65px;
}

.header .lang-opt.active {
  background: var(--header-primary);
  color: #000;
  box-shadow: 0 0 16px rgba(0, 248, 252, .18);
}

.header .sms-cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 0;
}

.header .sms-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 15px;
  background: var(--header-primary);
  color: #000;
  border: 1px solid var(--header-primary);
  border-radius: 20px;
  box-shadow: 0 0 18px rgba(0, 248, 252, .12);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.header .sms-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 248, 252, .22);
}

.header .sms-cta-form {
  display: flex;
  gap: 6px;
  width: min(360px, 40vw);
  margin: 0;
}

.header .sms-cta-form[hidden],
.header .sms-cta-btn[hidden],
.header .sms-cta-fine[hidden],
.header .sms-cta-msg[hidden] {
  display: none;
}

.header .sms-cta-input {
  flex: 1;
  min-width: 0;
  background: var(--header-surface);
  border: 1px solid var(--header-border);
  border-radius: 18px;
  color: var(--header-text);
  font-size: 16px;
  padding: 8px 14px;
}

.header .sms-cta-input:focus {
  outline: none;
  border-color: var(--header-primary);
}

.header .sms-cta-send {
  flex: 0 0 auto;
  padding: 8px 16px;
  background: var(--header-primary);
  color: #000;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
}

.header .sms-cta-fine {
  margin: 0;
  max-width: 400px;
  color: var(--header-muted);
  font-size: 10.5px;
  line-height: 1.35;
  text-align: right;
}

.header .sms-cta-fine a {
  color: var(--header-muted);
  text-decoration: underline;
}

.header .sms-cta-msg {
  margin: 0;
  color: var(--header-primary);
  font-size: 12.5px;
  text-align: right;
}

.header .sms-cta-msg.err {
  color: #ff8080;
}

.header .sms-cta-msg a {
  color: inherit;
  text-decoration: underline;
}

.header .sms-cta-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.header .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header .brand:focus-visible,
.header .header-links a:focus-visible,
.header .header-info a:focus-visible,
.header .lang-opt:focus-visible,
.header .sms-cta-btn:focus-visible,
.header .sms-cta-send:focus-visible,
.header .sms-cta-input:focus-visible {
  outline: 2px solid var(--header-primary);
  outline-offset: 2px;
}

body.site-shell-utility {
  justify-content: flex-start !important;
}

body.site-shell-utility > .container,
body.site-shell-utility > .utility-content {
  margin-top: auto;
  margin-bottom: auto;
}

@media (max-width: 767px) {
  body > .header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 8px;
  }

  .header .brand {
    gap: 9px;
  }

  .header .brand img {
    height: 44px;
  }

  .header .header-info {
    display: none;
  }

  .header .lang-bar {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .header .lang-opt {
    min-width: 40px;
    min-height: 36px;
    padding: 7px 9px;
    font-size: 10.5px;
  }

  .header .header-social-handle {
    display: none;
  }

  .header .header-social {
    gap: 0;
  }

  .header .header-links {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: start;
    gap: 4px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .header .header-social-icons {
    gap: 3px;
  }

  .header .header-social-icons a,
  .header .header-links > a {
    width: 40px;
    height: 40px;
  }

  .header .sms-cta {
    grid-column: 3;
    grid-row: 2;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .header .sms-cta-btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .header .sms-cta:has(.sms-cta-form:not([hidden])) {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    align-items: stretch;
  }

  .header:has(.sms-cta-form:not([hidden])) .header-links {
    display: none;
  }

  .header .sms-cta-form {
    width: 100%;
    max-width: none;
  }

  .header .sms-cta-fine,
  .header .sms-cta-msg {
    text-align: left;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .header .header-info {
    display: none;
  }

  .header .header-links {
    justify-self: start;
  }
}

@media (max-width: 360px) {
  .header .header-social-icons {
    gap: 2px;
  }

  .header .header-links {
    gap: 3px;
  }

  .header .header-social-icons a,
  .header .header-links > a {
    width: 30px;
    height: 30px;
  }

  .header .lang-opt {
    min-width: 34px;
    min-height: 32px;
    padding: 6px 8px;
  }

  .header .sms-cta-btn {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header .header-links a,
  .header .sms-cta-btn {
    transition: none;
  }
}
