:root {
  color-scheme: light;
  --pb-red: #f2051c;
  --pb-black: #0f0f10;
  --pb-white: #fff;
  --pb-soft: #f7f7f7;
  --pb-muted: #6f6f73;
  --pb-radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pb-soft);
  color: var(--pb-black);
}

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

.home-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 12px;
  pointer-events: none;
}

.home-brand,
.home-menu {
  pointer-events: auto;
}

.home-brand {
  display: block;
  width: min(35vw, 250px);
  min-width: 156px;
}

.home-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.2));
}

.home-menu {
  position: relative;
}

.home-menu summary {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--pb-white);
  background: rgba(15, 15, 16, 0.92);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.home-menu summary::-webkit-details-marker {
  display: none;
}

.home-menu nav {
  position: absolute;
  top: 64px;
  right: 0;
  display: grid;
  width: min(82vw, 330px);
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px);
}

.home-menu nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  font-weight: 900;
  background: rgba(247, 247, 247, 0.88);
  border-radius: 16px;
}

.home-menu nav i {
  color: var(--pb-red);
}

.home-countdown-hero {
  margin: 0;
  overflow: hidden;
  contain: paint;
}

.countdown-card > .home-countdown-link {
  order: 4;
  align-self: end;
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 auto;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  font-size: 0.9rem;
}

.countdown-card > .home-countdown-link i {
  color: #fff;
}

.home-page .countdown-bg::after {
  inset: 0;
}

.home-page .countdown-bg {
  max-width: 100vw;
  overflow: hidden;
  contain: paint;
}

.home-page .countdown-bg__slide,
.home-page .countdown-bg__slide.is-active {
  transform: none;
  animation: none;
}

.home-page .countdown-glow {
  inset-inline: 0;
}

.home-page .countdown-travel {
  overflow: hidden;
}

.home-page .countdown-days::after {
  right: 8px;
}

.home-page .countdown-days strong {
  font-size: clamp(4.7rem, 21vw, 9.8rem);
}

.home-countdown {
  position: relative;
  max-width: 100%;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 70px) clamp(34px, 7vh, 76px);
  color: var(--pb-white);
}

.home-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.35)),
    url("/assets/countdown-example-kuala-lumpur-20260818.webp") center / cover;
}

.home-countdown__content {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin: 0 0 14px;
  padding: 7px 14px;
  color: var(--pb-black);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.home-eyebrow span {
  width: 11px;
  height: 11px;
  background: var(--pb-red);
  border-radius: 999px;
}

.home-countdown h1,
.home-apps h2,
.home-seo h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

.home-countdown h1 {
  max-width: 780px;
  font-size: clamp(3.4rem, 13vw, 7.8rem);
  font-weight: 1000;
}

.home-countdown h1 strong {
  display: block;
  color: var(--pb-red);
}

.home-intro {
  max-width: 610px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 3.8vw, 1.35rem);
  font-weight: 760;
  line-height: 1.35;
}

.home-timer {
  width: min(100%, 560px);
  padding: clamp(18px, 5vw, 28px);
  background: linear-gradient(135deg, rgba(242, 5, 28, 0.82), rgba(255, 119, 0, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 34px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 30px 90px rgba(242, 5, 28, 0.28);
  backdrop-filter: blur(20px);
  text-align: center;
}

.home-timer > span,
.home-timer > em {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 4vw, 1.45rem);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.home-timer > strong {
  display: block;
  margin: 2px 0 -6px;
  font-size: clamp(5.6rem, 22vw, 11rem);
  font-weight: 1000;
  line-height: 0.85;
}

.home-timer div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.home-timer small {
  min-width: 0;
  padding: 8px 6px;
  color: var(--pb-black);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-timer small b {
  display: block;
  color: var(--pb-red);
  font-size: clamp(1.3rem, 5vw, 2.1rem);
  line-height: 1;
}

.home-destination {
  display: inline-flex;
  align-items: center;
  margin: 16px 0 0;
  padding: 10px 16px;
  color: var(--pb-black);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 900;
}

.home-destination strong {
  margin-left: 0.25em;
  color: var(--pb-red);
}

.home-main-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 14px 0 0;
  padding: 13px 20px;
  color: var(--pb-white);
  background: var(--pb-black);
  border-radius: 999px;
  font-weight: 950;
}

.home-floaters span {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--pb-red);
  background: rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  animation: floatTravel 7s ease-in-out infinite;
}

.home-floaters span:nth-child(1) { top: 23%; right: 18%; }
.home-floaters span:nth-child(2) { bottom: 14%; right: 12%; animation-delay: -1.5s; }
.home-floaters span:nth-child(3) { top: 37%; right: 8%; animation-delay: -3s; }
.home-floaters span:nth-child(4) { bottom: 34%; right: 28%; animation-delay: -4.5s; }

.home-story,
.home-apps,
.home-seo {
  padding: clamp(36px, 8vw, 80px) clamp(18px, 5vw, 70px);
}

.home-story {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgba(242, 5, 28, 0.08), transparent 26%),
    radial-gradient(circle at 8% 84%, rgba(255, 176, 0, 0.18), transparent 28%),
    var(--pb-white);
}

.home-story h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.35rem, 9vw, 5.8rem);
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: 0;
}

.home-story h2 strong {
  color: var(--pb-red);
}

.home-story p:not(.home-eyebrow) {
  max-width: 790px;
  margin: 0;
  color: var(--pb-muted);
  font-size: clamp(1.06rem, 3.3vw, 1.35rem);
  font-weight: 760;
  line-height: 1.48;
}

.home-story p:not(.home-eyebrow):last-child {
  color: var(--pb-black);
  font-weight: 850;
}

.home-apps {
  background: var(--pb-soft);
}

.home-apps h2,
.home-seo h2 {
  max-width: 880px;
  font-size: clamp(2.2rem, 8vw, 5.2rem);
}

.home-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.home-app-card {
  position: relative;
  display: grid;
  min-height: clamp(250px, 54vw, 380px);
  align-content: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--pb-white);
  background: var(--pb-black);
  border-radius: var(--pb-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
}

.home-app-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-app-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 58%);
}

.home-app-card span,
.home-app-card strong {
  display: block;
  margin-inline: 18px;
}

.home-app-card span {
  width: max-content;
  max-width: calc(100% - 36px);
  margin-bottom: 10px;
  padding: 8px 12px;
  color: var(--pb-red);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.home-app-card strong {
  margin-bottom: 18px;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.12;
}

.home-seo {
  background: var(--pb-white);
}

.home-seo p:not(.home-eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--pb-muted);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.55;
}

.site-footer {
  padding: 28px 18px 36px;
  color: #777;
  background: var(--pb-white);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.site-footer a {
  text-decoration: underline;
}

@keyframes floatTravel {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(10px, -16px, 0) rotate(5deg); }
}

@media (hover: hover) {
  .home-main-link:hover,
  .home-app-card:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 760px) {
  .home-countdown {
    align-items: center;
    padding-top: 110px;
  }

  .home-app-grid {
    grid-template-columns: 1fr;
  }

  .home-floaters span:nth-child(1) { top: 18%; right: 8%; }
  .home-floaters span:nth-child(2) { display: none; }
  .home-floaters span:nth-child(3) { top: 48%; right: 6px; }
  .home-floaters span:nth-child(4) { bottom: 16%; right: 18%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
