:root {
  color-scheme: dark
}

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

html, body {
  min-height: 100%
}

body {
  overflow-x: hidden;
  background: none;
  font-family: "Montserrat", Arial, sans-serif
}

button {
  border: 0;
  font: inherit
}

.landing {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: max(100svh, 56.25vw);
  overflow: hidden;
  isolation: isolate;
  background: #00864c url("./images/figma-asset-06.png") center/cover no-repeat
}

.landing:before {
  content: none
}

.brand {
  position: absolute;
  z-index: 3;
  top: 3.3%;
  left: 50%;
  width: 19.5%;
  transform: translateX(-50%)
}

.hero-art {
  position: absolute;
  z-index: 2;
  top: 19.3%;
  left: 50%;
  width: 22.7%;
  height: 32%;
  transform: translateX(-50%)
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none
}

.link-grid {
  position: absolute;
  z-index: 3;
  top: 53.5%;
  left: 50%;
  width: 73.75%;
  display: grid;
  grid-template-columns:repeat(6, 1fr);
  gap: 1.03%;
  transform: translateX(-50%)
}

.link-card {
  position: relative;
  aspect-ratio: 219.4/205;
  cursor: pointer;
  background: transparent;
  transition: transform .2s, filter .2s
}

.link-card:hover {
  z-index: 2;
  transform: translateY(-5px) scale(1.04);
  filter: brightness(1.08)
}

.link-card img {
  width: 100%;
  height: 100%;
  object-fit: fill
}

.link-name {
  position: absolute;
  top: 15.8%;
  left: 50%;
  transform: translateX(-50%);
  color: #edff5b;
  font-weight: 800;
  font-size: clamp(25px, 1.55vw, 30px);
  white-space: nowrap;
  text-shadow: 0 2px 1px #005330;
}

.ping {
  position: absolute;
  top: 41%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  color: #fff;
  line-height: .97;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .18)
}

.ping b {
  font-size: clamp(25px, 2.55vw, 49px);
  font-weight: 800
}

.ping b.is-updating {
  animation: ping-slide-in .32s ease-out
}

@keyframes ping-slide-in {
  from {
    opacity: .35;
    transform: translateX(-12px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.ping small {
  margin-top: .18em;
  font-size: clamp(17px, 1.68vw, 32px);
  font-weight: 900
}

.download-card {
  --card-cut: clamp(20px, 5.2%, 52px);
  --card-cut-depth: clamp(26px, 6.8%, 68px);
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 6%;
  width: 52.1%;
  height: 18.52%;
  display: grid;
  grid-template-columns:25% 1fr 25%;
  align-items: center;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 20px;
  background: transparent
}

.download-card:before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(1, 66, 48, .98), rgba(0, 103, 66, .96));
  clip-path: polygon(
    0 0,
    66% 0,
    calc(66% + var(--card-cut)) var(--card-cut-depth),
    100% var(--card-cut-depth),
    100% 100%,
    0 100%
  );
  pointer-events: none
}

.qr-wrap {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: 62%;
  height: 84%;
  padding: 6% 5% 0;
  border: 5px solid #18a97d;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #fff
}

.qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.download-content {
  position: relative;
  z-index: 1;
  align-self: center;
  text-align: center;
  color: #fff
}

.download-content h1 {
  font-size: clamp(19px, 2.2vw, 42px);
  line-height: 1;
  font-weight: 900
}

.download-content p {
  margin-top: .16em;
  font-size: clamp(15px, 1.65vw, 31px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap
}

.download-content strong {
  font-size: 1.24em
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 2.5%;
  margin-top: 4.5%
}

.download-actions button {
  width: 47%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
  border-radius: 13px;
  cursor: pointer;
  color: #11a173;
  background: linear-gradient(270deg, #fff, #c4ffec);
  font-size: clamp(11px, 1vw, 19px);
  line-height: 1.2;
  font-weight: 800
}

.download-actions button > span:first-child {
  display: grid;
  place-items: center;
  width: 3em;
  height: 3em;
  margin: -.5em 0;
  border-radius: 50%;
  background: #eafff8;
  font-size: 1.45em
}

.gift {
  position: relative;
  z-index: 1;
  width: 112%;
  align-self: end;
  justify-self: end;
  transform: translate(7%, 17%)
}

.social-dock {
  position: fixed;
  z-index: 10;
  right: 3.2%;
  top: 40.7%;
  display: grid;
  gap: 8px
}

.social-dock button {
  position: relative;
  width: clamp(48px, 3.15vw, 61px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 3px solid #006a48;
  border-radius: 50%;
  color: #00633f;
  background: linear-gradient(135deg, #fff85e, #f0c431);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .28);
  font-size: clamp(23px, 2vw, 38px);
  font-weight: 900
}

.social-dock button > span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1
}

.social-dock button[data-website="tele-chanel"] > span {
  transform: translate(4px, 0px);
}

.social-dock img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: hue-rotate(80deg) saturate(2)
}

.social-dock em {
  display: none
}

.social-dock button:hover em {
  display: none
}

.mobile-actions { display: none; }

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important
  }

  .ping b.is-updating {
    animation: none
  }
}

/* Shared download controls */
.download-content {
  align-self: start;
  padding-top: 18px;
}

.download-actions {
  margin-top: 6px;
}

.download-actions button {
  min-height: 0;
  padding: 0;
  background: none;
}

.download-actions button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.phone-speaker {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 40px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #12a174;
}

/* Approved 1920 × 1080 desktop canvas */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: url("./images/figma-asset-06.png") center / cover no-repeat;
  }

  body {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .landing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1920px;
    height: 1080px;
    min-height: 0;
    transform: translate(-50%, -50%) scale(var(--desktop-scale, 1));
    transform-origin: center;
    background: none;
  }

  .brand {
    top: .2%;
    width: 15.5%;
  }

  .hero-art {
    top: 11.5%;
    width: 36.5%;
    height: 42%;
  }

  .link-name { font-size: 30px; }
  .ping b { font-size: 49px; }
  .ping small { font-size: 32px; }
  .download-card { display: block; }

  .qr-wrap {
    position: absolute;
    top: 31px;
    left: 53px;
    width: 154px;
    height: 313px;
    padding: 32px 12px 0;
    border: 5px solid #168e6d;
    border-radius: 25px;
    background: #fff;
  }

  .qr-wrap img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
  }

  .download-content {
    position: absolute;
    top: 0;
    left: 295px;
    width: 410px;
    padding-top: 12px;
  }

  .download-content h1 { font-size: 42px; }
  .download-content p { font-size: 31px; }
  .download-actions button {
    width: 200px;
    height: 80px;
  }

  .gift {
    position: absolute;
    top: -9px;
    right: 6px;
    width: 249px;
    transform: none;
  }

  .social-dock {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  .social-dock button { width: 61px; font-size: 38px; }
  .social-dock img {
    filter: brightness(0) saturate(100%) invert(24%) sepia(35%) saturate(1450%) hue-rotate(112deg) brightness(76%) contrast(105%);
  }
}

/* Mobile and tablet layout: intentionally separated from the desktop canvas. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .landing {
    --mobile-section-gap: clamp(24px, 5vw, 52px);
    min-height: 100svh;
    height: auto;
    padding: clamp(18px, 4vw, 40px) clamp(14px, 4vw, 36px) clamp(20px, 3vw, 28px);
    overflow: hidden;
    background-position: center top;
  }

  .brand,
  .hero-art,
  .link-grid,
  .download-card,
  .mobile-actions {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    margin-right: auto;
    margin-left: auto;
  }

  .brand {
    display: block;
    width: min(58vw, 520px);
    margin: 0 auto clamp(8px, 2vw, 20px);
  }

  .hero-art {
    width: 100%;
    max-width: 960px;
    height: auto;
    aspect-ratio: 513 / 311;
    margin-top: 0;
    margin-bottom: 0;
  }

  .link-grid {
    width: min(100%, 900px);
    margin: var(--mobile-section-gap) auto 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(6px, 2vw, 20px);
    row-gap: clamp(10px, 2.4vw, 24px);
  }

  .link-name {
    top: 15.8%;
    font-size: clamp(15px, 3.1vw, 27px);
  }

  .ping {
    top: 43%;
    left: 0;
    width: 100%;
    transform: none;
    line-height: .95;
    text-align: center;
  }

  .ping b {
    font-size: clamp(27px, 5.6vw, 48px);
    line-height: 1;
  }

  .ping small {
    margin-top: .12em;
    font-size: clamp(18px, 3.7vw, 31px);
    line-height: 1;
  }

  .download-card {
    width: min(100%, 780px);
    height: auto;
    min-height: 0;
    aspect-ratio: 25 / 8;
    margin: var(--mobile-section-gap) auto 0;
    padding: clamp(20px, 3vw, 30px) 29% clamp(16px, 2.5vw, 24px) clamp(18px, 4vw, 34px);
    display: block;
    overflow: hidden;
    border-radius: clamp(14px, 2vw, 20px);
  }

  .qr-wrap { display: none; }

  .download-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .download-content h1 {
    font-size: clamp(24px, 5.3vw, 44px);
    white-space: nowrap;
  }

  .download-content p {
    margin-top: 4px;
    font-size: clamp(15px, 3.2vw, 27px);
    white-space: nowrap;
  }

  .download-actions {
    justify-content: center;
    gap: clamp(6px, 1.4vw, 14px);
    margin-top: clamp(12px, 2vw, 20px);
  }

  .download-actions button {
    width: min(46%, 250px);
    height: auto;
    aspect-ratio: 5 / 2;
  }

  .gift {
    position: absolute;
    z-index: 1;
    right: -2%;
    bottom: -7%;
    width: min(36%, 281px);
    transform: none;
  }

  .social-dock { display: none !important; }

  .mobile-actions {
    width: 100%;
    margin: clamp(18px, 3.2vw, 32px) auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(8px, 2vw, 20px);
    row-gap: clamp(12px, 2vw, 18px);
  }

  .mobile-actions button {
    min-height: clamp(42px, 6vw, 54px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 1vw, 9px);
    border: 2px solid #08724d;
    border-radius: 12px;
    color: #006a45;
    background: linear-gradient(180deg, #fff966 0%, #f1c832 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 2px 3px rgba(0, 65, 42, .22);
    font-size: clamp(13px, 2.1vw, 18px);
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-actions .action-icon {
    flex: 0 0 auto;
    width: auto;
    height: clamp(24px, 4vw, 34px);
    object-fit: contain;
  }
}

@media (max-width: 560px) {
  .landing {
    --mobile-section-gap: 18px;
    min-height: 100svh;
    padding-right: 10px;
    padding-left: 10px;
    padding-top: 14px;
    padding-bottom: 24px;
    background-size: auto 100%;
    background-position: center top;
  }

  .brand {
    width: min(60vw, 300px);
    margin-bottom: 4px;
  }

  .hero-art {
    width: 100%;
    max-width: none;
  }

  .link-grid {
    column-gap: 3px;
    row-gap: 10px;
  }

  .ping { top: 40.5%; }

  .download-card {
    width: 100%;
    min-height: 96px;
    padding: 9px 31% 8px 12px;
  }

  .download-content h1 { font-size: clamp(17px, 5.3vw, 24px); }
  .download-content p { margin-top: 2px; font-size: clamp(10px, 3.2vw, 15px); }
  .download-actions { gap: 4px; margin-top: 5px; }
  .download-actions button {
    width: 50%;
    height: auto;
    aspect-ratio: 5 / 2;
  }
  .gift { right: -2%; bottom: -6%; width: 36%; }

  .mobile-actions {
    width: 100%;
    margin-top: 18px;
    column-gap: 8px;
    row-gap: 14px;
  }

  .mobile-actions button {
    min-height: 32px;
    gap: 4px;
    border-width: 1.5px;
    font-size: clamp(9px, 2.9vw, 12px);
  }

  .mobile-actions .action-icon {
    width: auto;
    height: 20px;
  }
}
