:root {
  --black:        #000000;
  --near-black:   #0A0A0A;
  --gray-1:       #1D1D1F;
  --gray-2:       #86868B;
  --gray-3:       #A1A1A6;
  --white:        #F5F5F7;
  --pure-white:   #FFFFFF;

  --blue:         #0071E3;
  --blue-bright:  #2997FF;

  --line: rgba(255, 255, 255, 0.14);

  --card-ai:          #F5F5F7;
  --card-untunglah:   #E8F2FF;
  --card-payfilehub:  #E9F9F1;
  --card-vending:     #FFF6E2;
  --card-mystalze:    #FDEEF3;
  --card-merciz:      #F3EEFC;
  --card-urbanfarming:#EAF7EA;

  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs:  16px;
  --space-sm:  24px;
  --space-md:  40px;
  --space-lg:  72px;
  --space-xl:  120px;

  --max-content: 1120px;
  --radius: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__video, .fullslide__video { display: none; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--pure-white);
  margin: 0 0 var(--space-xs);
}

p { margin: 0 0 var(--space-xs); color: var(--gray-3); max-width: 62ch; }

a { color: var(--blue-bright); text-decoration: none; }

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══ NAV ═══ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}
.nav__brand {
  position: absolute;
  left: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--pure-white);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}
.nav__brand-logo {
  display: block;
  height: 32px;
  width: auto;
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  opacity: 0.82;
  white-space: nowrap;
  transition: opacity var(--ease-out) 150ms;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }

/* ═══ NAV DROPDOWN ═══ */
.nav__dropdown { position: relative; display: flex; align-items: center; }
.nav__dropdown-toggle {
  background: none; border: none; padding: 0; margin: 0; font: inherit;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  opacity: 0.82;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: opacity var(--ease-out) 150ms;
}
.nav__dropdown-toggle::after {
  content: '';
  width: 6px; height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ease-out) 200ms;
}
.nav__dropdown:hover .nav__dropdown-toggle,
.nav__dropdown.is-open .nav__dropdown-toggle { opacity: 1; }
.nav__dropdown.is-open .nav__dropdown-toggle::after { transform: rotate(-135deg); margin-top: 0; }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(18, 18, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  min-width: 180px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
  z-index: 60;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu li + li { margin-top: 2px; }
.nav__dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.82rem;
  color: var(--white);
  opacity: 0.85;
}
.nav__dropdown-menu a:hover,
.nav__dropdown-menu a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,0.07); }

@media (max-width: 900px) {
  .nav__dropdown-menu {
    position: fixed;
    left: 12px; right: 12px; top: 52px;
    transform: translateY(-6px);
    width: auto; min-width: 0;
  }
  .nav__dropdown:hover .nav__dropdown-menu,
  .nav__dropdown.is-open .nav__dropdown-menu { transform: translateY(0); }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .nav__inner { justify-content: flex-start; flex-wrap: nowrap; }
  .nav__brand { position: static; margin-right: auto; flex-shrink: 0; white-space: nowrap; }
  .nav__links {
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links li { flex-shrink: 0; }
  .nav__dropdown-toggle { white-space: nowrap; }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ease-out) 200ms;
}
.btn--primary { background: var(--blue); color: white; }
.btn--primary:hover { background: var(--blue-bright); }
.btn--outline { border-color: rgba(255,255,255,0.4); color: var(--pure-white); }
.btn--outline:hover { border-color: var(--pure-white); }
.btn:active { transform: scale(0.96); transition: transform 100ms var(--ease-out); }
.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 400;
}
.link-chevron:hover { text-decoration: underline; }
.link-chevron--light { color: var(--blue-bright); }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 100%);
}
.eyebrow {
  text-align: center;
  margin: 0 auto var(--space-2xs);
}
.hero .eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-3);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: -0.025em;
  line-height: 1.03;
  max-width: 16ch;
  margin: 0 auto var(--space-xs);
}
.hero p.lede {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gray-3);
  max-width: 46ch;
  margin: 0 auto var(--space-sm);
}
.hero__actions { display: flex; gap: var(--space-xs); justify-content: center; flex-wrap: wrap; }

/* ═══ SECTION ═══ */
section { padding: var(--space-lg) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-md); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-title--left { text-align: left; margin: 0 0 var(--space-2xs); }

.divider { height: 1px; background: var(--line); }

/* ═══ CARD RACK ═══ */
.rack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xs);
}
.rack--wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.tile {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--ease-out) 300ms;
}
.tile:hover { transform: translateY(-4px); }
.tile__media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile__body { padding: var(--space-sm) var(--space-2xs) 0; }
.tile__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.tile__title { font-size: 1.5rem; margin-bottom: 6px; color: var(--pure-white); }
.tile__desc { font-size: 0.95rem; color: var(--gray-3); margin-bottom: var(--space-2xs); max-width: none; }

/* card background tints (used on .tile__media as a solid fallback / letterbox color) */
.tile--ai .tile__media          { background: var(--card-ai); }
.tile--untunglah .tile__media   { background: var(--card-untunglah); }
.tile--payfilehub .tile__media  { background: var(--card-payfilehub); }
.tile--vending .tile__media     { background: var(--card-vending); }
.tile--mystalze .tile__media    { background: var(--card-mystalze); }
.tile--merciz .tile__media      { background: var(--card-merciz); }
.tile--urbanfarming .tile__media{ background: var(--card-urbanfarming); }

/* ═══ FEATURE LIST ═══ */
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { font-size: 1rem; color: var(--gray-3); padding-left: 26px; position: relative; }
.feature-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--blue-bright);
  border-bottom: 2px solid var(--blue-bright);
  transform: rotate(-45deg);
}

/* ═══ CARD (info panel) ═══ */
.panel {
  background: var(--gray-1);
  border-radius: var(--radius);
  padding: var(--space-sm);
}
.panel h3 { font-size: 1.2rem; }
.panel p { font-size: 0.95rem; margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-xs); }

/* ═══ TRUST STRIP ═══ */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2xs); margin-top: var(--space-sm); }
.trust-item {
  font-size: 0.8rem;
  color: var(--gray-3);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 980px;
}

/* ═══ SUBPAGE HERO ═══ */
.subpage-hero { padding: 56px 0 var(--space-md); text-align: center; }
.subpage-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-3);
  margin-bottom: var(--space-sm);
}
.subpage-hero .back-link:hover { color: var(--pure-white); }
.subpage-hero .eyebrow-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2xs);
}
.subpage-hero__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 14px 24px;
  border-radius: 16px;
  margin-bottom: var(--space-sm);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}
.subpage-hero__logo img { display: block; height: 64px; width: auto; }
.subpage-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.subpage-hero p.tagline { font-size: 1.15rem; max-width: 54ch; margin: 0 auto; color: var(--gray-3); }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--space-md) auto 0;
  max-width: 920px;
}
.hero-media img { width: 100%; display: block; }

/* ═══ FEATURE ROW ═══ */
.feature-row { display: flex; flex-direction: column; align-items: center; }
.feature-row + .feature-row { margin-top: var(--space-lg); }
.feature-row__icon {
  width: 132px; height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}
.feature-row__body { text-align: center; max-width: 640px; margin: 0 auto; }
.feature-row__body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.005em; line-height: 1.25; }
.feature-row__body p:last-child { margin: 0 auto; }

/* ═══ FULL-BLEED ROUND-ROBIN SLIDESHOW ═══ */
.fullslide {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}
.fullslide__track {
  display: flex;
  transition: transform 650ms var(--ease-out);
}
.fullslide__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  background-size: cover;
  background-position: center;
}
.fullslide__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.78) 100%);
}
.fullslide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.fullslide__link {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  max-width: 560px;
}
.fullslide__logo {
  max-width: min(240px, 60vw);
  height: auto;
  margin-bottom: var(--space-sm);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.45);
}
.fullslide__eyebrow { font-size: 0.85rem; font-weight: 600; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; opacity: 0.85; }
.fullslide__title { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; line-height: 1.08; color: var(--pure-white); margin-bottom: 12px; }
.fullslide__desc { font-size: 1.05rem; color: var(--white); opacity: 0.85; margin-bottom: var(--space-xs); max-width: 46ch; }

.fullslide__slide--ai          { background-image: url('/images/slide-ai.jpg'); }
.fullslide__slide--untunglah   { background-image: url('/images/slide-untunglah.jpg'); }
.fullslide__slide--payfilehub  { background-image: url('/images/slide-payfilehub.jpg'); }

.fullslide__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--pure-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease-out) 200ms;
  z-index: 5;
}
.fullslide__arrow:hover { background: rgba(255,255,255,0.2); }
.fullslide__arrow:active { transform: translateY(-50%) scale(0.9); transition: transform 100ms var(--ease-out); }
.fullslide__arrow--prev { left: var(--space-sm); }
.fullslide__arrow--next { right: var(--space-sm); }

.fullslide__dots {
  position: absolute; bottom: var(--space-sm); left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 5;
}
.fullslide__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--ease-out) 200ms, transform var(--ease-out) 200ms;
}
.fullslide__dot.is-active { background: var(--pure-white); transform: scale(1.35); }

@media (max-width: 640px) {
  .fullslide__arrow { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* ═══ FOOTER ═══ */
.footer { padding: var(--space-lg) 0 var(--space-md); border-top: 1px solid var(--line); margin-top: var(--space-lg); }
.footer address { font-style: normal; font-size: 0.85rem; color: var(--gray-2); line-height: 1.9; }
.footer__bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--gray-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
