/* =========================================================
   3Datu — Landing Page Styles
   Palette: Black / White / Red — Exaggerated Minimalism
   Fonts: Space Grotesk (heading) + DM Sans (body)
   ========================================================= */

:root {
  --color-black: #0b0b0c;
  --color-white: #ffffff;
  --color-red: #e30613;
  --color-red-dark: #b8050f;

  --color-gray-50: #f7f7f8;
  --color-gray-100: #eeeef0;
  --color-gray-200: #dedee2;
  --color-gray-400: #9a9aa2;
  --color-gray-600: #58585f;
  --color-gray-800: #1c1c1f;

  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;

  --container-w: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 10px 30px -12px rgba(11, 11, 12, 0.18);
  --shadow-card-hover: 0 16px 36px -12px rgba(11, 11, 12, 0.28);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-black); color: var(--color-white);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }

/* ---------- Scroll reveal (micro animation) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal {
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.96); }

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 10px 24px -8px rgba(227, 6, 19, 0.55);
}
.btn--primary:hover { background: var(--color-red-dark); }

.btn--outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}
.btn--outline:hover { background: var(--color-black); color: var(--color-white); }

.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 16px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-red); }
.eyebrow--dark { color: var(--color-red); }
.eyebrow--light { color: var(--color-red); }

.text-accent { color: var(--color-red); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-100);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.navbar__logo { display: inline-flex; align-items: center; gap: 10px; transition: transform 220ms var(--ease); }
.navbar__logo:hover { transform: translateY(-1px); }
.navbar__logo-img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.navbar__logo-mark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-black);
}
.navbar__logo-accent {
  color: var(--color-red);
  display: inline-block;
  transition: transform 260ms var(--ease);
}
.navbar__logo:hover .navbar__logo-accent { transform: rotate(-6deg); }

.navbar__nav { display: flex; gap: 32px; }
.navbar__nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-gray-800);
  position: relative;
  padding: 6px 2px;
  transition: color 200ms var(--ease);
}
.navbar__nav a:hover { color: var(--color-red); }
.navbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-red);
  transition: width 200ms var(--ease);
}
.navbar__nav a:hover::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: 14px; }
.navbar__cta { display: inline-flex; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  margin: 0 auto;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background: var(--color-white);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid { position: absolute; top: -80px; right: -160px; width: 620px; height: 620px; color: var(--color-gray-100); opacity: 0.9; }
.hero__blob {
  position: absolute;
  top: 10%;
  right: 4%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at center, rgba(227, 6, 19, 0.14), transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero__desc {
  font-size: 1.08rem;
  color: var(--color-gray-600);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero__cta-group { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.hero__chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray-800);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero__visual { position: relative; height: 420px; }
.hero__card {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-100);
}
.hero__card--main {
  inset: 0;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-50);
}
.hero__printer { width: 78%; }

.hero__card--float-1, .hero__card--float-2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  animation: floaty 5s ease-in-out infinite;
}
.hero__card--float-1 { top: -18px; left: -18px; animation-delay: 0.4s; }
.hero__card--float-2 { bottom: -16px; right: -16px; animation-delay: 0s; }
.hero__card--float-1 svg, .hero__card--float-2 svg { width: 26px; height: 26px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections (generic) ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--color-gray-50); }
.section--dark { background: var(--color-black); color: var(--color-white); }

.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head--light { color: var(--color-white); }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: 14px; }
.section__title--light { color: var(--color-white); }
.section__desc { color: var(--color-gray-600); font-size: 1.05rem; }
.section--dark .section__desc { color: var(--color-gray-400); }
.section__note {
  text-align: center;
  color: var(--color-gray-600);
  font-size: 0.9rem;
  margin-top: 40px;
}

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--products { grid-template-columns: repeat(3, 1fr); }
.grid--why { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid--gallery { grid-template-columns: repeat(3, 1fr); }

/* ---------- Service cards ---------- */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: var(--color-red); }
.service-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-black);
  color: var(--color-red);
  margin-bottom: 20px;
  transition: transform 260ms var(--ease), background 260ms var(--ease);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-4deg); background: var(--color-red); color: var(--color-white); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--color-gray-600); font-size: 0.95rem; }

/* ---------- Product cards ---------- */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.product-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--color-gray-50), var(--color-gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.product-card__media svg { width: 96px; height: 96px; transition: transform 320ms var(--ease); }
.product-card:hover .product-card__media svg { transform: scale(1.08) rotate(3deg); }
.product-card__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-card__body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-card__body p { color: var(--color-gray-600); font-size: 0.92rem; flex: 1; margin-bottom: 18px; }
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-red);
  transition: gap 200ms var(--ease);
}
.product-card__link:hover { gap: 10px; }

/* ---------- Galeri / Portofolio ---------- */
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-gray-800);
  box-shadow: var(--shadow-card);
  margin: 0;
  cursor: pointer;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

.gallery-item__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20%;
  background: radial-gradient(circle at 30% 20%, #2a2a2f, var(--color-gray-800) 70%);
}
.gallery-item__media svg { width: 100%; height: 100%; transition: transform 400ms var(--ease); }
.gallery-item:hover .gallery-item__media svg { transform: scale(1.1) rotate(-2deg); }

.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 10%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  transform: translateY(14px);
  transition: transform 280ms var(--ease);
}
.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-within .gallery-item__caption { transform: translateY(0); }

.gallery-item__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-red);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.gallery-item__caption h3 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.gallery-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-white);
  opacity: 0.85;
  transition: gap 200ms var(--ease), opacity 200ms var(--ease);
}
.gallery-item__link:hover { gap: 10px; opacity: 1; color: var(--color-red); }

@media (hover: none) {
  /* Perangkat sentuh: caption selalu terlihat, tanpa mengandalkan hover */
  .gallery-item__caption { transform: translateY(0); }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.steps__item {
  position: relative;
  padding: 28px 22px 24px;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.steps__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--color-red); }
.steps__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-red);
  margin-bottom: 14px;
  transition: transform 260ms var(--ease);
}
.steps__item:hover .steps__number { transform: scale(1.12); }
.steps__item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.steps__item p { color: var(--color-gray-600); font-size: 0.9rem; }

/* ---------- Why cards ---------- */
.why-card {
  background: var(--color-gray-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}
.why-card:hover { transform: translateY(-6px); background: #232327; border-color: var(--color-red); }
.why-card svg { width: 26px; height: 26px; margin-bottom: 16px; transition: transform 260ms var(--ease); }
.why-card:hover svg { transform: scale(1.15); }
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-white); }
.why-card p { color: var(--color-gray-400); font-size: 0.9rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--color-red);
  color: var(--color-white);
  padding: 88px 0;
}
.final-cta__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; letter-spacing: -0.01em; }
.final-cta p { font-size: 1.05rem; opacity: 0.92; margin-bottom: 32px; }
.final-cta .btn--primary {
  background: var(--color-white);
  color: var(--color-red);
  box-shadow: none;
}
.final-cta .btn--primary:hover { background: var(--color-black); color: var(--color-white); }

/* ---------- Footer ---------- */
.footer { background: var(--color-black); color: var(--color-gray-400); padding: 72px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand .navbar__logo-mark { color: var(--color-white); }
.footer__logo { display: flex; align-items: center; gap: 12px; }
.footer__logo-badge {
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: var(--color-white);
  border-radius: 11px;
  flex-shrink: 0;
}
.footer__logo-badge img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
.footer__brand p { margin: 14px 0 22px; max-width: 34ch; font-size: 0.92rem; }
.footer__whatsapp { margin-bottom: 10px; }
.footer__note { font-size: 0.76rem; opacity: 0.6; max-width: 34ch; }

.footer__col h3 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__col a, .footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 200ms var(--ease);
}
.footer__col a:hover { color: var(--color-white); }

.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.footer__social a:hover { background: var(--color-red); border-color: var(--color-red); color: var(--color-white); }

.footer__bottom { padding: 24px 0; text-align: center; font-size: 0.82rem; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(227, 6, 19, 0.55);
  z-index: 45;
  transition: transform 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover {
  background: var(--color-red-dark);
  transform: translateY(-3px) scale(1.04);
  animation-play-state: paused;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 28px -8px rgba(227, 6, 19, 0.55), 0 0 0 0 rgba(227, 6, 19, 0.45); }
  50% { box-shadow: 0 12px 28px -8px rgba(227, 6, 19, 0.55), 0 0 0 12px rgba(227, 6, 19, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  z-index: 40;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-red); }
.back-to-top svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .back-to-top { right: 20px; bottom: 80px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { width: 100%; height: 340px; max-width: 480px; margin: 0 auto; }
  .grid--3, .grid--products, .grid--why, .grid--gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__cta { display: none; }

  .navbar__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 20px 24px 28px;
    gap: 6px;
    border-bottom: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-card);
  }
  .navbar__nav.is-open a { padding: 12px 4px; font-size: 1.02rem; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 68px 0; }
  .grid--3, .grid--products, .grid--why, .grid--gallery, .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__cta-group .btn { width: 100%; }
  .hero__visual { height: 280px; }
  .final-cta .btn { width: 100%; }
}
