/* ==========================================================================
   1. HERO MOLECULAR SECTION
   ========================================================================== */
.hero-molecular {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.hero-molecular .hero-ring {
  margin-top: 180px;
  width: 55%;
  height: auto;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2)) contrast(1.2) brightness(1.05);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 1;
  transform: rotateX(55deg);
  transform-style: preserve-3d;
}

.hero-molecular .hero-content {
  position: absolute;
  top: 20%; 
  z-index: 2;
  width: 100%;
  padding: 0 24px;
}

.hero-molecular .hero-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.06em;
  margin: 0;
  background: linear-gradient(55deg, #000000 0%, #757575 40%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-molecular .hero-sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.04em;
  margin: 0 auto 0;
  max-width: 600px;
  background: linear-gradient(55deg, #000000 0%, #757575 40%);    
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@media (max-width: 734px) {
    .hero-molecular {
        padding: 180px 24px;
        justify-content: flex-start;
        background: #fff;
        min-height: 100vh;
    }
    .hero-molecular .hero-title {
        font-size: 28px;
        letter-spacing: -0.05em;
        line-height: 1.12;
        font-weight: 600;
    }
    .hero-molecular .hero-sub { 
        position: absolute;
        font-weight: 600;
        margin-top:240px;
        font-size: 18px;
    }
    .hero-molecular .hero-content {
        position: relative;
        top: 0; 
        margin-bottom: 20px;
    }
    .hero-molecular .hero-ring {
        margin-top: 0;
        width: 100%;    
        transform: rotateX(50deg) scale(1.05);
    }
}

/* ==========================================================================
   2. SCIENTIFIC OUTPUT SECTION & SLIDER ENGINE
   ========================================================================== */
.apple-header {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto 24px;
    padding-left: 80px;
    display: flex;
    flex-direction: column;   
    align-items: flex-start;  
    justify-content: flex-end;
}

.category-main-title {
    font-size: 15px;
    font-weight: 400;
    color: #86868b;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    display: block;
}

.brand-title-badge {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
    color: #1d1d1f;
}

@media (max-width: 768px) {
    .apple-header { padding: 0 20px 16px; }
    .category-main-title { font-size: 14px; }
    .brand-title-badge { font-size: 22px; }
}

.output-wrapper {
    max-width: 1440px;
    margin: 0 auto 48px;
    padding: 0 5%;
    position: relative;
    overflow: visible;
}

/* SLIDER CONTAINER */
.apple-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 22px;
    gap: 24px;
    scrollbar-width: none;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
}
.apple-slider-container::-webkit-scrollbar { display: none; }

.product-card-luxury {
    flex: 0 0 340px;
    scroll-snap-align: start;
    display: flex;
}

.card-link-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card-luxury:hover .card-link-wrapper {
    box-shadow: 0 5px 10px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.card-visual {
    width: 100%;
    height: 280px; 
    overflow: hidden;
    background: #ffffff;
    flex-shrink: 0;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 16px; 
    box-sizing: border-box;
}

.card-visual img {
    max-width: 100%; 
    max-height: 100%; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card-luxury:hover .card-visual img { transform: scale(1.05); }

.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-info h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin: 0 0 12px;
}

.lab-stat {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0071e3;
    display: block;
    margin-bottom: 12px;
}

.card-desc {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #6e6e73;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* SLIDER NAVIGATION CORES */
.nav-btn {
    position: absolute;
    top: 42%; 
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nav-btn:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.08);
}

.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }
.nav-btn svg { width: 20px; height: 20px; }

.scientific-output {
    background: #FAF8F9;
    padding: 40px 0;
    position: relative;
}

@media (max-width: 734px) {
    .scientific-output { padding: 60px 0; }
    .output-wrapper { margin: 0 auto 64px; }
    .apple-slider-container { padding: 8px 16px 20px 16px; gap: 16px; }
    .product-card-luxury { flex: 0 0 300px; }
    .card-visual { height: 240px; padding: 12px; }
    .card-info { padding: 20px; }
    .card-info h3 { font-size: 20px; }
    .nav-btn {
        display: flex; 
        position: absolute; 
        top: auto; 
        bottom: -40px; 
        width: 44px; 
        height: 44px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        transform: translateX(-50%);
    }
    .nav-btn.prev { left: calc(50% - 26px); }
    .nav-btn.next { left: calc(50% + 26px); right: auto; }
    .nav-btn:hover { transform: translateX(-50%) scale(1.05); }
}

/* ==========================================================================
   3. REAGENT SECTION & HYBRID SEJAJAR SIDE-BY-SIDE (SOLUSI BOS SULTAN)
   ========================================================================== */
.reagent-section {
    padding-top: 40px;
    padding-bottom: 40px; 
    background: #FAF8F9; 
}

.reagent-grid-container {
    max-width: 1440px;
    margin: 0 auto; 
    padding: 0 5%;
    position: relative;
}

/* KUNCI UTAMA: Menggunakan auto-fit dan minmax agar 2-4 produk dipaksa sejajar rapi ke samping */
.reagent-grid-mesh {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px; 
    padding: 20px 0 0 0; 
    width: 100%;
}

.reagent-grid-mesh .product-card-luxury {
    flex: none !important; 
    width: 100%; 
}

/* Di HP baru kita izinkan dia stack kebawah demi UX layar kecil */
@media (max-width: 734px) {
    .reagent-grid-mesh {
        grid-template-columns: 1fr; 
        gap: 24px;
        padding: 16px 0 0 0;
    }
}

/* ==========================================================================
   4. APP VISUAL SECTION
   ========================================================================== */
.app-visual {
  width: 100%;
  background: #F6F4F5;
  padding-top: 80px;
  text-align: left;
  background: linear-gradient(to bottom, #F6F4F5 0%, #ffffff 100%);
}

.app-visual__header {
  max-width: 1200px;
  margin: 0 48px;
  padding: 0 24px;
  text-align: left;
}

.app-visual__title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #1D1D1F;
  margin: 0 0 12px;
}

.app-visual__subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #86868B;
  margin: 0;
}

.app-visual__subtitle .dot {
  margin: 0 12px;
  color: #D2D2D7;
}

.app-visual__container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;            
  justify-content: center;
  position: relative;
}

.app-visual__container img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.08));
}

@media (max-width: 768px) {
  .app-visual { padding: 48px 0; }
  .app-visual__title { font-size: 32px; }
  .app-visual__subtitle { font-size: 16px; }
  .app-visual__header { margin-bottom: 32px; }
}

/* ==========================================================================
   5. MANIFESTO SECTION
   ========================================================================== */
.closing-manifesto {
    background: #ffffff; 
    padding: 160px 5% 120px;
    text-align: center;
}

.closing-container {
    max-width: 980px; 
    margin: 0 auto;
}

.closing-text {
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 600;
    letter-spacing: -0.045em; 
    line-height: 1.05;
    color: #1d1d1f; 
    margin: 0 0 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.closing-text .accent {
    background: linear-gradient(180deg, #4a4a4a 0%, #1d1d1f 45%, #7a7a7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: #0071E3;
    color: #fff;
    padding: 12px 28px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em; 
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover { background: #0077ED; }

@media (max-width: 734px) {
    .closing-manifesto { padding: 100px 5% 80px; }
    .closing-text { font-size: 2.5rem; }
}