body {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity));
  -webkit-font-smoothing: antialiased;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

#root {
  --background: 0 0% 100%;
  --foreground: 20 14.3% 4.1%;
  --muted: 60 4.8% 95.9%;
  --muted-foreground: 25 5.3% 44.7%;
  --popover: 0 0% 100%;
  --popover-foreground: 20 14.3% 4.1%;
  --card: 0 0% 100%;
  --card-foreground: 20 14.3% 4.1%;
  --border: 20 5.9% 90%;
  --input: 20 5.9% 90%;
  --primary: 224 100% 65%;
  --primary-foreground: 221 100% 99%;
  --secondary: 60 4.8% 95.9%;
  --secondary-foreground: 24 9.8% 10%;
  --accent: 60 4.8% 95.9%;
  --accent-foreground: 24 9.8% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 60 9.1% 97.8%;
  --ring: 20 14.3% 4.1%;
  --radius: 0.5rem;
}
.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --primary: 224 100% 65%;
  --primary-foreground: 221 100% 99%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --ring: 240 4.9% 83.9%;
  --radius: 0.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Navigation & Header Styles */
.sticky-header {
  transition: transform 0.3s ease;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 rgba(0,0,0,0); /* no shadow */
}

.sticky-header.scrolled {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* subtle shadow saat scroll */
}

/* Active nav item indicator */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Beli Sekarang button */
@media (max-width: 768px) {
  .mobile-buy-button {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Keyboard key styling */
kbd {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  display: inline-block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

kbd:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for the shortcuts table */
@media (max-width: 640px) {
  #shortcuts-table-container table {
    display: block;
  }
  
  #shortcuts-table-container thead {
    display: none;
  }
  
  #shortcuts-table-container tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
  }
  
  #shortcuts-table-container tbody tr:not(:first-child) {
    margin-top: 1rem;
  }
  
  #shortcuts-table-container tbody tr[class*="bg-blue-50"] {
    border: none;
  }
  
  #shortcuts-table-container tbody td {
    display: block;
    text-align: left;
    padding: 0.75rem;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
  }
  
  #shortcuts-table-container tbody td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  #shortcuts-table-container tbody td:last-child {
    border-bottom: 0;
  }
  
  #shortcuts-table-container tbody tr:nth-child(even):not([class*="bg-blue-50"]) {
    background-color: rgba(243, 244, 246, 0.5);
  }
}

/* Samakan layout shortcuts table dengan features table (tanpa mobile card) */
@media (max-width: 640px) {
  #shortcuts-table-container table { display: table !important; width: 100%; }
  #shortcuts-table-container thead { display: table-header-group !important; }
  #shortcuts-table-container tbody tr {
    display: table-row !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  #shortcuts-table-container tbody td {
    display: table-cell !important;
    text-align: inherit !important;
    padding: 1.25rem !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
  #shortcuts-table-container tbody td:before { content: none !important; }
}

@media print {
  #shortcuts-table-container {
    break-inside: avoid;
  }
  #shortcuts-table-container thead {
    display: table-header-group;
  }
  kbd {
    border: 1px solid #999;
    box-shadow: none;
  }
}

/* Category Button */
.category-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.97rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.category-btn.active {
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
}
.category-btn:not(.active):hover {
  background: #e0e7ff;
  color: #3730a3;
}
.category-label {
  font-size: 1em;
  font-weight: inherit;
}
.category-count {
  background: #fff;
  color: rgba(99, 102, 241, 0.65); /* transparent as you wanted */
  font-size: 0.75em;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.15em 0.9em;
  margin-left: 0.5em;
  display: inline-block;
}
.category-btn.active .category-count {
  background: #fff;
  color: #4f46e5;
}

@media (max-width: 640px) {
  .category-btn {
    font-size: 0.88rem !important;      /* slightly bigger than text-xs */
    padding: 0.4rem 1.1rem !important;  /* a bit more padding */
    min-width: 0 !important;
    gap: 0.35rem !important;
  }
  .category-label {
    font-size: 1em !important;
  }
  .category-count {
    font-size: 0.8em !important;
    padding: 0.13em 0.8em !important;
    margin-left: 0.35em !important;
  }
  .category-icon {
    font-size: 1.08em !important;
    margin-right: 0.35em !important;
  }
  
  .keunggulan-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .keunggulan-section .text-3xl {
    font-size: 1.25rem !important; /* text-xl */
  }
  .keunggulan-section .text-lg {
    font-size: 1rem !important; /* text-base */
  }
  .keunggulan-section .p-6 {
    padding: 1rem !important;
  }
  .keunggulan-section .mb-4 {
    margin-bottom: 0.75rem !important;
  }
  .keunggulan-section .mb-3 {
    margin-bottom: 0.5rem !important;
  }
}

p.text-gray-600 {
  line-height: 1.6;
}

p.text-gray-600.hidden.sm\:block {
  display: none;
}

@media (min-width: 640px) {
  p.text-gray-600.hidden.sm\:block {
    display: block;
  }
}

/* Testimonials slider styles */
.testimonials-slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  height: auto;
  padding-left: 180px;   /* Lebih lebar kiri */
  padding-right: 180px;  /* Lebih lebar kanan */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonials-slider {
  display: flex;
  align-items: stretch;
  gap: 32px;
  animation: testimonials-slide 79s linear infinite;
  will-change: transform;
}
.testimonial-slide {
  min-width: 320px;
  max-width: 320px;
  min-height: 160px;
  max-height: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
  overflow: hidden;
  padding: 18px 20px 14px 20px; /* padding atas-kanan-bawah-kiri */
  margin: 0;
}
.testimonial-slide p {
  font-size: 0.98rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* maksimal 4 baris */
  line-clamp: 4; /* standard property for compatibility */
  -webkit-box-orient: vertical;
}
.testimonial-slide .w-8 {
  min-width: 2rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0; /* pastikan tidak ada margin bawah */
}
@media (max-width: 600px) {
  .testimonial-slide {
    min-width: 85vw;
    max-width: 85vw;
    min-height: 110px;
    max-height: 180px;
    /* Tambah padding kiri-kanan agar tidak mepet */
    padding: 8px 14px 10px 14px;
  }
  .testimonial-slide p {
    font-size: 0.82rem;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    margin-bottom: 0.3rem;
  }
  .testimonial-slide .w-8 {
    min-width: 1.3rem;
    min-height: 1.3rem;
    font-size: 0.82rem;
  }
  .testimonial-slide .font-medium.text-gray-900.text-base {
    font-size: 0.85rem;
  }
  .testimonial-slide .lucide-star,
  .testimonial-slide svg {
    width: 15px !important;
    height: 15px !important;
  }
  .testimonials-slider-wrapper {
    min-height: 150px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .testimonials-slider {
    animation-duration: 160s !important;
  }
}

/* The animation distance must match the total width of all slides + gaps */
@keyframes testimonials-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#category-filter-group .flex.flex-wrap {
  margin-bottom: 0.8rem; /* atau 1rem jika ingin lebih besar */
}
#category-filter-group .flex.flex-wrap:last-child {
  margin-bottom: 0;
}

/* Moved from index.html inline styles */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#beli-advance-btn {
  display: none;
}

#beli-advance-btn.hidden {
  display: none;
}

#beli-advance-btn:not(.hidden) {
  display: flex;
}

.animated-slide {
  display: inline-block;
  transition: transform 0.4s, opacity 0.4s;
  will-change: transform, opacity;
}
.animated-slide.hide {
  opacity: 0;
  transform: translateY(20px);
}
.animated-slide.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hero size: reduced so "Cepet bikin ... Tinggal pencet 2 Tombol!" tidak terlalu besar */
:root{
  /* tweak these values to change hero size globally */
  --hero-min: 2.25rem;        /* tailwind text-4xl */
  --hero-preferred: 5.2vw;    /* fluid scaling */
  --hero-max: 3.75rem;        /* tailwind text-6xl (desktop cap) */

  /* mobile override for very narrow screens */
  --hero-min-mobile: 1.75rem;  /* ~28px */

  /* animated text placeholder width */
  --animated-min-width: 6.5em;
}

/* replace existing .hero-size rules with this */
.hero-size {
  font-size: clamp(var(--hero-min), var(--hero-preferred), var(--hero-max));
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* very small screens override */
@media (max-width: 420px) {
  .hero-size {
    font-size: var(--hero-min-mobile);
  }
  #animated-text {
    min-width: calc(var(--animated-min-width)) !important;
  }
}

/* ensure animated text respects the variable */
#animated-text {
  font-size: inherit;
  position: relative;
  display: inline-block;
  min-width: var(--animated-min-width);
}

/* === Typography scale & weights (single source of truth) ===
   Tweak the --h1-size / --h2-size / --stat-number-size / weights to adjust globally.
*/
:root {
  --font-sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Base */
  --base-font-size: 16px;
  --base-line-height: 1.6;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Headings (fluid with clamp) */
  --h1-size: clamp(2.25rem, 4.8vw, 3.25rem); /* ~36px - 52px */
  --h2-size: clamp(1.5rem, 3.6vw, 2.25rem);  /* ~24px - 36px */
  --h3-size: clamp(1.125rem, 2.6vw, 1.5rem); /* ~18px - 24px */

  /* Lead / body / small */
  --lead-size: clamp(0.95rem, 1.6vw, 1.05rem); /* ~15.2px - 16.8px */
  --body-size: 1rem;                         /* 16px */
  --small-size: 0.875rem;                    /* 14px */

  /* Stats / hero numbers */
  --stat-number-size: clamp(1.5rem, 3.6vw, 2.25rem); /* ~24px - 36px */

  /* Navigation / buttons */
  --nav-size: 0.95rem;
  --button-size: 0.95rem;

  /* Animated text placeholder width */
  --animated-min-width: 6.5em;
}

/* Apply global base */
html { font-size: var(--base-font-size); }
body {
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: var(--base-line-height);
  font-weight: var(--fw-regular);
  color: rgb(17 24 39);
}

/* Headings */
h1, .h1 { font-size: var(--h1-size); line-height: 1.03; font-weight: var(--fw-bold); margin: 0 0 0.35em; }
h2, .h2 { font-size: var(--h2-size); line-height: 1.08; font-weight: var(--fw-semibold); margin: 0 0 0.4em; }
h3, .h3 { font-size: var(--h3-size); line-height: 1.12; font-weight: var(--fw-semibold); margin: 0 0 0.45em; }

/* Hero: use the H1 scale for hero-size but centralized */
.hero-size { font-size: var(--h1-size); line-height: 1.03; font-weight: var(--fw-bold); }

/* Animated text inherits hero size, no inline width forcing */
#animated-text {
  font-size: inherit;
  min-width: var(--animated-min-width);
  display: inline-block;
  font-weight: var(--fw-bold);
}

/* Lead paragraph */
.lead, p.lead, p.text-lead { font-size: var(--lead-size); color: #374151; }

/* Stats numbers */
/* Ensure number and suffix are visually balanced */
.stats-number {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap; /* keep suffix on same line */
}

/* numeric value (bigger) */
.stats-value {
  font-size: 1em;          /* inherit from container (e.g. text-2xl) */
  font-weight: 700;
  display: inline-block;
  line-height: 1;
  transform: translateY(0); /* reset any previous tweaks */
}

/* suffix (smaller, vertically aligned to baseline) */
.stats-suffix {
  font-size: 0.68em;       /* relative to the numeric value */
  font-weight: 600;
  opacity: 0.95;
  display: inline-block;
  transform: translateY(-0.04em); /* micro-nudge to seat on same optical baseline */
  margin-left: 0.08rem;
}

/* Mobile tweak: slightly larger relative suffix so it reads better on small screens */
@media (max-width: 420px) {
  .stats-number { /* keep as is, only ensure nowrap on small screens */ white-space: nowrap; }
}

/* Large-screen tweak: keep suffix slightly larger on very big displays */
@media (min-width: 1280px) {
  .stats-number { white-space: nowrap; }
}

/* Rotating text — make title bigger and the underline wider */
:root {
  --rotating-min: 1.5rem;      /* ~24px */
  --rotating-preferred: 3.2vw; /* fluid */
  --rotating-max: 2.25rem;     /* ~36px (md:text-4xl) */

  /* underline */
  --rotating-underline-width: 5rem; /* equal to Tailwind w-20 (5rem) */
  --rotating-underline-height: 0.25rem;
}

.rotating-text h3 {
  font-size: clamp(var(--rotating-min), var(--rotating-preferred), var(--rotating-max)) !important;
  line-height: 1.06;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-align: center;
}

.rotating-text > div {
  width: var(--rotating-underline-width) !important;
  height: var(--rotating-underline-height) !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 9999px;
}

@media (max-width: 420px) {
  :root {
    --rotating-min: 1.125rem;
    --rotating-max: 1.5rem;
    --rotating-underline-width: 3rem;
  }
}

/* Hero-specific testimonial sizing (desktop hero only) */
.hidden.lg\:block .testimonials-slider-wrapper {
  padding-left: 60px;    /* reduce from 180 */
  padding-right: 60px;
  min-height: 220px;     /* smaller hero box */
  align-items: center;
}
.hidden.lg\:block .testimonials-slider {
  gap: 20px;             /* smaller gap between cards */
  animation-duration: 60s; /* speed tweak; reduce if you want faster movement */
}
.hidden.lg\:block .testimonial-slide {
  min-width: 260px;
  max-width: 280px;
  min-height: 130px;
  padding: 12px 14px;
}
@media (min-width: 1280px) {
  .hidden.lg\:block .testimonial-slide { min-width: 300px; max-width: 320px; }
}

.hero-animated { width: var(--animated-fixed-width, auto); display:inline-block; white-space:nowrap; }
@media (max-width:640px){ .hero-animated{ width:auto; white-space:normal; } }

.testimonials-slider-wrapper { min-height:160px; display:flex; align-items:center; justify-content:center; box-sizing:border-box; }
.social-proof-marquee { min-height:36px; } /* placeholder for marquee */
.feature-list-placeholder { min-height:120px; }

/* Page-specific: make zaki hero heading semibold on mobile, bold on desktop if needed */
.zaki-hero h1 {
  font-weight: var(--fw-semibold) !important; /* 600 */
}

/* Ensure zaki hero heading matches denius weight exactly */
.zaki-hero h1,
.zaki-hero h1 span {
  font-weight: var(--fw-bold, 700) !important;
}

/* If you don't use .zaki-hero, this still harmlessly ensures exact bold where present */
@media (min-width: 1024px) {
  .zaki-hero h1 { font-weight: var(--fw-bold) !important; } /* restore bold on desktop */
}

/* Hero video styling */
.hero-section video,
.hero-section img[alt*="hero"] {
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
  background: #fff;
  max-width: 100%;
  height: auto;
  display: block;
}
