/* ==========================================================================
   1. HERO MOLECULAR SECTION (PSG LABORATORY MONOCHROME SULTAN EDITION)
   ========================================================================== */
.hero-molecular {
  background: #000;
  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: 200px;
  width: 50%;
  height: auto;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2)) contrast(1.1) brightness(0.95);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 1;
  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;
  color: #ffffff; 
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.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;
  color: #8e8e93; 
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

/* ==========================================================================
   RESPONSIVE MATRIX ENGINE (TRUE ELEMENT INVERSION)
   ========================================================================== */
@media (max-width: 734px) {
  /* Parent utama dipaksa jadi flex column buat ngatur hierarki luar */
  .hero-molecular {
    padding: 180px 24px 60px 24px;
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px; /* Jarak antar elemen terkontrol */
  }

  /* Hilangkan posisi absolute, biarkan content wrapper mengalir natural */
  .hero-molecular .hero-content {
    position: relative;
    top: 0; 
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Kita hancurkan batas pembungkus internal agar flex parent utama yang pegang kendali */
    display: contents; 
  }

  /* URUTAN 1: Title dikunci di paling atas */
  .hero-molecular .hero-title {
    font-size: 20px;
    letter-spacing: -0.05em; 
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    order: 1;
  }
  
  /* URUTAN 2: Ring naik ke tengah, tepat di bawah Title! */
  .hero-molecular .hero-ring {
    margin-top: 12px; 
    width: 100%;    
    display: block;
    order: 2;
  }

  /* URUTAN 3: Sub-title mendarat sempurna di bawah gambar Ring! */
  .hero-molecular .hero-sub { 
    position: relative;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #8e8e93; 
    max-width: 100%;
    margin: 12px auto 0 auto;
    text-align: center;
    order: 3;
  }
}

/* ===== ARCHITECTURE DNA: ULTRA-MONOCHROME SULTAN ENGINE (ANTI-BLUE SPEC) ===== */

/* UTAMA MATRIX CONTAINER GRID */
.bento-matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px; /* Jarak lega premium agar layout bernapas bebas */
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px;
    background-color: #050505; /* Pure ultra dark lab premium - NO BLUE allowed */
    box-sizing: border-box;
}

/* BASE BENTO CARD / NODE STYLE */
.bento-node {
    background: #000000; /* Hitam pekat arang premium dengan hint titanium */
    border: 1px solid rgba(255, 255, 255, 0.097);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}


/* SPANNING MATRIX ENGINE (UKURAN BENTO) */
.bento-node.card-ultra-wide {
    grid-column: span 4; /* Penuh horizontal untuk Pharma Grade */
}

.bento-node.card-vertical-tall {
    grid-column: span 2;
    grid-row: span 2; /* Memanjang ke bawah */
}

.bento-node.card-standard {
    grid-column: span 2; /* Ukuran standar modular simetris */
}

/* HEADER DI DALAM NODE */
.node-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    width: 100%;
}

.node-meta {
    font-family: 'SF Pro Text', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #666666; /* Abu-abu redup premium */
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.node-title {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff; /* Putih mulus bersih murni */
    margin: 0;
    letter-spacing: -0.5px;
}

.purity-indicator {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #000814; /* Teks hitam pekat di atas background putih */
    background-color: #ffffff; /* Kontras murni absolut */
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: -0.2px;
}

.node-text {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #8e8e93; /* Khas Apple sub-text */
    margin: 0 0 28px 0;
    max-width: 90%;
}

/* THE SULTAN AREA: CHIPS SPEC MATRIX CONTROLLER */
.material-variant-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    width: 100%;
}

/* CHIP INDIVIDUAL CARD */
.matrix-chip-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.matrix-chip-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px); /* Efek melayang mikro Tesla spec */
}

.chip-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: calc(100% - 28px);
}

.chip-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.chip-title {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-formula-badge {
    font-family: monospace;
    font-size: 10px;
    color: #888888;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.chip-desc-text {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 11px;
    color: #8e8e93;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MINI ACTION TOGGLE (+) ACCENT */
.chip-add-action {
    background: transparent;
    border: none;
    color: #666666;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: color 0.2s ease;
}

.matrix-chip-card:hover .chip-add-action {
    color: #ffffff; /* Berubah putih murni pas diketuk/hover */
}

/* RESPONSIVE RESPONSIVENESS ENGINE */
@media (max-width: 1200px) {
    .bento-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
    }
    .bento-node.card-ultra-wide,
    .bento-node.card-vertical-tall,
    .bento-node.card-standard {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-matrix-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }
    .bento-node.card-ultra-wide,
    .bento-node.card-vertical-tall,
    .bento-node.card-standard {
        grid-column: span 1;
        padding: 20px;
    }
    .material-variant-chips-grid {
        grid-template-columns: 1fr;
    }
}