@font-face {
  font-family: "Community Pro";
  src:
    url("/assets/fonts/CommunityPro-Regular.woff2") format("woff2"),
    url("/assets/fonts/CommunityPro-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Community Pro";
  src:
    url("/assets/fonts/CommunityPro-Bold.woff2") format("woff2"),
    url("/assets/fonts/CommunityPro-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --liha-demo-bg: #f3efe7;
  --liha-demo-navy: #0f162c;
  --liha-demo-blue: #2d64bc;
  --liha-demo-blue-deep: #173f7e;
  --liha-demo-blue-soft: #7faef0;
  --liha-demo-yellow: #f6cf46;
  --liha-demo-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.liha-demo-body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(127, 179, 244, 0.95) 0, rgba(127, 179, 244, 0.95) 90px, transparent 91px),
    radial-gradient(circle at top right, rgba(127, 179, 244, 0.95) 0, rgba(127, 179, 244, 0.95) 90px, transparent 91px),
    var(--liha-demo-bg);
  color: var(--liha-demo-white);
  font-family: "Community Pro", sans-serif;
}

button {
  font: inherit;
}

.liha-demo-app {
  min-height: 100vh;
}

.liha-demo-stage {
  display: none;
  min-height: 100vh;
  padding: var(--stage-padding);
  position: relative;
  overflow: hidden;
}

.liha-demo-stage > :not(.intro-corner) {
  position: relative;
  z-index: 1;
}

.liha-demo-stage-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--liha-frame-gap);
}

.intro-corner {
  position: fixed;
  width: clamp(160px, 18vw, 340px);
  height: clamp(160px, 18vw, 340px);
  background: var(--liha-demo-blue-soft);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  animation: lihaCornerWiggleA 9.2s ease-in-out infinite;
}

.intro-corner-left {
  left: calc(clamp(160px, 18vw, 340px) * -0.5);
  top: calc(clamp(160px, 18vw, 340px) * -0.5);
}

.intro-corner-right {
  right: calc(clamp(160px, 18vw, 340px) * -0.5);
  top: calc(clamp(160px, 18vw, 340px) * -0.5);
  animation-name: lihaCornerWiggleB;
  animation-duration: 10.6s;
  animation-delay: -1.4s;
}

@keyframes lihaCornerWiggleA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(6%, 8%) scale(1.05);
  }
}

@keyframes lihaCornerWiggleB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-8%, 6%) scale(1.1);
  }
}

.liha-demo-card {
  position: relative;
  min-height: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--liha-demo-navy);
}

.liha-demo-intro-card {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(420px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: min(57vh, 560px);
  height: 100%;
  padding: clamp(34px, 3.4vw, 62px) clamp(44px, 5vw, 92px);
}

.liha-demo-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.liha-demo-copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  max-width: 720px;
}

.liha-demo-copy h1 {
  margin: 0;
  color: var(--liha-demo-white);
  font-size: var(--liha-landing-heading-size);
  line-height: var(--liha-landing-heading-line-height);
  letter-spacing: var(--liha-landing-heading-letter-spacing);
  font-weight: var(--liha-landing-heading-weight);
}

.liha-demo-headline {
  margin: clamp(26px, 3vw, 44px) 0 0;
  color: var(--liha-demo-white);
  font-size: var(--liha-landing-subheading-size);
  line-height: var(--liha-landing-subheading-line-height);
  letter-spacing: var(--liha-landing-subheading-letter-spacing);
  font-weight: var(--liha-landing-subheading-weight);
}

.liha-demo-contact {
  width: min(100%, 860px);
  margin-top: clamp(30px, 3.8vh, 56px);
  padding: clamp(24px, 2.2vw, 38px) clamp(26px, 2.6vw, 48px) clamp(28px, 2.6vw, 44px);
  border-radius: clamp(22px, 2vw, 34px);
  background: #1c2645;
}

.liha-demo-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(21px, 1.65vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.liha-demo-inline-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--liha-demo-white);
  text-decoration: none;
  font-size: clamp(23px, 1.7vw, 32px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.liha-demo-inline-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d9e8ff;
}

.liha-demo-inline-icon img {
  width: 56%;
  height: 56%;
}

.liha-demo-region-panel {
  display: grid;
  align-items: center;
  min-height: min(58vh, 510px);
  padding: 28px;
  border-radius: 28px;
  background: #264d92;
}

.liha-demo-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.liha-demo-region-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  aspect-ratio: 4 / 3;
  min-height: 230px;
  border: 0;
  border-radius: 22px;
  background: var(--liha-demo-blue-deep);
  color: var(--liha-demo-white);
  cursor: pointer;
  font-size: clamp(26px, 2.3vw, 42px);
  font-weight: 700;
  box-shadow: inset 0 0 0 3px transparent;
  transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.liha-demo-region-card:hover {
  transform: translateY(-1px);
}

.liha-demo-region-card.is-selected {
  background: #12366d;
  box-shadow: inset 0 0 0 4px var(--liha-demo-yellow);
}

.liha-demo-flag {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.liha-demo-flag-anz {
  background: url("/assets/images/flags/australia.png") center/cover no-repeat;
}

.liha-demo-flag-asia {
  background: url("/assets/images/flags/singapore.svg") center/cover no-repeat;
}

.liha-demo-flag-india {
  background: url("/assets/images/flags/india.svg") center/cover no-repeat;
}

.liha-demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--liha-footer-min-height);
  padding: var(--liha-footer-block-padding) var(--liha-footer-inline-end) var(--liha-footer-block-padding) var(--liha-footer-inline-start);
  border-radius: var(--radius-xl);
  background: var(--liha-demo-yellow);
}

.liha-demo-footer strong {
  color: #112749;
  font-size: var(--liha-footer-title-size);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.liha-demo-inline-pill {
  display: inline-block;
  padding: 4px 16px;
  margin: 0 8px;
  border-radius: 999px;
  background: #c1d9f5;
  color: #102d5c;
}

.liha-demo-pill-btn {
  flex-shrink: 0;
  min-height: var(--liha-pill-min-height);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--liha-demo-white);
  color: var(--liha-demo-blue-deep);
  text-decoration: none;
  font-size: var(--liha-pill-font-size);
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.liha-demo-pill-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.liha-demo-pill-icon {
  width: calc(var(--liha-pill-min-height) - 16px);
  height: calc(var(--liha-pill-min-height) - 16px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d9e8ff;
}

.liha-demo-pill-icon img {
  width: 56%;
  height: 56%;
}

.liha-demo-clickthrough-stage.liha-demo-stage-active {
  --stage-padding: 0px;
  --demo-screen-margin: clamp(32px, 15.5vw, 64px);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  padding: 0;
  gap: 0;
}

.liha-demo-screen-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: var(--demo-screen-margin);
  overflow: visible;
}

.liha-demo-screen-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.liha-demo-screen-frame {
  position: relative;
  width: auto;
  height: min(100%, calc((100vw - (var(--demo-screen-margin) * 2)) / var(--demo-screen-ratio-number, 1.678)));
  max-width: 100%;
  aspect-ratio: var(--demo-screen-ratio, 1440 / 930);
  flex: 0 1 auto;
  margin-inline: auto;
  overflow: visible;
}

.liha-demo-screen-mask {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: transparent;
  overflow: hidden;
}

.liha-demo-screen-svg,
.liha-demo-hotspot-overlay,
.liha-demo-rive-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: calc(100% * var(--demo-screen-scale-y, 1));
}

.liha-demo-screen-svg {
  background: #fff;
}

.liha-demo-rive-canvas {
  height: 100%;
  background: transparent;
}

.liha-demo-rive-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 4px solid rgba(23, 64, 126, 0.16);
  border-top-color: var(--liha-demo-blue-deep);
  transform: translate(-50%, -50%);
  animation: lihaDemoLoaderSpin 720ms linear infinite;
  pointer-events: none;
}

.liha-demo-rive-loader.is-hidden {
  display: none;
}

@keyframes lihaDemoLoaderSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.liha-demo-hotspot-overlay {
  overflow: visible;
  pointer-events: none;
}

.liha-demo-screen-wrap .liha-demo-hotspot,
.liha-demo-screen-wrap [id="hotspot"],
.liha-demo-screen-wrap [id^="hotspot_"] {
  cursor: pointer;
  pointer-events: auto;
}

.liha-demo-screen-wrap .liha-demo-hotspot > *,
.liha-demo-screen-wrap [id="hotspot"] > *,
.liha-demo-screen-wrap [id^="hotspot_"] > * {
  transform-box: fill-box;
  transform-origin: center;
  animation: lihaDemoHotspotPulse 1.25s ease-in-out infinite;
}

@keyframes lihaDemoHotspotPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.08);
  }
}

.liha-demo-end-stage.liha-demo-stage-active {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.liha-demo-end-content {
  min-height: 0;
  display: grid;
  align-content: center;
  gap: clamp(22px, 3vh, 38px);
}

.liha-demo-end-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 40px);
  min-height: clamp(116px, 15vh, 170px);
  padding: clamp(24px, 2.5vw, 44px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(22.69% 50% at 50% 50%, var(--Purple-purple-30, rgba(239, 224, 255, 0.60)) 0%, rgba(239, 224, 255, 0.00) 100%),
    radial-gradient(50% 36.15% at 31.7% 50%, var(--Blue-blue-30, rgba(210, 233, 255, 0.60)) 0%, rgba(210, 233, 255, 0.00) 100%),
    radial-gradient(50% 37.26% at 69.44% 50%, var(--System-Green-system-green-20, rgba(214, 250, 238, 0.60)) 0%, rgba(214, 250, 238, 0.00) 100%),
    linear-gradient(0deg, var(--Background-color-background, #fff) 0%, var(--Background-color-background, #fff) 100%),
    #17407e;
  color: #202124;
  backdrop-filter: blur(18px);
}

.liha-demo-end-spark {
  width: clamp(68px, 6.5vw, 106px);
  height: clamp(68px, 6.5vw, 106px);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
}

.liha-demo-end-spark img {
  width: 58%;
  height: 58%;
  display: block;
}

.liha-demo-end-banner p {
  max-width: 1140px;
  margin: 0;
  color: #202124;
  font-size: clamp(24px, 2.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.liha-demo-stats-panel {
  display: grid;
  gap: clamp(18px, 2.2vh, 28px);
  padding: clamp(28px, 3.4vw, 58px);
  border-radius: var(--radius-xl);
  background: #214f93;
}

.liha-demo-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 26px);
}

.liha-demo-stat-card {
  min-height: clamp(240px, 30vh, 390px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(22px, 2.2vw, 42px);
  border-radius: clamp(18px, 1.8vw, 30px);
  background: #103b78;
}

.liha-demo-stat-card h2 {
  margin: 0;
  color: #8abaff;
  font-size: clamp(60px, 4.8vw, 102px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.liha-demo-stat-card h3 {
  margin: clamp(18px, 2vh, 28px) 0 0;
  color: #8abaff;
  font-size: clamp(20px, 1.55vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.liha-demo-stat-card p {
  max-width: 360px;
  margin: clamp(24px, 3.6vh, 46px) 0 0;
  color: var(--liha-demo-white);
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.liha-demo-stat-card span {
  display: inline-block;
  padding: 0 12px 2px;
  border-radius: 999px;
  background: #3e7ed4;
}

.liha-demo-stat-footnote {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: clamp(14px, 1.1vw, 18px);
  font-style: italic;
}

@media (max-width: 900px) {
  .liha-demo-intro-card {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 32px 28px;
  }

  .liha-demo-copy {
    grid-column: 1;
    max-width: 560px;
    margin-left: auto;
  }

  .liha-demo-art .side-shapes-video,
  .liha-demo-art .side-shapes-fallback {
    width: clamp(260px, 48vw, 520px);
  }

  .liha-demo-region-grid,
  .liha-demo-stats-grid {
    grid-template-columns: 1fr;
  }

  .liha-demo-region-panel {
    align-items: stretch;
    overflow: auto;
  }

  .liha-demo-region-card {
    min-height: 150px;
    aspect-ratio: auto;
  }

  .liha-demo-footer,
  .liha-demo-end-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .liha-demo-pill-btn {
    align-self: flex-end;
  }

  .liha-demo-end-banner {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .liha-demo-stage {
    padding: 14px 12px 12px;
  }

  .liha-demo-region-panel,
  .liha-demo-stats-panel {
    padding: 18px;
    /* border-radius: 22px; */
  }

  .liha-demo-footer strong {
    font-size: var(--liha-footer-title-size);
  }

  .liha-demo-copy h1 {
    font-size: 44px;
  }

  .liha-demo-headline,
  .liha-demo-contact p {
    font-size: 20px;
  }

  .liha-demo-inline-link {
    font-size: 22px;
  }

  .liha-demo-stat-card {
    min-height: 230px;
  }
}
