/* ==========================================================================
   Foundation hero (live nafas.com/foundation, root .framer-ifxo51)
   Breakpoints (Framer): desktop >= 1200, tablet 810-1199.98, phone <= 809.98.
   - Root: row, padding 12, white. Frame: 800px tall (phone: content height), radius 12, padding 40, clip; city photo
     (cover) and an "Opacity Layer" rgba(0,0,0,.2) at inset -12/-22/-10/-12 that holds the phone mock-up (z 6) and the
     Shimmer Grid (26px dot grid, dots transparent; a 726px rgba(143,199,80,.8) glow follows the cursor and lights them).
   - Copy block: absolute at top 52% / left 34% (tablet 32%), translate(-50%,-50%); phone: in flow, padding 50/0/20,
     centred, mock-up below the copy. Heading 72 / 48 (br line 72) / 34px, copy 24 / 18 / 16px, line-height 1.2.
   - Header pill (Research / Nafas Buka Data): absolute in the hero (scrolls away with it). 365x64 at top 40, centred,
     rgba(0,0,0,.1) + blur 5, radius 100. Phone: full-width bar (logo + 2-line burger), opens to a 100vh menu
     (rgba(0,0,0,.6), radius 12), spring stiffness 400 / damping 40.
   - Load/scroll appear: heading and copy fade 0 -> 1 when half in view and back to 0 when they leave
     (spring duration .6 / bounce .1). Button hover: bg white -> black (spring .4 / bounce .2, mixed in linear light,
     js/10-hero.js), label black -> white at once. Header links: white -> #91c851 at once.
   ========================================================================== */

.nf-fd-hero {
  --nf-fd-font: "SF Pro Display Regular", sans-serif;
  --nf-fd-appear-ease: linear(0, 0.0243, 0.0845, 0.1654, 0.2562, 0.3492, 0.4396, 0.524, 0.6008, 0.669, 0.7286, 0.7799, 0.8234, 0.8598, 0.8899, 0.9146, 0.9346, 0.9506, 0.9633, 0.9733, 0.981, 0.9869, 0.9914, 0.9947, 0.9971, 0.9988, 0.9999, 1.0007, 1.0012, 1.0014, 1.0015, 1.0015, 1.0014, 1.0013, 1.0012, 1.0011, 1.0009, 1.0008, 1.0007, 1.0005, 1);
  --nf-fd-menu-ease: linear(0, 0.0265, 0.0902, 0.1734, 0.2642, 0.3554, 0.4422, 0.5221, 0.594, 0.6575, 0.7127, 0.7603, 0.8009, 0.8352, 0.8641, 0.8883, 0.9084, 0.9251, 0.9389, 0.9503, 0.9596, 0.9672, 0.9734, 0.9785, 0.9826, 0.986, 0.9887, 0.9909, 0.9927, 0.9941, 0.9953, 0.9962, 0.997, 0.9976, 0.9981, 0.9985, 0.9988, 0.999, 0.9992, 0.9994, 1);
  position: relative; display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 10px;
  width: 100%; padding: 12px; background-color: var(--nf-white); overflow: clip;
}
.nf-fd-hero__container {
  position: relative; flex: 1 0 0px; width: 1px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 10px; background-color: var(--nf-white); overflow: clip;
}
.nf-fd-hero__stack {
  position: relative; flex: 0 0 auto; width: 100%; height: 800px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 40px; padding: 40px; border-radius: 12px; overflow: clip;
  will-change: transform;
}
.nf-fd-hero__bg { position: absolute; inset: 0; border-radius: 12px; }
.nf-fd-hero__bg img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; object-position: 50% 50%; }

/* Opacity Layer */
.nf-fd-hero__layer {
  position: absolute; inset: -12px -22px -10px -12px; z-index: 1; background-color: rgba(0, 0, 0, 0.2); overflow: clip;
}

/* ---------- phone mock-up ---------- */
.nf-fd-hero__device { width: 267px; height: 553px; overflow: visible; }
.nf-fd-hero__device--wide {
  position: absolute; z-index: 6; top: calc(52.3694% - 276.5px); left: calc(78.595% - 133.5px);
}
.nf-fd-hero__device--phone { display: none; position: relative; flex: 0 0 auto; }
.nf-fd-hero__device-frame, .nf-fd-hero__device-screen {
  position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 0.482682 / 1; min-height: 0; overflow: visible;
}
.nf-fd-hero__device-frame img, .nf-fd-hero__device-screen > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.nf-fd-hero__carousel {
  position: absolute; width: 246px; height: 509px; top: calc(52.2604% - 254.5px); left: calc(49.8127% - 123px);
}
.nf-fd-hero__carousel-box { position: relative; display: flex; width: 100%; height: 100%; overflow: hidden; }
.nf-fd-hero__track {
  position: relative; display: flex; flex: 1 1 100%; flex-direction: row; align-items: center; gap: 1px;
  width: 100%; height: 100%; margin: 0; padding: 0; list-style: none; border-radius: 30px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
@media (pointer: fine) {
  .nf-fd-hero__track { scrollbar-width: none; }
  .nf-fd-hero__track::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.nf-fd-hero__slide { flex-shrink: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.nf-fd-hero__shot { position: relative; width: 247px; aspect-ratio: 0.482682 / 1; min-height: 0; overflow: visible; }
.nf-fd-hero__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.nf-fd-hero__controls {
  position: absolute; inset: 0; display: flex; flex-direction: row; justify-content: space-between; align-items: center;
  padding: 10px; margin: 0; border: 0; pointer-events: none;
}
.nf-fd-hero__arrow {
  display: block; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 40px; overflow: hidden; cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2); pointer-events: auto; opacity: 1;
  transition: opacity 0.79s linear(0, 0.1064, 0.2797, 0.4375, 0.5653, 0.6653, 0.7426, 0.8022, 0.848, 0.8832, 0.9102, 0.931, 0.947, 0.9592, 0.9687, 0.9759, 0.9815, 0.9858, 0.9891, 0.9916, 0.9935, 0.995, 0.9962, 0.9971, 0.9978, 0.9983, 0.9987, 0.999, 0.9992, 0.9994, 1),
              transform 0.05s ease-in-out;
}
.nf-fd-hero__arrow img { display: block; width: 40px; height: 40px; }
.nf-fd-hero__arrow.is-off { opacity: 0; pointer-events: none; cursor: default; }
.nf-fd-hero__arrow:active { transform: scale(0.9); }
@media not (pointer: fine) { .nf-fd-hero__arrow { display: none; } }
.nf-fd-hero__dots {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; flex-direction: row;
  justify-content: center; align-items: center; overflow: hidden; pointer-events: auto; border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.2); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.nf-fd-hero__dot {
  display: flex; justify-content: center; align-items: center; overflow: hidden; cursor: pointer;
  background: transparent; padding: 10px 5px 10px 10px;
}
.nf-fd-hero__dot + .nf-fd-hero__dot { padding: 10px 10px 10px 5px; }
.nf-fd-hero__dot span { display: block; width: 10px; height: 10px; border-radius: 50%; background-color: var(--nf-white); opacity: 0.5; }
.nf-fd-hero__dot.is-active span { opacity: 1; }

/* ---------- Shimmer Grid ---------- */
.nf-fd-hero__grid { position: absolute; inset: -1px 0 0; z-index: 1; }
.nf-fd-hero__grid-dots {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background-image: radial-gradient(rgba(143, 199, 80, 0) 1.6px, rgba(0, 0, 0, 0) 2.4px);
  background-size: 26px 26px; background-position: 50% 50%; background-repeat: repeat;
}
.nf-fd-hero__grid-mask {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(white 1.6px, transparent 2.4px); mask-image: radial-gradient(white 1.6px, transparent 2.4px);
  -webkit-mask-size: 26px 26px; mask-size: 26px 26px; -webkit-mask-position: 50% 50%; mask-position: 50% 50%;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
}
.nf-fd-hero__glow {
  position: absolute; top: 0; left: 0; width: 726px; height: 726px; background-color: rgba(143, 199, 80, 0.8);
  -webkit-mask-image: radial-gradient(closest-side, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9791) 7.1429%, rgba(255, 255, 255, 0.9089) 14.2857%, rgba(255, 255, 255, 0.7874) 21.4286%, rgba(255, 255, 255, 0.6355) 28.5714%, rgba(255, 255, 255, 0.4858) 35.7143%, rgba(255, 255, 255, 0.3575) 42.8571%, rgba(255, 255, 255, 0.2545) 50%, rgba(255, 255, 255, 0.1744) 57.1429%, rgba(255, 255, 255, 0.1134) 64.2857%, rgba(255, 255, 255, 0.0683) 71.4286%, rgba(255, 255, 255, 0.0363) 78.5714%, rgba(255, 255, 255, 0.0153) 85.7143%, rgba(255, 255, 255, 0.0036) 92.8571%, rgba(255, 255, 255, 0) 100%);
  mask-image: radial-gradient(closest-side, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9791) 7.1429%, rgba(255, 255, 255, 0.9089) 14.2857%, rgba(255, 255, 255, 0.7874) 21.4286%, rgba(255, 255, 255, 0.6355) 28.5714%, rgba(255, 255, 255, 0.4858) 35.7143%, rgba(255, 255, 255, 0.3575) 42.8571%, rgba(255, 255, 255, 0.2545) 50%, rgba(255, 255, 255, 0.1744) 57.1429%, rgba(255, 255, 255, 0.1134) 64.2857%, rgba(255, 255, 255, 0.0683) 71.4286%, rgba(255, 255, 255, 0.0363) 78.5714%, rgba(255, 255, 255, 0.0153) 85.7143%, rgba(255, 255, 255, 0.0036) 92.8571%, rgba(255, 255, 255, 0) 100%);
  opacity: 0; transform: translate(0px, 0px); pointer-events: none;
  transition: opacity 0.22s linear(0, 0.0926, 0.27, 0.45, 0.6024, 0.7207, 0.8078, 0.8698, 0.9129, 0.9423, 0.9621, 0.9753, 0.984, 0.9897, 0.9934, 0.9958, 0.9973, 0.9983, 0.9989, 0.9993, 1);
}
.nf-fd-hero__glow.is-on { opacity: 1; }

/* ---------- copy ---------- */
.nf-fd-hero__content {
  position: absolute; z-index: 1; top: 52%; left: 34%; transform: translate(-50%, -50%); flex: 0 0 auto;
  width: min-content; height: min-content; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 40px; padding: 0; overflow: clip;
}
.nf-fd-hero__text {
  position: relative; flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 20px; padding: 0; overflow: clip;
}
.nf-fd-hero__logo { position: relative; flex: 0 0 auto; width: 165px; aspect-ratio: 7318 / 2120; min-height: 0; }
.nf-fd-hero__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.nf-fd-hero [data-fd-appear] { opacity: 0; transition: opacity 0.67s var(--nf-fd-appear-ease); }
.nf-fd-hero [data-fd-appear].is-in { opacity: 1; }

.nf-fd-hero__title-box, .nf-fd-hero__copy-box {
  position: relative; z-index: 1; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: flex-start;
}
.nf-fd-hero__title-box { width: 686px; }
.nf-fd-hero__copy-box { width: 641px; }
.nf-fd-hero__title, .nf-fd-hero__copy {
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; font-family: var(--nf-fd-font);
  font-weight: 400; letter-spacing: normal; color: var(--nf-white); text-align: left;
}
.nf-fd-hero__title { font-size: 72px; line-height: 1.2; }
.nf-fd-hero__br { font-size: 72px; line-height: 1.2; }
.nf-fd-hero__copy { font-size: 24px; line-height: 1.2; }

.nf-fd-hero__actions {
  position: relative; flex: 0 0 auto; width: 100%; display: flex; flex-direction: row; justify-content: flex-start;
  align-items: center; gap: 10px; padding: 0; overflow: clip;
}
.nf-fd-hero__btn {
  position: relative; z-index: 1; flex: 0 0 auto; display: flex; flex-direction: row; justify-content: flex-start;
  align-items: center; gap: 10px; width: min-content; height: 54px; padding: 16px 24px; border-radius: 32px;
  background-color: rgb(255, 255, 255); color: rgb(0, 0, 238); text-decoration: none; cursor: pointer;
}
.nf-fd-hero__btn-label {
  white-space: pre; font-family: var(--nf-fd-font); font-weight: 400; font-size: 21px; line-height: 1.2;
  letter-spacing: normal; color: var(--nf-black);
}
.nf-fd-hero__btn.is-hover .nf-fd-hero__btn-label { color: var(--nf-white); }

/* ---------- header pill ---------- */
.nf-fd-hero__nav-wrap {
  position: absolute; z-index: 1; flex: 0 0 auto; width: 365px; height: 64px; top: 40px; left: calc(50% - 182.5px);
}
.nf-fd-hero__nav {
  position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 40px;
  width: 100%; height: 100%; padding: 20px; border-radius: 100px; background-color: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); overflow: hidden; will-change: transform;
}
.nf-fd-hero__brand {
  position: relative; flex: 0 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center;
  gap: 10px; width: min-content; height: min-content; padding: 0;
}
.nf-fd-hero__nav-logo { position: relative; flex: 0 0 auto; width: 64px; aspect-ratio: 3.45189 / 1; min-height: 0; }
.nf-fd-hero__nav-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.nf-fd-hero__burger { display: none; position: relative; flex: 0 0 auto; width: 44px; height: 44px; overflow: hidden; cursor: pointer; }
.nf-fd-hero__bar {
  position: absolute; left: calc(50% - 10px); width: 20px; height: 2px; border-radius: 10px; overflow: hidden;
  background-color: var(--nf-green); will-change: transform;
  transition: top 0.5s var(--nf-fd-menu-ease), transform 0.5s var(--nf-fd-menu-ease);
}
.nf-fd-hero__bar--top { top: calc(37.5% - 1px); }
.nf-fd-hero__bar--bottom { top: calc(62.5% - 1px); }
.nf-fd-hero__links {
  position: relative; flex: 1 0 0px; width: 1px; height: min-content; display: flex; flex-direction: row;
  justify-content: center; align-items: center; gap: 20px; padding: 0;
}
.nf-fd-hero__link-p {
  position: relative; flex: 0 0 auto; white-space: pre; user-select: none; font-family: var(--nf-fd-font);
  font-weight: 400; font-size: 16px; line-height: 32px; letter-spacing: -0.2px; text-align: center; color: var(--nf-white);
}
.nf-fd-hero__link { color: var(--nf-white); text-decoration: none; cursor: pointer; }
@media (hover: hover) { .nf-fd-hero__link:hover { color: var(--nf-green); } }
.nf-fd-hero__nav-line {
  position: absolute; z-index: 1; bottom: 0; left: 0; right: 0; height: 1px; background-color: rgba(0, 0, 0, 0.08);
}

/* ---------- tablet 810-1199.98 ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .nf-fd-hero__device--wide { left: calc(78.0488% - 133.5px); }
  .nf-fd-hero__carousel { width: 247px; height: 508px; top: calc(52.2604% - 254px); left: calc(49.8127% - 123.5px); }
  .nf-fd-hero__content { left: 32%; }
  .nf-fd-hero__logo { width: 144px; }
  .nf-fd-hero__title-box { width: auto; }
  .nf-fd-hero__title { white-space: pre; font-size: 48px; }
  .nf-fd-hero__copy-box { width: 100%; }
  .nf-fd-hero__copy { font-size: 18px; }
}

/* ---------- phone <= 809.98 ---------- */
@media (max-width: 809.98px) {
  .nf-fd-hero__stack { height: min-content; }
  .nf-fd-hero__layer {
    inset: -12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 0;
  }
  .nf-fd-hero__device--wide { display: none; }
  .nf-fd-hero__device--phone { display: block; order: 1; }
  .nf-fd-hero__carousel { width: 247px; height: 508px; top: calc(52.3939% - 254px); left: calc(49.8127% - 123.5px); }
  .nf-fd-hero__grid { position: relative; inset: auto; flex: 0 0 auto; width: 1210px; height: 825px; }

  .nf-fd-hero__content {
    position: relative; z-index: 2; top: auto; left: auto; transform: none; width: 100%; align-items: center;
    padding: 50px 0 20px; overflow: visible;
  }
  .nf-fd-hero__text { order: 0; align-self: auto; width: 100%; overflow: visible; }
  .nf-fd-hero__logo { width: auto; height: 20px; }
  .nf-fd-hero__title-box, .nf-fd-hero__copy-box { width: 100%; }
  .nf-fd-hero__title { font-size: 34px; }
  .nf-fd-hero__br { display: none; }
  .nf-fd-hero__copy { font-size: 16px; }
  .nf-fd-hero__actions { flex-direction: column; justify-content: center; align-items: flex-start; }
  .nf-fd-hero__btn { padding: 14px 24px; }
  .nf-fd-hero__btn-label { font-size: 16px; }

  /* header: full-width bar with burger; .is-open = live variant "Phone Open" */
  .nf-fd-hero__nav-wrap { z-index: 10; width: 100%; top: 0; left: 0; }
  .nf-fd-hero__nav {
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 12px 12px 20px; border-radius: 12px;
    background-color: rgba(0, 0, 0, 0); height: 64px; max-height: 100vh;
    transition: height 0.5s var(--nf-fd-menu-ease), padding 0.5s var(--nf-fd-menu-ease), background-color 0.5s var(--nf-fd-menu-ease);
  }
  .nf-fd-hero__brand { width: 100%; justify-content: space-between; gap: 0; transition: width 0.5s var(--nf-fd-menu-ease); }
  .nf-fd-hero__burger { display: block; }
  .nf-fd-hero__nav-line { order: 2; background-color: rgba(0, 0, 0, 0); }
  .nf-fd-hero__nav.is-open .nf-fd-hero__nav-line { background-color: rgba(0, 0, 0, 0.08); }
  .nf-fd-hero__links { display: none; }

  .nf-fd-hero__nav.is-open { height: 100vh; padding: 20px; align-items: center; background-color: rgba(0, 0, 0, 0.6); }
  .nf-fd-hero__nav.is-open .nf-fd-hero__brand { width: 325px; }
  .nf-fd-hero__nav.is-open .nf-fd-hero__bar { top: calc(54.5455% - 1px); }
  .nf-fd-hero__nav.is-open .nf-fd-hero__bar--top { transform: rotate(45deg); }
  .nf-fd-hero__nav.is-open .nf-fd-hero__bar--bottom { transform: rotate(-45deg); }
  .nf-fd-hero__nav.is-open .nf-fd-hero__links {
    display: flex; flex: 0 0 auto; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 36px;
    width: 325px; padding: 40px 20px 20px;
  }
  .nf-fd-hero__nav.is-open .nf-fd-hero__link-p { line-height: 24px; letter-spacing: normal; }
}

/* Phone: the standard phone pill, 15px text, 35px tall (was 16px / 54px) (QC 2026-10-28). */
@media (max-width: 809.98px) {
  .nf-fd-hero__btn { height: 35px; padding: 0 16px; }
  .nf-fd-hero__btn-label { font-size: 15px; line-height: 1.2; }
}
