:root {
  --green: #25d366;
  --green-dark: #1fb954;
  --ink: #111b21;
  --text: #1f2c34;
  --muted: #667781;
  --line: #d9dee0;
  --soft: #f5f5f5;
  --footer: #111b21;
  --footer-muted: rgba(255, 255, 255, 0.72);
  --footer-line: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  background: #fff;
  position: relative;
  z-index: 20;
}

.topbar__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #1f2c34;
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand--nav {
  color: var(--green);
}

.brand--footer {
  color: #fff;
}

.brand__icon {
  width: 131px;
  height: auto;
  flex: 0 0 auto;
  display: block;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  flex: 1;
  font-size: 16px;
}

.topnav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f2c34;
}

.topnav__link:hover {
  color: #111b21;
}

.caret {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  margin-left: 2px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid rgba(17, 27, 33, 0.72);
}

.pill--ghost {
  color: #111b21;
  background: #fff;
}

.pill--solid {
  color: #111b21;
  background: var(--green);
  border-color: rgba(17, 27, 33, 0.35);
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}

.icon--external {
  width: 13px;
  height: 13px;
}

.icon--chevron {
  width: 12px;
  height: 12px;
}

.icon--download {
  width: 15px;
  height: 15px;
}

.topnav__link--external .icon {
  margin-left: 1px;
  transform: translateY(-1px);
}

.pill .icon {
  margin-left: 2px;
}

.hero {
  padding: 62px 0 84px;
  text-align: center;
  min-height: 470px;
}

.hero__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.message-card {
  width: min(540px, 100%);
  margin: 48px auto 32px;
  min-height: 60px;
  border-radius: 16px;
  background: var(--soft);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b6670;
  font-size: 17px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta {
  min-width: 258px;
  min-height: 49px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  border: 1px solid rgba(17, 27, 33, 0.72);
}

.cta--primary {
  color: #111b21;
  background: var(--green);
}

.cta--secondary {
  color: #111b21;
  background: #fff;
}

.app-note {
  margin: 30px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: #1f2c34;
}

.app-note a {
  color: #111b21;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--green);
}

.footer {
  background: var(--footer);
  color: #fff;
  padding: 68px 0 26px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 78px;
  padding-top: 10px;
}

.footer__download {
  min-width: 172px;
  min-height: 54px;
  border: none;
  color: #111b21;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.footer__col h2 {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--footer-muted);
}

.footer__col a {
  display: block;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
}

.footer__bottom {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--footer-line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: #fff;
  font-size: 14px;
}

.footer__meta p,
.footer__meta a {
  margin: 0;
  color: #fff;
}

.footer__meta a {
  color: var(--footer-muted);
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.socials svg {
  width: 24px;
  height: 24px;
}

.lang-select {
  position: relative;
  min-width: 220px;
}

.lang-select select {
  appearance: none;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 0 54px 0 28px;
  outline: none;
}

.lang-select select option {
  color: #111b21;
}

.lang-select__chevron {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.brand--footer .brand__icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 1120px) {
  .topnav {
    gap: 22px;
    font-size: 15px;
  }

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

  .footer__brand {
    gap: 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
  }

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

  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 0;
    min-height: 78px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand__icon {
    width: clamp(104px, 14vw, 126px);
  }

  .topbar__actions {
    justify-self: end;
    align-self: center;
    margin-left: 0;
  }

  .topnav {
    display: none;
  }

  .menu-open .topnav {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    padding: 18px 18px 20px;
    background: #fff;
    border-top: 1px solid rgba(17, 27, 33, 0.08);
    box-shadow: 0 12px 28px rgba(17, 27, 33, 0.08);
    z-index: 40;
  }

  .menu-open .topnav__link {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
  }

  .topbar__actions .pill--ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 16px, 1180px);
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 10px 0 12px;
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topnav {
    display: none;
  }

  .menu-open .topnav {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px 18px;
    background: #fff;
    border-top: 1px solid rgba(17, 27, 33, 0.08);
    box-shadow: 0 12px 28px rgba(17, 27, 33, 0.08);
    z-index: 40;
  }

  .menu-open .topnav__link {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
  }

  .topbar__actions {
    width: auto;
    margin-left: 0;
  }

  .topbar__actions .pill--ghost {
    display: none;
  }

  .topbar__actions .pill--solid {
    min-height: 44px;
    padding: 0 18px;
    min-width: 132px;
    font-size: 15px;
  }

  .brand__icon {
    width: 112px;
  }

  .hero {
    padding: 42px 0 56px;
    min-height: auto;
  }

  .hero__title {
    font-size: 17px;
  }

  .message-card {
    margin-top: 34px;
    width: min(160px, 100%);
    min-height: 48px;
    border-radius: 14px;
    font-size: 14px;
  }

  .lang-select select {
    min-width: 0;
    width: 100%;
  }

  .topbar__actions {
    width: 100%;
    order: 4;
    justify-content: flex-end;
  }

  .footer {
    padding-top: 52px;
  }

  .footer__inner {
    gap: 26px;
  }

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

  .footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__download {
    min-width: 160px;
    min-height: 46px;
    font-size: 15px;
    padding: 0 18px;
    align-self: flex-start;
  }

  .footer__col a {
    font-size: 15px;
    margin-top: 12px;
  }

  .footer__col h2 {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .footer__meta {
    gap: 10px 16px;
    font-size: 12px;
  }

  .socials {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .socials a {
    width: 44px;
    height: 44px;
  }

  .socials svg {
    width: 20px;
    height: 20px;
  }

  .lang-select {
    min-width: 0;
    width: 140px;
  }

  .lang-select select {
    min-height: 46px;
    padding: 0 40px 0 18px;
    font-size: 14px;
  }

  .lang-select__chevron {
    right: 16px;
    width: 8px;
    height: 8px;
  }
}
