:root {
  --font-ui: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Clash Display', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hero-purple: #3d3664;
  --hero-rule: #564d88;
  --hero-text: #f1effb;
  --card-line: #ece8fb;
  --card-shadow: 0 26px 60px rgba(71, 71, 71, 0.08);
  --accent: #7460e1;
  --muted: #7f8da9;
  --title: #16213c;
  --lavender: #f1effb;
  --text-main: #3d3664;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: #ececec;
  color: var(--title);
  font-family: var(--font-ui);
  overflow-x: hidden;
  padding-bottom: 0;
}

.home-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
}

.home-artboard {
  position: relative;
  width: min(100vw, 375px);
  min-height: 812px;
  background: var(--lavender);
  overflow: hidden;
}

.app-bottom-nav {
  height: 100px;
  background: var(--lavender);
}

.app-bottom-nav__inner {
  padding-top: 16px;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 594px;
  background-color: var(--hero-purple);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-art__layer {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
}

.hero-art__layer--base,
.hero-art__layer--band {
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.hero-art__layer--base {
  min-height: 100%;
}

.hero-art__layer--band {
  top: 8px;
}

.hero-divider {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--hero-rule);
  z-index: 1;
}

.hero-divider.top {
  top: 108px;
}

.hero-divider.bottom {
  top: 224px;
}

.hero-logo {
  position: absolute;
  top: 56px;
  left: 50%;
  width: 40px;
  height: 38px;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-copy {
  position: absolute;
  inset: 0;
  color: var(--hero-text);
  z-index: 2;
}

.hero-eyebrow {
  top: 128px;
  left: 50%;
  width: calc(100% - 48px);
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.14px;
  color: #e2dff7;
  white-space: nowrap;
}

.hero-title {
  position: absolute;
  top: 154px;
  left: 50%;
  width: 297px;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 50px;
  font-weight: 500;
  letter-spacing: -0.38px;
  color: #f1effb;
}

.home-intro {
  position: relative;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: calc(100% - var(--hero-card-gutter));
  margin: -194px 0 0 var(--hero-card-gutter);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.hero-card__row {
  background: #fff;
}

.hero-card__row--search {
  min-height: 88px;
}

.hero-card__row--server {
  min-height: 88px;
}

.hero-card__row--pro {
  min-height: 93px;
}

.hero-card__row + .hero-card__row {
  border-top: 1px solid var(--card-line);
}

.hero-card__search {
  padding: 18px 16px;
}

.proxy-form {
  display: flex;
  align-items: center;
  height: 58px;
  gap: 0;
}

.proxy-form__field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 58px;
  background: #ffffff;
  border: 1px solid #e2dff7;
  box-shadow: 0 12px 60px rgba(141, 155, 170, 0.102);
  padding: 0 18px;
}

.proxy-form__input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #3d3664;
  caret-color: #3d3664;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  font-synthesis: none;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxy-form__input::placeholder {
  color: #adb4c0;
  opacity: 1;
}

.proxy-form__submit {
  flex: 0 0 auto;
  width: 112px;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: #5a4eae;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.16px;
  cursor: pointer;
}

.proxy-autocomplete {
  position: absolute;
  top: calc(100% - 10px);
  left: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid #e2dff7;
  box-shadow: 0 20px 48px rgba(45, 39, 71, 0.14);
  z-index: 20;
  overflow: hidden;
}

.proxy-autocomplete[hidden] {
  display: none;
}

.proxy-autocomplete__item {
  width: 100%;
  border: 0;
  background: #fff;
  color: #3d3664;
  padding: 13px 16px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proxy-autocomplete__item + .proxy-autocomplete__item {
  border-top: 1px solid #ece8fb;
}

.proxy-autocomplete__item:hover,
.proxy-autocomplete__item.is-active {
  background: #f5f2ff;
}

.proxy-autocomplete__item strong {
  color: #5a4eae;
  font-weight: 700;
}

.proxy-autocomplete__hint {
  flex: 0 0 auto;
  color: #a09bbf;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card__server,
.hero-card__pro {
  display: flex;
  align-items: center;
  padding: 18px 24px;
}

.hero-card__server {
  gap: 12px;
}

.hero-card__pro {
  gap: 16px;
}

.hero-card__server-icon,
.hero-card__pro-icon {
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.hero-card__server-icon {
  width: 40px;
  height: 38px;
  box-shadow: 0 15px 35px rgba(45, 39, 71, 0.12);
}

.hero-card__pro-icon {
  width: 52px;
  height: 52px;
  background: rgba(226, 223, 247, 0.3);
}

.hero-card__server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  display: block;
}

.hero-card__pro-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.hero-card__server-body,
.hero-card__pro-body {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-card__server-name,
.hero-card__pro-title {
  color: var(--title);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
}

.hero-card__server-name,
.hero-card__pro-title {
  font-weight: 400;
}

.hero-card__change {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 38px;
  border: 1px solid #e4defb;
  color: var(--accent);
  text-decoration: none !important;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-card__pro-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.hero-card__pro-arrow {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.home-story {
  position: relative;
  padding: 28px 24px 148px;
}

.home-story-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #8d80e0;
  padding: 20px;
}

.home-story-card h2 {
  font-family: var(--font-ui);
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.home-story-card h3 {
  margin-top: 24px;
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.home-story-card h4 {
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.home-story-card p {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-main);
}

.home-story-card ul,
.home-story-card ol {
  margin-top: 12px;
  padding-left: 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-main);
}

.home-story-card li + li {
  margin-top: 10px;
}

.home-story-card strong {
  font-weight: 600;
}

.home-footer {
  margin: 32px 0 0;
  width: 100%;
  padding: 32px 24px 156px;
  background: #3d3664;
  color: #c9c4ea;
  overflow: hidden;
  position: relative;
}

.home-footer::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(circle, rgba(241, 239, 251, 0.08) 0 2px, transparent 2px 100%);
  background-size: 10px 10px;
  opacity: 0.22;
  pointer-events: none;
}

.home-footer__desktop {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.home-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5f2ff;
}

.home-footer__brand-row img {
  width: 34px;
  height: 32px;
  display: block;
}

.home-footer__brand-row span {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
}

.home-footer__brand-copy,
.home-footer__brand-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 28px;
  color: #c9c4ea;
}

.home-footer__brand-note {
  margin-top: 20px;
}

.home-footer__column-title {
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: #f5f2ff;
  margin-bottom: 16px;
}

.home-footer__column-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.home-footer__column-links a {
  color: #c9c4ea;
  text-decoration: none;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
}

.home-footer__column-links a:hover {
  color: #f5f2ff;
}

.home-footer__links {
  display: none;
}

@media (min-width: 600px) and (max-width: 899px) {
  body {
    padding-inline: 0;
  }

  .home-shell {
    padding-top: 0;
  }

  .home-artboard {
    width: 100vw;
    max-width: 100vw;
    min-height: auto;
  }

  .home-intro {
    min-height: calc(100svh - 100px);
  }

  .hero-stage {
    width: 100%;
    height: 620px;
  }

  .hero-art__layer--base,
  .hero-art__layer--band {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-card {
    width: min(680px, calc(100vw - 56px));
    margin-top: -146px;
  }

  .home-story {
    padding-top: 56px;
    padding-inline: 0;
  }

  .home-story-card {
    width: min(680px, calc(100vw - 56px));
    margin-inline: auto;
    padding: 40px 44px 48px;
  }

  .home-footer {
    width: 100%;
    margin: 64px 0 0;
    padding: 40px 44px 156px;
  }

  .home-footer__desktop {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px 48px;
  }

  .home-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(circle at top, rgba(126, 110, 214, 0.18), transparent 32%),
      linear-gradient(180deg, #f6f4ff 0%, #ece9fb 100%);
    padding: 0;
  }

  .home-shell {
    align-items: flex-start;
    min-height: auto;
    padding: 0;
  }

  .home-artboard {
    width: 100%;
    min-height: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .home-intro {
    padding: 0;
    min-height: calc(100svh - 140px);
  }

  .hero-stage {
    width: 100%;
    height: 500px;
    box-shadow: 0 28px 80px rgba(44, 34, 94, 0.16);
  }

  .hero-art__layer--base,
  .hero-art__layer--band {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-divider.top {
    top: 112px;
  }

  .hero-divider.bottom {
    top: 256px;
  }

  .hero-logo {
    top: 38px;
    left: 40px;
    transform: none;
    width: 46px;
    height: 44px;
  }

  .hero-eyebrow {
    top: 136px;
    width: calc(100% - 160px);
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.18px;
  }

  .hero-title {
    top: 172px;
    width: min(880px, calc(100% - 180px));
    font-size: 78px;
    line-height: 84px;
    letter-spacing: -1.3px;
  }

  .hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: min(1180px, calc(100% - 160px));
    margin: -68px auto 0;
    overflow: hidden;
    border: 1px solid #ece8fb;
    box-shadow: 0 26px 70px rgba(39, 32, 86, 0.12);
  }

  .hero-card__row--search {
    grid-column: 1 / -1;
  }

  .hero-card__row--server {
    border-right: 1px solid var(--card-line);
  }

  .hero-card__search {
    padding: 24px 28px;
    position: relative;
    overflow: visible;
    z-index: 6;
  }

  .proxy-form {
    height: 72px;
  }

  .proxy-form__field {
    height: 72px;
  }

  .proxy-form__input {
    height: 72px;
    font-size: 20px;
    padding: 0 28px;
  }

  .proxy-form__submit {
    width: 170px;
    height: 72px;
    font-size: 20px;
  }

  .proxy-autocomplete {
    left: 28px;
    right: 28px;
  }

  .hero-card__row--server,
  .hero-card__row--pro {
    min-height: 114px;
  }

  .hero-card__server,
  .hero-card__pro {
    padding-inline: 28px;
  }

  .hero-card__server-name,
  .hero-card__pro-title {
    font-size: 20px;
    line-height: 30px;
  }

  .hero-card__change {
    width: 110px;
    height: 44px;
    font-size: 16px;
  }

  .hero-card__pro-subtitle {
    font-size: 15px;
    line-height: 22px;
  }

  .home-story {
    padding: 144px 0 0;
  }

  .home-story-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 72px 72px;
    border: 1px solid rgba(116, 96, 225, 0.16);
    box-shadow: 0 18px 46px rgba(67, 55, 125, 0.06);
  }

  .home-story-card h2 {
    max-width: 24ch;
    font-size: 52px;
    line-height: 58px;
    text-wrap: balance;
  }

  .home-story-card p,
  .home-story-card ul,
  .home-story-card ol {
    max-width: 84ch;
    font-size: 16px;
    line-height: 28px;
  }

  .home-story-card h3 {
    font-size: 28px;
    line-height: 36px;
    margin-top: 40px;
  }

  .home-story-card h4 {
    font-size: 20px;
    line-height: 30px;
  }

  .home-footer {
    width: 100%;
    margin: 96px auto 0;
    padding: 64px 80px 72px;
  }

  .home-footer::before {
    right: -60px;
    bottom: -140px;
    width: 520px;
    height: 520px;
    opacity: 0.28;
  }

  .home-footer__desktop {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 56px;
  }

  .home-footer__brand {
    max-width: 320px;
  }

  .home-footer__brand-row {
    gap: 14px;
  }

  .home-footer__brand-row img {
    width: 42px;
    height: 40px;
  }

  .home-footer__brand-row span {
    font-size: 34px;
    line-height: 40px;
  }

  .home-footer__brand-copy,
  .home-footer__brand-note {
    margin-top: 22px;
    font-size: 15px;
    line-height: 28px;
  }

  .home-footer__brand-note {
    margin-top: 28px;
  }

  .home-footer__column-title {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 22px;
  }

  .home-footer__column-links {
    gap: 16px;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 36px;
    line-height: 46px;
  }

  .proxy-form__submit {
    width: 104px;
  }

  .home-story-card h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .home-story-card h3 {
    font-size: 18px;
    line-height: 26px;
  }
}

@media (max-width: 480px) {
  :root {
    --mobile-main-height: calc(100svh - 100px);
  }

  body {
    background: var(--lavender);
    padding-top: 0;
  }

  .home-shell {
    justify-content: stretch;
    width: 100%;
  }

  .home-artboard {
    width: min(100vw, 430px);
    min-height: 100svh;
    --hero-card-gutter: clamp(25px, 6.67vw, 29px);
  }

  .home-intro {
    min-height: calc(100svh - 100px);
  }

  .hero-stage {
    height: calc(var(--mobile-main-height) * 594 / 687);
  }

  .hero-card {
    position: absolute;
    left: var(--hero-card-gutter);
    bottom: 25px;
    width: calc(100% - var(--hero-card-gutter));
    margin: 0;
  }

  .hero-card__row--search {
    min-height: 88px;
  }

  .hero-card__row--server {
    min-height: 88px;
  }

  .hero-card__row--pro {
    min-height: 93px;
  }
}
