@font-face {
  font-family: "Open Sans";
  src: url("assets/OpenSans-Regular-ViNznsac.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/OpenSans-Semibold-DSZ9GxFk.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/OpenSans-Bold-CZmsLVLJ.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #051220;
  --panel: #15202c;
  --popover: #252d39;
  --primary: #1687ef;
  --muted: #7a8496;
  --text: #ffffff;
  --site-width: 1310px;
  --read-width: 720px;
  --header-height: 84px;
  --unit: 24px;
  --radius: 10px;
  --shadow: 0 18px 50px rgb(0 0 0 / 18%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.site-header {
  z-index: 100;
  position: sticky;
  top: 0;
  min-height: var(--header-height);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-tint {
  z-index: -1;
  position: absolute;
  inset: 0;
  background: rgb(5 18 32 / 90%);
  opacity: 0;
  backdrop-filter: blur(14px);
  transition: opacity 180ms ease;
}

.site-header.is-scrolled .header-tint,
body.nav-open .header-tint {
  opacity: 1;
}

.brand,
.footer-brand {
  flex: none;
  display: inline-flex;
}

.brand img,
.footer-brand img {
  width: auto;
  height: 36px;
}

.main-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 400;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 0;
  height: 4px;
  border-radius: 99px;
  background: var(--primary);
  transition: width 220ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.dropdown-trigger[aria-expanded="true"]::after {
  width: 100%;
}

.header-download,
.download-button,
.cookie-button {
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.header-download,
.cookie-accept {
  color: #fff;
  background: var(--primary);
}

.header-download {
  transition: transform 160ms ease, background-color 160ms ease;
}

.header-download:hover,
.header-download:focus-visible {
  background: #2b96f7;
  transform: translateY(-1px);
}

.nav-dropdown,
.language-picker {
  position: relative;
}

.dropdown-menu {
  z-index: 120;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: max-content;
  min-width: 190px;
  padding: 8px 0;
  overflow: hidden;
  border: 1px solid rgb(122 132 150 / 55%);
  border-radius: var(--radius);
  background: var(--popover);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

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

.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--muted);
  transition: color 140ms ease, background-color 140ms ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu a.active {
  color: #fff;
  background: rgb(255 255 255 / 4%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button svg {
  width: 24px;
  height: 24px;
}

.language-menu {
  right: -5px;
  left: auto;
  max-height: min(70vh, 480px);
  overflow-y: auto;
  transform: none;
}

.menu-toggle,
.mobile-solutions {
  display: none;
}

main {
  flex: 1;
}

.site-shell {
  width: min(100%, calc(var(--site-width) + (var(--unit) * 2)));
  margin: 0 auto;
  padding: 0 var(--unit);
}

.hero {
  position: relative;
  padding: 19px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  isolation: isolate;
}

.hero-art {
  z-index: 0;
  position: absolute;
  top: -83px;
  left: 50%;
  width: 100vw;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-art img {
  width: 100%;
  height: auto;
}

.hero h1,
.hero p {
  z-index: 1;
  position: relative;
  width: 100%;
}

.hero h1 {
  max-width: var(--read-width);
  margin: 0;
  font-size: clamp(40px, 4.1vw, 56px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p {
  max-width: var(--read-width);
  margin: 0;
  font-size: 22px;
  line-height: 1.48;
  text-wrap: balance;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--unit);
}

.download-card {
  position: relative;
  min-width: 0;
  height: 462px;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  transform: translateZ(0);
}

.ios-card {
  background: #2946b9;
}

.android-card {
  background: #81bea7;
}

.mac-card {
  grid-column: 1 / -1;
  background: #447ff4;
}

.card-topline {
  z-index: 5;
  position: relative;
  padding: var(--unit);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.platform-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 36px;
  font-weight: 400;
  white-space: nowrap;
}

.platform-name img {
  width: auto;
  height: 38px;
}

.download-button {
  flex: none;
  min-width: 142px;
  color: #000;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-card:hover .download-button,
.download-card:focus-visible .download-button {
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
  transform: translateY(-2px);
}

.device-stage {
  z-index: 4;
  position: absolute;
  inset: 84px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.device-image {
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 220ms ease;
}

.phone-image {
  width: min(49%, 300px);
}

.desktop-image {
  width: min(76%, 800px);
}

.download-card:hover .device-image,
.download-card:focus-visible .device-image {
  transform: scale(1.035);
}

.card-background {
  z-index: 1;
  position: absolute;
  bottom: 0;
  width: 110%;
  max-width: none;
  pointer-events: none;
}

.card-background-left {
  left: -5%;
  transform: translateY(43%);
}

.card-background-right {
  right: -8%;
  transform: rotateY(180deg) translateY(38%);
}

.ios-card .card-background-right {
  width: 140%;
  right: -32%;
  transform: rotateY(180deg) translateY(42%);
}

.android-card .card-background-right {
  right: -10%;
  transform: rotateY(180deg) translate(-22%, -2%);
}

.mac-card .card-background-left {
  width: 100%;
  left: 0;
  transform: translate(-12%, 45%) scale(1.15);
}

.mac-card .card-background-right {
  width: 90%;
  right: -2%;
  transform: rotateY(180deg) translate(-12%, 36%);
}

.info-panel {
  width: min(100%, var(--read-width));
  margin: 24px auto 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 18px;
  line-height: 1.6;
}

.info-panel h2,
.info-panel h3,
.info-panel p,
.info-panel ul {
  margin: 0;
}

.info-panel h2 {
  font-size: 28px;
  font-weight: 600;
}

.info-panel h3 {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 600;
}

.info-columns {
  display: grid;
  gap: 24px;
}

.info-panel ul {
  padding-left: 24px;
}

.info-panel strong {
  font-weight: 700;
}

.site-footer {
  margin-top: clamp(130px, 16vh, 260px);
  padding: 24px 24px 118px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-links {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(45px, 8vw, 140px);
}

.footer-column {
  display: flex;
  flex-direction: column;
  line-height: 2;
}

.footer-column strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-column a {
  color: #fff;
  transition: color 150ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--primary);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.social-links a {
  transition: color 150ms ease, transform 150ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.social-links svg {
  width: 42px;
  height: 42px;
}

.copyright {
  margin: 24px 0 0;
  color: var(--muted);
}

.cookie-banner {
  z-index: 200;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 96px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgb(0 0 0 / 90%);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform 260ms ease, visibility 260ms;
}

.cookie-banner.is-hidden {
  visibility: hidden;
  transform: translateY(100%);
}

.cookie-banner p {
  flex: 1 1 70ch;
  max-width: 78ch;
  margin: 0;
  text-wrap: balance;
}

.cookie-banner p a {
  color: var(--primary);
}

.cookie-banner p a:hover,
.cookie-banner p a:focus-visible {
  text-decoration: underline;
}

.cookie-actions {
  flex: 1 1 420px;
  display: flex;
  gap: 24px;
}

.cookie-button {
  flex: 1;
  min-width: 150px;
}

.cookie-decline {
  border: 1px solid var(--muted);
  color: #fff;
}

.cookie-decline:hover,
.cookie-decline:focus-visible {
  background: rgb(255 255 255 / 8%);
}

.cookie-accept:hover,
.cookie-accept:focus-visible {
  background: #2b96f7;
}

:focus-visible {
  outline: 3px solid rgb(22 135 239 / 75%);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 18px;
  }

  .download-card {
    height: 430px;
  }

  .platform-name {
    font-size: 31px;
  }

  .footer-links {
    gap: 50px;
  }
}

@media (max-width: 959px) {
  :root {
    --header-height: 68px;
    --unit: 16px;
  }

  .site-header {
    padding: 16px;
  }

  .brand img,
  .footer-brand img {
    height: 34px;
  }

  .main-nav {
    z-index: -2;
    position: fixed;
    inset: 0;
    padding: calc(var(--header-height) + 32px) 24px 40px;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    overflow-y: auto;
    background: var(--background);
    font-size: 18px;
    white-space: normal;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: transform 280ms ease, opacity 220ms ease, visibility 0s;
  }

  .main-nav[data-mobile-closed="true"] {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 280ms ease, opacity 220ms ease, visibility 0s 280ms;
  }

  .nav-link {
    font-size: 18px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-solutions {
    display: contents;
  }

  .header-download {
    margin-top: 4px;
  }

  .menu-toggle {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .menu-toggle span {
    width: 30px;
    height: 2.3px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: left center;
    transition: transform 220ms ease, opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translate(3px, 0) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translate(3px, 0) rotate(-45deg);
  }

  .hero-art {
    top: -25px;
    width: 140vw;
  }

  .download-card {
    height: 420px;
  }

  .card-topline {
    padding: 20px;
  }

  .platform-name {
    font-size: 30px;
  }

  .download-button {
    min-width: 122px;
    padding-inline: 22px;
  }

  .site-footer {
    margin-top: 120px;
  }

  .footer-content {
    flex-wrap: wrap;
  }

  .footer-links {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner p,
  .cookie-actions {
    flex-basis: auto;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

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

  .mac-card {
    grid-column: auto;
  }

  .download-card {
    height: 390px;
  }

  .phone-image {
    width: min(60%, 265px);
  }

  .desktop-image {
    width: 94%;
  }

  .info-panel {
    margin-top: 16px;
    padding: 20px 16px;
    gap: 20px;
    font-size: 16px;
    line-height: 1.58;
  }

  .info-panel h2 {
    font-size: 22px;
  }

  .info-panel h3 {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .site-footer {
    padding-inline: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 32px 56px;
  }

  .footer-column {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 16px;
  }

  .language-menu {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 16px);
  }

  .hero {
    gap: 16px;
  }

  .hero-art {
    top: -3px;
    width: 185vw;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 36px);
  }

  .hero p {
    max-width: 340px;
  }

  .download-card {
    height: 380px;
  }

  .card-topline {
    padding: 16px;
    gap: 10px;
  }

  .platform-name {
    gap: 7px;
    font-size: 27px;
  }

  .platform-name img {
    height: 31px;
  }

  .download-button {
    min-width: 106px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }

  .device-stage {
    inset: 76px 0 0;
  }

  .phone-image {
    width: min(64%, 250px);
  }

  .mac-card .desktop-image {
    width: 118%;
    max-width: none;
  }

  .site-footer {
    margin-top: 90px;
    padding-bottom: 235px;
  }

  .footer-content {
    gap: 32px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-column {
    min-width: 0;
  }

  .footer-column:nth-child(2) {
    grid-column: 1 / -1;
  }

  .social-links svg {
    width: 38px;
    height: 38px;
  }

  .cookie-banner {
    min-height: 0;
    padding: 16px;
    gap: 14px;
  }

  .cookie-banner p {
    font-size: 14px;
    line-height: 1.45;
    text-wrap: pretty;
  }

  .cookie-actions {
    gap: 12px;
  }

  .cookie-button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
