:root {
  --shell-page-padding-desktop: 20px;
  --shell-page-padding-mobile: 14px;
  --capsule-radius: 999px;
  --shell-gap-mobile: 16px;
  --shell-frame-padding-mobile: 16px;
  --shell-radius-mobile: 26px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    "Montserrat",
    "Segoe UI",
    sans-serif;
  background: #43474f;
}

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

.page {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: var(--shell-page-padding-desktop);
}

.desktopApplication {
  display: none;
  width: 100%;
  height: 100%;
}

.desktop-landing {
  display: block;
  width: 100%;
  height: 100%;
}

.desktop-hero {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background-color: #c5d7ee;
  background-image: url("./assets/oncores-background.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 28px 80px rgba(86, 110, 153, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.desktop-chrome {
  position: absolute;
  top: 26px;
  left: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.desktop-demoLabel {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow:
    0 8px 22px rgba(40, 54, 76, 0.28),
    0 1px 2px rgba(255, 255, 255, 0.08);
}

.languageSwitcherDesktop {
  gap: 4px;
  width: 104px;
  padding: 4px;
  border: 1px solid rgba(127, 147, 188, 0.15);
  background: rgba(255, 255, 255, 0.92);
  pointer-events: auto;
}

.languageSwitcherDesktop .languageOption,
.languageSwitcherDesktop .languageOptionActive {
  min-height: 28px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.languageSwitcherDesktop .languageOption {
  color: #607793;
}

.languageSwitcherDesktop .languageOptionActive {
  background: linear-gradient(180deg, #4f89ff 0%, #2f67e8 100%);
  color: #ffffff;
}

.desktop-copy {
  position: absolute;
  left: 50%;
  top: 77.2%;
  width: min(860px, 72%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 6px 18px rgba(58, 88, 130, 0.18),
    0 1px 2px rgba(73, 106, 151, 0.24);
  pointer-events: none;
}

.desktop-copyLead,
.desktop-copyText {
  margin: 0;
  font-family:
    "Montserrat",
    "Segoe UI",
    sans-serif;
  font-weight: 300;
  letter-spacing: 0.07em;
}

.desktop-copyLead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.42;
}

.desktop-copyText {
  max-width: 780px;
  font-size: clamp(0.92rem, 1.32vw, 1.18rem);
  line-height: 1.78;
  letter-spacing: 0.045em;
}

.demo-entryButton {
  --demo-entry-size: clamp(48px, 3.5vw, 58px);
  --demo-entry-hit-size: clamp(74px, 5.2vw, 90px);
  position: absolute;
  left: var(--demo-entry-left, 49.92%);
  top: var(--demo-entry-top, 28.06%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--demo-entry-hit-size);
  height: var(--demo-entry-hit-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  text-decoration: none;
  outline: none;
  z-index: 2;
}

.demo-entryButton::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 0 rgba(255, 255, 255, 0.5),
    0 0 40px rgba(255, 255, 255, 0.56);
  animation: demo-entry-halo 3.2s ease-in-out infinite;
  will-change: transform, opacity, box-shadow;
}

.demo-entryButtonCore {
  position: relative;
  width: var(--demo-entry-size);
  height: var(--demo-entry-size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ffffff 0%, #ffffff 52%, #f1f6ff 72%, #d7e7ff 100%);
  box-shadow:
    0 10px 28px rgba(107, 146, 206, 0.22),
    0 0 18px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  animation: demo-entry-breathe 3.2s ease-in-out infinite;
  will-change: transform, box-shadow, filter;
}

.demo-entryButton:hover .demo-entryButtonCore,
.demo-entryButton:focus-visible .demo-entryButtonCore {
  transform: scale(1.08);
  box-shadow:
    0 14px 30px rgba(107, 146, 206, 0.26),
    0 0 22px rgba(255, 255, 255, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.demo-entryButton:hover::after,
.demo-entryButton:focus-visible::after {
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(255, 255, 255, 0.42);
}

.demo-entryButton:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 92, 196, 0.22);
}

@keyframes demo-entry-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow:
      0 10px 28px rgba(107, 146, 206, 0.22),
      0 0 18px rgba(255, 255, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.96);
  }

  50% {
    transform: scale(1.085);
    filter: brightness(1.06);
    box-shadow:
      0 14px 34px rgba(107, 146, 206, 0.28),
      0 0 26px rgba(255, 255, 255, 0.62),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }
}

@keyframes demo-entry-halo {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.94);
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.46),
      0 0 28px rgba(255, 255, 255, 0.34);
  }

  50% {
    opacity: 1;
    transform: scale(1.22);
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.12),
      0 0 48px rgba(255, 255, 255, 0.62);
  }
}

.unsupportedViewportNotice {




  display: block;
  width: 100%;
  height: 100%;
}

.unsupportedDeviceScreen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.unsupportedDeviceCard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  width: min(560px, 100%);
  min-height: 296px;
  padding: 82px 30px 32px;
  border: 1px solid rgba(168, 176, 192, 0.22);
  border-radius: 30px;
  background: rgba(250, 252, 255, 0.9);
  box-shadow:
    0 24px 64px rgba(86, 110, 153, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: center;
  box-sizing: border-box;
}

.unsupportedDeviceCard > .languageSwitcher {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 132px;
  align-self: auto;
}

.languageSwitcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  width: 132px;
  padding: 4px;
  border: 1px solid rgba(127, 147, 188, 0.15);
  border-radius: var(--capsule-radius);
  background: rgba(255, 255, 255, 0.92);
  justify-self: end;
}

.languageOption,
.languageOptionActive {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--capsule-radius);
  background: transparent;
  color: #607793;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.languageOptionActive {
  background: linear-gradient(180deg, #4f89ff 0%, #2f67e8 100%);
  color: #ffffff;
}

.unsupportedDeviceTitle {
  margin: 0;
  color: #17335f;
  font-size: clamp(1.3rem, 2vw, 1.68rem);
  font-weight: 600;
  line-height: 1.14;
}

.unsupportedDeviceText {
  margin: 0;
  color: #607793;
  font-size: 0.9rem;
  line-height: 1.65;
}

.languageOption:focus-visible,
.languageOptionActive:focus-visible {
  outline: 2px solid rgba(47, 103, 232, 0.45);
  outline-offset: 2px;
}

@media (min-width: 1200px) {
  .desktopApplication {
    display: block;
  }

  .unsupportedViewportNotice {
    display: none;
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .desktop-chrome {
    top: 22px;
    left: 24px;
    right: 24px;
  }

  .desktop-copy {
    top: 79%;
    width: min(760px, 76%);
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-entryButton::after,
  .demo-entryButtonCore {
    animation: none;
  }

  .demo-entryButton:hover .demo-entryButtonCore,
  .demo-entryButton:focus-visible .demo-entryButtonCore,
  .demo-entryButton:hover::after,
  .demo-entryButton:focus-visible::after {
    transform: none;
  }
}

@media (max-width: 767px) {
  .page {
    padding: var(--shell-page-padding-mobile);
    overflow-y: auto;
  }

  .unsupportedDeviceScreen {
    min-height: calc(100vh - (var(--shell-page-padding-mobile) * 2));
  }

  .unsupportedDeviceCard {
    gap: var(--shell-gap-mobile);
    min-height: 332px;
    padding: 78px 22px 28px;
    border-radius: 24px;
  }

  .unsupportedDeviceCard > .languageSwitcher {
    top: 18px;
    right: 18px;
    width: 132px;
  }
}
