:root {
  --xp-bg: #f5f5f7;
  --xp-black: #050505;
  --xp-red: #e30012;
  --xp-red-2: #df2029;
  --xp-text-muted: #59595f;
  --xp-page-pad: 64px;
  --xp-radius: 16px;
  --xp-glass: rgba(255, 255, 255, 0.1);
  --xp-glass-border: rgba(255, 255, 255, 0.82);
  --xp-soft-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -14px 24px rgba(0, 0, 0, 0.035), 0 18px 42px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.xp-body {
  overflow-x: hidden;
  background: var(--xp-bg);
  color: var(--xp-black);
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.xp-theme-dark {
  --xp-bg: #09090b;
  --xp-black: #f5f5f7;
  --xp-text-muted: #b9b9c0;
  --xp-glass: rgba(255, 255, 255, 0.08);
  --xp-glass-border: rgba(255, 255, 255, 0.14);
  --xp-soft-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -14px 24px rgba(0, 0, 0, 0.16);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.xp-landing {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(520px, 696px);
  gap: 64px;
  padding: var(--xp-page-pad);
  background: var(--xp-bg);
  justify-content: stretch;
}

.xp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - (var(--xp-page-pad) * 2));
  overflow: hidden;
  border-radius: var(--xp-radius);
  isolation: isolate;
  background: #111 var(--xp-hero-image) center / cover no-repeat;
}

.xp-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 100px 0 0 100px;
  color: #fff;
  text-decoration: none;
}

.xp-brand img {
  display: block;
  max-width: 170px;
  max-height: 50px;
  object-fit: contain;
}

.xp-brand picture {
  display: block;
}

.xp-symbol {
  position: relative;
  width: 42px;
  height: 42px;
}

.xp-symbol::before,
.xp-symbol::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22% 78% 22% 78%;
  background: var(--xp-red);
  transform: rotate(45deg);
}

.xp-symbol::after {
  border-radius: 78% 22% 78% 22%;
  transform: rotate(-45deg);
}

.xp-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 18px;
  line-height: 1;
}

.xp-brand-text strong {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.xp-brand-text span {
  font-weight: 700;
}

.xp-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 832px;
  margin: auto 0 0 100px;
  padding-right: 64px;
  padding-bottom: 218px;
  color: #fff;
}

.xp-hero-copy h1 {
  position: relative;
  margin: 0 0 56px;
  font-size: clamp(64px, 5vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.xp-hero-copy h1 strong {
  font-weight: 900;
}

.xp-hero-copy h1::first-line {
  font-weight: 300;
}

.xp-hero-copy p {
  max-width: 832px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(22px, 1.667vw, 32px);
  font-weight: 500;
  line-height: 1.34;
}

.xp-social {
  position: absolute;
  left: 100px;
  right: 100px;
  bottom: 100px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.xp-social a {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--xp-soft-shadow);
  backdrop-filter: blur(10px) saturate(130%);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.xp-social img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: filter 180ms ease, opacity 180ms ease;
}

.xp-social a:hover,
.xp-social a:focus {
  color: var(--xp-red);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.xp-social a:hover img,
.xp-social a:focus img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(4940%) hue-rotate(350deg) brightness(91%) contrast(102%);
}

.xp-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - (var(--xp-page-pad) * 2));
  max-height: calc(100vh - (var(--xp-page-pad) * 2));
  overflow: hidden;
}

.xp-panel-top {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex: 0 0 auto;
  padding-bottom: 0;
}

.xp-control {
  --xp-control-color: #050505;
  position: relative;
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto) auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid var(--xp-glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--xp-soft-shadow);
  color: var(--xp-control-color);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px) saturate(130%);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.xp-control:hover,
.xp-control:focus-within,
.xp-control.is-active {
  --xp-control-color: var(--xp-red);
}

.xp-native-select {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 116px;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.xp-share-native {
  border: 1px solid var(--xp-glass-border);
}

.xp-control-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--xp-control-color);
  transition: background-color 180ms ease;
  mask: var(--xp-icon) center / contain no-repeat;
  -webkit-mask: var(--xp-icon) center / contain no-repeat;
}

.xp-icon-share {
  --xp-icon: url("../icons/share-icon.svg");
}

.xp-icon-country {
  --xp-icon: url("../icons/country-icon.svg");
}

.xp-icon-language {
  --xp-icon: url("../icons/language-icon.svg");
}

.xp-icon-light {
  --xp-icon: url("../icons/light-icon.svg");
}

.xp-theme-dark .xp-icon-light {
  --xp-icon: url("../icons/dark-icon.svg");
}

.xp-icon-select {
  --xp-icon: url("../icons/select-icon.svg");
  width: 8px;
  height: 5px;
}

.xp-icon-setting {
  --xp-icon: url("../icons/setting-icon.svg");
  width: 16px;
  height: 16px;
  background: #fff;
}

.xp-theme-dark .xp-control {
  --xp-control-color: #fff;
  border-color: var(--xp-glass-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
  color: #fff;
}

.xp-theme-dark .xp-control:hover,
.xp-theme-dark .xp-control:focus-within,
.xp-theme-dark .xp-control.is-active {
  --xp-control-color: var(--xp-red);
}

.xp-mobile-settings,
.xp-mobile-menu {
  display: none;
}


.xp-form-wrap {
  display: flex;
  align-items: flex-end;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 0 0;
  scrollbar-width: thin;
}

.xp-form-wrap.is-top-aligned {
  align-items: flex-start;
  padding-top: 64px;
}

.xp-form-wrap.is-success {
  align-items: flex-start;
  padding-top: 107px;
}

.xp-plugin-warning {
  max-width: 620px;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 1480px) {
  :root {
    --xp-page-pad: 40px;
  }

  .xp-landing {
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    gap: 40px;
  }

  .xp-social {
    gap: 10px;
  }

  .xp-social a {
    min-width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

@media (max-width: 1180px) {
  :root {
    --xp-page-pad: 24px;
  }

  .xp-landing {
    grid-template-columns: 1fr;
    padding: var(--xp-page-pad);
    gap: 32px;
  }

  .xp-hero,
  .xp-panel {
    min-height: auto;
    max-height: none;
  }

  .xp-hero {
    min-height: 520px;
  }

  .xp-form-wrap {
    align-items: flex-start;
    justify-content: center;
    padding: 36px 0 24px;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  :root {
    --xp-page-pad: 0px;
  }

  .xp-landing {
    padding: var(--xp-page-pad);
    gap: 0;
    background: #f5f5f7;
  }

  .xp-hero {
    min-height: 455px;
    border-radius: 0 0 32px 32px;
  }

  .xp-brand {
    margin: 32px 0 0 32px;
  }

  .xp-symbol {
    width: 42px;
    height: 42px;
  }

  .xp-brand-text strong {
    font-size: 30px;
  }

  .xp-brand-text {
    font-size: 18px;
  }

  .xp-hero-copy {
    margin-left: 32px;
    padding-right: 32px;
    padding-bottom: 144px;
  }

  .xp-hero-copy h1 {
    margin-bottom: 32px;
    font-size: 36px;
    line-height: 1;
  }

  .xp-hero-copy p {
    margin-bottom: 48px;
    font-size: 13px;
    line-height: 1.35;
    text-shadow: none;
  }

  .xp-social {
    left: 32px;
    right: 0;
    bottom: 32px;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0 32px 4px 0;
    scrollbar-width: none;
  }

  .xp-social::-webkit-scrollbar {
    display: none;
  }

  .xp-social a {
    flex: 0 0 64px;
    min-width: 64px;
    width: 64px;
    height: 64px;
    font-size: 14px;
    border-radius: 50%;
    padding: 0;
  }

  .xp-mobile-settings {
    --xp-control-color: #fff;
    position: absolute;
    top: 56px;
    right: 56px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--xp-soft-shadow);
    cursor: pointer;
    backdrop-filter: blur(10px) saturate(130%);
    transition: background-color 180ms ease, transform 180ms ease;
  }

  .xp-mobile-settings:hover,
  .xp-mobile-settings[aria-expanded="true"] {
    background: rgba(227, 0, 18, 0.58);
    transform: translateY(-1px);
  }

  .xp-mobile-menu {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 4;
    display: grid;
    gap: 32px;
    padding: 144px 32px 32px;
    border-radius: 0 0 32px 32px;
    background: #000;
  }

  .xp-mobile-menu[hidden] {
    display: none;
  }

  .xp-mobile-menu .xp-control {
    min-height: 43px;
    width: 100%;
    padding: 12px 16px;
    justify-content: stretch;
    grid-template-columns: auto 1fr auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    --xp-control-color: #fff;
    font-size: 14px;
  }

  .xp-mobile-menu .xp-control-icon {
    width: 11px;
    height: 11px;
  }

  .xp-mobile-menu .xp-icon-select {
    width: 8px;
    height: 5px;
  }

  .xp-mobile-menu .xp-native-select {
    max-width: none;
    width: 100%;
  }

  .xp-mobile-menu .xp-control:hover,
  .xp-mobile-menu .xp-control:focus-within,
  .xp-mobile-menu .xp-control.is-active {
    --xp-control-color: var(--xp-red);
  }

  .xp-panel {
    padding: 48px 32px 32px;
  }

  .xp-panel-top {
    display: none;
  }

  .xp-form-wrap {
    padding-top: 0;
    justify-content: stretch;
  }

  .xp-form-wrap.is-success {
    padding-top: 0;
  }
}
