/* ========================================
   MASTA XUL root
   portal.css - Tema gelap
   Hitam 
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #030308;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Fokus kelihatan untuk navigasi papan kekunci */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

/* =========================================================
   1. LOADING SCREEN & ANIMASI UFO TERBANG
   ========================================================= */
#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030308;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s;
  /* Failsafe CSS tulen: kalau JS gagal jalan (fail hilang/ralat), overlay ni
     automatik hilang lepas 7 saat — elak laman "terperangkap" loading screen
     selama-lamanya. Dalam keadaan normal, JS dah sorokkan overlay ni lebih
     awal (~2.3 saat) jadi animation ni tak pernah sempat nampak kesan. */
  animation: failsafeHideLoader 0.01s linear 7s forwards;
}

@keyframes failsafeHideLoader {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loader-content {
  text-align: center;
  max-width: 90%;
  width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-ufo-wrapper {
  position: relative;
  width: 140px;
  height: 70px;
  margin-bottom: 10px;
  animation: ufoFlyIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.loader-ufo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.8));
}

.loader-beam {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  width: 220px;
  height: 90px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.6) 0%, rgba(74, 222, 128, 0.2) 60%, rgba(56, 189, 248, 0) 100%);
  clip-path: polygon(35% 0%, 65% 0%, 100% 100%, 0% 100%);
  opacity: 0;
  animation: beamTurnOn 0.6s ease-out 1.2s forwards;
  pointer-events: none;
}

.welcome-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 30px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  animation: welcomeTextReveal 0.8s ease-out 1.7s forwards;
}

.highlight-blue {
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.9), 0 0 40px rgba(56, 189, 248, 0.5);
  font-size: 2.5rem;
}

.loading-status {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 600;
  opacity: 0;
  animation: fadeInProgress 0.5s ease-out 2.0s forwards;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  opacity: 0;
  animation: fadeInProgress 0.5s ease-out 2.0s forwards;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #38bdf8;
  transition: width 0.1s linear;
}

@keyframes ufoFlyIn {
  0% { transform: translateX(-500px) translateY(-50px) rotate(-15deg); opacity: 0; }
  100% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 1; }
}

@keyframes beamTurnOn {
  0% { transform: translateX(-50%) scaleY(0); opacity: 0; }
  100% { transform: translateX(-50%) scaleY(1); opacity: 1; }
}

@keyframes welcomeTextReveal {
  0% { opacity: 0; transform: translateY(-10px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInProgress {
  to { opacity: 1; }
}

/* =========================================================
   2. CANVAS GALAKSI & BACKGROUND UFO
   ========================================================= */
#galaxyCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ufo-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 130px;
  height: 85px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.6));
  animation: ufoFlyAcross 14s linear infinite;
}

.ufo-svg {
  width: 100%;
  height: 100%;
}

@keyframes ufoFlyAcross {
  0% { transform: translate(-160px, 20vh) rotate(-5deg); opacity: 0; }
  8% { opacity: 0.85; }
  35% { transform: translate(30vw, 12vh) rotate(3deg); }
  65% { transform: translate(65vw, 28vh) rotate(-3deg); }
  92% { opacity: 0.85; }
  100% { transform: translate(105vw, 18vh) rotate(5deg); opacity: 0; }
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
  /* Nota: sebelum ni opacity:0 sehingga JS tambah kelas .visible — kalau JS
     gagal, kandungan kekal tak kelihatan SELAMA-LAMANYA. #loader-overlay
     (z-index 9999) dah pun litup skrin penuh semasa loading, jadi tak perlu
     kandungan bawah ni sorok sekali — redundant dan berisiko. */
  opacity: 1;
  transition: opacity 1s ease;
}

.glass-card {
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  padding: 35px;
  margin-bottom: 30px;
}

/* =========================================================
   3. NAVBAR & ALIEN POINTER MENU
   ========================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 30px;
  position: sticky;
  top: 20px;
  z-index: 100;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  background: linear-gradient(45deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-wrapper {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
  position: relative;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 15px;
  transition: color 0.3s, background 0.3s;
  position: relative;
  z-index: 2;
  display: inline-block;
}

.nav-links a.active,
.nav-links a:hover {
  color: #38bdf8;
  font-weight: 600;
}

.alien-pointer {
  position: absolute;
  top: -42px;
  left: 0;
  width: 60px;
  height: 50px;
  pointer-events: none;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.8));
}

.alien-speech {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #4ade80;
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
  margin-bottom: -2px;
  animation: floatMini 2s infinite ease-in-out alternate;
}

.alien-mini-svg {
  width: 50px;
  height: 40px;
  animation: floatMini 2s infinite ease-in-out alternate;
}

@keyframes floatMini {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

/* =========================================================
   4. HERO & SECTIONS LAIN
   ========================================================= */
.hero-section {
  text-align: center;
  padding: 50px 20px;
}

.profile-img-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.highlight {
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(45deg, #38bdf8, #818cf8);
  color: #000;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-content p {
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 25px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  border-radius: 12px;
}

.info-item i {
  color: #38bdf8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(8, 12, 24, 0.6);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 8px;
  color: #f8fafc;
}

.project-info p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
}

.project-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   5. 3D ROTATING GALLERY (dengan sokongan seret)
   ========================================================= */
.gallery-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 25px;
}

.carousel-container {
  width: 100%;
  height: 380px;
  position: relative;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 0;
  /* pan-y: seretan melintang (horizontal) diambil oleh JS untuk memutar
     carousel, manakala skrol menegak halaman masih berfungsi seperti biasa */
  touch-action: pan-y;
  cursor: grab;
}

.carousel-container.dragging {
  cursor: grabbing;
}

.carousel-spinner {
  width: 200px;
  height: 200px;
  position: absolute;
  transform-style: preserve-3d;
  /* Animasi CSS ini menjadi fallback sekiranya JS tidak dimuatkan;
     setelah pengguna mula menyeret, JS mengambil alih kawalan penuh */
  animation: rotate3d 28s infinite linear;
}

.carousel-spinner:hover {
  animation-play-state: paused;
}

.carousel-card {
  position: absolute;
  width: 200px;
  height: 200px;
  left: 0;
  top: 0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
  transform: rotateY(calc(var(--i) * (360deg / 9))) translateZ(320px);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 8px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  text-align: center;
}

.card-info span {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-card:hover {
  border-color: #4ade80;
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.6);
}

.carousel-card:hover img {
  transform: scale(1.08);
}

@keyframes rotate3d {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* =========================================================
   6. SKILLS & CONTACT
   ========================================================= */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-sub {
  color: #cbd5e1;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label,
.captcha-box label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.captcha-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 16px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-q {
  font-weight: 700;
  font-size: 1.1rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
}

.captcha-box input {
  max-width: 120px;
}

.captcha-refresh {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 14px;
  margin-top: 10px;
}

.msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  display: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.msg.ok {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
}

.msg.err {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

.contact-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 30px 0 20px;
}

.contact-socials-wrapper { text-align: center; }
.contact-socials-wrapper p { font-size: 0.9rem; color: #94a3b8; margin-bottom: 12px; }
.contact-socials { display: flex; gap: 15px; justify-content: center; }

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icon:hover {
  background: #38bdf8;
  color: #000;
  box-shadow: 0 0 15px #38bdf8;
}

.footer {
  text-align: center;
  padding: 20px 0;
  color: #64748b;
  font-size: 0.85rem;
}

/* =========================================================
   7. RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 12px; padding: 15px; }
  .nav-links { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 0.85rem; padding: 4px 8px; }
  .alien-pointer { display: none; }
}

@media (max-width: 600px) {
  .carousel-container { height: 320px; }
  .carousel-spinner { width: 150px; height: 150px; }
  .carousel-card {
    width: 150px;
    height: 150px;
    transform: rotateY(calc(var(--i) * (360deg / 9))) translateZ(230px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-ufo-wrapper,
  .loader-beam,
  .welcome-title,
  .loading-status,
  .progress-bar-container,
  .ufo-background-container,
  .carousel-spinner,
  .alien-speech,
  .alien-mini-svg {
    animation: none !important;
  }
  .carousel-spinner:hover {
    animation-play-state: paused;
  }
}


/* =========================================================
   8. HOME BLOG + PRODUK PREVIEW
   ========================================================= */
.home-loading {
  text-align: center;
  color: #94a3b8;
  padding: 24px;
  grid-column: 1 / -1;
}

.home-blog-grid,
.home-produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.home-blog-card,
.home-produk-card {
  display: block;
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-blog-card:hover,
.home-produk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-blog-card img,
.home-produk-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: rgba(15, 23, 42, 0.9);
}

.home-produk-card img {
  object-fit: contain;
  background: #0b1220;
  padding: 8px;
}

.home-blog-card .body,
.home-produk-card .body {
  padding: 14px;
}

.home-blog-card .kat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.home-blog-card h3,
.home-produk-card h3 {
  font-size: 0.98rem;
  color: #f8fafc;
  margin: 0 0 6px;
  line-height: 1.35;
}

.home-blog-card .excerpt {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-produk-card .harga {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f87171;
}

.home-produk-card .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #dc2626;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.section-cta {
  text-align: center;
  margin-top: 22px;
}

.captcha-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 8px;
}

.home-produk-grid.is-swapping {
  opacity: 0.45;
  transition: opacity 0.35s ease;
}

@media (max-width: 600px) {
  .home-blog-card img,
  .home-produk-card img {
    height: 120px;
  }
}


/* Grid 3 kolum — blog + 6 produk (3 atas + 3 bawah) */
.home-blog-grid,
.home-produk-grid.home-produk-6 {
  grid-template-columns: repeat(3, 1fr);
}
.home-blog-rotate.is-swapping,
.home-produk-grid.is-swapping {
  opacity: 0.4;
  transition: opacity 0.35s ease;
}
.cf-turnstile-wrap {
  min-height: 65px;
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
  max-width: 100%;
  overflow: hidden;
}
.cf-turnstile-wrap iframe {
  max-width: 100%;
}
@media (max-width: 900px) {
  .home-blog-grid,
  .home-produk-grid.home-produk-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .home-blog-grid,
  .home-produk-grid.home-produk-6 {
    grid-template-columns: 1fr;
  }
}


/* iPhone / HP sempit — butang hero + Turnstile */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .hero-buttons {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 4px;
  }
  .hero-buttons .btn {
    padding: 9px 14px;
    font-size: 0.82rem;
    border-radius: 22px;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }
  .captcha-box {
    padding: 12px 10px;
    overflow: hidden;
  }
  .cf-turnstile-wrap {
    min-height: 56px;
    justify-content: center;
    transform: scale(0.92);
    transform-origin: center center;
  }
  .captcha-hint {
    font-size: 0.72rem;
  }
  .btn-submit {
    padding: 12px;
    font-size: 0.92rem;
  }
}
@media (max-width: 390px) {
  .hero-buttons .btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .cf-turnstile-wrap {
    transform: scale(0.85);
  }
}


/* ========== LANDING PAGE UPGRADE ========== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulseDot 1.8s ease infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero-lead {
  max-width: 540px;
  margin: 10px auto 0;
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.6;
}
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.hero-platforms span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}

.stats-strip {
  max-width: 1000px;
  margin: 0 auto 22px;
  padding: 0 16px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
}
.stat-item { text-align: center; padding: 6px 4px; }
.stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

.value-section .section-lead {
  text-align: center;
  color: #94a3b8;
  margin: -6px 0 18px;
  font-size: 0.95rem;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.value-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s, transform 0.2s;
}
.value-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}
.value-icon { font-size: 1.5rem; margin-bottom: 8px; }
.value-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: #f1f5f9;
}
.value-card p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 10px;
}
.value-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
}
.value-link:hover { text-decoration: underline; }

.cta-band {
  max-width: 1000px;
  margin: 8px auto 22px;
  padding: 0 16px;
}
.cta-band-inner {
  text-align: center;
  padding: 28px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(168,85,247,0.18));
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.cta-band-inner h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: #f8fafc;
}
.cta-band-inner p {
  color: #cbd5e1;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.cta-band-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-rich {
  padding: 28px 16px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  text-align: left;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-tag { color: #94a3b8; font-size: 0.8rem; margin-top: 2px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-links a:hover { color: #38bdf8; }
.footer-copy {
  color: #64748b;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

@media (max-width: 700px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-lead { font-size: 0.9rem; }
}
@media (max-width: 400px) {
  .stat-num { font-size: 1.25rem; }
}
